LinuxQuestions.org
Visit Jeremy's Blog.
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-13-2007, 11:39 PM   #1
steelheat
Member
 
Registered: Jun 2006
Location: Western US of A
Distribution: kubuntu 14.04,Registered user #419541 with the Linux Counter
Posts: 53

Rep: Reputation: 7
Unable To Edit Fstab


I can mount my hda1 and my external USB hard drive, but I can't mount my hdb1 internal
hard drive and each time I edit the "fstab" file to make this possible I get
10,000 lines of this during bootup:

Cannot execute "/sbin/getty"
Init Cannot execute "/sbin/getty"
Init execute "/sbin/getty"
Init Id "2" respanning too fast"
disabled for 5 minutes

After 5 minutes it repeats it all over again, over and over non-stop. One day
I even left it for a couple of hours just to see if it would break out of it,
it did not.

Next, I boot using an old SimpleMepis CD, go into fstab and delete what I had
edited in. Reboot and all is well again.

The crazy thing about this is, on the second hard drive with etch installed
on it too I did the hole thing all over again. Had the same exact problem.

I use kedit or nano to edit the "fstab" file and have used both on all systems
files without ever any problems.

Heres a copy of my fstab and the only thing I have edited in this file is the
one line shown below, line No.5: (I added the line numbers just now)

1 # <file system> <mount point> <type> <options> <dump> <pass>
2 proc /proc proc defaults 0 0
3 /dev/hda1 / ext3 defaults,errors=remount-ro 0 1
4 /dev/hda5 none swap sw 0 0
5 /dev/hdb1 /media/hdb1 auto rw,user,noauto 0 0
6 /dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
7 /dev/scd0 /media/cdrom1 udf,iso9660 user,noauto 0 0
8 /dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
9 /dev/sda1 /media/usb0 auto rw,user,noauto 0 0

After the first hang I switched to nano from kedit and it didn't matter it
still hung.

I have two internal hard drives with etch installed on both and a USB external
backup hard drive. I use GRUB to boot the two internal hard drives.

On the first hard drive(hda1) I'm on my second install of etch because I had
installed LVM the first time but could not find a good Howto on how to set it
up and use it. While LVM was installed I had the same problem not being able
to mount and get to my second hard drive(hdb1).

Not knowing anything about LVM I tried to edit the fstab but it (LVM) would
change all my edits right back to what they were when I closed the file.(I'M
assuming LVM was the culprit.)

Then I re-installed to both drives without LVM and I still cannot mount to the
other drive from the one I'm on.

Before etch,I used both drives with these dists Ubuntu,Kbuntu and SimpleMempis
installed without this mounting problem.

BTW, in a little over a week I Googled up hundreds of these boot hangs:
"Cannot execute "/sbin/getty""
But not one was related to editing the fstab. I did find a lot that blamed it
on bugs in the distro.

I have to leave this now, I got other task I have to go take care of then I
check back in. I want to "Thank you in advance" for taking a look at this.
I do need help as you can see!
 
Old 12-14-2007, 12:48 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL
Distribution: Funtoo
Posts: 6,926

Rep: Reputation: 128Reputation: 128
I would suggest you change line 5 in /etc/fstab to:
Code:
/dev/hdb1        /media/hdb1        <file system>    defaults         1   2
where <file system> is the proper file system, such as ext3, reiserfs, jfs, etc.

If that works for you, fine.

If not, you might try commenting that line in /etc/fstab, then boot the computer. Once it is booted, check your /media/hdb1 permissions. Then open a terminal as root and issue "tail -f /var/log/messages" and leave that terminal open. Then in another terminal uncomment that line in /etc/fstab and issue "mount" to see that the drive is not mounted. Then issue "mount -a" and see what errors you get, and if it mounts the drive. Switch back to the terminal reading the /var/log/messages file and see what it outputs.
 
Old 12-14-2007, 12:48 PM   #3
steelheat
Member
 
Registered: Jun 2006
Location: Western US of A
Distribution: kubuntu 14.04,Registered user #419541 with the Linux Counter
Posts: 53

Original Poster
Rep: Reputation: 7
Unable To Edit Fstab

Thank you Bruce Hill

"BINGO" I got it!
Somehow when I created my original mount points I used /medis/hda1 as the mount point, over a week ago. Well it don't work on my system for some reason or another, and I didn't know that.

So, Goggling and trying, Goggling and trying so many different thing it just never occurred to me that I didn't have a mount point. But, now I do.

I used /mnt/hdb1 instead of /media/hdb1 and that worked. Your "check your /media/hdb1 permissions."
got me thinking. So, I re-did my mount point and permissions (first, trying the /media/hdb1) and now I can mount the other drive from where I'm working.

Bruce Hill Thanks a MILLION!
what a bunch of crap I put myself through.
well, maybe this just might help someother hardhead
from a lot of lost time.

Last edited by steelheat; 12-14-2007 at 12:52 PM.
 
  


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
Can't edit fstab?? hulk321 Linux - Software 12 07-04-2007 01:42 PM
fstab not edit-able? lefty.crupps MEPIS 1 06-06-2005 05:36 PM
Unable to edit fstab... problems with ext. usb hdd removal gardyloo Linux - Newbie 1 12-27-2003 06:35 PM
edit fstab - what i ve to do ? thinkdifferent Linux - Newbie 4 12-23-2003 04:20 PM
edit fstab LinuxOG Linux - Distributions 2 09-01-2003 10:27 AM


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