Linux - GeneralThis 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
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.
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.
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.
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
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.
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.
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.
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"
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.