Or, simply said, when file system goes read-only :
I had to open a new account on RHEL, when I got this :
# useradd -s /bin/bash user4
useradd: unable to lock password file
That is easily solved, delete the lock file (group.lock, gshadow.lock, passwd.lock, shadow.lock, .pwck.lock, .pwd.lock), BUT :
# rm -rf .pwd.lock
rm: cannot remove `.pwd.lock’: Read-only file system
Cvrc (or othewise put : no go)!
# mount -o remount,rw ‘/’
mount: block device /dev/sda2 is write-protected, mounting read-only
That does not work either.
I check how FS is mounted :
# mount
/dev/sda2 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
none on /dev/shm type tmpfs (rw)
/dev/sda3 on /home type ext3 (rw)
/dev/sda5 on /var/log type ext3 (rw)
And here is all OK.
And in the end I had to restart the whole server…..
My links
Google search
-
Recent Posts
Recent Comments
- velda.ebel on About this blog
- Benjamin E. Nichols on About this blog
- http://babyhousetoys.com/cheap on About this blog
- http://sealmedica.com/onsale on About this blog
- velda.ebel on About this blog
Archives
- November 2017
- October 2017
- July 2017
- March 2017
- February 2017
- January 2017
- December 2016
- November 2016
- September 2016
- June 2016
- May 2016
- December 2015
- November 2015
- August 2015
- May 2015
- April 2015
- March 2015
- December 2014
- November 2014
- October 2014
- September 2014
- August 2014
- July 2014
- June 2014
- May 2014
- April 2014
- March 2014
- February 2014
- January 2014
- December 2013
- November 2013
- October 2013
- September 2013
- August 2013
- July 2013
- June 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
Categories
Meta