View Full Version : adding a new partition on freebsd after increasing virtual disk size
coolatt
March 10th, 2009, 07:53
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.
ale
March 10th, 2009, 09:24
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
coolatt
March 10th, 2009, 09:51
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.
ale
March 10th, 2009, 10:39
To prevent errors as it seems that you are operating on a "single" disk, I suggest to label the disk manually using bsdlabel.
For example, if you already have the slice created using fdisk (you may need to adjust the device) bsdlabel -w /dev/da0s2
newfs -U /dev/da0s2a
mount /dev/da0s2a /newvar
If it works, add it to /etc/fstab
coolatt
March 10th, 2009, 11:47
To prevent errors as it seems that you are operating on a "single" disk, I suggest to label the disk manually using bsdlabel.
For example, if you already have the slice created using fdisk (you may need to adjust the device) bsdlabel -w /dev/da0s2
newfs -U /dev/da0s2a
mount /dev/da0s2a /newvar
If it works, add it to /etc/fstab
thanks a lot. it works.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.