Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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 just installed Ubuntu. The install was a succes! But I have one problem. I have a bunch of music I would like to listen to off my windows hard drive. I check fstab and its not listed. I checked device manager and saw both my hard drives including the the hard drive with windows. Any ideas
First, you need to find out in which partition music is stored. Usually, it's like this:
C drive-> /dev/hda1
D drive-> /dev/hda5
E drive-> /dev/hda6
F drive-> /dev/hda7
Note that this is for Primary Master.
If the hard drive is Primary slave, replace hda by hdb
For secondary master, it is hdc and for secondary slave, it is hdd
Now, assuming that your music is stored in E drive,
1: login ass root
2: Create a mount point. This is done by typing "mkdir /mnt/edrive" (without quotes)
3: mount the device on the mount point. This is done by "mount /dev/hda6 /mnt/edrive"
Now, all your music is found at /mnt/edrive.
To mount the partition every time automatically, you need to add the following line at the end of the file /etc/fstab
/dev/hda6 /mnt/edrive vfat defaults 0 0
You can change the file system type if it is not vfat. You can try auto.
Thanks for the help that worked but now the it says I dont have the correct permission to acces the folder. How would I got fixing this? This is the error that it pops up "You do not have the permissions necessary to view the contents of "edrive"." How do I go about changing the permisions?
you need to be root to edit that use "su -" in a terminal to become root.
why do people still insist on asying "linux us on my F: drive" or whatever..?? clearly that is just impossible, as windows can't see it, therefore can't give it a drive letter....
put in a line similar to this into the fstab. gid is the group identification number for the group you want to be able to access it. This one works well for me
The owner for this will be the root, but gid sets it up to the group you specify. Umask will set the appropriate permisions. The filesystem will be mount automatically (to the directory you specify, here it is /windows {note that you need to create to folder first before it can be mounted there}). Read through the man pages for mount to get all of the options.
Last edited by kevinlyfellow; 02-26-2005 at 12:46 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.