1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

adding a new partition on freebsd after increasing virtual disk size

Discussion in 'Installing and Upgrading FreeBSD' started by coolatt, Mar 10, 2009.

  1. coolatt

    coolatt New Member

    Messages:
    9
    Likes Received:
    0
    hi all.

    i had a freebsd installation on 8GB virtual disk. i have increased the size to 15GB.
    now i want to create a new partition on that unused space and called it /newvar

    can someone plz guide me how to do this using sysinstall?
    thanks.
     
  2. ale

    ale New Member

    Messages:
    1,059
    Likes Received:
    0
    More or less...
    mkdir the new mount point
    sysinstall->Configure->Fdisk->select the disk->select the unused space->press C->press enter when asked about space and type->press W->select none when asked about boot manager.
    On sysinstall menu, select Label->select the new slice and press C->specify the created mountpoint->press W
     
  3. coolatt

    coolatt New Member

    Messages:
    9
    Likes Received:
    0
    thx for the guide.

    in the second step when u press w it gives an error :

    "Unable to add /dev/da0s1b as swap device:Device busy"

    any suggestions?


    and for the mount point i created a dir as /newvar.

    thx.
     
  4. ale

    ale New Member

    Messages:
    1,059
    Likes Received:
    0
    To prevent errors as it seems that you are operating on a "single" disk, I suggest to label the disk manually using bsdlabel(8).
    For example, if you already have the slice created using fdisk (you may need to adjust the device)
    Code:
    bsdlabel -w /dev/da0s2
    newfs -U /dev/da0s2a
    mount /dev/da0s2a /newvar
    If it works, add it to /etc/fstab
     
  5. coolatt

    coolatt New Member

    Messages:
    9
    Likes Received:
    0
    thanks a lot. it works.