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 02-14-2006, 01:25 AM   #1
Thulemanden
Member
 
Registered: Sep 2003
Location: Copenhagen, Denmark
Distribution: PC-BSD, PCLOS, MeeGo, Win 7
Posts: 189

Rep: Reputation: 30
Hidden hard drive


I have a 2nd hard disk on my Ubuntu Hoary which I can see and format in QTparted.

However they don't appear in fstab ot through the file managers.

I have tried entering the lines in fstab but it wan't accepted. My added lines are at the end here. What can I do?

# /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 udf,iso9660 ro,user,noauto 0 0
/dev/sda /media/usb0 auto rw,user,noauto 0 0
/dev/sdb /media/usb1 auto rw,user,noauto 0 0
/dev/hdb /media/hdb ext3 defaults 0 1
/dev/hdb1 /media/hdb1 ext3 defaults 0 1
 
Old 02-14-2006, 01:40 AM   #2
dombrowsky
Member
 
Registered: Dec 2005
Location: New York
Distribution: Debian/GNU
Posts: 235

Rep: Reputation: 31
I assume you mounted them?
Code:
$ mount /media/hdb1
and I notice that you have /media/hdb in there. That's the block device, not the partition. I'm not sure if that's correct. Do you only have one partition on the drive?
 
Old 02-14-2006, 03:59 AM   #3
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
You can't put /dev/hdb in there, there has to be a number after it or it won't work.
 
Old 02-14-2006, 08:26 AM   #4
Thulemanden
Member
 
Registered: Sep 2003
Location: Copenhagen, Denmark
Distribution: PC-BSD, PCLOS, MeeGo, Win 7
Posts: 189

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by cs-cam
You can't put /dev/hdb in there, there has to be a number after it or it won't work.

It shows I have this: /dev/hdb1 /media/hdb1 ext3 defaults 0
 
Old 02-14-2006, 08:27 AM   #5
Thulemanden
Member
 
Registered: Sep 2003
Location: Copenhagen, Denmark
Distribution: PC-BSD, PCLOS, MeeGo, Win 7
Posts: 189

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by dombrowsky
I assume you mounted them?

yes I tried but it refused.
 
Old 02-14-2006, 09:04 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
What are the errors?
Did you create the directory /media/hdb1?
 
Old 02-14-2006, 08:07 PM   #7
Thulemanden
Member
 
Registered: Sep 2003
Location: Copenhagen, Denmark
Distribution: PC-BSD, PCLOS, MeeGo, Win 7
Posts: 189

Original Poster
Rep: Reputation: 30
Solved

Quote:
Originally Posted by michaelk
What are the errors?
Did you create the directory /media/hdb1?
No, I didn't know I was supposed to, but I have now.
next step is again adding the line in fstab copied from the rest:

/dev/hdb1 /media/hdb1 auto rw,user,noauto 0 0

and then it worked :-D

The main error was I never created the folder /media/hdb1. I had never guessed that.


Thanks for the solution you gave.
 
Old 02-14-2006, 08:47 PM   #8
Thulemanden
Member
 
Registered: Sep 2003
Location: Copenhagen, Denmark
Distribution: PC-BSD, PCLOS, MeeGo, Win 7
Posts: 189

Original Poster
Rep: Reputation: 30
Addition

Furthermore, I installed KDE knowing it was easier to get desktop icons inserted and I got all my devices neatly entered with proper icons and labels. KDE has a nice Create New Link to device in it's mouse drop down curtain on the desktop.

Adding the 1's put it all in place. (It's trial and error for me, not knowing a heck of a lot about devices and blocks)

Here is the etc/fstab:

# /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 udf,iso9660 user,noauto 0 0
/dev/hdd /media/cdrom1 udf,iso9660 user,noauto 0 0
/dev/sdb1 /media/usb0 auto rw,user,auto 0 0
/dev/sda1 /media/usb1 auto rw,user,auto 0 0
/dev/hdb1 /media/hdb1 auto rw,user,auto 0 0

Last edited by Thulemanden; 02-14-2006 at 09:00 PM.
 
Old 02-14-2006, 09:09 PM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
The 1's are partition numbers. A hard drive can be subdivided into partitions. There is lots of info on the web but in a nutshell an IDE hard drive can be divided into 64 partitions. The first 4 are called primary partitions and all others are logical. In order to create logical partitions one of the primaries is designated an extended partition.

The following command will list the partitions of hda
fdisk -l /dev/hda (that is a small L and you must be root)

Quote:
/dev/hdb1 /media/hdb1 auto rw,user,auto 0 0
This is better.
/dev/hdb1 /media/hdb1 ext3 defaults,user 0 1

See man pages for mount and fstab but
No need to use auto since you know it is formatted as ext3. The 1 at the end means the filesystem will be periodically checked automatically.
using defaults,user means
defaults rw, suid, dev, exec, auto, nouser, and async.
user overrides defaults nouser
 
Old 02-14-2006, 10:01 PM   #10
Thulemanden
Member
 
Registered: Sep 2003
Location: Copenhagen, Denmark
Distribution: PC-BSD, PCLOS, MeeGo, Win 7
Posts: 189

Original Poster
Rep: Reputation: 30
Thanks, Can't help thinking Ubuntu should do this automatically, when other do (MEPIS and Xandros).

I'll update.
 
  


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
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 08:48 AM
2 hard drive in system mirror 1st hard drive sburns76247 Linux - General 2 12-21-2004 01:47 AM
Suse 9.1, XP, Hidden drive, dualbooting problem Greyfoxwolf SUSE / openSUSE 1 10-14-2004 01:51 PM
Grub to access new hard drive and old multi os hard drive ? gedi1 Linux - Hardware 0 06-03-2004 12:01 PM
STUCK--Trying to copy old Hard Drive to new Hard Drive. Please Help tsw Linux - Newbie 8 05-26-2004 02:47 AM

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

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