Solved

same disk geometry

Posted on 2002-04-18
4
2,260 Views
Last Modified: 2013-12-27
Hi,
   I want the second disk to have the same geometry
as the first disk.  I ran this command but got this
error:
prtvtoc /dev/rdsk/c0t0d0s2|fmthard -s - /dev/rdsk/c1t1d0s2
Partition 0 not aligned on cylinder boundary: "       0      2    00          0   6291936   6291935   /"


Does anybody know how to configure the second disk to
have the same geometry and same partition as the
first disk on solaris 8?


thanks
0
Comment
Question by:siunix
  • 2
4 Comments
 
LVL 4

Expert Comment

by:Otetelisanu
ID: 6952615
With dd
Example:


dd if=/dev/rdsk/c0t0d0s2 of=/dev/rdsk/c1t1d0s2 count=128

and the disk c1t1d0s2 is same as disk c0t0d0s2
0
 
LVL 4

Accepted Solution

by:
jlms earned 50 total points
ID: 6952867
Run format.
Choose the disk you are happy with.
Go to "partition"
Name that partition table with a catchy name ("name")
Quit (quit)
Choose the other disk (disk) and go to partition again (partition), there select the partition definition you saved previously (select).
Write that partition to the disk (label) and quit,quit.
0
 

Author Comment

by:siunix
ID: 6955102
I like the dd better because I can automate it with a script,

thank you all
0
 
LVL 4

Expert Comment

by:Otetelisanu
ID: 6958989
And my points ???
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question