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 04-12-2016, 12:27 AM   #1
bomurf
LQ Newbie
 
Registered: Mar 2016
Posts: 8

Rep: Reputation: Disabled
Rescue mode "No Linux Partitions" - how to create an fstab file in this case?


hi,

i'm currently playing around on a centos7 virtual machine and i've installed trouble-maker. one of the modules that i drew deleted the fstab file. i rebooted to simulate the actual problem and booted into rescue mode. working my way through the prompts i got to the message that usually says it will mount the system under /mnt/sysimage except for i received the "no linux partitions found" message. after hitting ok, i couldn't run chroot which i was going to use to create the new fstab file. since i couldn't do this, what alternative options would i have to create the fstab file at this point?

thanks in advance!
 
Old 04-12-2016, 01:37 AM   #2
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,613

Rep: Reputation: 433Reputation: 433Reputation: 433Reputation: 433Reputation: 433
fstab is automatically created by the system under normal booting/loading process, so you don't have to create the *fstab* which is normally the static information concerning the file systems available. However if you want to create a new fstab you can get a sample and guide here.

Also under a running linux system you can read the manuals by these terminal commands
Code:
man fstab
man mount
Hope that helps. Good luck.

m.m
 
Old 04-12-2016, 02:06 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,833

Rep: Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820
Quote:
Originally Posted by malekmustaq View Post
fstab is automatically created by the system under normal booting/loading process
Nope.
Installers may create it, but not normal re-boot.

As for the OP, you presumably did this to learn. What effort have you made other than relying on sysimage ?. What tools do you have available, what resources - particularly system layout ?.
Did you attempt to set up the chroot yourself ?.
What does sosreport have in it ?.
 
Old 04-12-2016, 02:16 AM   #4
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,613

Rep: Reputation: 433Reputation: 433Reputation: 433Reputation: 433Reputation: 433
ah yea i forgot, that's something taken for granted by the user.
thank you for reminding: it was/is installers that created.
anyway i have posted him a guide for creating a new one.
 
Old 04-12-2016, 02:34 AM   #5
bomurf
LQ Newbie
 
Registered: Mar 2016
Posts: 8

Original Poster
Rep: Reputation: Disabled
thanks for the quick replies. yes, i'm doing this to learn. having fun with the trouble-maker program. other than sysimage, i tried things i googled via grub2. sosreport, system layout...looks like i've got a lot of learning to do. never even heard of sosreport up this point, lol.
 
Old 04-12-2016, 02:53 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,833

Rep: Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820
If you got a sosreport generated it will have a good deal of diagnostic info - mainly in the first third or so. But no fstab if it is deleted.
For that you'll have to manually chroot into your system by the looks of it - handy knowledge to have BTW.
 
  


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
What are the options "Nosuid" "mode" "size" in /etc/fstab? tuxfiles.org does not help pstein Linux - Newbie 1 11-16-2012 01:58 AM
* KipBond "rescue" mode can't mount filesystem w/ LABEL=/ in fstab KipBond Red Hat 0 02-06-2008 08:09 PM
How to install GRUB from "linux rescue" mode? iguthrie Linux - General 10 06-14-2007 07:45 AM
Hard disk now displaying "not a valid block device" when booting in rescue mode alphasure Linux - Hardware 4 06-05-2003 08:49 AM


All times are GMT -5. The time now is 08:13 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