[syslinux] help: booting dos from syslinux/memdisk

Thomas Baumann tom at tiri.li
Fri Jul 4 03:55:36 PDT 2003


Zitat von Wichetael <wichetael at gmx.net>:

> If you set up the loop device correctly with the appropriate offset it
> shouldn't. The loop device effectively represents the rest of the disk image
> from that offset, which should be your partition table. ie, there should be
> no partition table in the loop device. How did you come to the conclusion
> that syslinux /dev/loop0 broke your partition table?

mkdiskimage disk 8 64 63
cfdisk -c 8 -h 64 -s 63 disk
# Disk Drive: disk
# Heads: 64   Sectors per Track: 63   Cylinders: 8
# Name/Flags/Part Type/FS Type/Size (MB)
# disk1/Boot/Primary/DOS FAT16 [NO NAME    ]/15.75       
losetup -o 32256 /dev/loop0 disk
fdisk -l /dev/loop0
# Disk /dev/loop0: 16 MB, 16482304 bytes
# 64 heads, 63 sectors/track, 7 cylinders
# Units = cylinders of 4032 * 512 = 2064384 bytes
# Device Boot    Start       End    Blocks   Id  System
# /dev/loop0p1   *         1         8     16128    4  FAT16 <32M
mlabel -N 00 e:MYDISK
mdir e:
# Volume in drive E is MYDISK     
# Volume Serial Number is 0000-0000
# Directory for E:/
# No files
#                         16 380 928 bytes free

############## >>> up to this point, all is OK!
############## >>> but now:

syslinux /dev/loop0
fdisk -l /dev/loop0

Disk /dev/loop0: 16 MB, 16482304 bytes
255 heads, 63 sectors/track, 2 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

      Device Boot    Start       End    Blocks   Id  System
/dev/loop0p1   ?    264386    257082 2088818490    1  FAT12
Partition 1 has different physical/logical beginnings (non-Linux?):
     phys=(124, 38, 11) logical=(264385, 27, 56)
Partition 1 has different physical/logical endings:
     phys=(344, 195, 26) logical=(257081, 161, 57)
Partition 1 does not end on cylinder boundary.
/dev/loop0p2   ?     66852     51358 2023024920+  42  SFS
Partition 2 has different physical/logical beginnings (non-Linux?):
     phys=(453, 241, 50) logical=(66851, 101, 63)
Partition 2 has different physical/logical endings:
     phys=(26, 59, 22) logical=(51357, 1, 17)
Partition 2 does not end on cylinder boundary.
/dev/loop0p3   ?    105920    105961    329394   6f  Unknown
Partition 3 has different physical/logical beginnings (non-Linux?):
     phys=(367, 183, 2) logical=(105919, 237, 16)
Partition 3 has different physical/logical endings:
     phys=(102, 116, 32) logical=(105960, 239, 12)
Partition 3 does not end on cylinder boundary.
/dev/loop0p4         87045    152433 525230590+  49  Unknown
Partition 4 has different physical/logical beginnings (non-Linux?):
     phys=(332, 76, 4) logical=(87044, 16, 45)
Partition 4 has different physical/logical endings:
     phys=(344, 78, 21) logical=(152432, 63, 44)
Partition 4 does not end on cylinder boundary.

Partition table entries are not in disk order

############## >>> Why overwrites syslinux my partitiontable ?


-- 
Thomas Baumann // Postfach 110115 // D-64216 Darmstadt // <tom at tiri.li>



More information about the Syslinux mailing list