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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-21-2006, 09:44 PM
|
#1
|
Member
Registered: Jan 2006
Location: USA
Distribution: Any distro I can get my hands on!
Posts: 162
Rep:
|
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.
|
|
|
03-21-2006, 10:48 PM
|
#2
|
Senior Member
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705
Rep:
|
You did everything right except...if you make an ext2 fs you don't want to specify ext3 in the fstab!
|
|
|
03-21-2006, 10:58 PM
|
#3
|
Member
Registered: Jan 2006
Location: USA
Distribution: Any distro I can get my hands on!
Posts: 162
Original Poster
Rep:
|
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.
|
|
|
03-21-2006, 11:22 PM
|
#4
|
Senior Member
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705
Rep:
|
Hey man, you're very welcome. Besides, simple mistakes may be harder to find, but they're a lot easier to fix!
|
|
|
All times are GMT -5. The time now is 04:29 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|