How can i edit /etc/vfstab in single user mode


 
Thread Tools Search this Thread
Operating Systems Solaris How can i edit /etc/vfstab in single user mode
# 1  
Old 02-28-2009
How can i edit /etc/vfstab in single user mode

Hi Experts

/etc/vfstab is corrupted as while editing it i forgot to comment some of the line.

how can i edit the file in single in user mod?

also, i have some problem in CD drive , so i cant boot it from CD and do the changes.

i tried mounding the root file system as rw, however no luck its giving me error
Quote:
mount : /dev/dsk/c0t0d0s0 is not this fstype
Thanking in anticipation

Last edited by kumarmani; 02-28-2009 at 09:36 AM..
# 2  
Old 02-28-2009
you HAVE to boot from cd/dvd or network to make the needed changes. also show us the "mount" command you've used before you get the error...
# 3  
Old 02-28-2009
Hi Duke

I tried the below command to mount the /

Quote:
#mount -o rw,remount /dev/dsk/c0t0d0s0 /
i tried it from CD and i am getting the below error , not sure if the issue is there with CD or with the drive

Quote:
Boot Device: /pci@1f,0/pci@1,1/ide@3/cdrom@2,0: f file and args:

Can't read disk label
Can't open disk label package

can,t open boot device
# 4  
Old 02-28-2009
Make sure that that device is the right name for your boot disk. Type 'format' at the command line in single user mode. It should show up on the list. If it is not then mount the proper partition. Once you are in single user mode you should be able to mount it to one of two available mount points either /mnt or /a, so the proper command would be 'mount /dev/dsk/c0t0d0s0 /mnt' assuming that c0t0d0s0 is the actual location of your boot partition. Then /mnt/etc/vfstab is the file you want to edit.
# 5  
Old 02-28-2009
Thanks achellstrom for pointing towards the write direction.

The device path was not correct.

However now once i have booted from cdrom, mounted the hard disk to /a as

Quote:
#mount /dev/dsk/c0t0d0s0 /a
and once i am trying to edit the /a/etc/vfstab

i am unable to move the cursor i am only able to hit the enter key.

do i have to set some thing to edit the file?

Thanks
# 6  
Old 02-28-2009
enter this in your shell:

Code:
# TERM=vt100
# export TERM
# EDITOR=vi
# export EDITOR

and try again.

or read a vi manual and use the right keys to move the cursor (h, j, k and l).
# 7  
Old 02-28-2009
Other possible TERM types are vt220 or xterm to name a few, and ctl-l will refresh the screen before and after an edit to ensure you are on the right line. Sometimes, you will think you are on a certain line but because the TERM environment variable is not correct you will actually be editing a different line.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Single user mode

Dear All I am trying to install my os as : ok>boot cdrom - install but receiving the following : "IDprom checksum error getexecname() failed /sbin/rcS /etc/vfstab cannot create INIT:failed write utmpx enrty INIT:single user mode INIT:execle of /etc/sulogin failed Enter run level" Can you... (6 Replies)
Discussion started by: hadimotamedi
6 Replies

2. Solaris

Single user mode

Hi all I am new on sun OS. I have have little experience on linux. The Story start from this point: I want to put some script on start-up the terminal, but I cant do that. my shell was sh and I tried so much to find way to do that. at last someone said to me change your shell to bash. I ask how... (4 Replies)
Discussion started by: Rahim_T
4 Replies

3. Solaris

editing /etc/vfstab in single user mode

Hi Experts, My /etc/vfstab got corrupted and have no bootable CD or system , I can get into the system in maintenance mode however the root file system is in read only mode and i am unable to modify the /etc/vfstab. Is there any option through which i can modify the /etc/vfstab ? Thanks (4 Replies)
Discussion started by: kumarmani
4 Replies

4. UNIX for Dummies Questions & Answers

single user mode - user accounts passwords

hello ppl, someone must be able to help with this --> I have an old NCR tower 32 with an ADDS terminal running a unix version 020102 (Im not sure if thats correct but its unix for sure). I have no user names and no passwords and need to login to read a tape. Is there any way to do that? I hear... (3 Replies)
Discussion started by: orestis
3 Replies

5. UNIX for Dummies Questions & Answers

how to Single user mode?

How to enter single user mode when UNIX/LINUX system is starting? (1 Reply)
Discussion started by: gkreddy
1 Replies

6. UNIX for Advanced & Expert Users

single user mode

How to diable the single user mode.. what i want is dat my users are unable to boot in single user mode via GRUB.. (1 Reply)
Discussion started by: ankit.jss
1 Replies

7. UNIX for Advanced & Expert Users

single user mode

Is there another way of switching to single user mode except by typing /usr/sbin/shutdown 0 ??? :rolleyes: (5 Replies)
Discussion started by: kekanap
5 Replies

8. UNIX for Dummies Questions & Answers

single-user mode

how do you boot into single user mode? RedHat 7.1 Caldera 2.4 (2 Replies)
Discussion started by: zorro81
2 Replies

9. UNIX for Dummies Questions & Answers

Single user mode

Hi all, Well back at work and back to crashing systems again :-) Does anyone know where I can find some decent information on single user mode? I need to be able to fix a few things. Don't know if it's possible in single user mode but I need to fix the "etc/vfstab" mainly I re-wrote it to... (2 Replies)
Discussion started by: merlin
2 Replies

10. UNIX for Dummies Questions & Answers

single user mode

Hi all, why "vi" acts differently is single user mode? Does anyone help ? I am using "x" to delete and it keeps messing up. Please help Thanks (2 Replies)
Discussion started by: guest100
2 Replies
Login or Register to Ask a Question