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

ckarnan at 2007-7-5 18:09:21 > top of Java-index,General,Talk to the Sysop...
# 2

Thanks for your suggestion.Actually I have another workstation with identical partitions and file systems.So as per your first suggestion can I copy the prtvtoc in that system into a file and then copy the file in a floppy and use that file in floppy as an argument to fmthard command?But right now since the system is not booting is it possible to do it from the ok prompt?

Thanks in advance.

sudatta

sudattaP at 2007-7-5 18:09:21 > top of Java-index,General,Talk to the Sysop...
# 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).

bmacdo at 2007-7-5 18:09:21 > top of Java-index,General,Talk to the Sysop...
# 4
Thanks a lots .I did as per your first approach and the system booted up without any problem.-sudatta
sudattaP at 2007-7-5 18:09:21 > top of Java-index,General,Talk to the Sysop...