Forums.ATC.no
Teknisk => Generelt teknisk => Emne startet av: ATC på 27. ſeptember 2008, 18:24 pm
-
If the Linux Loader (LILO) has been damaged/corrupted or some other reason dictates the use of a removable boot media for emergency repair, certain steps have to be taken for the "joe" text editor to work.
This method may or may not apply to other Linux distributions.
-
1. Boot the RedHat install CD, hit enter for "install".
2. Choose "custom" install and to partition using "fdisk".
3. Hit Alt+F2 to access TTY2, at this point you should be able to type console commands.
4. Mount the partition containing "/usr/lib" on "/mnt", for example:
"mkdir /mnt; mount /dev/sda1 /mnt"
5. Now make a symbolic link from the mounted "/usr/lib/" into the active one, for example:
"mkdir /usr/lib/joe; ln -s /mnt/usr/lib/joe/joerc /usr/lib/joe/joerc"
6. Create a temporary copy of "lilo.conf". Caution!! Remember the differences between the current filesystem structure and the one you will be booting with LILO.
7. Type "lilo -C /your/tmp/lilo.conf -D linux" to write the new Linux Loader to the boot sector specified in "/your/tmp/lilo.conf"
(Obviously, "/your/tmp/lilo.conf" is not to be taken literally)