Reinstalling Lilo: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 12: | Line 12: | ||
'''Mounting''' | '''Mounting''' | ||
''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 24: | Line 24: | ||
Once everything is mounted, we can chroot to it: | Once everything is mounted, we can chroot to it: | ||
''chroot /mnt /bin/bash'' | ''chroot /mnt /bin/bash'' | ||
now simply run ''liloconfig'' and follow the prompts | now simply run ''liloconfig'' and follow the prompts |
Revision as of 22:57, 28 October 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
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