Editing
Solaris 10 System Administration Part I
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Replacing SPARC or x86/x64 VTOC on disk === * use prtvtoc command to save VTOC info to a file * use fmthard command to replace SPARC or x86/x64 VTOC * prtvtoc & fmthard commands read & write VTOC on disks & do not modify fidsk partitions Example: <pre># prtvtoc /dev/rdsk/c1t0d0s2 * /dev/rdsk/c1t0d0s2 partition map * * Dimensions: * 512 bytes/sector * 424 sectors/track * 24 tracks/cylinder * 10176 sectors/cylinder * 14089 cylinders * 14087 accessible cylinders * * Flags: * 1: unmountable * 10: read-only * * Unallocated space: * First Sector Last * Sector Count Sector * 0 4100928 4100927 * * First Sector Last * Partition Tag Flags Sector Count Sector Mount Directory 0 2 00 4100928 24005184 28106111 / 1 4 00 28106112 10247232 38353343 /usr/openwin 2 5 00 0 143349312 143349311 3 7 00 38353344 2818752 41172095 /var 4 3 01 0 4100928 4100927 5 0 00 41172096 10247232 51419327 /opt 6 4 00 51419328 10003008 61422335 /usr 7 8 00 61422336 81926976 143349311 /export/home # prtvtoc /dev/rdsk/c1t0d0s2 > /var/tmp/c1t0d0s2.vtoc # ls /var/tmp c1t0d0s2.vtoc # cat /var/tmp/c1t0d0s2.vtoc * /dev/rdsk/c1t0d0s2 partition map * * Dimensions: * 512 bytes/sector * 424 sectors/track * 24 tracks/cylinder * 10176 sectors/cylinder * 14089 cylinders * 14087 accessible cylinders * * Flags: * 1: unmountable * 10: read-only * * Unallocated space: * First Sector Last * Sector Count Sector * 0 4100928 4100927 * * First Sector Last * Partition Tag Flags Sector Count Sector Mount Directory 0 2 00 4100928 24005184 28106111 / 1 4 00 28106112 10247232 38353343 /usr/openwin 2 5 00 0 143349312 143349311 3 7 00 38353344 2818752 41172095 /var 4 3 01 0 4100928 4100927 5 0 00 41172096 10247232 51419327 /opt 6 4 00 51419328 10003008 61422335 /usr 7 8 00 61422336 81926976 143349311 /export/home # fmthard -s /var/tmp/c1t0d0s2.vtoc /dev/rdsk/c1t0d0s2 fmthard: New volume table of contents now in place. # prtvtoc /dev/rdsk/c1t0d0s2 * /dev/rdsk/c1t0d0s2 partition map * * Dimensions: * 512 bytes/sector * 424 sectors/track * 24 tracks/cylinder * 10176 sectors/cylinder * 14089 cylinders * 14087 accessible cylinders * * Flags: * 1: unmountable * 10: read-only * * Unallocated space: * First Sector Last * Sector Count Sector * 0 4100928 4100927 * * First Sector Last * Partition Tag Flags Sector Count Sector Mount Directory 0 2 00 4100928 24005184 28106111 / 1 4 00 28106112 10247232 38353343 /usr/openwin 2 5 00 0 143349312 143349311 3 7 00 38353344 2818752 41172095 /var 4 3 01 0 4100928 4100927 5 0 00 41172096 10247232 51419327 /opt 6 4 00 51419328 10003008 61422335 /usr 7 8 00 61422336 81926976 143349311 /export/home #</pre>
Summary:
Please note that all contributions to GotOpinion may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
GotOpinion:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information