LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 12-06-2012, 11:38 PM   #1
AnApproach2DigestLinux
LQ Newbie
 
Registered: Nov 2012
Posts: 6

Rep: Reputation: Disabled
I edited /etc/fstab to practice rescue operation, but I am Stuck it is not mounting


I was doing some linux lab and I had to practice rescue operation on not working Redhat machine.

I intentionally edited /etc/fstab file in one of the working Redhat machine so that I can perform recue operation.

I changed only one character in the first line of the etc/fstab file as given below:
UUID=D5D2EFB8-8C36-4368-86D3-9D9B98761C33 ext4 defaults 1 1

I removed the letter 's' from the word defaults. This is the only one change I made according to the book.
And after that my system should not work according to book and I checked it was not working.

I used cd disk to perform rescue operation:
After inserting CD I passed few steps then I got one window with this question:
What type of media contains the rescue image?
Local CD/DVD (I selected)

Next questions was:
Do you want to start the network interfaces on this system?
NO (I selected) Because I do not have any network on this machine.

After this question, I got one more window saying:
The rescue environment will now attempt to find your linux installation and mount it under the directory /mnt/sysimage..............................

I selected the option Continue. Finally I got this message:
You don't have any Linux partitions. Press return to get a shell.............

When I press return I got one more window:
shell start shell
fakd Run diagnostic
reboot Reboot
I clicked on 'shell start shell' and got the shell prompt:
When I did ls /mnt/sysimage:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bash-4.1# ls /mnt/sysimage
it did not showed me anything except the return prompt:
bash-4.1#

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
when I did:
bash-4.1# chroot /mnt/sysimage
chroot: failed to run command '/bin/sh': No such file or directory
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bash-4.1# ls
bin dev etc firmware init lib lib_old mnt modules oldtmp proc root sbin selinux sys tmp usr usr_old var

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bash-4.1#ls /mnt
runtime stage2 sysimage

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bash -4.1# cat /etc/fstab is showing me different format of information it does not look the same /etc/fstab file. Becaue I do not find the following entry:
UUID=D5D2EFB8-8C36-4368-86D3-9D9B98761C33 ext4 defaults 1 1
also format of this /etc/fstab is entirely different. There is no word "defaults" etc.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# fdisk -l
Device Boot start End Blocks Id System
/dev/sda1 * 1 1275 100000 83 Linux
/dev/sda2 1275 3825 2040000 fd Linux raid autodetect
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Here I am stuck because it is not mounting so I can not bring the changes back to /etc/fstab file........Please help me I dont know what I have to do?

Last edited by AnApproach2DigestLinux; 12-07-2012 at 12:40 AM.
 
Old 12-06-2012, 11:50 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,411

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
So what happened when you pressed return; did you get a shell? What did 'fdisk -l' say?
What do you get if you 'ls /mnt/sysimage' ?

Incidentally, this 'UUID=D5D2EFB8-8C36-4368-86D3-9D9B98761C33 ext4 defaults 1 1' is missing the mount point .... eg
'UUID=D5D2EFB8-8C36-4368-86D3-9D9B98761C33 /mnt_point_here ext4 defaults 1 1'
 
Old 12-06-2012, 11:52 PM   #3
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
You should be able to do some diagnostics from the shell prompt. I'd start by running "fdisk -l" to see what hard drives are recognized.

Was the root filesystem on a logical volume or software RAID by any chance? If so, make sure that the rescue system can mount LVM or software RAID partitions as appropriate. Is the rescue CD the same distribution and version as the original OS?
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Edited crypttab and fstab, now system doesn't start. 1937 Linux - Newbie 3 05-04-2012 03:02 PM
[SOLVED] Odd Read-Only Issue in Windows Rescue Operation psuliin Linux - Hardware 17 01-27-2011 08:13 PM
just edited fstab and quick question cjae Linux - Newbie 1 08-12-2005 02:24 PM
I edited my fstab for ntfs, I can open the drive, but no files xephyr Linux - Newbie 7 10-26-2004 07:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:47 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration