Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Hello, i just installed Gentoo on my computer with XP existing already. I set up grub onto my boot partition on gentoo, i have been told i have to edit my boot.ini, but i do not know what to do. I have read another post in this forum saying that they needed to copy a file too. Do i need to copy a file? any help would be apreciated.
"dd if=/dev/hdX of=gentoo.bin bs=512 count=1"
where /dev/hdX is your gentoo root partition, or /boot if there is one
then copy gentoo.bin to a FAT formatted floppy disk(so its readable by XP), boot to xp then copy gentoo.bin to where your boot.ini is(usually C:\, and its hidden so you gotta show all files + protected system files in folder options-view) then open your boot.ini with notepad, add the following line:
next time you boot you should be able to see it on nt boot loader menu.
i booted off of the floppy, but it brought me right into the grub config, and that command you told me wouldnt work, then i tried booting off of the cdc and i triied that command, but it didnt work either, how should i do it?
"i booted off of the floppy, but it brought me right into the grub config"
What do you mean? Linux didn't start up and you just got 'grub>'?
If you are at a 'grub' prompt, you have several options. You may
be able to boot from your boot partition by chain-
loading: 'grub>root (hdx,x)', then 'grub>chainloader +1',
then 'grub>boot'. Or you can boot Gentoo directly if you know
where the Linux kernel image is: 'grub>kernel
(hdx,x)/path/to/kernel <put-options here>', then 'grub>boot'.
Note the different naming convention Grub has compared to
Linux: for example, /dev/hda=(hd0), /dev/hda1=(hd0,0). Fill in
the "x"'s with the correct numbers. Remember that grub counts
like this: 0, 1, 2, 3...
Or, from your Linux cd (or from Gentoo if you can boot it), you use 'dd':
mkdir /hd #makes a folder
mount -t vfat /dev/hdx /hd # mounts your Windows partition, fill in 'x' with number, works only if the partition is FAT32
mount -t vfat /dev/fd0 /fd #mounts a Windows floppy, in case you use NTFS, so you can use Windows to copy it later
dd if=/dev/hdx of=/xd/gentoo.bin bs=512 count=1 #Replace the first 'x' with the correct number of your boot partition , the second 'x' with 'h' or 'f', depending on whether you're using a floppy or not.
Copy the file and add entries to boot.ini in Windows as Demonbane instructed.
yes, when i was installing i had the option to create a boot disk, and thats what i did. SO when i booted off of it, it gave me a grub promt. i tried the command listed above from demonbane, and it didnt work.
Where do i go to copy the file from?
Hmm strange the dd utility should be accessable with the live CD, what happens when you execute it?
but anyway you'll need to boot into gentoo in order to use the dd command, boot with your grub floppy, when you get to the grub prompt, first type
root (hdX, X)
to setup the root, the first X is the your disk, the second X is the partition
so for example if you have gentoo installed on the second partition of your first harddrive you would do root (hd0,1) , third partition (hd0,2) and so on, it starts from 0.
it'll show up the file system so you know if you chose the right one
after that type:
it should load the actual grub in your bootsector, if its installed properly. After you get inside Gentoo invoke the commands in my previous post.
if the secondary slave is the second disk (ie there's nothing on primary slave) then it should be (hd1,2)
but even its not it'll either just spit out an error message or tell you filesystem is unknown, keep using the root command until you find the right one.