Mounting ext3 USB drive fails

If your problem doesn't fall into one of the other categories, report it here.

Moderator: Moderators

Post Reply
apa64
Posts: 9
Joined: Tue May 01, 2012 2:42 am

Mounting ext3 USB drive fails

Post by apa64 »

I upgraded my NetGear WNDR3700v2 router from Gargoyle 1.5.4 to 1.5.8 and the new version can't mount my ext3 formatted 1TB LaCie USB drive. (I didn't "attempt to preserve settings" in the router update.)

The "USB Storage" view lists the drive as: "/dev/sda1 (Ext3, NaN.000 KB)". If I mount it as CIFS (Samba) share, it appears in the shared disks list but when I access it through network it seems empty.

I have restarted the router and reconnected the USB drive several times. The drive works just fine at least under Win7 with ext2fsd driver so it probably is not corrupted. I disconnected the drive from the router while I was upgrading the Gargoyle.

I have also 2 older USB drives, one in FAT32 and other in NTFS format. Both mount correctly and work just fine with the new Gargoyle version.

With Gargoyle 1.5.4 the ext3 drive mounted OK and I used it with miniupnpd media server, but I don't want to downgrade to that because for some reason my Asus laptop wouldn't connect to WLAN with that version... from one problem to next :(

Some logs from the router (the drive is not mounted now from the UI):

Code: Select all

root@purkki:~# dmesg
...
[   30.060000] disktype: sending ioctl 5305 to a partition!
[   30.060000] disktype: sending ioctl 5305 to a partition!
[   30.130000] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   30.220000] EXT4-fs error (device sda1): ext4_ext_check_inode:397: inode #8: comm busybox: bad header/extent: invalid magic - magic 43f, entries 0, max 1088(0), depth 0(0)
[   30.230000] EXT4-fs (sda1): no journal found

root@purkki:~# disktype /dev/sda1

--- /dev/sda1
Block device, size 931.5 GiB (1000202241024 bytes)
Ext3 file system
  Volume name "GRAND1TB"
  UUID FF7BCE53-6594-CC01-6063-C6536594CC01 (NCS)
  Volume size 931.5 GiB (1000202240000 bytes, 244190000 blocks of 4 KiB)

root@purkki:~# blkid /dev/sda1
/dev/sda1: LABEL="GRAND1TB" UUID="ff7bce53-6594-cc01-6063-c6536594cc01" SEC_TYPE="ext2" TYPE="ext3"

root@purkki:~# blkid -p /dev/sda1
/dev/sda1: LABEL="GRAND1TB" UUID="ff7bce53-6594-cc01-6063-c6536594cc01" SEC_TYPE="ext2" VERSION="1.0" TYPE="ext3" USAGE="filesystem" PART_ENTRY_SCHEME="dos" PART_ENTRY_TYPE="0x7" PART_ENTRY_NUMBER="1" PART_ENTRY_OFFSET="63" PART_ENTRY_SIZE="1953520002" PART_ENTRY_DISK="8:0"

root@purkki:~# mount -t ext3 /dev/sda1 /mnt/levy
mount: mounting /dev/sda1 on /mnt/levy failed: Invalid argument
Why does it try to mount the drive "using ext4 subsystem"? It seems wrong, but then I'm not a linux expert. What could I do to make it work?

linuxaddict7
Posts: 2
Joined: Wed Dec 26, 2012 9:15 pm

Re: Mounting ext3 USB drive fails

Post by linuxaddict7 »

1. Was the drive formatted as ext3 or ext4?
2. Did you tried mounting as ext4?

apa64
Posts: 9
Joined: Tue May 01, 2012 2:42 am

Re: Mounting ext3 USB drive fails

Post by apa64 »

The drive is formatted as ext3 and mounting as ext4 from the shell fails with the same error, "Invalid argument".

Here's dmesg output when I attached the drive to the router:

Code: Select all

[467171.750000] usb 1-1: new high-speed USB device number 5 using ehci-platform
[467171.900000] scsi3 : usb-storage 1-1:1.0
[467172.950000] scsi 3:0:0:0: Direct-Access     ST310005 28AS                  PQ: 0 ANSI: 2 CCS
[467172.960000] sd 3:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
[467172.970000] sd 3:0:0:0: [sda] Write Protect is off
[467172.980000] sd 3:0:0:0: [sda] Mode Sense: 28 00 00 00
[467172.980000] sd 3:0:0:0: [sda] No Caching mode page present
[467172.980000] sd 3:0:0:0: [sda] Assuming drive cache: write through
[467172.990000] sd 3:0:0:0: [sda] No Caching mode page present
[467173.000000] sd 3:0:0:0: [sda] Assuming drive cache: write through
[467173.020000]  sda: sda1
[467173.030000] sd 3:0:0:0: [sda] No Caching mode page present
[467173.030000] sd 3:0:0:0: [sda] Assuming drive cache: write through
[467173.040000] sd 3:0:0:0: [sda] Attached SCSI disk
[467173.850000] disktype: sending ioctl 5305 to a partition!
[467173.860000] disktype: sending ioctl 5305 to a partition!
[467173.900000] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[467173.960000] EXT4-fs error (device sda1): ext4_ext_check_inode:397: inode #8: comm busybox: bad header/extent: invalid magic - magic 43f, entries 0, max 1088(0), depth 0(0)
[467173.980000] EXT4-fs (sda1): no journal found

linuxaddict7
Posts: 2
Joined: Wed Dec 26, 2012 9:15 pm

Re: Mounting ext3 USB drive fails

Post by linuxaddict7 »

Does this drive work on another computer, what error seems to be saying some of the blocks may be bad.

If the drive works on another computer, backup the data, connect it back to the router and format as ext4. mkfs.ext4 /dev/sda1

apa64
Posts: 9
Joined: Tue May 01, 2012 2:42 am

Re: Mounting ext3 USB drive fails

Post by apa64 »

I guess backup and re-format would be the best way, but it is strange that the drive was ok with the older Gargoyle version. I think I'll format it to NTFS or FAT32 so it doesn't require additional drivers to work with Windows (if I use the drive directly, without the router).

Post Reply