Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recovering vfstab

Status
Not open for further replies.

ponetguy2

MIS
Aug 28, 2002
442
US
Hello Everyone,

I've messed-up my entries in my vfstab file. /usr is unable to mount. However, I made a backup in /etc/vfstab.bak.

Any ideas on how I can recover. OK prompt was giving me an option to reinstall or boot -b and try to recover. I tried boot -b, but I was unable to access vfstab.bak.

Please help me.
 
Most likely you will have to boot from cdrom... You can try boot -s, but I think you will run into the same type of problem. If you boot to cdrom do the following.

ok# boot cdrom -s
# mkdir mnt0
# mount /dev/dsk/c0t0d0s0 /tmp/root/mnt0
# cd mnt0/etc
# mv vfstab.bak vfstab
# cd /tmp/root
# umount /tmp/root/mnt0
# init 6
 
Instead of rebooting again you could try to remount the filesystems:

mount -o remount,rw /dev/dsk/c0t0d0s0 /
mount -o remount,rw /dev/dsk/c1t0d0s3 /var
...

Oops, but your in single-user mode.
 
thank you for the advise. i reallye appreciate everyone's help. unfortunately, i really screwed-up this install and will need to rebuild the machine. my boss is cool about it, but i would really hate to drain his patience.

i really suck at SDS. :(
 
Reference SDS, if you've run a metaroot recently and are trying to put the system back again - your /etc/system may also be incorrect if so you may have to have the rootdev meta entry removed at end of the file.

rootdev:/pseudo/md@0:0,0,blk

 
If you can not mount the /usr partition you are pretty much SOL, and will have to boot the network or a cd-rom. THen mount up the root slice and change it there. Just do what bfitzs suggested.
 
For future reference, I *think* you can use boot -a which will ask you where various system files are located, so you may have been able to specify /etc/vfstab.bak. I'm not 100% sure it asks for the location of vfstab though?

Annihilannic.
 
hello annihilannic, i tried boot -a with this situation, but i was not prompted for the vfstab. however, i know exactly what you are talking about. i've used boot -a to recover a corrupt system file a couple of years ago, and it worked like a charm. maybe i had a different obp version this time.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top