TechTalkz.com Logo Ask the Experts!

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Linux & Opensource > FreeBSD

how create new partition from command line

FreeBSD

 
 
Thread Tools Display Modes
Unread 25-10-2007, 02:02 PM   #1
Rafal
Guest
 
Posts: n/a
how create new partition from command line

Hello

how create new partion from commad line with specified size?


Rafal



 
Unread 25-10-2007, 02:02 PM   #2
Balwinder S Dheeman
Guest
 
Posts: n/a
Re: how create new partition from command line

On 10/25/2007 04:20 PM, Rafal wrote:
> how create new partion from commad line with specified size?


On Debian/Ubuntu/Knoppix machines, both the packages 'util-linux' and
'fdisk-udeb' provide a tool known as _sfdisk_; use any of these at your
own risk. It OTOH, could be quite dangerous in hands of a novice, so you
been warned

--
Dr Balwinder S "bsd" Dheeman Registered Linux User: #229709
Anu'z Linux@HOME (Unix Shoppe) Machines: #168573, 170593, 259192
Chandigarh, UT, 160062, India Gentoo, Fedora, Debian/FreeBSD/XP
Home: http://cto.homelinux.net/~bsd/ Visit: http://counter.li.org/
 
Unread 25-10-2007, 02:02 PM   #3
Daniel Snouck
Guest
 
Posts: n/a
Re: how create new partition from command line

Balwinder S Dheeman wrote:
> On 10/25/2007 04:20 PM, Rafal wrote:
>> how create new partion from commad line with specified size?

>
> On Debian/Ubuntu/Knoppix machines, both the packages 'util-linux' and
> 'fdisk-udeb' provide a tool known as _sfdisk_; use any of these at
> your own risk. It OTOH, could be quite dangerous in hands of a novice,
> so you been warned


The way to do this on FreeBSD is explained in the handbook.
See /usr/share/doc/handbook/disks-adding.html

HTH, Daniel.
 
Unread 25-10-2007, 08:10 PM   #4
Rafal
Guest
 
Posts: n/a
Re: how create new partition from command line


> The way to do this on FreeBSD is explained in the handbook.
> See /usr/share/doc/handbook/disks-adding.html



ok, but how set size for any partition on one disk? - i havent create one
partition on one disk


 
Unread 25-10-2007, 11:03 PM   #5
Speechless
Guest
 
Posts: n/a
Re: how create new partition from command line

On Thu, 25 Oct 2007 22:05:04 +0200, "Rafal" <gonzak@op.pl> wrote:

>
>> The way to do this on FreeBSD is explained in the handbook.
>> See /usr/share/doc/handbook/disks-adding.html

>
>
>ok, but how set size for any partition on one disk? - i havent create one
>partition on one disk
>
>

In FreeBSD, we create "slices" on disk first, then we "partition" the
slices.

 
Unread 26-10-2007, 01:02 AM   #6
Jason Bourne
Guest
 
Posts: n/a
Re: how create new partition from command line

Speechless wrote:

> On Thu, 25 Oct 2007 22:05:04 +0200, "Rafal" <gonzak@op.pl> wrote:
>
>>
>>> The way to do this on FreeBSD is explained in the handbook.
>>> See /usr/share/doc/handbook/disks-adding.html

>>
>>
>>ok, but how set size for any partition on one disk? - i havent create one
>>partition on one disk
>>
>>

> In FreeBSD, we create "slices" on disk first, then we "partition" the
> slices.


You will use fdisk to create the slice (ad0s1 for example), then disklabel
to subdivide it into partitions (ad0s1a, ad0s1d for example). The
individual partitions will then be formatted with a file system, and
mounted to different areas of the overall file system tree. For example,
ad0s1a would be your "/" (root), ad0s1d might be your /usr, etc.

If you are new to this you might find it easier to begin (as root)
in /stand/sysinstall and choose the Configure option, inside which you will
find Fdisk and Label menu choices which start fdisk and disklabel. If you
don't know what you're doing and it's a blank disk there are "automagic"
options which make suggestions for you. If it's not a blank disk and you
value any data on it *backup* first! You make one little error and stuff
goes *poof* quick!

-Jason

 
Unread 26-10-2007, 04:03 PM   #7
Rafal
Guest
 
Posts: n/a
Re: how create new partition from command line

> If you are new to this you might find it easier to begin (as root)
> in /stand/sysinstall and choose the Configure option, inside which you

will
> find Fdisk and Label menu choices which start fdisk and disklabel. If you
> don't know what you're doing and it's a blank disk there are "automagic"
> options which make suggestions for you. If it's not a blank disk and you
> value any data on it *backup* first! You make one little error and stuff
> goes *poof* quick!



yes, but i have make auto install from pxe and i have create parition from
only command line


 
Unread 26-10-2007, 08:04 PM   #8
Bob Eager
Guest
 
Posts: n/a
Re: how create new partition from command line

On Fri, 26 Oct 2007 15:07:09 UTC, "Rafal" <gonzak@op.pl> wrote:

> yes, but i have make auto install from pxe and i have create parition from
> only command line


Create a temporary file with the correct partitioning ('slice' is the
correct term), then use 'fdisk -f'. See the man page.

--
Bob Eager
UNIX since v6..
http://tinyurl.com/2xqr6h

 
Unread 26-10-2007, 10:04 PM   #9
Howard Goldstein
Guest
 
Posts: n/a
Re: how create new partition from command line

On Fri, 26 Oct 2007 00:37:56 GMT, Jason Bourne <j_bourne_treadstone*************> wrote:
: in /stand/sysinstall and choose the Configure option, inside which you will

/usr/sbin/sysinstall, you old timer you

The fingers seem to keep typing typing /stand/sysinstall here too
 
Unread 26-10-2007, 11:04 PM   #10
Rafal
Guest
 
Posts: n/a
Re: how create new partition from command line

> Create a temporary file with the correct partitioning ('slice' is the
> correct term), then use 'fdisk -f'. See the man page.



aa, ok, thanks


Rafal


 
 

Thread Tools
Display Modes



< Home - Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT. The time now is 04:22 PM.


vBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2013, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional