LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-01-2006, 12:40 PM   #1
jesuscakes
Member
 
Registered: May 2006
Posts: 83

Rep: Reputation: 15
Where is my second HD on the filesystem...


I am running Fedora Core 5 and Windows on two partitions on a 300 gig HD. I have a second 80 gig HD for music installed as well that is empty and formatted with a Fat 32 system. My question is how do I find it so I can put music there through Fedora.
 
Old 06-01-2006, 01:44 PM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Depends on which bus the second hard drive is on, to find it do something like;

fdisk -l ;(that is the lower case letter 'L' and not the number one)

Read 'man mount' from the console or xterm session for the details and additional options, assumming the second hard drive is on the primary channel of the second IDE interface try typing something like(as root);

mkdir /media/Music
mount -t vfat /dev/hdc1 /media/Music

You might want to have a look at your /etc/fstab file beforehand, the hard drive and FAT32 partition may already be available.
 
Old 06-01-2006, 01:48 PM   #3
jesuscakes
Member
 
Registered: May 2006
Posts: 83

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Lenard
Depends on which bus the second hard drive is on, to find it do something like;

fdisk -l ;(that is the lower case letter 'L' and not the number one)

Read 'man mount' from the console or xterm session for the details and additional options, assumming the second hard drive is on the primary channel of the second IDE interface try typing something like(as root);

mkdir /media/Music
mount -t vfat /dev/hdc1 /media/Music

You might want to have a look at your /etc/fstab file beforehand, the hard drive and FAT32 partition may already be available.
It is an SATA on the other master slot.
 
Old 06-01-2006, 01:48 PM   #4
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
If it's a secondary harddisk (slave), then it's probably called hdb am I right (the primary HD is hda)? In that case you'll just need to create a directory for it somewhere, if it already doesn't have; run mount in console to see the mounted filesystems, and you should see if the HD is mounted or not.

If it's not, then make it available for easy mounting through fstab: first create the mountpoint (in this example /media/musichd which you can change as you like), then add an fstab entry with some options (in this example I'll make it mount automatically at bootup, and be accessible by _all_ users through umask, and be read-write mounted since it's fat32). So, get root privileges by either logging in as root, doing su or running the commands through sudo:

1) create mountpoint
Code:
mkdir /media/musichd
2) add fstab entry
Code:
nano -w /etc/fstab
change the red-coloured part to be your favourite editor (vim,gedit,kate,kwrite,joe,emacs,...)..
3) here's the line you add to the bottom of the fstab file you opened a moment ago:
Quote:
/dev/hdb1 /media/musichd vfat rw,users,auto,umask=0222 0 0
(if it's complaining about the filesystem type, change "vfat" to "auto" to make sure)
4) mount-and-enjoy:
Code:
mount -a
after that you should be able to use the HD by opening /media/musichd which should get mounted every time you boot. If you get error telling you no such device as /dev/hdb1 exists, your HD appears under a different name; check out what hdXX-files you have in /dev/ and try them instead of hdb1 in your fstab config.
 
Old 06-01-2006, 02:29 PM   #5
jesuscakes
Member
 
Registered: May 2006
Posts: 83

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by b0uncer
If it's a secondary harddisk (slave), then it's probably called hdb am I right (the primary HD is hda)? In that case you'll just need to create a directory for it somewhere, if it already doesn't have; run mount in console to see the mounted filesystems, and you should see if the HD is mounted or not.

If it's not, then make it available for easy mounting through fstab: first create the mountpoint (in this example /media/musichd which you can change as you like), then add an fstab entry with some options (in this example I'll make it mount automatically at bootup, and be accessible by _all_ users through umask, and be read-write mounted since it's fat32). So, get root privileges by either logging in as root, doing su or running the commands through sudo:

1) create mountpoint
Code:
mkdir /media/musichd
2) add fstab entry
Code:
nano -w /etc/fstab
change the red-coloured part to be your favourite editor (vim,gedit,kate,kwrite,joe,emacs,...)..
3) here's the line you add to the bottom of the fstab file you opened a moment ago:

(if it's complaining about the filesystem type, change "vfat" to "auto" to make sure)
4) mount-and-enjoy:
Code:
mount -a
after that you should be able to use the HD by opening /media/musichd which should get mounted every time you boot. If you get error telling you no such device as /dev/hdb1 exists, your HD appears under a different name; check out what hdXX-files you have in /dev/ and try them instead of hdb1 in your fstab config.
The drive is showing up as both sdb and sdb1.

I did what you said and it bitched about FS type so I changed it to auto now I get: "mount: you must specify the filesystem type"
 
Old 06-01-2006, 04:03 PM   #6
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
What was the exact error message when you tried to specify the filesystem type as vfat? Also, the drive and partition show up as sdxy because it's a serial ATA disk; hdxy is for parallel ATA (IDE) devices.
 
Old 06-01-2006, 05:15 PM   #7
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Quote:
Originally Posted by jesuscakes
The drive is showing up as both sdb and sdb1.

I did what you said and it bitched about FS type so I changed it to auto now I get: "mount: you must specify the filesystem type"
Check the /etc/filesystems file, do you have a line entry for vfat??? If not then add one.
 
Old 06-01-2006, 05:54 PM   #8
jesuscakes
Member
 
Registered: May 2006
Posts: 83

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Lenard
Check the /etc/filesystems file, do you have a line entry for vfat??? If not then add one.
Here is the files cotents:

"ext3
ext2
nodev proc
nodev devpts
iso9660
vfat
hfs
hfsplus"

Do you think maybe I should try sdb1 instead?
 
Old 06-01-2006, 05:57 PM   #9
jesuscakes
Member
 
Registered: May 2006
Posts: 83

Original Poster
Rep: Reputation: 15
I changed it to sdb1 and vfat now it works flawlessly.
 
Old 06-01-2006, 11:31 PM   #10
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Yes, you need to mount the partition rather than the device itself.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DISCUSSION: Virtual Filesystem: Building a Linux Filesystem from an Ordinary File mchirico LinuxAnswers Discussion 0 10-28-2004 10:35 PM
Encrypted Root Filesystem HOWTO and /dev filesystem tmillard Linux From Scratch 0 10-18-2004 03:58 PM
What's in a / filesystem? Erik Thorsson *BSD 2 09-23-2004 12:48 AM
Which Filesystem to Use? Kevir Linux - Newbie 4 08-18-2004 08:16 PM
Which filesystem you use? Eits0 Linux - General 33 09-03-2002 09:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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