Kernel problem? Extended Partition not shown under /dev

This forum is for all other ARMv5 devices

Kernel problem? Extended Partition not shown under /dev

Postby bchen » Sun Oct 07, 2012 2:56 am

I just installed the ArchLinux on my pogoplug p21 a few days ago and attached a 3TB usb HD to it. The HD is partitioned as 2TB ext3 and 1TB ntfs, which was mounted ok on my another linux box. On that box, it's detected as /dev/sda1, sda2 and sda5. The sda5 is the ntfs parition. But on Archlinux (detected as sde), sde5 didn't exist under /dev. It's shown with fdisk tough. I kind of suspect there's something wrong with the usb-storage kernel (ums-usbat.ko) since it can be detected/mounted on another linux box. I'm printing the output of fdisk and dmesg as follows. I'd appreciate any help!

Pay attention to this line of dmesg: "sde: sde1 sde2 < >." It's supposed to be "sde: sde1 sde2 < sde5 >" if the kernel can detect the extended partition successfully.

$this->bbcode_second_pass_code('', '
fdisk -l
Device Boot Start End Blocks Id System
/dev/sda1 51 1950239 975094+ 83 Linux
Note: sector size is 4096 (not 512)

Disk /dev/sde: 3000.6 GB, 3000592977920 bytes
255 heads, 63 sectors/track, 45600 cylinders, total 732566645 sectors
Units = sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xab7b2c8d

Device Boot Start End Blocks Id System
/dev/sde1 63 538161434 2152645488 83 Linux
/dev/sde2 538161435 732563999 777610260 f W95 Ext'd (LBA)
/dev/sde5 538161498 732563999 777610008 7 HPFS/NTFS/exFAT
')

dmesg:
$this->bbcode_second_pass_code('', '
[ 42.460000] usb-storage 1-1.2:1.0: usb_probe_interface
[ 42.460000] usb-storage 1-1.2:1.0: usb_probe_interface - got id
[ 42.460000] scsi3 : SCSI emulation for USB Mass Storage devices
[ 42.460000] usb 1-1.2:1.0: uevent
[ 42.460000] usb 1-1.2: uevent
[ 42.470000] usb 1-1.2:1.0: uevent
[ 42.470000] usb-storage: device found at 4
[ 42.470000] usb-storage: waiting for device to settle before scanning
[ 42.480000] usb 1-1.2: uevent
[ 42.480000] drivers/usb/core/inode.c: creating file '004'
[ 47.470000] scsi 3:0:0:0: Direct-Access Seagate GoFlex Desk 0D18 PQ: 0 ANSI: 5
[ 47.490000] usb-storage: device scan complete
[ 47.490000] sd 3:0:0:0: [sde] 732566645 4096-byte logical blocks: (3.00 TB/2.72 TiB)
[ 47.500000] sd 3:0:0:0: [sde] Write Protect is off
[ 47.500000] sd 3:0:0:0: [sde] Mode Sense: 4f 00 00 00
[ 47.500000] sd 3:0:0:0: [sde] Assuming drive cache: write through
[ 47.510000] sd 3:0:0:0: [sde] 732566645 4096-byte logical blocks: (3.00 TB/2.72 TiB)
[ 47.520000] sd 3:0:0:0: [sde] Assuming drive cache: write through
[ 47.530000] sde: sde1 sde2 < >
[ 47.570000] sd 3:0:0:0: [sde] 732566645 4096-byte logical blocks: (3.00 TB/2.72 TiB)
[ 47.580000] sd 3:0:0:0: [sde] Assuming drive cache: write through
[ 47.590000] sd 3:0:0:0: [sde] Attached SCSI disk
[ 47.600000] sd 3:0:0:0: [sde] Sense Key : 0x1 [current] [descriptor]
[ 47.610000] Descriptor sense data with sense descriptors (in hex):
[ 47.610000] 72 01 00 1d 00 00 00 0e 09 0c 00 00 00 01 00 00
[ 47.620000] 00 00 00 00 00 50
[ 47.620000] sd 3:0:0:0: [sde] ASC=0x0 ASCQ=0x1d
[ 47.630000] usb 1-1.2:1.0: uevent
[ 47.870000] attempt to access beyond end of device
[ 47.880000] sde2: rw=0, want=8, limit=2
[ 47.880000] EXT3-fs: unable to read superblock
[ 47.890000] attempt to access beyond end of device
[ 47.890000] sde2: rw=0, want=8, limit=2
[ 47.900000] EXT2-fs: unable to read superblock
[ 48.230000] kjournald starting. Commit interval 5 seconds
[ 48.230000] EXT3-fs warning: maximal mount count reached, running e2fsck is recommended
[ 48.240000] EXT3 FS on sde1, internal journal
[ 48.240000] EXT3-fs: mounted filesystem with writeback data mode.
')
bchen
 
Posts: 4
Joined: Sun Oct 07, 2012 2:36 am

Re: Kernel problem? Extended Partition not shown under /dev

Postby WarheadsSE » Sun Oct 07, 2012 4:34 pm

I am surprised that Fdisk isn't barking about the 3TB drive.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Kernel problem? Extended Partition not shown under /dev

Postby bchen » Sun Oct 07, 2012 6:11 pm

It can be detected/mounted on Pogoplug E02 with ArchLinux installed. Is there any way we can make it work on Pogoplug V3?
bchen
 
Posts: 4
Joined: Sun Oct 07, 2012 2:36 am

Re: Kernel problem? Extended Partition not shown under /dev

Postby WarheadsSE » Mon Oct 08, 2012 12:50 am

$this->bbcode_second_pass_code('', '/dev/sde2 538161435 732563999 777610260 f W95 Ext'd (LBA)
/dev/sde5 538161498 732563999 777610008 7 HPFS/NTFS/exFAT')

You did notice that 2 & 5 have the same start/end in fdisk, right?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Kernel problem? Extended Partition not shown under /dev

Postby bchen » Mon Oct 08, 2012 1:49 am

That's abnormal? BTW, they didn't have the same start... In windows, there are only 2 types of partition, primary and extended. The "extended" partition is just a container which can contain many logical partitions. So I guess that's correct since there's only one partition (sde5) in the container (sde2) in this case (sde2 is a little larger than sde5). In my first post, I mentioned another linux box could mount the same HD. That's my router loaded with Tomato (http://tomatousb.org/). It's a similar embedded system based on Linux. Since it can do that, I guess ArchLinux can do as well. I'm not an expert on kernel though. A workaround is also welcome.

$this->bbcode_second_pass_quote('WarheadsSE', '[')code]/dev/sde2 538161435 732563999 777610260 f W95 Ext'd (LBA)
/dev/sde5 538161498 732563999 777610008 7 HPFS/NTFS/exFAT[/code]

You did notice that 2 & 5 have the same start/end in fdisk, right?
bchen
 
Posts: 4
Joined: Sun Oct 07, 2012 2:36 am

Re: Kernel problem? Extended Partition not shown under /dev

Postby bchen » Mon Oct 08, 2012 2:21 am

Ok, I double checked the start/end by running fdisk on pogoplug p21 and my router again. This time, they both showed the same start/end values for sde2 and sde5. I don't know why p21 showed different start values in the beginning but since sde2 is a container, it can be the same size as sde5, right? When I tried mounting sde2 with "-t vfat"again on the ArchLinux based P21, it complaint about "couldn't read superblock"
bchen
 
Posts: 4
Joined: Sun Oct 07, 2012 2:36 am


Return to Community Supported

Who is online

Users browsing this forum: No registered users and 39 guests