LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 01-06-2013, 08:25 AM   #1
yaximik
Member
 
Registered: Nov 2010
Posts: 87

Rep: Reputation: 0
help! I have very bad feeling about this...


I use two usb drives attached to my RHEL58 box for data and database storage, which I mounted manually (using mount) to two directories /media/A and /media/B. After mounting they showed up on desktop and automounted upon reboot just fine. Bot occasionally upon reboot, while both drives show up on desktop as usual, are mounted to new directories created by system in /mount. This results in broken links and references for programs that used them.

The obvious solution was to modify /etc/fstab to stop this from happening, which I did referring for correct entries to a textbook. I did this remotely logged as root over VNC and then rebooted the system. Now I cannot connect to the server over VNC, ssh, or even ping it.

I am afraid that somehow I inadvertently messed up some important part of fstab and the box cannot complete booting. The original fstab is still there as /etc/fstab~, but how I can return to it if the machine cannot boot? I am going to the office to confirm that and try to fix the problem - please advise what can and needs to be done.
 
Old 01-06-2013, 08:43 AM   #2
goumba
Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Debian Wheezy (7.0), Jessie (future 8) and Sid (unstable)
Posts: 546
Blog Entries: 3

Rep: Reputation: 62
Do you remember what device the root fs is on? You could probably get away with passing root=device to the grub/lilo line at boot and get in that way if all else fails. Then you can get access to /etc assuming it's on the same device as root (I always do in practice), and fix fstab or copy fstab~ to fstab.

Last edited by goumba; 01-06-2013 at 08:49 AM.
 
Old 01-06-2013, 09:37 AM   #3
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,640

Rep: Reputation: 2574Reputation: 2574Reputation: 2574Reputation: 2574Reputation: 2574Reputation: 2574Reputation: 2574Reputation: 2574Reputation: 2574Reputation: 2574Reputation: 2574
Quote:
Originally Posted by yaximik View Post
I use two usb drives attached to my RHEL58 box for data and database storage, which I mounted manually (using mount) to two directories /media/A and /media/B. After mounting they showed up on desktop and automounted upon reboot just fine. Bot occasionally upon reboot, while both drives show up on desktop as usual, are mounted to new directories created by system in /mount. This results in broken links and references for programs that used them.

The obvious solution was to modify /etc/fstab to stop this from happening, which I did referring for correct entries to a textbook. I did this remotely logged as root over VNC and then rebooted the system. Now I cannot connect to the server over VNC, ssh, or even ping it.

I am afraid that somehow I inadvertently messed up some important part of fstab and the box cannot complete booting. The original fstab is still there as /etc/fstab~, but how I can return to it if the machine cannot boot? I am going to the office to confirm that and try to fix the problem - please advise what can and needs to be done.
You unplug the USB drives, boot from CD/DVD into rescue mode, mount your system drive manually, and undo the fstab changes. That's the easiest way to do it, in my opinion. And what does Red Hat support say about this? Since you're using RHEL, you are paying for it, right?
 
Old 01-06-2013, 03:35 PM   #4
yaximik
Member
 
Registered: Nov 2010
Posts: 87

Original Poster
Rep: Reputation: 0
Smile [SOLVED]help- I have bad feeling about this...

Ouch! It was not that bad, but the system could not complete boot as one of USB drives (ext2) for some reason had a bad superblock, so boot was aborted and dropped in shell. When I get to the office and logged in as root it moved into the filesystem recovery mode. All vital systems checked clean by fsck, except this USB drive with ext2. I had to
Code:
mount -o remount,rw /
to restore read/write access and then I could replace the offending fstab with its backup copy. The box booted normally.
Then I fixed the offending disk (unmounted) with
Code:
fsck /dev/sdc1
and also replaced the ext2 with ext3 and replaced its UUID, just in case
Code:
tune2fs -j -U time /dev/sdc1
Then I updated the corresponding line in /etc/fstab and rebooted - all worked fine.
 
  


Reply

Tags
boot failure, fstab, repair


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
Bad, Bad, BAD! (Firefox is basically ditching html5 video support) smeezekitty General 11 05-05-2010 06:29 PM
No emoticon for what I'm feeling... Jeebizz LQ Suggestions & Feedback 31 08-04-2009 11:28 AM
do you ever get the feeling ? rob.rice General 13 01-05-2009 02:11 PM
feeling like a n00b again Slyder42 Linux - Newbie 10 11-19-2005 10:13 AM
Help Please. I'm feeling frustrated. Paul Parr Linux - Software 13 05-07-2003 07:20 PM


All times are GMT -5. The time now is 03:35 PM.

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