Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.


  Search this Thread
Old 09-07-2007, 08:39 AM   #1
LQ Newbie
Registered: Jul 2007
Posts: 27

Rep: Reputation: 15
newfs and parttion command

As I know, on the Solaris 9, the "newfs" command is used to create a file system. Example :
# newfs /dev/rdsk/c1t3d0s0
newfs: construct a new file system /dev/rdsk/c1t3d0s0: (y/n)? y
/dev/rdsk/c1t3d0s0: 410720 sectors in 302 cylinders 17 tracks 80 sectors
200.5MB in 19 cyl groups (16 c/g, 10.62MB/g, 5120 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 21872, 43712, 65552, 87392, 109232, 131072, 152912, 174752, 196592,
218432, 240272, 262112, 283952, 305792, 327632, 349472, 371312, 393152

But "parttion" command from the format utility is also used to parttion for a disk slice ( a parttion ).

What's the differency between "newfs" and "parttion" command ?
Old 09-07-2007, 09:00 AM   #2
Registered: Dec 2005
Location: Madrid
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547

Rep: Reputation: 36
The real difference is between the concept of "partition" and "file system". A partition is a logical division, or partition, of an hard disk over which you can apply logical formatting.

Check this article from wikipedia for basic definitions.

A file system is a mean which allows storing and organizing files in the disk. Read this for basic definition.

The short story: you partition your disk to divide it into pieces which behave (roughly) as independent storage devices. Into the partition you create a file system and the choice will depend on the OS you want to use: UFS, XFS, ext, Reiser, ntfs, etc.
Old 09-07-2007, 05:44 PM   #3
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.3, Oracle Linux, Mint, Tribblix
Posts: 9,756

Rep: Reputation: 459Reputation: 459Reputation: 459Reputation: 459Reputation: 459
As a reminder, all of this complexity disappear with ZFS, where partition, slice, newfs, vfstab and the likes are obsoleted.
Old 09-14-2007, 04:26 AM   #4
LQ Newbie
Registered: Jul 2007
Posts: 27

Original Poster
Rep: Reputation: 15
I don't understand your mean.
With parttion command, I also can assign a directory name for a disk slice. Example:

partition> 0
Enter partition id tag[unassigned]: ?
Expecting one of the following: (abbreviations ok):
unassigned boot root swap
usr backup stand var
home alternates
Enter partition id tag[unassigned]: home

I think that this above command can assign "/home" directory name for disk slice number 0. Thefore, we can create, delete,modify files on directory "/home"
If so, why do we need use "newfs" command to create a file system ?
Old 09-14-2007, 06:26 AM   #5
Registered: Dec 2005
Location: Madrid
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547

Rep: Reputation: 36

You're wrong about the ID tag. It's an old concept, which is almost unused today. See /usr/include/sys/vtoc.h. for all the possibilities. As far as I know, the installer program when you upgrade the system, for examples, still uses it: it checks for slices tagged as root and checks if it's really a root slice. I'm told that Veritas uses tags, too.

The point is: your OS is not going to use it.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
transfer /boot directory to new parttion kpachopoulos Linux - General 10 08-23-2006 08:37 AM
parttion gives an error that it is readonly when it mounted as rw jabka Linux - General 1 07-08-2006 10:03 PM
how to mount SUSE parttion(reiserfs) in KNOPPIX thandermax Linux - General 1 07-08-2006 01:47 PM
newfs Karthikeyan Gurusamy Linux - Newbie 1 01-09-2006 08:00 AM
Hda errors-how to buckup a parttion ? jabka Linux - Hardware 2 11-08-2005 02:58 PM > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 12:13 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration