WinXP and FreeBSD configuration problems

Glenn Dawson glenn at antimatter.net
Fri Aug 5 07:05:18 GMT 2005


At 07:44 PM 8/4/2005, dmwassman at cox.net wrote:
>Hello all,
>
>OK it is now day three and I have given up. This will be a long one just 
>to warn you now.
>
>I have a 320 GiB HD and a 5 GiB HD. The 320 is faster than the 5 (yes, it 
>is that old). I want to dual boot WinXP and FreeBSD. The main issue is 
>that I don't want to put the FreeBSD buried behind 100G FAT partition as I 
>would like to have the swap closer to the edge of the HD. I use the 5 G to 
>transfer files and such, especially when changing the OS on a partition. I 
>prefer not to use it a a boot as it is only 5400 and I would have to put 
>the CDROM on either it as prime boot and slow it more or on the 320 and 
>slow it down. This seems like a simple problem but it has not turned out 
>that way.
>
>First, I tried to install windows on the first 2G partition then tried to 
>install freebsd as follows
>ad0s0           NTFS            2G      #Windows Boot
>ad0s1           FreeBSD 2G      #FreeBSD Boot/Swap
>ad0s3           FAT             20G     #Windows
>ad0s4           FreeBSD 298G    #FreeBSD

I just duplicated this layout without any problems.  The sizes of each 
partition are a little different, but ultimately that shouldn't matter.

What I tested was:

ad4s1           NTFS            10G
ad4s2           FreeBSD         10G
ad4s3           NTFS            30G
ad4s4           FreeBSD         133G

The procedure I used to install was this:

WinXP install, created first partition (ad4s1) and installed with default 
settings.

FreeBSD install (5.4-RELEASE), created second partition (ad4s2) and chose 
FreeBSD bootloader and default file system layout.

Rebooted back in to xp, created third partition (ad4sd3), formatted with ntfs.

Rebooted into FreeBSD, created 4th partition (ad4s4), labeled it (bsdlabel 
-r -w /dev/ad4s4), newfs /dev/ad4s4a, and mounted it as /home.

Resulting FreeBSD filesystems:

Filesystem  1K-blocks   Used     Avail Capacity  Mounted on
/dev/ad4s2a    253678  35738    197646    15%    /
devfs               1      1         0   100%    /dev
/dev/ad4s2e    253678     14    233370     0%    /tmp
/dev/ad4s2f   8398450 983574   6743000    13%    /usr
/dev/ad4s2d    253678    500    232884     0%    /var
/dev/ad4s4a 139156898     22 128024326     0%    /home

Resulting XP filesystems:

C:      10GB
D:      cdrom drive
E:      30GB

Slices as seen by FreeBSD fdisk:

The data for partition 1 is:
sysid 7 (0x07),(OS/2 HPFS, NTFS, QNX-2 (16 bit) or Advanced UNIX)
     start 63, size 20964762 (10236 Meg), flag 0
         beg: cyl 0/ head 1/ sector 1;
         end: cyl 1023/ head 254/ sector 63
The data for partition 2 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
     start 20964825, size 20964825 (10236 Meg), flag 80 (active)
         beg: cyl 1023/ head 255/ sector 63;
         end: cyl 1023/ head 254/ sector 63
The data for partition 3 is:
sysid 7 (0x07),(OS/2 HPFS, NTFS, QNX-2 (16 bit) or Advanced UNIX)
     start 41929650, size 61432560 (29996 Meg), flag 0
         beg: cyl 1023/ head 0/ sector 1;
         end: cyl 1023/ head 254/ sector 63
The data for partition 4 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
     start 103362210, size 287359758 (140312 Meg), flag 0
         beg: cyl 141/ head 14/ sector 1;
         end: cyl 548/ head 15/ sector 63

Hardware used for testing:

Intel D865PERL motherboard with 3.4GHz P4, 512MB RAM
Seagate 200GB SATA hard disk
Sony DVD-RW drive

-Glenn 



More information about the freebsd-questions mailing list