PDA

View Full Version : Help writing a new boot sector



ssnow
12-14-2003, 03:16 AM
Hi, Im new in using Linux and knoppix. I have knoppix 3.2 installed on a 4 gig hd and have a 30 gig partioned to 2 15 gig hd's. One partion has windows 2000 pro and the other has xp pro. I had knoppix showing up when I would start my computer and i had to reload windows xp due to a problem that I had and it wipped out the scree that would let me start knoppix. Is there a way to set up that screen again so I can boot from all of the os's without reinstalling any of them. If so can someone give me step by step instructions because like i said earlyier I am new with linux so I don't know much about it. Thanks

Stephen
12-14-2003, 04:25 AM
Hi, Im new in using Linux and knoppix. I have knoppix 3.2 installed on a 4 gig hd and have a 30 gig partioned to 2 15 gig hd's. One partion has windows 2000 pro and the other has xp pro. I had knoppix showing up when I would start my computer and i had to reload windows xp due to a problem that I had and it wipped out the scree that would let me start knoppix. Is there a way to set up that screen again so I can boot from all of the os's without reinstalling any of them. If so can someone give me step by step instructions because like i said earlyier I am new with linux so I don't know much about it. Thanks

If you can still boot the HD install of knoppix with the boot floppy you should have made when you installed then boot to knoppix and become root by opening a console window (clam shell icon on the taskbar) type su then enter type in your root password enter again, you are now root and type /sbin/lilo -v and enter key once more to have lilo write itself to the MBR with the configuration that you were already using and things should now be back to the way they were. If you did not make the boot floppy then boot the Knoppix cd and open a console window and use these steps:


sudo mount /dev/hd?? /mnt/hd??
sudo chroot /mnt/hd?? /sbin/lilo -v

Replace the ?? with the drive letter and partition number of the / partition of the knoppix install. note: If the chroot line fails you may need /mnt/hd??/ in the line, it's been a while since I have done this so I'm not sure.

ssnow
12-16-2003, 02:14 AM
Thanks for the help that worked great.
I tried to use my boot floppy but that didn't work so I used the cd but is there a way to create a new boot disk. Remeber i need it to be step by step i am new with linux. Thankx

Stephen
12-16-2003, 04:29 AM
Thanks for the help that worked great.
I tried to use my boot floppy but that didn't work so I used the cd but is there a way to create a new boot disk. Remeber i need it to be step by step i am new with linux. Thankx
1. Open console window (clam shell icon on taskbar)
2. Type su then enter key
3. Type in root password and enter key again you are now root
4. mkboot enter key once more
5. Follow instructions and choose the V for vanillia it is the safest choice.
6. Reboot and test the floppy.