adding a new partition on freebsd after increasing virtual disk size

Installing and upgrading FreeBSD.

adding a new partition on freebsd after increasing virtual disk size

Postby coolatt » 10 Mar 2009, 06: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.
coolatt
Junior Member
 
Posts: 9
Joined: 14 Jan 2009, 06:45

Postby ale » 10 Mar 2009, 08: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
User avatar
ale
Senior Member
 
Posts: 1064
Joined: 19 Nov 2008, 01:28
Location: Roma

adding a new partition on freebsd after increasing virtual disk size

Postby coolatt » 10 Mar 2009, 08: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.
coolatt
Junior Member
 
Posts: 9
Joined: 14 Jan 2009, 06:45

Postby ale » 10 Mar 2009, 09:39

To prevent errors as it seems that you are operating on a "single" disk, I suggest to label the disk manually using [man=8]bsdlabel[/man].
For example, if you already have the slice created using fdisk (you may need to adjust the device)
Code: Select all
bsdlabel -w /dev/da0s2
newfs -U /dev/da0s2a
mount /dev/da0s2a /newvar

If it works, add it to /etc/fstab
User avatar
ale
Senior Member
 
Posts: 1064
Joined: 19 Nov 2008, 01:28
Location: Roma

adding a new partition on freebsd after increasing virtual disk size

Postby coolatt » 10 Mar 2009, 10:47

ale wrote:To prevent errors as it seems that you are operating on a "single" disk, I suggest to label the disk manually using [man=8]bsdlabel[/man].
For example, if you already have the slice created using fdisk (you may need to adjust the device)
Code: Select all
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.
coolatt
Junior Member
 
Posts: 9
Joined: 14 Jan 2009, 06:45


Return to Installing & Upgrading

Who is online

Users browsing this forum: fred974, tingo and 2 guests