Solved

same disk geometry

Posted on 2002-04-18
4
2,311 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

738 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