LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-21-2006, 09:44 PM   #1
natewlew
Member
 
Registered: Jan 2006
Location: USA
Distribution: Any distro I can get my hands on!
Posts: 162

Rep: Reputation: 30
Cannot Mount slave Hard Drive


I took my 80gig hard drive and formatted it with fdisk and here is what it looks like.

Quote:
Disk /dev/hdb: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 1 9606 77160163+ 83 Linux
/dev/hdb2 9607 9964 2875635 82 Linux swap / Solaris
Then I ran:

Quote:
mkfs.ext2 /dev/hdb1

mkswap /dev/hdb2
Here is what fstab looks like:

Quote:
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hda1 / ext3 defaults,errors=remount-ro 0 1
/dev/hda5 none swap sw 0 0
/dev/hdc /media/cdrom0 iso9660 ro,user,noauto 0 0
/dev/hdd /media/cdrom1 iso9660 ro,user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
/dev/sda1 /mnt/usb vfat noauto,user,rw 0 0
/dev/hdb1 /opt2 ext3 defaults 0 0
/dev/hdb2 none swap defaults 0 0

When I try to mount the drive it says:

Quote:
home:/home/# mount /opt2
mount: wrong fs type, bad option, bad superblock on /dev/hdb1,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

I really don't know what I am doing wrong. If anyone has any advice I would be very grateful.
 
Old 03-21-2006, 10:48 PM   #2
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
You did everything right except...if you make an ext2 fs you don't want to specify ext3 in the fstab!
 
Old 03-21-2006, 10:58 PM   #3
natewlew
Member
 
Registered: Jan 2006
Location: USA
Distribution: Any distro I can get my hands on!
Posts: 162

Original Poster
Rep: Reputation: 30
I do thank you very much for the fast reply. That fixed my problem instantly. I can't believe I made such a simple mistake.

Last edited by natewlew; 03-21-2006 at 11:00 PM.
 
Old 03-21-2006, 11:22 PM   #4
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
Hey man, you're very welcome. Besides, simple mistakes may be harder to find, but they're a lot easier to fix!
 
  


Reply



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
Slave Hard Drive dudeman41465 Linux - Hardware 12 06-28-2005 06:19 AM
linux wont mount my slave drive darksmiley Linux - Hardware 2 05-28-2004 06:58 PM
3rd Hard drive as slave to CDRW?? rberry88 Linux - General 2 12-07-2003 12:00 PM
Slave Drive Mount Error mike35 Linux - Newbie 2 10-29-2003 07:19 PM
installing Linux on slave hard drive Creightin Linux - Software 2 03-12-2001 09:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:52 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
Open Source Consulting | Domain Registration