fmthard command
Hi
I have a problem.I think I have accidently done something wrong with the VTOC on the disk.I have heard of a command fmthard to relevel a disk but do not know how to go about as my system is not booting up saying something like checksum error in reading disk level.any idea will be highly appreciated.
Thanks sudatta
[345 byte] By [
sudattaP] at [2007-11-25 23:21:44]

# 1
Hi
If you've got a copy of the VTOC of the bad disk in file format, ie you typed prtvtoc and redirected
the output to a file, you can use that file piped into fmthard which will then re write the disk label according to the output from the prtvtoc command for the disk.
From your post, it looks like you don't have that but if you can reproduce the disk geometry in
some other way, you will have to boot cdrom and repartition the disk. This has to be exactly correct
otherwise the new partitions are going to destory the filesystems already on the disk.
regards
# 3
You will need to boot from cdrom and either be able to use a floppy or transfer the file over once it has booted in single user mode (ok> boot cd -s).
To use the prtvtoc and fmthard commands do.
#prtvtoc /dev/rdsk/c0t0d0s2 > <filename>
then when you have it at the target system do
#fmthard -s <location/filename> /dev/rdsk/c0t0d0s2
This will get you onto the same vtoc for both systems.
Or, boot from the cd as above and change the partition table by hand using the format menu, both are as good as the other really (remember to label the disk once you have changed it if you do it by hand).