randhir phagura wrote: > Wolfgang wrote on 22 Sep 08: > >> Hi Randhir, > >> that is correct that you cannot boot if the MBR is gone or corrupt. But >> in this case you need only a bootable medium e.g. LFS live CD/DVD and >> then you can repair the MBR with dd command. > >> Another alternative is if you have a discete drive to write the MBR to a >> discete with dd. > > >> Wolfgang > > Hi Wolfgang, > > That is very good. I have checked and seen that your first command does, in > fact, copy the MBR on to the file: /boot/mbr_$TS. > However, I am not very clear whether, it will copy the file back to MBR from > within the 'Live LFS CD/DVD', without first chrooting into your linux > installed on /dev/hda. I shall try it next time when I have a similar mishap. > > Have not understood "Another alternative is if you have a discete drive to > write the MBR to a discete with dd." Do you mean a disket? > > Anyway thanks a lot for the responses. It is a pleasure to converse with you! > > Regards, > > Randhir > Hi Randir,
yes I mean a disket and floppy drive. I have yesterday seen from chapter 8.4 that dd if=/boot/grub/stage1 of=/dev/fd0 bs=512 count=1 dd if=/boot/grub/stage2 of=/dev/fd0 bs=512 seek=1 may be helpful as well. You can give it a try as well. Wolfgang [...] -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page