Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.os.linux.slackware    |    I think its the one without Selinux crap    |    87,272 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 86,535 of 87,272    |
|    Henrik Carlqvist to Lew Pitcher    |
|    Re: When your boot sector has been wiped    |
|    14 Dec 23 06:51:56    |
      From: Henrik.Carlqvist@deadspam.com              On Wed, 13 Dec 2023 23:25:07 +0000, Lew Pitcher wrote:              > On Wed, 13 Dec 2023 21:16:49 +0000, root wrote:       >       >> My son taught me an easy way to rebuild the boot sector when it has       >> been wiped (always because my error).       >>       >> Using another system, such as LiveSlack, load the drive with the       >> damaged sector into, say, mountpoint.       >>       >> cd mountpoint       >> mount --bind /sys sys       >> mount --bind /proc proc       >> mount --bind /dev dev       >> chroot mountpoint       >> lilo       >       > That seems a bit overly complicated.       >       > I've used a similar, but trimmed down, procedure       > 1) live boot       > 2) mount your host directories under the live boot /mnt directory       > 3) cd /mnt && chroot .       > 4) lilo       >       > You don't need the bind mounts.              Or even easier:              1) live boot       2) below /mnt mount / partition and possibly any /boot partition       3) lilo -r /mnt              Now, looking at the manual page of lilo it seems as if the dev directory       also would be needed, but I don't have any memory of doing a bind mount       of dev in such situations. However it might have been some years since I       did this the last time.              regards Henrik              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca