On 2011/04/22 09:17 (GMT-0400) Anton J Aylward composed:
Felix Miata said:
Those familiar with Grub's command interface ... copy the content of sda4 to it, install Grub to it, adjust fstab accordingly
Oops! That was supposed to say also "adjust menu.lst accordingly". :-(
I created /dev/sda2 as a new swap. Reboot. All went well.
First? Why?
I created /dev/sda1 as a new /boot and rsync'd the contents of the old /boot across. Reboot. OK
Without adjusting fstab first? Without thinking about changing Grub config first?
BUT ... well actually it was using the old partition to boot :-/ So I deleted the old /boot
AFAIK, rsync copies files between systems, which is not where the part of Grub that begins the boot process lives.
I'm HOSED
The "DVD/Repair Installed System" verifies everything but gets hung up on a 'cannot change to Target system ....'
I've never used that function myself. When repair is necessary, I use the Grub shell.
Trying grub-install.unsupported from a live CD gives me an error saying there is no BIOS partition.
Grub-install assumes normalcy, which in repair mode you don't have.
I'm lost. And still hosed.
1-Boot a live CD. For this purpose, I always use Knoppix. 2-Start the Grub shell, thus # grub grub> 3-To ensure rsync did what it was supposed to do grub> find /boot/grub/stage1 (hd0,0) 4-Tell Grub this is what you want to be the root grub> root (hd0,0) Filesystem type is ext2fs, partition type 0x83 5-Install Grub grub> setup (hd0,0) Checking if "/boot/grub/stage1" exists... yes Checking if "/boot/grub/stage2" exists... yes Checking if "/boot/grub/e2fs_stage1_5" exists... yes Running "embed /boot/grub/e2fs_stage1_5 (hd0,0)"... failed (this is not fatal) Running "embed /boot/grub/e2fs_stage1_5 (hd0,0)"... failed (this is not fatal) Running "install /boot/grub/stage (hd0,0) /boot/grub/stage2 p /boot/grub/menu.lst "... succeeded Done. 6-Exit Grub grub> quit # All the above is in all the man page and howtos around. You still need to mount sda1 and replace occurrences of (hd0,2) with (hd0,0) in menu.lst. Then you should be unhosed, good to go. Note that now that you don't have a multiboot system any more, you could put Grub on the MBR instead of sda1. I'll leave that up to your reading of the man page and/or howtos should that be your choice, but it either way your boot process will look exactly the same to your eyes. The installed OS won't know any difference either. Before update time, /etc/grub.conf will need to be changed too to reflect the new home for Grub on sda1 (or sda) instead of sda4. Do not neglect to do this, unless you like being hosed by an update!!! -- "The wise are known for their understanding, and pleasant words are persuasive." Proverbs 16:21 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org