Professional Web Applications Themes

how to install Windows on an existing partition? - FreeBSD

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 ...

  1. #1

    Default how to install Windows on an existing partition?

    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
    <com>
    <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?"
    Pietro Guest

  2. #2

    Default Re: how to install Windows on an existing partition?

    On Thu, 10 Mar 2005 17:01:28 +0000
    Pietro Cerutti <com> wrote:
     

    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)?
    Alejandro Guest

  3. #3

    Default Re: how to install Windows on an existing partition?

    On Thu, 10 Mar 2005 16:04:55 -0300, Alejandro Pulver
    <biz> wrote: 

    Hi there, thank you for your reply.
     

    This was my fear....
     

    Right!
     

    I can delete 'g' withoud problems, but then:
    - how do I move the partitions?
    - how do I resize the slice (which takes the whole disk) ?
     

    Sure!
     

    Cheers.
     
    I deleted 'd', created a smaller 'd', and then created 'g'.


    --
    Pietro "Piter" Cerutti
    <com>
    <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?"
    Pietro Guest

  4. #4

    Default Re: how to install Windows on an existing partition?

    On Thu, 10 Mar 2005 19:31:12 +0000
    Pietro Cerutti <com> wrote:
     
    >
    > Hi there, thank you for your reply.

    >
    > This was my fear....

    >
    > Right!

    >
    > I can delete 'g' withoud problems, but then:
    > - how do I move the partitions?
    > - how do I resize the slice (which takes the whole disk) ?

    >
    > Sure!

    >
    > Cheers.

    > I deleted 'd', created a smaller 'd', and then created 'g'.
    >
    >
    > --
    > Pietro "Piter" Cerutti
    > <com>
    > <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?"
    > _______________________________________________
    > org mailing list
    > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    > To unsubscribe, send any mail to
    > "org"[/ref]

    Hello,

    If you want to use the free space of 'g' you will have to delete it and
    collapse all the partitions near 'd'. But is *dangerous*, and in fact
    there are *no* tools (I searched and it is often said) to resize
    filesystems (even if you resize the partition, the filesystem thinks
    the space is still assigned to it, I think). The only think I believe is
    possible (with raw tools: 'dd') is moving partitions, but if you
    are moving less space than the size of the partition itself, it is only
    possible to do it backwards, and the copied bytes will be overritten
    (after copied) so if the process is interrupted you will lose all the
    data (half in the destination, the rest in the original place, and one
    immediatly following the other).

    I found a (possible) better way to do this:

    1) Revert the changes with the partitions 'd' and 'g' (back-up, delete,
    create only 'd', restore).

    2) Save the data in 'f' ('/home') to somewhere (like '/usr').

    2) Delete 'f' ('/home') and create it with less space (like 10 GB, or
    less, if you do not need much space there).

    3) Then the BSD label entry 'c' should have less size.

    4) Use 'fdisk' to resize the slice. It should be equal to the size of
    partition 'c' (that is not a real partition, but the size sum of all
    of them). Then the slice must not cover the entire disk, and you will
    be able to create a 'msdosfs' slice after it (in the unallocated space).

    I never tried this and I do not know if it is possible, so I *recommend*
    you to back up your data.

    Good Luck!

    Best Regards,
    Ale
    Alejandro Guest

  5. #5

    Default Re: how to install Windows on an existing partition?

    On Thu, 10 Mar 2005 17:48:37 -0300, Alejandro Pulver
    <biz> wrote: 

    Hello,
     

    It sounds quite complicated... I need some more experience before doing that!

    Thank you, I'll take in consideration in the future!


    --
    Pietro "Piter" Cerutti
    <com>
    <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?"
    Pietro Guest

  6. #6

    Default Re: how to install Windows on an existing partition?

    On Thursday 10 March 2005 20:53, Pietro Cerutti wrote:
     

    Also, if it's windows 9x, then it's will expect to be installed on the first
    partition, and so will overwrite your FreeBSD slice.
    RW Guest

Similar Threads

  1. CF8 on existing JRun/CF7 install
    By ke4pym in forum Coldfusion Server Administration
    Replies: 6
    Last Post: September 20th, 02:25 PM
  2. Can I give Linux a pre-existing partition?
    By Mediocre in forum Linux Setup, Configuration & Administration
    Replies: 7
    Last Post: September 25th, 01:24 AM
  3. Unable to partition for Debian Install
    By Trevor Henderson in forum Linux Setup, Configuration & Administration
    Replies: 3
    Last Post: September 20th, 12:20 AM
  4. Why Does SP1a Install Need Space on System Partition
    By Eddie in forum Windows Setup, Administration & Security
    Replies: 3
    Last Post: August 6th, 10:34 AM
  5. Help! Resizing Windows XP FAT32 MBR partition.
    By Manolo in forum Linux Setup, Configuration & Administration
    Replies: 1
    Last Post: August 4th, 06:58 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139