[ltp] A ThinkPad mystery

Aaron Mulder linux-thinkpad@linux-thinkpad.org
Mon, 15 May 2006 15:14:10 -0400


Did you set up the grub device list?  It's separate from the boot
config file and I think changes only take effect by rerunning
grub-install.  When I've done the things like you're describing, I
think I set the device list for drive 1 to give drive 1 priority and I
set the device list for drive 2 to give drive 2 priority and did
grub-install on each separately, though you may then need to rerun
grub-install if you move one of the drives to a separate machine (so
there are no longer 2 drives available).

Thanks,
    Aaron

On 5/15/06, Timothy Murphy <tim@birdsnest.maths.tcd.ie> wrote:
> I have an 80GB disk in my ThinkPad T20,
> and I recently bought another 80GB disk
> (fortunately a tiny bit bigger)
> put it in the ultrabay, and copied the old disk to the new with
>         dd if=3D/dev/hda of=3D/dev/hdc
>
> I then mounted /dev/hdc5 (the root filesystem) on /mnt ,
> and /dev/hdc2 on /mnt/boot,
> and edited /mnt/etc/fstab with devices /dev/hdc5 , etc.
> (I removed all LABEL references,
> as the LABELs are presumably duplicated,
> and this might cause confusion.
> I also made sure there were no LABELs in the old /etc/fstab
> and also in both grub.conf's.
>
> Now for the mystery - the copy worked well,
> in fact too well.
> I couldn't find any way to _stop_ the machine
> booting from the new disk.
> I altered the boot order in the BIOS to boot from Hard Disk first,
> I mounted /dev/hda5 on /mnt and /dev/hda2 on /mnt/boot
> and ran
>         grub-install --recheck --root-directory=3D/mnt /dev/hda
>
> But whatever I did, I could not stop re-booting from the new disk.
> The only way I could stop it was by physically removing the disk,
> in which case it booted fine from /dev/hda .
>
> It doesn't really matter, as I intended to take out the new disk anyway
> (to put in another ThinkPad),
> but I am very puzzled by this behaviour.
>
> I wonder if anyone can explain it,
> or has had a similar experience.
>
> --
> Timothy Murphy
> e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
> tel: +353-86-2336090, +353-1-2842366
> s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
> --
> The linux-thinkpad mailing list home page is at:
> http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
>