Setting up grub into lvm and a suggestion

Hello
I suggest, if possible, that grml2hd detects automatically other OSes on the hard disk and sets up lilo/grub accordingly during the installation.
Here I have Windows XP on the first partition - /dev/sda1 - but I don't know how to deal with lilo.
I was thinking that grml2hd would prompt me for choosing grub instead of lilo, but it didn not, perhaps because I've installed grml onto a logical partition ?
I know how to setup grub for dual-booting and for booting Linux into a primary partition. I guess that setting it up on a logical partition is somewhat different, since I have typed "root(hd0,5)" at the grub console in order to setup the root device to /dev/sda6, and grub has returned "unknown filesystem type".
Does anyone have any tip for me?
Cheers
Cleverson

* Cleverson clever92000@yahoo.com.br [20080606 04:54]:
I suggest, if possible, that grml2hd detects automatically other OSes on the hard disk and sets up lilo/grub accordingly during the installation.
It's on our wish list: http://bts.grml.org/grml/issue136 Patches welcome.
Here I have Windows XP on the first partition - /dev/sda1 - but I don't know how to deal with lilo.
other=/dev/sda1 label=Windows
You even have this example in your /etc/lilo.conf.
I was thinking that grml2hd would prompt me for choosing grub instead of lilo, but it didn not, perhaps because I've installed grml onto a logical partition ?
grml2hd *does* prompt for lilo vs. grub: http://grml.org/grml2hd/gallery/.tmp/18-choose-bootmanager.png.html
I don't have an idea why you shouldn't get this dialog.
regards, -mika-

First of all I believe that lilo was being loaded as default because lvm did not work properly in grub. I do not know if this has been corrected.
Secondly, since you already have grub installed then enter "grub" followed by
grub> find /boot/grub/stage1
which should give you an answer like (hd0,5) or whatever. grml2hd usually places grub in the partition as if it ran
grub>setup (hd0,5)
This would leave you with a system booting windows only from the hard disk. Microsoft have altered the master boot record with most every upgrade their operating system. But ntldr is very stupid and this allows an easy answer to chainload grub from ntldr. Quit grub. With ntfsmount an ordinary user should be able to write to the ntfs partition
zsh% ntfsmount /dev/hda1 /mnt/hda1 zsh% dd if=/dev/hda6 of=/mnt/hda1/grml.mbr bs=512 count=1
The last command must written exactly. It copies the bootsector of (hd0,5) into the windows partition at C:\
Now boot windows as administrator. Make C:\boot.ini writeable Open boot.ini in notepad or whatever and add this line at the bottom:
C:\grml.mbr="grml 1.1"
ntldr loads anything which you point it at. Check that the timeout line is set at 30 seconds or so at the top of boot.ini Next time you boot you should the option of grml.
Lastly, someone here was effusive about the merits of grub4dos (and ntfs windows) but I've never used it.
Good Luck Moss
I suggest, if possible, that grml2hd detects automatically other OSes on the hard disk and sets up lilo/grub accordingly during the installation.
Here I have Windows XP on the first partition - /dev/sda1 - but I don't know how to deal with lilo.
I was thinking that grml2hd would prompt me for choosing grub instead of lilo, but it didn not, perhaps because I've installed grml onto a logical partition ?
I know how to setup grub for dual-booting and for booting Linux into a primary partition. I guess that setting it up on a logical partition is somewhat different, since I have typed "root(hd0,5)" at the grub console in order to setup the root device to /dev/sda6, and grub has returned "unknown filesystem type".
Does anyone have any tip for me?
Cheers
Cleverson _______________________________________________ Grml mailing list - Grml@mur.at http://lists.mur.at/mailman/listinfo/grml join #grml on irc.freenode.org grml-devel-blog: http://grml.supersized.org/

Forgot to say that the work around to chain load grub from ntldr will also work for lilo.
Moss
participants (3)
-
Cleverson
-
Maurice McCarthy
-
Michael Prokop