Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-21-2009, 04:27 PM   #1
LQ Newbie
Registered: Apr 2003
Posts: 11

Rep: Reputation: 0
remote server mounts /usr as read-only. How to fix without physical access?

I'll be brief:
* /usr mounts as read only.
* The filesystem is Reiserfs
* fsck.reiserfs --fix-fixable reports that there is a bad superblock on the filesystem
Will check consistency of the filesystem on /usr
and will fix what can be fixed without --rebuild-tree
Will put log info to 'stdout'

Do you want to run this program?[N/Yes] (note need to type Yes if you do):Yes
bread: Cannot read the block (2): (Is a directory).
reiserfs_open: bread failed reading block 2
bread: Cannot read the block (16): (Is a directory).
reiserfs_open: bread failed reading block 16

reiserfs_open: the reiserfs superblock cannot be found on /usr.
Failed to open the filesystem.

If the partition table has not been changed, and the partition is
valid and it really contains a reiserfs partition, then the
superblock is corrupted and you need to run this utility with
* Obviously I cannot unmount /usr without losing my connection.
* Single user mode is out because I do not have physical access to the machine.

As I see it, to fix this problem, I have to do one of three things.
a. wait until I have access to the server.
b. move sshd so to a different partition (and reboot)
c. ??? (what does the wisdom of the crowd say?)

I am using openSuSE 11.0 Kernel

Thanks for reading this far!
Old 10-21-2009, 05:40 PM   #2
Senior Member
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 211Reputation: 211Reputation: 211
Originally Posted by thatto View Post
* Obviously I cannot unmount /usr without losing my connection.
Well, you wouldn't lose your connection necessarily, it would just become a fairly boring connection. ;-) (sshd is memory resident if you're connected, so it doesn't matter where /usr goes.*) You'll still have /bin and /sbin, of course. Which is okay:

/sbin/umount, /sbin/mount, /sbin/fsck will all be available and should have all you need to fsck.

# First, kill everything using /usr:
lsof | grep /usr
kill <pids>
# Unmount /usr:
umount /usr
# fsck the problem:
fsck.resierfs <usr partition>
# remount, and enjoy us(e)r binaries again:
mount -a
# test a usr bin:
/usr/bin/awk -Wversion
* As a related example of this: If you hit rm -rf /* while on an ssh connection, your connection will continue, but as soon as you lose it, you'll need to reinstall the operating system via physical access.

Last edited by jhwilliams; 10-21-2009 at 05:42 PM.


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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] anonymous ftp server and access to vfat mounts mengoshmink Linux - Networking 1 10-24-2010 07:57 AM
HOWTO: Installing Fedora on any remote Linux system with no physical access. halo14 Fedora 1 11-05-2008 02:08 AM
USB HardDrive mounts read-only. Is there anyway to make it read-write? Fritz_Katz Linux - Hardware 7 09-13-2007 06:50 PM
Setup KDE on VNC with no physical access to server MarleyGPN Linux - Software 3 07-11-2006 10:42 AM
i banned myself from my remote ssh-server...i need an idea to fix it :) shegman Linux - Networking 15 12-25-2005 11:46 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:27 PM.

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