[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: NSLU2 wont boot with 2nd Disk connected to Disk 2 port - Etch RC2



Gordon Farquharson wrote:
> Hi Dave
> 
> On 4/15/07, slugmanbashi <coutts_dave@hotmail.com> wrote:
> 
>> Ive just discovered that the slug wont start if an additional USB
>> stick is
>> plugged into Disk port 2.
> 
> I suspect that your the extra USB flash drive is coming up as sda as
> opposed to your original USB flash drive and therefore the system
> cannot find your root partition. The solution is to mount your drives
> by UUID.
> 
> You can get a list of the UUIDs with
> 
> $ tree /dev/disk
> /dev/disk
> |-- by-id
> |   |-- usb-ST340014_A_5000000000002886 -> ../../sda
> |   |-- usb-ST340014_A_5000000000002886-part1 -> ../../sda1
> |   |-- usb-ST340014_A_5000000000002886-part2 -> ../../sda2
> |   `-- usb-ST340014_A_5000000000002886-part5 -> ../../sda5
> |-- by-path
> |   |-- pci-0000:00:01.2-usb-0:1:1.0-scsi-0:0:0:0 -> ../../sda
> |   |-- pci-0000:00:01.2-usb-0:1:1.0-scsi-0:0:0:0-part1 -> ../../sda1
> |   |-- pci-0000:00:01.2-usb-0:1:1.0-scsi-0:0:0:0-part2 -> ../../sda2
> |   `-- pci-0000:00:01.2-usb-0:1:1.0-scsi-0:0:0:0-part5 -> ../../sda5
> `-- by-uuid
>    `-- 424ba820-8e80-422e-aaeb-b343b4a462f1 -> ../../sda1
> 
> and then modify your fstab by replacing /dev/sda1 (your root
> partition) with the UUID, e.g.
> 
> # /etc/fstab: static file system information.
> #
> # <file system> <mount point>   <type>  <options>       <dump>  <pass>
> proc            /proc           proc    defaults        0       0
> UUID=424ba820-8e80-422e-aaeb-b343b4a462f1       /       ext3
> defaults,errors=remount-ro 0       1
> /dev/sda5       none            swap    sw              0       0
> /dev/sda1       /media/usb0     auto    rw,user,noauto  0       0
> /dev/sda5       /media/usb1     auto    rw,user,noauto  0       0
> 
> Then update the initramfs:
> 
> $ sudo update-initramfs -u
> 
> and flash the new initramfs
> 
> $ sudo flash-kernel
> 
> Before you do any of this, I suggest making a backup of your existing
> flash. See http://www.nslu2-linux.org/wiki/Debian/FAQ.
> 
> Gordon
> 

I don't understand why the wiki states that the problem is solved in
RC2, and then the link to "MountDisksByLabel" is wiped out.

I have seven slugs, I recently re-installed RC2 on six of them, and when
connecting a second disk to any of them, they won't boot.

When I mount by label or uuid, following Martin's description, it works,
but why is this not explained in the wiki?

I would be happy to modify the wiki, but I might have missed some
important bit of information here, not beeing a kernel-expert...

--
Robert



Reply to: