LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 10-28-2006, 03:04 AM   #1
saudoi
Member
 
Registered: Aug 2004
Location: VietNam
Distribution: Sun Solaris 10
Posts: 117

Rep: Reputation: 15
Quick format a hard drive?


Hi there,

I just break a mirror of my 2 hard drive on Sunfire v440. Now i want to clean up all data on the mirror volume because i don't need to use it any more.

I try with format utility, delete slide and re-create the only 1 partition as this:
Code:
bash-2.05# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c1t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@1f,700000/scsi@2/sd@0,0
       1. c1t1d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@1f,700000/scsi@2/sd@1,0
       2. c1t2d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>  data2
          /pci@1f,700000/scsi@2/sd@2,0
       3. c1t3d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>  data3
          /pci@1f,700000/scsi@2/sd@3,0
Specify disk (enter its number): 1
selecting c1t1d0
[disk formatted]
Warning: Current Disk has mounted partitions.


FORMAT MENU:
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        repair     - repair a defective sector
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        verify     - read and display labels
        save       - save new disk/partition definitions
        inquiry    - show vendor, product and revision
        volname    - set 8-character volume name
        !<cmd>     - execute <cmd>, then return
        quit
format> l
Ready to label disk, continue? y

format> p


PARTITION MENU:
        0      - change `0' partition
        1      - change `1' partition
        2      - change `2' partition
        3      - change `3' partition
        4      - change `4' partition
        5      - change `5' partition
        6      - change `6' partition
        7      - change `7' partition
        select - select a predefined table
        modify - modify a predefined partition table
        name   - name the current table
        print  - display the current table
        label  - write partition map and label to the disk
        !<cmd> - execute <cmd>, then return
        quit
partition> print
Current partition table (original):
Total disk cylinders available: 14087 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0 unassigned    wm       0 - 14086       68.35GB    (14087/0/0) 143349312
  1 unassigned    wu       0                0         (0/0/0)             0
  2 unassigned    wm       0                0         (0/0/0)             0
  3 unassigned    wm       0                0         (0/0/0)             0
  4 unassigned    wm       0                0         (0/0/0)             0
  5 unassigned    wm       0                0         (0/0/0)             0
  6 unassigned    wm       0                0         (0/0/0)             0
  7 unassigned    wm       0                0         (0/0/0)             0
Then i do label it
Code:
partition> label
Ready to label disk, continue? y
However, i still see the old data when i mount that disk again:
Code:
bash-2.05# mount /dev/dsk/c1t1d0s0 /data1
bash-2.05# ls /data1
dev             export          lib             net             platform        sun             usr
devices         home            lost+found      noautoshutdown  proc            system          var
etc             kernel          mnt             opt             sbin            tmp             vol
How can i format it?

Note: i used to try to use format command to format another hard drive, it took me about 5 or 6 hours to finish . I wonder is there any way to do it faster as Quick Format on Windows?
 
Old 10-28-2006, 04:27 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,486

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
5 to 6 hours ?? What command were you running ?

In all cases, the right command to achieve what the dos command "format" do is "newfs".

Another comment, no big deal but your vtoc is non standard, as you removed slice 2.

Last edited by jlliagre; 10-28-2006 at 04:29 AM.
 
Old 10-28-2006, 11:32 PM   #3
saudoi
Member
 
Registered: Aug 2004
Location: VietNam
Distribution: Sun Solaris 10
Posts: 117

Original Poster
Rep: Reputation: 15
I did format my 73G hdd by command "format" as this:

# format
# choose disk: 1
# format
# confirm: y
.....

And it took me over 5 hours to finish

I don't know what the vtoc standard should be, i just need 1 partition only to keep all my data so that i just create 1 slide only. Is there anything wrong?

Anyways, if i issue command "newfs", every data on my disk 1 would be "format" clear, right?

Thank for your help
 
Old 10-29-2006, 01:27 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,486

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Quote:
Originally Posted by saudoi
I did format my 73G hdd by command "format" as this:

# format
# choose disk: 1
# format
# confirm: y
.....

And it took me over 5 hours to finish
Okay, I got it. What you did was a low level formatting, which was absolutely unnecessary.

You are confused by the microsoft terminology which misuse the "format" term for what is really a filesystem creation.
Quote:
I don't know what the vtoc standard should be, i just need 1 partition only to keep all my data so that i just create 1 slide only. Is there anything wrong?
You setting is acceptable and will work, but it doesn't respect the standard. It would be wrong on x86 H/W though.

By the way, these are slices, not slides.
Quote:
Anyways, if i issue command "newfs", every data on my disk 1 would be "format" clear, right?
That depends on what you mean by "format clear".
 
Old 10-29-2006, 11:13 AM   #5
saudoi
Member
 
Registered: Aug 2004
Location: VietNam
Distribution: Sun Solaris 10
Posts: 117

Original Poster
Rep: Reputation: 15
yea, thank for your correction. It's slice

I want to clean up all data on my disk 1. What command could i use?

Note: the partition 0 had been only 5GB before i deleted it and re-create it with 65GB. I hope that after i do something like "format", i will have one 65GB partition.

Thanks

Last edited by saudoi; 10-29-2006 at 11:20 AM.
 
Old 10-29-2006, 11:56 AM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,486

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Quote:
Originally Posted by saudoi
I want to clean up all data on my disk 1. What command could i use?
Code:
umount /data1
newfs /dev/rdsk/c1t1d0s0
Double check before pressing enter, a typo can be disastrous ...
 
  


Reply

Tags
format, harddrive, solaris


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
format a hard drive (/dev/hda1) in Reiser fs format Linh Linux - General 7 06-17-2009 06:30 AM
format hard drive elmerglue Linux - General 4 05-31-2006 08:15 PM
Format hard drive uzerfrendly Linux - Hardware 9 02-24-2005 10:07 PM
format hard drive mav69_1999 Linux - Newbie 5 07-08-2004 04:53 PM
how to format Hard drive?? QuTaR Linux - Newbie 3 09-22-2003 11:23 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration