Can't Editing File in Single mode (using vi)


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Can't Editing File in Single mode (using vi)
# 8  
Old 06-18-2007
Quote:
Originally Posted by heru_90
Dear encrypted,

Thank's very much for helping me,
Code:
#EDITOR=vi; export $EDITOR
#TERM=dtterm; export $TERM
#vi /etc/vfstab
"/var/tmp" no such file or firectory
#

still can't edit my file.. any way for change my vfstab?

regards,

heru

How about
Code:
mkdir /var
mkdir /var/tmp

to create a temp dir for the moment. Sounds like "/var" is not mounted.
# 9  
Old 06-18-2007
Thank's Porter,

I'm very confused , the file system just can read only. can't create some file.
How about repair from cd master?
till now I'm just using single mode, can't multi user ?
any suggestion


regards

heru
# 10  
Old 06-18-2007
You still have not told us what operating system this is.

Sounds like your root file system is mounted read only.

You need to remount the root file system read/write, but need more detail to advise you how to do this.

Please do the following and post the results..

uname -a
mount
df -k
# 11  
Old 06-18-2007
Actually, the OS is mentioned above...
Quote:
Originally Posted by heru_90
, I'm sorry not inform my Unix OS, I'm using Solaris 10 X86..
# 12  
Old 06-18-2007
Thanks, I missed that.

man mount

and

man mount_ufs

should be

mount -F ufs -o remount /dev/dsk/c0d0s0 /

default should be read/write.

I am guessing at the device name. Do "df /" to see what it currently is.
# 13  
Old 06-19-2007
Great Porter,

That's right , I'm umounting that device in vfstab file , I think this stupid Smilie. I just want using that for mount CDROM.
I have tried that when not finished installing SUN OS, mount cdroom using
Code:
#mount -F hsfs /dev/dsk/c0d0s0 /cdrom

and that work, so I try to finish OS Installer by add package. But my OS not stable and much file broken. And try again by new CD (Download from sun website), this work.
But when I want using CDROM that can't mount automatically, and try mount manual.so I disbale /dev/dsk/c0d0s0.. Smilie
that cause this trouble

I try your code ,
Code:
#mount -F ufs -o remount /dev/dsk/c0d0s0  /
#mkdir /var/tmp
#vi /etc/vfstab

enable /dev/dsk/c0d0s0 mounting and now I can using multi user again

Thank you Porter,

regards,

heru
# 14  
Old 06-19-2007
Quote:
Originally Posted by heru_90
Thank you
Glad to be of help.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. Shell Programming and Scripting

editing single line in html file in perl script

Hi Folks, It is regarding the perl scripting. I have an html file(many files) which contains the below line in the body tag. <body> <P><STRONG><FONT face="comic sans ms,cursive,sans-serif"><EM>Hello</EM></FONT></STRONG></P> </body> Now I want to read that html file through perl... (3 Replies)
Discussion started by: giridhar276
3 Replies

3. UNIX for Advanced & Expert Users

What is the difference between single line mode and multiline mode in Regular expressions?

Hi All, Can please let me know what is the difference between the single line mode and multi line mode in regular expresions? Thanks, Chidhambaram B (3 Replies)
Discussion started by: chidhu.anu
3 Replies

4. 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

5. Shell Programming and Scripting

Single line file editing command?

Hello everyone. I have been reading a lot about the various different text editors at my disposal through Unix, but I just can't seem to close the deal for what I am trying to do. Is there a way to issue a single line command to edit a file where pattern=x, and do it non-destructively AND in-place?... (1 Reply)
Discussion started by: gator76
1 Replies

6. 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

7. AIX

Boot in Single-Mode

Hi All, I have AIX 5.1 & I forgot the root password. I find out the solution is to boot in single-mode and remove the root password from the /etc/passwd file. My question is how to boot in single-mode? Also is there any password required when booting in this mode? (9 Replies)
Discussion started by: aldowsary
9 Replies

8. 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

9. 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

10. 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
Login or Register to Ask a Question