Write to MBR while in the command line?
Hey all,
I have installed Slackware and if you want to see where I'm at you can view the following posts: ------------------------ http://www.linuxquestions.org/questi...hreadid=179481 and http://www.linuxquestions.org/questi...hreadid=179416 ------------------------ Anyway, apparently I have the lilo.conf file in the wrong place, b/c if I boot my system up without any CD's or bootdisks and it will boot straight into Windows XP. I need a way (from the command line interface) to move the lilo.conf (which is in /dev/hdf4) to the MBR (/dev/hde i think...) how can I do that? I am relatively new with the different commands but I can usually figure them out pretty fast when told which ones to use. Thanks! Erik |
your lilo.conf needs to be in /etc/ not the MBR. You then need to run the command
lilo -v to actually install the bootloader. If it did not get written to the MBR, there's something wrong with your /etc/lilo.conf. Just post its contents and someone will be able to tell you how to fix it. |
Hey, I have recently tried:
below information from - http://www.linuxquestions.org/questi...hreadid=179481 Quote:
Thanks, Erik |
My lilo.conf file is set up like so:
Quote:
I just need to put the lilo.conf file on the MBR (master boot record) on /dev/hde That is what I need to figure out how to do, I am gonna look at the instructions you recently provided. BRB :) |
Well my Windows image location may be incorrect, b/c I added that in the past.. and I don't know if I have it setup where it will choose automatically (fast detect) or if it will give me like 30 seconds or so to choose the option I want.
|
change the line
boot=/dev/hdf4 to boot=/dev/hde without partiton number - /dev/hdf4 writes the bootloader to partition 4 of hdf. Then run lilo -v Make sure you have a working boot-floppy in case things go wrong. |
Forgot to mention that your lines for windows look wrong. Should be something like:
other=/dev/hda1 label="windows" table=/dev/hde |
Ok I will fix that but I tried the "lilo -v" command and it said:
Quote:
Thanks, Erik |
By the way, my /dev/hde (80GB hdd with Windows installed on it) does work, b/c Windows will still boot from it. Lately I have been getting into Linux by using the bootdisk (floppy) that it created, but of course I don't want to continue doing it this way. ;)
|
hmm. that's beyond my abilities. it has problems with the geometry of the hd or something like that.
You might try grub instead of lilo - I don't know much about grub b/c I've never used it but I'm sure there are tons of threads here dealing with installing grub. |
Well, I may have found the answer to this! Though I have not tried it yet, I will soon. While in KDE, I took a look at Control Center --> System Administration --> Linux Kernel. Linux Kernel has plenty of settings you can easily enable/disable, etc... Then I went to ATA/IDE/MFM/RLL support --> IDE, ATA and Atapi Block devices --> Auto Geometry Resizing support. This sections info says the following:
Quote:
|
All times are GMT -5. The time now is 10:03 PM. |