Move SuSE 8.2 from hda to hdb - Grub Problem
In the past I was able to install a new version of SuSE in hda and then copy it to hdb, modify lilo.conf and fstab and rerun lilo. I'm trying to do the same thing but I'm using grub (default boot loader). I have no problem copying the filesystem from hda to hdb. The problem comes in modifying the grub files correctly. I know that /boot/grub/menu.lst contains information required by grub and /etc/grub.conf is somehow used. ==== lines in menu.lst I have questions on ====================== color white/blue black/light-gray default 0 gfxmenu (hd0,2)/message timeout 15 <<<------ old entry ------->>>> title SuSE 8.2 kernel (hd0,2)/vmlinuz root=/dev/hda4 vga=0x31a hde=ide-scsi hdelun=0 splash=silent showopts initrd (hd0,2)/initrd <<<----- new entry ------------>>>> title SuSE NEW kernel (hd1,0)/vmlinuz root=/dev/hdb9 vga=0x31a hde=ide-scsi hdelun=0 splash=silent showopts initrd (hd1,0)/initrd ================================================================== I want to have /boot as /dev/hdb1 and / as /dev/hdb9 ===== lines from /etc/grub.conf ================================== root (hd0,2) install --stage2=/boot/grub/stage2 /grub/stage1 d (hd0,2) /grub/stage2 0x8000 (hd0,2)/grub/menu.lst <<<- this line wrapped quit =================================================================== I assume all I have to do is change (hd0,2) to hd(1,0) in the above file. Can anyone please get me started on the migration from hda to hdb. Thanks Terry -- SuSE Linux 8.2 (i586) 2.4.20-4GB-athlon || Sat Jun 28 16:25:00 CDT 2003 4:25pm up 0:09, 3 users, load average: 0.22, 0.21, 0.13
On 06/29/2003 05:44 AM, Terry Eck wrote:
==== lines in menu.lst I have questions on ====================== color white/blue black/light-gray default 0 gfxmenu (hd0,2)/message
I am not a grub expert, but I believe hd0 =hda, ,2 = hda2
timeout 15 <<<------ old entry ------->>>> title SuSE 8.2 kernel (hd0,2)/vmlinuz root=/dev/hda4 vga=0x31a hde=ide-scsi hdelun=0 splash=silent showopts initrd (hd0,2)/initrd <<<----- new entry ------------>>>> title SuSE NEW kernel (hd1,0)/vmlinuz root=/dev/hdb9 vga=0x31a hde=ide-scsi hdelun=0 splash=silent showopts initrd (hd1,0)/initrd
This isn't correct. Try hd1,1.
================================================================== I want to have /boot as /dev/hdb1 and / as /dev/hdb9
===== lines from /etc/grub.conf ==================================
root (hd0,2)
Again hd1,1, or maybe something else.
install --stage2=/boot/grub/stage2 /grub/stage1 d (hd0,2) /grub/stage2 0x8000 (hd0,2)/grub/menu.lst <<<- this line wrapped quit =================================================================== I assume all I have to do is change (hd0,2) to hd(1,0) in the above file.
Can anyone please get me started on the migration from hda to hdb.
Just remember, hd0,2 translates to hda2, IIANM. If I'm wrong on this, I'm sure someone else will correct me. :-) -- Joe Morris New Tribes Mission Email Address: Joe_Morris@ntm.org Web Address: http://www.mydestiny.net/~joe_morris Registered Linux user 231871 God said, I AM that I AM. I say, by the grace of God, I am what I am.
On Sun, 2003-06-29 at 02:43, Joe Morris (NTM) wrote:
Just remember, hd0,2 translates to hda2, IIANM. If I'm wrong on this, I'm sure someone else will correct me. :-)
<pointless pedantry> That statement can never be wrong, since from a false premise (IF I am not mistaken) you can deduce anything :) </> but no, both hard drive and partition are counted from 0, so hd0,0 is hda1
On Saturday 28 June 2003 20:43 pm, Joe Morris (NTM) wrote:
On 06/29/2003 05:44 AM, Terry Eck wrote:
==== lines in menu.lst I have questions on ====================== color white/blue black/light-gray default 0 gfxmenu (hd0,2)/message
I am not a grub expert, but I believe hd0 =hda, ,2 = hda2
All grub numbers are relative to 0, so 2 = hda3
timeout 15 <<<------ old entry ------->>>> title SuSE 8.2 kernel (hd0,2)/vmlinuz root=/dev/hda4 vga=0x31a hde=ide-scsi hdelun=0 splash=silent showopts initrd (hd0,2)/initrd <<<----- new entry ------------>>>> title SuSE NEW kernel (hd1,0)/vmlinuz root=/dev/hdb9 vga=0x31a hde=ide-scsi hdelun=0 splash=silent showopts initrd (hd1,0)/initrd
This isn't correct. Try hd1,1.
================================================================== I want to have /boot as /dev/hdb1 and / as /dev/hdb9
===== lines from /etc/grub.conf ==================================
root (hd0,2)
Again hd1,1, or maybe something else.
install --stage2=/boot/grub/stage2 /grub/stage1 d (hd0,2) /grub/stage2 0x8000 (hd0,2)/grub/menu.lst <<<- this line wrapped quit =================================================================== I assume all I have to do is change (hd0,2) to hd(1,0) in the above file.
Can anyone please get me started on the migration from hda to hdb.
Just remember, hd0,2 translates to hda2, IIANM. If I'm wrong on this, I'm sure someone else will correct me. :-)
-- Joe Morris New Tribes Mission Email Address: Joe_Morris@ntm.org Web Address: http://www.mydestiny.net/~joe_morris Registered Linux user 231871 God said, I AM that I AM. I say, by the grace of God, I am what I am.
-- +----------------------------------------------------------------------------+ + Bruce S. Marshall bmarsh@bmarsh.com Bellaire, MI 06/28/03 20:41 + +----------------------------------------------------------------------------+ "Man who falls in vat of molten optical glass makes spectacle of self."
participants (4)
-
Anders Johansson
-
Bruce Marshall
-
Joe Morris (NTM)
-
Terry Eck