My MBR got changed when i reinstalled windows. I realized later that LILO is now gone. So how do I put LILO (or GRUB) back on the MBR?
p.s. I don’t know much about Red Hat. I am very much new to it so please be as basic as possible.
My MBR got changed when i reinstalled windows. I realized later that LILO is now gone. So how do I put LILO (or GRUB) back on the MBR?
p.s. I don’t know much about Red Hat. I am very much new to it so please be as basic as possible.
You lost Lilo? Don’t lose Stitch…
Zev Steinhardt
Go download tomsrtbt (Google) and make the floppy. Restart with the floppy then do the following command:
$ mount /dev/hda1 /mnt
$ (...mount all other partitions in /mnt which should be your root)
$ chroot /mnt lilo
NOTE: hda1 is an example - type the right hda number for your partition!
Make sure that /mnt/etc/lilo.conf is properly configured before running the chroot command.
Reboot.
[sub]so says my SO, who is the “dilbert” for his Software eng class, and apparently it happens to him alot I (mnem know NOTHING about Linux :)[/sub]
You can boot with the book disk you made and then rerun lilo.
(You did create a book disk right?)
Assuming you didn’t (I didn’t my first time either) you can boot with the install cd. There should be an option to boot into rescue mode. from there you’ll need to mount your root partition somewhere (“mount /dev/<root partition> /mnt/<something>”) then run “lilo -C /mnt/<where ever you mounted root>/etc/lilo.conf”
I used FyreFiend’s method (b/c I don’t know where to use the $ from mnem’s post) with the boot disk. It did’nt quite go the way you said, but at least lilo does come back after post. Windows98 boots fine, but Red Hat gets an error:
Kernal panic: VFS: Unable to mount root fs on 03:06.
The system locks and CAPS LOCK and SCROLL LOCK lights flash on the keyboard. Where did I go wrong?
The $ are simply the prompt of the command shell you
will be using, you wont have to type those. They’re simply
added in the post to make show which command that
goes on which line. This is as far as my linux-knowledge
goes.
The just meant the prompt. You didn't need to type the , just everything after it.
Okay, the system can’t find your root partition. Reboot with the rescue CD and remount your root partition. Then double check your /mnt/<root partition>/etc/lilo.conf and /mnt/<root partition>/etc/fstab to make sure that lilo has the correct root partition set.
If you still need help post both your lilo.conf and the root partition’s line in fstab and we’ll be able to help you batter.
Well I still can’t seem to boot from lilo. So here is lilo.conf and fstab:
lilo.conf
prompt
timeout=50
default=Windows98
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
message=/boot/message
lba32
image=/boot/vmlinuz-2.4.18-3
label=RedHatLinux
read-only
root=/dev/hda7
append=“hdd=ide-scsi”
other=/dev/hda1
optional
label=Windows98
fstab
LABEL=/ / ext2 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda5 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
/dev/fd1 /mnt/floppy1 auto noauto,owner,kudzu 0 0
Like zev_steinhardt, I assumed this was about a Disney character.
A little attention to detail would doubtless have alerted me to the fact that this ain’t Cafe Society.
I’m so embarrassed.
kayla and zev, both your replies remind me of something handy would say.
whew At least I’m not the only one wondering what the hell all that was.