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

Re: 2 Disks (by label/UUID)

Copying to list...

On Mon, May 12, 2008 at 11:19 AM, Martin Michlmayr <tbm@cyrius.com> wrote:
> * Stuart Read <stuart.t.read+NSLU2@gmail.com> [2008-05-11 21:13]:
> > I can't think of any particular reason the upgrade should have failed,
>  > as I've stopped (for the moment) playing with the UUID/label thing and
>  > had left things as they were until I had more time to work at it.
>  >
>  > Any thoughts/suggestions?
>  On what exactly?  Finding out why it doesn't boot with UUID/label?
>  I'd proceed like this:
>   - make a backup of flash (cat /dev/mtdblock? > backup)>  --
>   - change /etc/fstab to use UUID/label for the root partition and only
>    boot entries in /etc/fstab for the first disk
>   - Edit /usr/share/initramfs-tools/hooks/flash_kernel_set_root
>    and put this at the end:
>            echo "root: -$rootdev-" >&2
>   - Run: update-initramfs -u
>   - Check the output and see if the UUID/label it prints looks ok
>   - Run flash-kernel
>  - Boot with only one disk attached
Actually, I wasn't switching to label/UUID (I know that's how I
started this thread, but then this update popped up), just trying to
update the kernel. I followed your instructions in case they could
shed some light on the problem, but update-initramfs -u only output
the following:

update-initramfs: Generating /boot/initrd.img-2.6.24-1-ixp4xx
root: --
root: --

I had to create the "flash_kernel_set_root" file, and I think the 2nd
"root: --" feedback is due to a similar command already present in the
"nslu2" file (in hooks).

I have no idea what the "--" signifies, but I'm thinking it's not good.

Just to show it's not a UUID/label problem, here is my fstab:

# /etc/fstab: static file system information.
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/sda1       /               ext3    defaults,errors=remount-ro 0       1
/dev/sda6       /home           ext3    defaults        0       2
/dev/sda5       none            swap    sw              0       0
/dev/scsi/host0/bus0/target0/lun0/part1 /media/usb0     auto
rw,user,noauto  0       0
/dev/scsi/host0/bus0/target0/lun0/part5 /media/usb1     auto
rw,user,noauto  0       0
/dev/scsi/host0/bus0/target0/lun0/part6 /media/usb2     auto
rw,user,noauto  0       0

I have no idea what the /dev/sci/host0/... entries are about, but
commenting them out has no effect on the update-initramfs result.
Oh, and I'm running lenny with only one disk connected.

Any help would be appreciated!

Reply to: