Problem partitioning dual-boot

John G. Heim jheim at math.wisc.edu
Tue Sep 20 00:11:38 CEST 2011


From: "Michael Tautschnig" <mt at debian.org>
To: "John G. Heim" <jheim at math.wisc.edu>
Cc: "linux-fai" <linux-fai at uni-koeln.de>
Sent: Wednesday, September 07, 2011 4:32 PM
Subject: Re: Problem partitioning dual-boot

>[...]
>> disk_config disk1 preserve_always:1
> p>rimary  /windows          0-  ntfs  rw
> log>ical swap  1500M   swap  rw
> logic>al /     30G-     ext3  rw         createopts="-m 5">
> tu>neopts="-c 0 -i 0"
> >
[...]>
>
>Could you please add the bootable:1 flag to your dis>k_config line, i.e., 
>make
your> first line
>
>disk_config disk1 preserve_always:1 bootable:1
>
>I'd hope this fixes the problem.

Unfortunately, that did not help.  I still cannot boot off the Windows 
partition. Adding the bootable=1 flag seems to have worked as far as it 
goes. Note the asterisk in the bootable column below.

One thing that I've noticed... Sda1 ends on block 5100 and sba2 also begins 
on 5100. That can't be right, can it? Note that on the working dual-boot 
system, sda2 starts on the block number *after* the end of sda1.

Disk /dev/sda: 160.0 GB, 160000000000 bytes
255 heads, 63 sectors/track, 19452 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0007742f

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        5100    40960000    7  HPFS/NTFS
/dev/sda2            5100       19452   115287166    f  W95 Ext'd (LBA)
/dev/sda5            5100        5290     1530869+  82  Linux swap / Solaris
/dev/sda6            5291       19452   113756233+  83  Linux

A recap of the problem:

1. When I do an FAI install on a Win XP system, I can boot Windows XP.  I 
get a working dual-boot system.
2. When I do a plain debian linux install on a Win 7 system, I get a working 
dual-boot system.
3. When I do a FAI install on a Win 7 system, the Win 7 system won't boot. I 
can't see the message because I'm blind but it is something about the 
partition being damaged or unbootable.

===
My ===disk_config file:
disk_config disk1 preserve_always:1 bootable:1
primary  /windows          0-  ntfs  rw
logical swap  1500M   swap  rw
logical /     30G-     ext3  rw         createopts="-m 5" tuneopts="-c 0 -i 
0"

==========
Fdisk before FAI install
==========
Disk /dev/sda: 160.0 GB, 160000000000 bytes
255 heads, 63 sectors/track, 19452 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc19e4136

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        5100    40960000    7  HPFS/NTFS
/dev/sda2            5100       19452   115287040    7  HPFS/NTFS

===
Fdisk of working XP/debian dual-boot after FAI install:
===

Disk /dev/sda: 250.0 GB, 250000000000 bytes
255 heads, 63 sectors/track, 30394 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00030e8c

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1       15324   123089998+   7  HPFS/NTFS
/dev/sda2           15325       30394   121049775    f  W95 Ext'd (LBA)
/dev/sda5           15325       15515     1534176   82  Linux swap / Solaris
/dev/sda6           15516       30394   119515536   83  Linux




More information about the linux-fai mailing list