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.
|
 |
11-27-2004, 04:30 AM
|
#1
|
LQ Newbie
Registered: Jan 2004
Location: New York
Posts: 22
Rep:
|
mounting hard drive
Hey, first off let me just start with saying thank you all for all the help you've given me thus far.
Now im back with another small problem. I wanted to be able to listen to my mp3 files on windows and linux. So i decided to move all my files on to a fat 32 partition thats about 4 gigs in size. Those files use to be on a NTFS file system, but for some reason i cant get Fadora Core 3 to mount that hard drive. And i was told that it should be able to mount a fat 32, so thats why i went ahead and did that.
Now im cant figure out how to do it. When i type mount into my terminal i get this
[root@ool-18be212d ~]# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/hdb1 on /boot type ext3 (rw)
none on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
[root@ool-18be212d ~]#
I really dont know wha much of this means but im hoping that it can help you help me.
And just for the record, i have two hard drives in my system. The first hard drive is windows and it has a totoal of 3 parititons on it, one of those partitions being the fat 32 with the music files on it. And on the Second hard drive i have linux.
Please help if you have any suggestions. Thanks in advance.
|
|
|
11-27-2004, 05:20 AM
|
#2
|
Senior Member
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555
Rep:
|
Since you have multiple partitions on the 1st hard drive which is hda, you would have to use the following command
1. Know where you want to mount the music and make the directory
- mkdir /mnt/music
2. Mount the fat32 partition. I'm assuming its on the 2nd partition of the 1st drive.
- mount -t vfat /dev/hda2 /mnt/music
That should do it, but if you get an error post it
good luck
|
|
|
11-27-2004, 05:40 AM
|
#3
|
LQ Newbie
Registered: Jan 2004
Location: New York
Posts: 22
Original Poster
Rep:
|
[root@ool-18be212d thugpoet22]# mount -t vfat /dev/hda2 /mnt/music
mount: mount point /mnt/music does not exist
[root@ool-18be212d thugpoet22]# mount -t vfat /dev/hda5/mnt/music
Usage: mount -V : print version
mount -h : print this help
mount : list mounted filesystems
mount -l : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
mount -a [-t|-O] ... : mount all stuff from /etc/fstab
mount device : mount device at the known place
mount directory : mount known device here
mount -t type dev dir : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
mount --bind olddir newdir
or move a subtree:
mount --move olddir newdir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using -L label or by uuid, using -U uuid .
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
For many more details, say man 8 mount .
[root@ool-18be212d thugpoet22]#
thats what i got, i know the location is
/dev/hda5
but you put music at the end, why? I did not name the partition Music?
|
|
|
11-27-2004, 05:45 AM
|
#4
|
LQ Newbie
Registered: Jan 2004
Location: New York
Posts: 22
Original Poster
Rep:
|
Disk /dev/hda: 20.0 GB, 20020396032 bytes
240 heads, 63 sectors/track, 2586 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 1903 14386648+ 7 HPFS/NTFS
/dev/hda2 1904 2586 5163480 f W95 Ext'd (LBA)
/dev/hda5 1904 2448 4120168+ b W95 FAT32
/dev/hda6 2449 2586 1043248+ 7 HPFS/NTFS
Disk /dev/hdb: 10.2 GB, 10262568960 bytes
255 heads, 63 sectors/track, 1247 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 * 1 13 104391 83 Linux
/dev/hdb2 14 1247 9912105 8e Linux LVM
this is all of my information i want to mount the "/dev/hda5"
Thanks in advance
|
|
|
11-27-2004, 06:41 AM
|
#5
|
Senior Member
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555
Rep:
|
Quote:
Originally posted by thug_poet22
[root@ool-18be212d thugpoet22]# mount -t vfat /dev/hda2 /mnt/music
mount: mount point /mnt/music does not exist
|
The folder you are mounting to must exist, you haven't created it or don't have permission(not likely), you are mounting the partition /dev/hda5 to a mount point of /mnt/music
As root
mkdir /mnt/music
mount -t vfat /dev/hda5 /mnt/music
CONCEPTUAL mounting
What device do I want to mount? /dev/hda5
Where do I want those file to be? /mnt/music or /root/my_music
how the command is parsed?
Mount
what filesystem? -t vfat
what linux device(parition)? /dev/hda5
The files should be located at? /mnt/music or /root/my_music
Total command once the directory exists
mount -t vfat /dev/hda5 /mnt/music
OR
mount -t vfat /dev/hda5 /root/my_music
If I'm not making sense, let me know
Last edited by musicman_ace; 11-27-2004 at 06:48 AM.
|
|
|
11-28-2004, 12:33 AM
|
#6
|
LQ Newbie
Registered: Jan 2004
Location: New York
Posts: 22
Original Poster
Rep:
|
this is what i got when i tried that,
[thugpoet22@ool-18be212d ~]$ su
Password:
[root@ool-18be212d thugpoet22]# mkdir /mnt/music
mkdir: cannot create directory `/mnt/music': File exists
[root@ool-18be212d thugpoet22]# mount -t vfat /dev/hda5 /mnt/music
mount: /dev/hda5 already mounted or /mnt/music busy
mount: according to mtab, /dev/hda5 is already mounted on /mnt/music
[root@ool-18be212d thugpoet22]#
Its saying that /dev/hda5 is already mounted on /mnt/music, if thats the case how do i put an icon on the desktop so i can go into that partition.
|
|
|
11-28-2004, 05:48 AM
|
#7
|
Senior Member
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555
Rep:
|
1. /mnt/music does exist
2. /dev/hda5 is mounted somewhere.
The error doesn't necessarily imply it is at /mnt/music, it said /mnt/music was busy meaning something is there.
3. To create a "link" to it assuming KDE
{right click->new->device->HD device}
Click the Device tab
type "/dev/hda5"
You didn't really say if you can actually get to these files though?
|
|
|
11-28-2004, 09:04 AM
|
#8
|
LQ Newbie
Registered: Jan 2004
Location: New York
Posts: 22
Original Poster
Rep:
|
when i tried to mount that drive this is what i got.
mount: can't find /dev/hda5 in /etc/fstab or /etc/mtab
do i have to change where its looking for that drive, maybe i have ot edit the /etc/fstab or the /etc/mtab.
I have a friend that things going through all this trouble isn't worth using linux. But i keep telling him that you been with windows so long that you dont even remember when you were in the learning process. And when i use windows i dont feel like im learning anything. Thats why i figured i would try Linux out and im glad i did. Even when the problems seem hard to figure out, there never impossible.
|
|
|
11-28-2004, 09:36 AM
|
#9
|
Member
Registered: Nov 2004
Location: Germany
Distribution: Debian Testing
Posts: 332
Rep:
|
If you do this:
[root@ool-18be212d thugpoet22]# mount -t vfat /dev/hda5 /mnt/music
and you get that:
mount: /dev/hda5 already mounted or /mnt/music busy
mount: according to mtab, /dev/hda5 is already mounted on /mnt/music
then you have already mounted your partition. To have it automatically mounted every time you start Linux, add the following line to the end of /etc/fstab :
/dev/hda5 /mnt/music vfat defaults 0 0
Btw:
ls -l /mnt/partition
should give you a quick verification of the success of the mount.
Last edited by addy86; 11-28-2004 at 10:04 AM.
|
|
|
11-29-2004, 11:31 PM
|
#10
|
LQ Newbie
Registered: Jan 2004
Location: New York
Posts: 22
Original Poster
Rep:
|
Quote:
Originally posted by addy86
If you do this:
[root@ool-18be212d thugpoet22]# mount -t vfat /dev/hda5 /mnt/music
and you get that:
mount: /dev/hda5 already mounted or /mnt/music busy
mount: according to mtab, /dev/hda5 is already mounted on /mnt/music
then you have already mounted your partition. To have it automatically mounted every time you start Linux, add the following line to the end of /etc/fstab :
/dev/hda5 /mnt/music vfat defaults 0 0
Btw:
ls -l /mnt/partition
should give you a quick verification of the success of the mount.
|
hey the last part of your instructions are kinda confusing.
What did u want me to do with this,
/etc/fstab :
/dev/hda5 /mnt/music vfat defaults 0 0
Thanks in advance for clearing that up.
|
|
|
11-30-2004, 12:50 AM
|
#11
|
LQ Newbie
Registered: Jan 2004
Location: New York
Posts: 22
Original Poster
Rep:
|
And when i put in,
/dev/hda5 /mnt/music vfat defaults 0 0
I get, this
[root@ool-18be212d thugpoet22]# /dev/hda5 /mnt/music vfat defaults 0 0
bash: /dev/hda5: Permission denied
Thanks for the help.
|
|
|
11-30-2004, 06:40 AM
|
#12
|
Member
Registered: Nov 2004
Location: Germany
Distribution: Debian Testing
Posts: 332
Rep:
|
/dev/hda5 /mnt/music vfat defaults 0 0
is no command.
Start your favorite text editor (as root), open the file '/etc/fstab', then add the above line to the end of the file, Finally save it.
|
|
|
12-08-2004, 08:23 PM
|
#13
|
Member
Registered: Sep 2003
Distribution: Slackware FreeBSD Gentoo Novell
Posts: 73
Rep:
|
ive been having the same problem.........ive edit /etc/fstab and i have read write and execute permission.....but when i go to the folder where this drive is mounted i get access denied!!!!111oneone
what do i do?
|
|
|
01-04-2005, 01:49 AM
|
#14
|
LQ Newbie
Registered: Jan 2003
Location: Alberta canada
Distribution: Redhat 8.0
Posts: 5
Rep:
|
i'm having a problem mounting a partitioned hard drive....
Ok.. i have a 120 maxtor hard drive, running windows, then a 10 gig running linux. dual boot.
the 120 gig is partitioned into 4 drives,
I run this command
Code:
mount -t vfat /dev/hda2 /mnt/d:
and this is the error
mount: wrong fs type, bad option, bad superblock on /dev/hda2,
or too many mounted file systems
(aren't you trying to mount an extended partition,
instead of some logical partition inside?)
now, I had to use Partition magic 8 to partition this hard drive, which is running windows 98 2nd edit.
So, anyone have any ideas why its not taking it???
i've tried adding this to /etc/fstab
Code:
/dev/hda2 /mnt/d: vfat user,defaults
but same error...
|
|
|
01-04-2005, 02:11 AM
|
#15
|
LQ Newbie
Registered: Jan 2003
Location: Alberta canada
Distribution: Redhat 8.0
Posts: 5
Rep:
|
Ok, well i did some fiddling around, and in redhat 9..
I used the Hardware Browser under System tools...
When i looked at my hard drives, it listed this...
hda1 as my main partition, no problems, we all knew this...
now, hda2 was extended partition, that held
hda5, hda6, hda7 <---- vfat partitions...
so when i tried to mount hda2, thats the error, when i tried to mount hda5 it worked without a problem..
unfortunately, i can't get it to mount the other two, hda6, hda7...
Is there a limit to the amount of drives mounted???
|
|
|
All times are GMT -5. The time now is 07:12 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
|
|