1834601 Members
4051 Online
110069 Solutions
New Discussion

Re: bad fstab entries

 
SOLVED
Go to solution
Terry Washington_1
Frequent Advisor

bad fstab entries

I added a couple of bad entries to the fstab on a C360 running 11.00. Upon reboot none of the filesystems will mount. I booted in single-user mode and can get everything except /tmp /var and /usr to mount. I have a backup copy of the fstab but cannot put it in place as I can't use cp, mv or any other commands. The C360 has two disks with one running 11.00 and the other running 11i. I can still boot into 11i. Is there a way to mount the 11.00 disk within 11i and fix the fstab or boot off the installation CD to corect this? Is possibly an easier way to fix this? Any suggestions would be welcomed. Thanks.
4 REPLIES 4
Michael Steele_2
Honored Contributor

Re: bad fstab entries

You have a limited command set in the /etc sub directory. Please run these commands and attach:

# who -r (* what's your run level ? *)

# mount

# vgchange -a y /dev/vg00

# init 3

# who -r

# bdf

# mount
Support Fatherhood - Stop Family Law
Patrick Wallek
Honored Contributor

Re: bad fstab entries

Yes, you can mount your 11.0 disk while in 11i. YOu can do this through SAM or just do the following:

# mkdir /dev/vg01

# mknod /dev/vg01/group c 64 0x010000

# vgimport vg01 /dev/dsk/c?t?d?
(Use the device file o fyour 11.0 disk -- check the syntax here as I currently don't have access to man pages)

# vgchange -a y vg01

# mkdir /11.0

# mount /dev/vg01/lvol1 /11.0

That should get you your / from the 11.0 disk mounted and you should be able to fix the /11.0/etc/fstab now.
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: bad fstab entries

Actually, you have a mv command, you just don't know that you have one. Use /sbin/mv -- it's statically linked and does not depend upon /usr for shared libraries. It will get your ox out of the ditch.
If it ain't broke, I can fix that.
Terry Washington_1
Frequent Advisor

Re: bad fstab entries

Thanks! I was able to use mv to put the backup fstab in place and the system is back up.