RE: adding unused disk space
> 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 Thanks Giorgos, however, I think the HandBook failed to mention these two steps which led me to think they're not necessary: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/disks-adding.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: adding unused disk space
On 2006-01-27 14:39, "Tamouh H." <[EMAIL PROTECTED]> 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/ad4s1a507630 56104 41091612%/ > devfs 1 10 100%/dev > /dev/ad4s1d507630 12 467008 0%/tmp > /dev/ad4s1e 10154158 1833920 750790620%/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 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: adding unused disk space for FreeBSD
Ean Kingston wrote: On July 9, 2005 11:07 am, you wrote: Thanks, Ean, for your reply. I tried it as you proposed. The problem is that when it comes to saving the changes the following message pops up: 'ERROR: Unable to write data to disk ad4!' GEOM(4) prevent direct write to disk which has mounted filesystems. sysctl kern.geom.debugflags=16 temporary turn off this check, and help you rewrite your disk's partition table. Dont use this sysctl permanently. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: adding unused disk space for FreeBSD
On July 9, 2005 11:07 am, you wrote: > Thanks, Ean, for your reply. > I tried it as you proposed. > The problem is that when it comes to saving the changes the following > message pops up: 'ERROR: Unable to write data to disk ad4!' Did you run it as root? Please copy the list with your answer. > > Carlo. > > >-- Original-Nachricht -- > >From: Ean Kingston <[EMAIL PROTECTED]> > >To: freebsd-questions@freebsd.org > >Date: Sat, 9 Jul 2005 10:52:20 -0400 > >Subject: Re: adding unused disk space for FreeBSD > > > >On July 9, 2005 09:04 am, [EMAIL PROTECTED] wrote: > >> Hi all, > >> I have a FreeBSD slice (/dev/ad4s3) on which my FreeBSD system lives and > >> some unused free diskspace (resulting from deletion of another OS (no > > names > > >> :-))) on the harddisk. I'd like to use this free diskspace with FreeBSD. > >> > >> I was unable to figure out how to do that using 'fdisk and friends'. > > > >You can do it on the command line with fdisk, bsdlabel, and newfs. It is > >a bit > >easier to explain using sysinstall so, here is the sysinstall way: > > > >#/stand/sysinstall > > Configure->Fdisk->(select the disk)->(select the unused slice)->T(to > > change > > > >type to FreeBSD)->W(to save the changes)... > > Label->choose the disk and start creating partitions->be sure to make > > the > >new > >slices for newfs > > > >-- > >Ean Kingston > > > >E-Mail: ean AT hedron DOT org > >URL: http://www.hedron.org/ > >I am currently looking for work. If you need competent system/network > >administration please feel free to contact me directly. > >___ > >freebsd-questions@freebsd.org mailing list > >http://lists.freebsd.org/mailman/listinfo/freebsd-questions > >To unsubscribe, send any mail to > > "[EMAIL PROTECTED]" -- Ean Kingston E-Mail: ean AT hedron DOT org URL: http://www.hedron.org/ I am currently looking for work. If you need competent system/network administration please feel free to contact me directly. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: adding unused disk space for FreeBSD
On Saturday 09 July 2005 16:52:16, Ean Kingston wrote: On July 9, 2005 09:04 am, [EMAIL PROTECTED] wrote: > Hi all, > I have a FreeBSD slice (/dev/ad4s3) on which my FreeBSD system lives and > some unused free diskspace (resulting from deletion of another OS (no > names > > :-))) on the harddisk. I'd like to use this free diskspace with FreeBSD. > > I was unable to figure out how to do that using 'fdisk and friends'. You can do it on the command line with fdisk, bsdlabel, and newfs. It is a bit easier to explain using sysinstall so, here is the sysinstall way: #/stand/sysinstall On newer 5.x systems you may want to use /usr/sbin/sysinstall instead of /sbin/sysinstall. Cheers, ch -- Christian Hiris <[EMAIL PROTECTED]> | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu file:///tmp/nsmail.tmp Description: PGP signature ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: adding unused disk space for FreeBSD
On Sat, Jul 09, 2005 at 01:04:01PM +, [EMAIL PROTECTED] wrote: > Hi all, > I have a FreeBSD slice (/dev/ad4s3) on which my FreeBSD system lives and > some unused free diskspace (resulting from deletion of another OS (no names > :-))) on the harddisk. I'd like to use this free diskspace with FreeBSD. > I was unable to figure out how to do that using 'fdisk and friends'. > Hi, IMHO the fastest way is using either sysinstall or fdisk to delete the old "no names" slice and create a FreeBSD (type 165/0xA5) slice. After that you can create partition(s) within that new slice using disklabel/sysinstall. You should fsck the partition afterwards. Pay attention to your orig. FreeBSD slice while doing this and have a bootable rescue CD near you. HTH, Leon -- gnupg key ID: 9B820836 & Fingerprint: 6081 8F41 8FEC 0D69 DB98 F014 0FD4 B47D 9B82 0836 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: adding unused disk space for FreeBSD
On Saturday 09 July 2005 16:52:16, Ean Kingston wrote: > On July 9, 2005 09:04 am, [EMAIL PROTECTED] wrote: > > Hi all, > > I have a FreeBSD slice (/dev/ad4s3) on which my FreeBSD system lives and > > some unused free diskspace (resulting from deletion of another OS (no > > names > > > > :-))) on the harddisk. I'd like to use this free diskspace with FreeBSD. > > > > I was unable to figure out how to do that using 'fdisk and friends'. > > You can do it on the command line with fdisk, bsdlabel, and newfs. It is a > bit easier to explain using sysinstall so, here is the sysinstall way: > > #/stand/sysinstall On newer 5.x systems you may want to use /usr/sbin/sysinstall instead of /sbin/sysinstall. Cheers, ch -- Christian Hiris <[EMAIL PROTECTED]> | OpenPGP KeyID 0x3BCA53BE OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu pgppDf9f3zO0V.pgp Description: PGP signature
Re: adding unused disk space for FreeBSD
On July 9, 2005 09:04 am, [EMAIL PROTECTED] wrote: > Hi all, > I have a FreeBSD slice (/dev/ad4s3) on which my FreeBSD system lives and > some unused free diskspace (resulting from deletion of another OS (no names > > :-))) on the harddisk. I'd like to use this free diskspace with FreeBSD. > > I was unable to figure out how to do that using 'fdisk and friends'. You can do it on the command line with fdisk, bsdlabel, and newfs. It is a bit easier to explain using sysinstall so, here is the sysinstall way: #/stand/sysinstall Configure->Fdisk->(select the disk)->(select the unused slice)->T(to change type to FreeBSD)->W(to save the changes)... Label->choose the disk and start creating partitions->be sure to make the new slices for newfs -- Ean Kingston E-Mail: ean AT hedron DOT org URL: http://www.hedron.org/ I am currently looking for work. If you need competent system/network administration please feel free to contact me directly. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"