LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 11-14-2006, 02:22 PM   #1
sparkbot
LQ Newbie
 
Registered: Nov 2006
Location: Sonoran desert
Distribution: SUSE 10.1
Posts: 24

Rep: Reputation: 15
command gurb> cp /etc/fstab does not show "/"


I went through the tutorial on this site " grub troubleshooting". I also read all the posts through searches on the term "grub".

I in running the questions to Grub (grub>find) I found an error in the grub menu --that root is on (hd2,1), it had been labled (hd1,1). So I changed the grub menu to reflect the location of root. Root = /dev/sda2 was the correct entry for fstab and fstab showed that location for root.

Yet when I run grub > root (hd2,1)
(i get the proper file info response} -- then --
grub > cat /etc/fstab
the output starts with:
/dev/sda3 /home XXXxXXXX (this jives w/fstab and is true)

there is no listing for :
/dev/sda2 / xxxxxxxx

when aa root I open fstab in kate text editor the entry for root is the first entry(/dev/sda2). When I ask grub to cp the fstab--it's missing.
I'm getting closer to a fix, almost ready to try a boot after the corrections to the grub menu, but the fact that grub doesn't cat the root is off putting. Is this normal grub behavior or should I be looking to change an entry somewhere? This is a single boot Suse 10.1 setup.Thanks.
Edit --I ran grub > cat /etc/fstab and no boot shown, not grub > cp /etc/fstab

Last edited by sparkbot; 11-14-2006 at 03:03 PM.
 
Old 11-14-2006, 03:29 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Instead of trying to cat fstab from the grub prompt, try it from a bash shell prompt.
 
Old 11-14-2006, 07:28 PM   #3
sparkbot
LQ Newbie
 
Registered: Nov 2006
Location: Sonoran desert
Distribution: SUSE 10.1
Posts: 24

Original Poster
Rep: Reputation: 15
Thank you. It shows ok with the shell.
I am much closer to fixing, at least now I can boot and get back in thanks to an image I burned to cd of a program "Super Grub Disk". That will boot me into suse, and it looks to have the stuff (tools) to figure out my boot problem. Nice to be able to reboot after a faile apply of ATI drivers, I put them back in aand then was able to reboot and get back into suse.
 
  


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
bash script: using "select" to show multi-word options? (like "option 1"/"o zidane_tribal Programming 7 12-19-2015 01:03 AM
Shell Script: Find "Word" Run "Command" granatica Linux - Software 5 07-25-2007 07:42 AM
The command "df -h" no show me the size of partition true! sandrobr Linux - Enterprise 7 01-03-2005 03:31 AM
Tiny Sofa 2.0 - I thought "halt", "reboot" were only root command ?? sorcerer Linux - Distributions 1 08-21-2004 03:28 PM
"segmentation error" when issuing "useradd" command through terminal with RH 9.0 kaihuang Linux - General 0 10-21-2003 11:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:13 AM.

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
Open Source Consulting | Domain Registration