Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
alright, i recently reinstalled windows on my machinedon't kill me, i want windows.
*ditto ducks the incoming fruit...
anyhows, when i use the mdk rescue utility to reinstall lilo, it complains about an image not existing for a kernel, i hate to say no longer exists (so i was lazy and never removed it from the list). now it won't restore lilo into the MBR.
so is there an easy way to use the rescue disk, to go into the directory where the lilo configuration file and use vim (which exists on this rescue disk BTW) to edit it?
all i really need to know is where the lilo configuration files are located in mandrake.
i'm not sure why, but the "dir" command is missing in the rescue disk, so i can't just start snooping on my own for the lilo file...
i made a floppy rescue disk for linux before installing windows, but i never tested it, and low and behold, it doesn't work!!
Boot from your Mandy rescue CD.
Select 'mount your partitions under /mnt', when that's done, 'go to console'.
The type:
chroot /mnt (this changed your current / to what was just mounted as /mnt)
lilo (this should run lilo and put your config back into your mbr, if that's where it was before your decided to dance with the devil )
Ok, are you happy editing your lilo.conf file by hand (emacs or vi should both work in rescue mode, especially after you've chrooted)? If so, then do the necessary and rerun lilo, if not, then try and post the contents of your lilo.conf file here.
Oh, and if you're lucky, after you've chrooted, you might be able to type init 3 (or even 5) and get to a working Linux system. If you'd be more comfortable editing/reconfiguring from there, then give it a go.
<edit>
Oh, and you might want to put in a default image. If you want to make it so that you must select an OS to boot, then remove the 'timeout=xx' line, but make sure you still have the 'prompt' line.
</edit>
when i tell the rescue disk to mount everything to /mnt it says that my /home and /usr partitions won't because i either have too many mount points, or because that the fs type is wrong. they are both ext3.
So long as those are the only two, you should still be fine.
Rescue menu --> mount partitions under /mnt
Rescue menu --> goto console
Console --> chroot /mnt
Console --> emacs /etc/lilo.conf
(make changes)
Console --> lilo
Console --> reboot
This should work absolutely fine - I had to do it myself earlier (I added something to my append section that would completely lock things up, hey ho).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.