LinuxQuestions.org
Latest LQ Deal: Linux Power User 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-20-2003, 07:20 PM   #1
pibby
Member
 
Registered: Oct 2003
Location: Houston, TX
Distribution: Debian Sid
Posts: 100

Rep: Reputation: 15
Mounting / fstab problem


Hello all! I am having a problem mounting my second harddrive upon boot. I receive the following error:

Code:
mount: wrong fs type, bad option, bad superblock on /dev/hdb1, or too many mounted file systems.
My /etc/fstab file is as follows:

Code:
LABEL=/                 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
##LABEL=/data             /data                   ext3    defaults        0 0
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /proc                   proc    defaults        0 0
none                    /dev/shm                tmpfs   defaults        0 0
/dev/hda3               swap                    swap    defaults        0 0
/dev/cdrom              /mnt/cdrom              udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdrom1             /mnt/cdrom1             udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0                /mnt/floppy             auto    noauto,owner,kudzu 0 0
/dev/hda5 		/mnt/media		ext3 	defaults	0 0
/dev/hdb1		/mnt/media_2		ext3	defaults	0 0
As root, fdisk -l yeilds:
Code:
Disk /dev/hda: 61.4 GB, 61475807232 bytes
255 heads, 63 sectors/track, 7474 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
                                                                                
   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1        13    104391   83  Linux
/dev/hda2            14      1097   8707230   83  Linux
/dev/hda3          1098      1178    650632+  82  Linux swap
/dev/hda4          1179      7474  50572620    f  Win95 Ext'd (LBA)
/dev/hda5          1179      7474  50572588+  83  Linux
                                                                                
Disk /dev/hdb: 30.0 GB, 30020272128 bytes
240 heads, 63 sectors/track, 3877 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes
                                                                                
   Device Boot    Start       End    Blocks   Id  System
/dev/hdb1             1      3877  29310088+  83  Linux
I am trying to make both hardrives accessible in my local network (I will be using NFS), but in the meantime I have commented out the lines in /etc/exports.
Upon booting, the /dev/hda5 (/mnt/media) is fine, shows up with no problem. /dev/hdb1 does not show up at all. However, when I open a terminal and log in as root then I can mount /dev/hdb1 /mnt/media_2 with no problems. Why won't it mount at boot?!
Any help would be greatly appreciated!

BTW, I am running Fedora Core 1

Last edited by pibby; 12-20-2003 at 07:30 PM.
 
Old 12-20-2003, 09:08 PM   #2
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
strange...
try replaceing the fstab entry where it says defualts to auto,user,mask=0
thats all i can think.

also. maybe make sure the access rights are okay.
 
Old 12-20-2003, 09:15 PM   #3
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Did you remember to format /dev/hdb1?
 
Old 12-20-2003, 09:22 PM   #4
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
fdisk says it is of a linux format, so linux should be able to mount it whatever it has on it.

ohh with gives me an idea, are you sure its ext3, try ext2.
 
Old 12-20-2003, 09:47 PM   #5
pibby
Member
 
Registered: Oct 2003
Location: Houston, TX
Distribution: Debian Sid
Posts: 100

Original Poster
Rep: Reputation: 15
I have not yet tried it as ext2, but this is the guide I followed:
http://www.redhat.com/docs/manuals/l...t3-create.html
I made it a primary partion... the manual didn't specify primary/extended, so I took a guess.
I specified the type during fdisk as well as running mkfs -t ext3 /dev/hdb1
I will try it as ext2, but I don't think that will fix it.

Also, thanks for the quick replies :-D
 
Old 12-31-2003, 04:51 AM   #6
Jerrymurry
LQ Newbie
 
Registered: Dec 2003
Posts: 1

Rep: Reputation: 0
Did you ever get this to work?

Hi Piddy,

I was just reading your original message and was wondering if you ever figured out what the problem was?

I have a very similar error message when I boot.

Thanks,
Jerry
 
Old 12-31-2003, 11:09 PM   #7
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
Fdisk will show Linux even if it is not formatted. I usually cheat and mount the drive manually like this:

mount /dev/hdb1 /mnt/whereever

Then I go look in mtab and see what it mounted it as or type in just mount and see what it reports the file system as. Then add that to fstab.

I cheat a lot. It works.

Later

 
  


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
fstab problem: mount: can't find dvd in /etc/fstab or /etc/mtab Nikon01 Slackware 5 11-17-2006 07:15 AM
Problem with mounting and fstab. N00bDeb Debian 7 11-17-2004 06:58 PM
fstab mounting subaruwrx Linux - Newbie 5 10-25-2004 08:36 AM
Mounting with /etc/fstab cpp Linux - General 4 04-09-2004 04:28 PM
problem mounting VFAT from fstab Kocil Linux - General 3 03-05-2003 03:02 AM


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