Date: Fri, 27 Jan 2006 22:02:08 +0200 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: "Tamouh H." <hakmi@rogers.com> Cc: 'FreeBSD' <freebsd-questions@freebsd.org> Subject: Re: adding unused disk space Message-ID: <20060127200208.GA1094@flame.pc> In-Reply-To: <20060127193840.1203E43D5D@mx1.FreeBSD.org> References: <20060127193840.1203E43D5D@mx1.FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2006-01-27 14:39, "Tamouh H." <hakmi@rogers.com> wrote: > > Hi, > > When trying to add a new partition to an already existing disk slice > on FreeBSD 5.4, are these the proper procedures to follow: > > lets say we have: > > /dev/ad4s1a 507630 56104 410916 12% / > devfs 1 1 0 100% /dev > /dev/ad4s1d 507630 12 467008 0% /tmp > /dev/ad4s1e 10154158 1833920 7507906 20% /usr > /dev/ad4s1f 6090094 40804 5562084 1% /var > > There is some 20GB unused space on the drive and I want to use that for /backup, so I did: > > 1) sysctl kern.geom.debugflags=16 > > 2) sysinstall -> Confgiure -> Disk Label -> ad4 > > 3) I've mounted each ad4 to its proper place using 'M' > > 4) then I created the partition /backup using 'C' from the unused space which wass assigned /dev/ad4sa1g > > 5) then used 'W' to write the partitions, it gave couple of errors about busy devices..etc > > 6) reset sysctl: sysctl kern.geom.debugflags=0 > > 7) rebooted the machine and it came back fine > > 8) edit /etc/fstab and add > /dev/ad4s1g /backup ufs rw 2 2 > > 9) reboot the machine and it fails to come back on > > am I missing something ? Yes. Between steps (8) and (9) you should have created a filesystem on that device: # newfs /dev/ad4s1g Then you can mount it as usual: # mount /backup
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060127200208.GA1094>