Next Previous Contents

5. The Linux part of the work

You have to boot from diskettes until the NT-part is fixed.

Now you have to peel the bootsector from your Linux-root-Partition. If /dev/hda2 is your linux boot-partition, which would mean that the file /etc/lilo.conf contains the line:

boot=/dev/hda2
then use the dd-command:

# dd if=/dev/hda2 of=/tmp/bootsect.lnx bs=512 count=1

There is something wrong if your bootsect.lnx has more than 512 bytes.

Now copy the file bootsect.lnx to a DOS-formated floppy if this is your way to transfer files to the NTFS-Windows-partition.

You can copy it with

# mcopy /tmp/bootsect.lnx a:

or with

# mount -t msdos /dev/fd0 /mnt
# copy /tmp/bootsect.lnx /mnt
# umount /mnt


Next Previous Contents