Hi folks,
I'm booting the kernel from nand and using a rootfs on the SD-card.
Without an attached eSATA device the root device is root=/dev/sdb1.
If I boot with an attached eSATA drive, this drivers are loaded first and the root device on SD will become root=/dev/sdc1.
To be more robust while booting with/without the eSATA disk, I wanted to use an 'generic' path to the root device.
Ther is a tree beneath /dev/disk were you can find symbolic links to the different disks.
root@guru:/dev/disk# ls -l
total 0
drwxr-xr-x 2 root root 340 Jun 6 22:01 by-id
drwxr-xr-x 2 root root 180 Jun 6 22:01 by-path
drwxr-xr-x 2 root root 120 Jun 6 22:01 by-uuid
root@guru:/dev/disk/by-id# ls -l
total 0
lrwxrwxrwx 1 root root 9 Jun 6 22:01 ata-Hitachi_HDS721010CLA332_JP2940HQ2TJEVH -> ../../sda
lrwxrwxrwx 1 root root 10 Jun 6 22:01 ata-Hitachi_HDS721010CLA332_JP2940HQ2TJEVH-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jun 6 22:01 ata-Hitachi_HDS721010CLA332_JP2940HQ2TJEVH-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jun 6 22:01 ata-Hitachi_HDS721010CLA332_JP2940HQ2TJEVH-part3 -> ../../sda3
lrwxrwxrwx 1 root root 9 Jun 6 22:01 scsi-SATA_Hitachi_HDS7210_JP2940HQ2TJEVH -> ../../sda
lrwxrwxrwx 1 root root 10 Jun 6 22:01 scsi-SATA_Hitachi_HDS7210_JP2940HQ2TJEVH-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jun 6 22:01 scsi-SATA_Hitachi_HDS7210_JP2940HQ2TJEVH-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jun 6 22:01 scsi-SATA_Hitachi_HDS7210_JP2940HQ2TJEVH-part3 -> ../../sda3
lrwxrwxrwx 1 root root 9 Jun 6 22:01 usb-Generic_STORAGE_DEVICE_000000009909-0:0 -> ../../sdb
lrwxrwxrwx 1 root root 9 Jun 6 22:01 usb-Generic_STORAGE_DEVICE_000000009909-0:1 -> ../../sdc
lrwxrwxrwx 1 root root 10 Jun 6 22:01 usb-Generic_STORAGE_DEVICE_000000009909-0:1-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 9 Jun 6 22:01 wwn-0x5000cca35de755a7 -> ../../sda
lrwxrwxrwx 1 root root 10 Jun 6 22:01 wwn-0x5000cca35de755a7-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jun 6 22:01 wwn-0x5000cca35de755a7-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jun 6 22:01 wwn-0x5000cca35de755a7-part3 -> ../../sda3
When I use
root=/dev/usb-Generic_STORAGE_DEVICE_000000009909-0:1-part1
the kernel hangs while waiting for the root device to become ready.
I have altough tried the symbolic links in /dev/by-path /dev/by-uuid with the same result.
It seems, that the symbolic links are not directly available.
Any ideas how to reference the SD card independently from eSATA?
Thanks
elbling