LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 11-12-2008, 01:35 AM   #1
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Debian, OS X
Posts: 1,267

Rep: Reputation: 99
Question remount partition as rw


Hi all,

I am trying to reset a password of a user but that is giving me error.
Code:
[root@RHEL4 /]# passwd vikas
Changing password for user vikas.
New UNIX password:
Retype new UNIX password:
passwd: Authentication token lock busy
I even tried vipw
Code:
[root@RHEL4 /]# vipw
vipw: /etc/ptmptmp: Read-only file system
Code:
[root@RHEL4 /]# touch abc
touch: cannot touch `abc': Read-only file system
I tried remounting (forcefully too) with rw but all in vain.
Code:
[root@RHEL4 /]# mount -o remount,rw /
mount: block device /dev/sda3 is write-protected, mounting read-only
[root@RHEL4 /]#
[root@RHEL4 /]# mount -o remount,rw / -force
[root@RHEL4 /]# echo $?
0
This is a production server, I can not come into single user mode.

Can anyone help me with this ?
PLEASE HELP ME OUT.

Regards,
VIKAS
 
Old 11-12-2008, 08:26 AM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Quote:
Originally Posted by vikas027 View Post
Hi all,

I am trying to reset a password of a user but that is giving me error.
Code:
[root@RHEL4 /]# passwd vikas
Changing password for user vikas.
New UNIX password:
Retype new UNIX password:
passwd: Authentication token lock busy
I even tried vipw
Code:
[root@RHEL4 /]# vipw
vipw: /etc/ptmptmp: Read-only file system
Code:
[root@RHEL4 /]# touch abc
touch: cannot touch `abc': Read-only file system
I tried remounting (forcefully too) with rw but all in vain.
Code:
[root@RHEL4 /]# mount -o remount,rw /
mount: block device /dev/sda3 is write-protected, mounting read-only
[root@RHEL4 /]#
[root@RHEL4 /]# mount -o remount,rw / -force
[root@RHEL4 /]# echo $?
0
This is a production server, I can not come into single user mode.

Can anyone help me with this ?
PLEASE HELP ME OUT.

Regards,
VIKAS
Unfortunately the only thing that usually fixes this when you can force a remount is to reboot the server. Most of the time I've encountered this means somethings gone wonky with the controller. I've seen firmware fix this issue when it's reoccurring and or hardware replacements made to fix.
 
Old 11-12-2008, 01:06 PM   #3
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Debian, OS X
Posts: 1,267

Original Poster
Rep: Reputation: 99
Thanks trickykid.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"errors=remount-ro" auto fsck, then remount-rw possible? Sepero Linux - Hardware 0 03-28-2007 04:23 AM
Can I remount '/' partition without a reboot? benr77 Linux - General 8 08-22-2006 02:26 AM
Is it safe to remount a partition on a working server dimsh Linux - Newbie 3 05-31-2006 07:58 AM
Partition Error "errors=remount-ro" xpix Ubuntu 4 02-17-2006 05:48 PM
remount root to new partition khutze Linux - Software 0 08-20-2002 06:51 AM


All times are GMT -5. The time now is 08:45 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration