LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 09-07-2006, 01:55 PM   #1
linuxtesting2
Member
 
Registered: Mar 2004
Location: Norway
Distribution: Freebsd, Fedora, Redhat, Solaris 10
Posts: 169

Rep: Reputation: 30
format a disk


Solaris 10

hmmm...how can i format a disk ?

i have a disk at c0t1d0, and its an old linux disk, i thought i could just to the following to format the entire disk, to remove every parition...


command format -> select disk -> format.

If i then save, and reenter, and type partition->print i see that the partitions still are there. isnt there any fdisk command, if i type help under the format command, i cant see any fdisk command.


Ole
 
Old 09-07-2006, 02:31 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
To create or delete primary partitions, the command is /usr/sbin/fdisk.
 
Old 09-07-2006, 02:51 PM   #3
linuxtesting2
Member
 
Registered: Mar 2004
Location: Norway
Distribution: Freebsd, Fedora, Redhat, Solaris 10
Posts: 169

Original Poster
Rep: Reputation: 30
can you do the same with format, or do i have use fdisk to create and delete pri partitions ?

What is the regular way to format and create 1 partition, is it

format->partition->select (and choose 1 partition here, ex slice 7, and use all the space here)
label->quit ---> newfs /dev/dsk/<disk> ?



Ole
 
Old 09-07-2006, 02:58 PM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Partitions and slices are different beasts.

Can you clarify which ones you want to delete ?
 
Old 09-07-2006, 04:20 PM   #5
linuxtesting2
Member
 
Registered: Mar 2004
Location: Norway
Distribution: Freebsd, Fedora, Redhat, Solaris 10
Posts: 169

Original Poster
Rep: Reputation: 30
i thought partitions and slices where the same thing ?

The thing i want to do is really simple to describe

I have a linux disk, with 3-4 ext3 partitions.

1. I want to delete all the partitions on that disk (wipe it clean)
2. Create 1 large partition of the whole disk size
3. Format that partition with ufs
4. Mount the partition



Ole
 
Old 09-08-2006, 01:56 AM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by linuxtesting2
i thought partitions and slices where the same thing ?
Partitions in the Solaris on x86 terminology are only one of the 4 primary partitions of a disk, plus extended partitions which are only supported for FAT.
partitions names end with p1, p2, p3 or p4, there is also p0 which means the whole disk, and p0:x which mean an extended partition.
One of the primary partitions can be of Solaris or Solaris2 type.
This partition is subdivised in areas called slices, which are sometimes called partitions on SPARC.
Their names end with s0, s1, s2, ...
By convention, s2 is a slice representing the whole size available, and shouldn't be changed.

You manage partitions with fdisk, and slices with format/fmthard/prtvtoc.

Quote:
The thing i want to do is really simple to describe

I have a linux disk, with 3-4 ext3 partitions.

1. I want to delete all the partitions on that disk (wipe it clean)
2. Create 1 large partition of the whole disk size
3. Format that partition with ufs
4. Mount the partition
Okay, use fdisk to set a single partition spanning the whole disk, then use format to create a slice 0 with all space available.
 
  


Reply



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
Format disk chrisstooss Linux - Hardware 1 08-20-2006 10:04 AM
how to format disk? Niflheim Linux - Newbie 6 03-04-2005 09:59 AM
How to format a disk to ufs? garnser *BSD 4 12-16-2004 06:11 PM
Format hard disk! yenonn Linux - Newbie 9 10-04-2003 06:56 PM
Format brand new disk nickhowes Linux - Hardware 9 07-29-2003 12:49 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 08:10 AM.

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