Date: Thu, 10 Mar 2005 16:04:55 -0300 From: Alejandro Pulver <alejandro@varnet.biz> To: Pietro Cerutti <pietro.cerutti@gmail.com> Cc: FreeBSD <freebsd-questions@freebsd.org> Subject: Re: how to install Windows on an existing partition? Message-ID: <20050310160455.013df4b0@ale.varnet.bsd> In-Reply-To: <e572718c050310090147204d8e@mail.gmail.com> References: <e572718c050310090147204d8e@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 10 Mar 2005 17:01:28 +0000 Pietro Cerutti <pietro.cerutti@gmail.com> wrote: > Hi List, > I need to install Windows on an existing partition of my laptop. > At the moment I have this label: > laptop# bsdlabel /dev/ad0s1 > # /dev/ad0s1: > 8 partitions: > # size offset fstype [fsize bsize bps/cpg] > a: 307200 0 4.2BSD 0 0 0 > b: 3072000 307200 swap > c: 117210177 0 unused 0 0 # "raw" part, > don't edit > d: 10485760 3379200 4.2BSD 0 0 0 > e: 41943040 34099200 4.2BSD 0 0 0 > f: 41167937 76042240 4.2BSD 0 0 0 > g: 20234240 13864960 4.2BSD 2048 16384 28552 > > a: / > b: swap > c: extended > d: /var > e: /usr > f: /home > g: where I want to install windows > > I tried to format g: as FAT32, and I think it worked: > laptop# newfs_msdos /dev/ad0s1g > /dev/ad0s1g: 116981728 sectors in 14622716 FAT32 clusters (4096 > bytes/cluster) bps=512 spc=8 res=32 nft=2 mid=0xf8 spt=63 hds=16 > hid=4197991296 bsec=117210240 bspf=114240 rdcl=2 infs=1 bkbs=2 > > But when I run bsdlaben /dev/ad0s1 I have the same result as above, so > the g: partition is still formatted with 4.2BSD filesystem, so that > Windows won't see this partition. > > How can I format this partition and make it visible to the Windows > CD-ROM? > > Thank you! > > > -- > Pietro "Piter" Cerutti > <pietro.cerutti@gmail.com> > <piter@beansidhe.ch> > > Beansidhe - SwiSS Death / Thrash Metal > <www.beansidhe.ch> > > Windows: "Where do you want to go today?" > Linux: "Where do you want to go tomorrow?" > FreeBSD: "Are you guys coming or what?" > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" Hello, Windows (and also a msdos filesystem, I think) needs a whole slice (thoose you edit with 'fdisk', called "partition" by Windows) to install (it does not understand a BSD slice with labels). You can also just leave some free space in the disk (the BSD slice must not cover the whole disk) and then Windows should create another partition (slice) to install itself. For example, I have the following slices (called "partitions" by Windows) in my first disk: #fdisk -s /dev/ad0 /dev/ad0: 77504 cyl 16 hd 63 sec Part Start Size Type Flags 1: 63 37158282 0x0c 0x80 (fat32) 2: 37158345 40949685 0x0f 0x00 (ntfs) And the following in my second disk (ignore the numbering): # fdisk -s /dev/ad2 /dev/ad2: 79656 cyl 16 hd 63 sec Part Start Size Type Flags 1: 63 20466747 0x83 0x00 (ext2fs) 4: 40949685 38909430 0xa5 0x80 (BSD slice) Slice 4 is a FreeBSD slice containing (and only BSD slices have labels): # bsdlabel /dev/ad2s4 # /dev/ad2s4: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 524288 0 4.2BSD 2048 16384 32776 b: 2045568 524288 swap c: 38909430 0 unused 0 0 # "raw" part, don't edit d: 524288 2569856 4.2BSD 2048 16384 32776 e: 524288 3094144 4.2BSD 2048 16384 32776 f: 35290998 3618432 4.2BSD 2048 16384 28552 I think your partition layout is as follows (sizes in Mbytes): | a 150 | b 1500 | d 5120 | g 9880 | e 20480 | f 20101 | END 0 | 0 150 1650 6770 16650 37130 57231 So you will have to delete 'g', and move all the partitions before near to 'd'. Or in the other direction. Change the slice size ('fdisk'). And then you will be able to create a slice for Windows. Note that I have *never* tested this procedure and all recommendations I have received are to back up the data, recreate all and then restore it. So I do *not* recommend it. When installing Windows keep this in mind: it will overrite the MBR, so perhaps you want to install Windows first (and leave free space for FreeBSD), otherwise you can restore it later with a bootable CD. It can be done with 'sysinstall' or from command-line (you can use a LiveCD, like the second FreeBSD ISO or FreeSBIE), there are instructions in the Handbook, section "The FreeBSD Booting Process". If something of this looks unclear mail me. Hope that helps. Best Regards, Ale P.S.: how did you do to resize the partition 'd' to put 'g' after it (just changing the BSD labels)?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050310160455.013df4b0>