Reinstalling Lilo: Difference between revisions
No edit summary |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
media (which can be extremely useful for more that just lilo) | media (which can be extremely useful for more that just lilo) | ||
see [https://docs.slackware.com/howtos:slackware_admin:how_to_chroot_from_media here] | see [https://docs.slackware.com/howtos:slackware_admin:how_to_chroot_from_media here] | ||
'''Chroot method''' | |||
insert and boot your installation media | insert and boot your installation media | ||
Line 13: | Line 15: | ||
''mount /dev/sdX1 /mnt'' (where /dev/sdx1 is your / partition) | ''mount /dev/sdX1 /mnt'' (where /dev/sdx1 is your / partition) | ||
''mount -o bind /dev /mnt/dev'' | ''mount -o bind /dev /mnt/dev'' | ||
''mount -o bind /proc /mnt/proc'' | ''mount -o bind /proc /mnt/proc'' | ||
''mount -o bind /sys /mnt/sys'' | ''mount -o bind /sys /mnt/sys'' | ||
'''Chrooting''' | '''Chrooting''' | ||
Line 27: | Line 26: | ||
now simply run ''liloconfig'' and follow the prompts | now simply run ''liloconfig'' and follow the prompts | ||
'''Booting your system from the installation media''' | |||
often times you can boot your system from the installation media as well | |||
simply boot the installation media and on the very first page are the following instructions | |||
In a pinch, you can boot your system from here with a command like: | |||
boot: huge.s root=/dev/sda1 rdinit= ro | |||
In the example above, /dev/sda1 is the / Linux partition. | |||
once booted run ''liloconfig'' | |||
[[Category:Tutorials]] | [[Category:Tutorials]] |
Latest revision as of 14:06, 16 November 2018
this covers straight unencrypted installs. just a simple installation with everything installed under / mounted under /dev/sda1. No LVM or additional drives. if you're encrypted or have an otherwise fancy install this wiki expects that you understand the intricacies of your own system. for a more in depth look at how to chroot your installation media (which can be extremely useful for more that just lilo) see here
Chroot method
insert and boot your installation media
login as root when prompted but do not run setup
Mounting
mount /dev/sdX1 /mnt (where /dev/sdx1 is your / partition) mount -o bind /dev /mnt/dev mount -o bind /proc /mnt/proc mount -o bind /sys /mnt/sys
Chrooting
Once everything is mounted, we can chroot to it:
chroot /mnt /bin/bash
now simply run liloconfig and follow the prompts
Booting your system from the installation media
often times you can boot your system from the installation media as well simply boot the installation media and on the very first page are the following instructions
In a pinch, you can boot your system from here with a command like: boot: huge.s root=/dev/sda1 rdinit= ro
In the example above, /dev/sda1 is the / Linux partition.
once booted run liloconfig