I have a 60 G USB disk attached to my Tiny6410. The disk is partitioned
on my Linux PC like so:
fdisk -l /dev/sdb
Disk /dev/sdb: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000d7a96
Device Boot Start End Blocks Id System
/dev/sdb1 1 1306 10490413+ 83 Linux
/dev/sdb2 1307 7296 48113664 5 Extended
/dev/sdb5 1308 1437 1044225 82 Linux swap /
Solaris
/dev/sdb6 1438 5991 36579973+ 83 Linux
/dev/sdb7 5992 7296 10480640 83 Linux
When it is connect to the 6420:
s3c2410-ohci s3c2410-ohci: urb cd691680 path 1.1 ep1in 93120000 cc 9 -->
status -121
sd 1:0:0:0: [sda] No Caching mode page present
sd 1:0:0:0: [sda] Assuming drive cache: write through
sda: sda1 sda2 < sda5 sda6 sda7 >
The first partition shows up as /dev/sda2 which is a primary type.
Then try mounting it:
# mount /dev/sda2 /root-fs
mount: mounting /dev/sda2 on /root-fs failed: Invalid argument
FAILS
Try partition /dev/sda6 ( logical part ):
# mount /dev/sda6 /root-fs
# df
Filesystem 1K-blocks Used Available Use% Mounted on
ubi0:FriendlyARM-root
1894272 143384 1750888 8% /
tmpfs 108284 0 108284 0% /dev/shm
/dev/sdcard 7635832 3342748 3905196 46% /www
/dev/sda6 36004100 275064 33900040 1% /root-fs
WORKS!
mke2fs also fails:
# mke2fs /dev/sda2
mke2fs: image is too small
but works on the logical partitions:
# mke2fs /dev/sda7
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
655360 inodes, 2620160 blocks
131008 blocks (5%) reserved for the super user
First data block=0
Maximum filesystem blocks=4194304
80 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
So where do I submit this bug??
USB disk primary partition unusable
> The first partition shows up as /dev/sda2 which is a primary type. No, the fist partition on your SD card is "/dev/sda1". > # mount /dev/sda2 /root-fs > mount: mounting /dev/sda2 on /root-fs failed: Invalid argument "/dev/sda2" contains the other partitions /dev/sda[5..7] (google for "extended partition"). > mke2fs also fails: > # mke2fs /dev/sda2 > mke2fs: image is too small Sure. See above. > So where do I submit this bug?? I see no bug. Everything is expected.
You're wrong about the SD card, it is not sda, it is /dev/sdcard. # ls -lrt /dev/sd* brw------- 1 root root 179, 1 Oct 10 03:52 /dev/sdcard brw-rw---- 1 root root 8, 7 Oct 10 03:52 /dev/sda7 brw-rw---- 1 root root 8, 6 Oct 10 03:52 /dev/sda6 brw-rw---- 1 root root 8, 5 Oct 10 03:52 /dev/sda5 brw-rw---- 1 root root 8, 2 Oct 10 03:52 /dev/sda2 brw-rw---- 1 root root 8, 0 Oct 10 03:52 /dev/sda Here the SD card is at /dev/sdcard and the USB disk is /dev/sda*. There is no fdisk to prove it to you. In my case, the SD card is where my web server root is. Disconnecting the USb disk shows: hub 1-1:1.0: state 7 ports 4 chg 0000 evt 0002 hub 1-1:1.0: port 1, status 0100, change 0001, 12 Mb/s usb 1-1.1: USB disconnect, address 3 usb 1-1.1: unregistering device usb 1-1.1: unregistering interface 1-1.1:1.0 usb 1-1.1: usb_disable_device nuking all URBs hub 1-1:1.0: debounce: port 1: total 100ms stable 100ms status 0x100 Now: # ls -lrt /dev/sd* brw------- 1 root root 179, 1 Oct 10 03:52 /dev/sdcard This shows the USB disk is /dev/sda*. Now where do I report this bug????


