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've just installed Linux.. Learned the console and such with Sams Teach Yourself Red Hat 9 in 24 hours.. It was pretty interesting, but didn't really tell me anything past the console.
But anyways.. I have a partiton with all my music on it, and I was wondering if there was a way to have it show up in linux. It's alot of music, and I don't want to copy it all from CD to my linux partition cause then I wouldn't have any room..
Please be clear and simple as possible.. I don't understand all the terms yet, and don't assume I know anything past opening a window and using simple Console commands..
well first we have to cover a couple of things ....
what type of filesystem is on that drive with all your music (i assume fat32 or ntfs) but you'll have to tell us that ...
secondly, i am sure the book covered how to switch to your root user, so type :
su -
and then the root password, and type :
fdisk -l
and post the output and for you to tell us which is the music drive ... and if it is in fact a fat or ntfs drive we will be able to see for ourselves, and then we can tell you how to mount it and access it ..
Disk /dev/hda: 40.0 GB, 40000000000 bytes
255 heads, 63 sectors/track, 4863 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 3009 24169288+ 7 HPFS/NTFS
/dev/hda2 3009 4863 14885640 f Win95 Ext'd (LBA)
/dev/hda5 3009 3648 5133208+ 7 HPFS/NTFS
/dev/hda6 3649 4224 4619128+ 7 HPFS/NTFS
/dev/hda7 4225 4242 144553+ 83 Linux
/dev/hda8 4243 4371 1036161 82 Linux swap
/dev/hda9 4372 4862 3943926 83 Linux
I believe the Music one is hda5. But I wouldn't mind being able to see both 5 and 6. I dunno what 2 is though.. I should only have 6 partitions... My windows Partiton (C, My Music Partiton (F My Documents Partion (G and then the 3 linux partitons at the bottom..
Weird.
But yes, it's NTFS.. I don't want to write to the partion, though.. Just wanna be able to play the music.
#mount -t ntfs -o ro /dev/<partition to mount> /<path to folder in linux>
like
#mount -t ntfs -o ro /dev/hda2 /mnt/mp3
the second location can be anywhere in your linux file system, granted the folder your are mapping to is already created. Then all you have to do is open the folder and you should see all of your stuff.
As you know what partition you are looking for (/dev/hd5) you're are at a good point.
Login as root first
Assuming you want to be able to mount it as normal user, edit your /etc/fstab adding a line like that
/dev/hd5 /mnt/mymusic ntfs noauto,user,ro 0 0
and then create a directory to mount the file system by
touch /mnt/mymusic
or whatever you like, only make sure the name's matching what indicated in the /etc/fstab edited line.
Reboot the system and logged as normal user
mount /dev/hd5
As you have a proper entry in your /etc/fstab flie it will be mounted is /mnt/mymusic mount point.
Hope this helps
Ciao
First, create the directory /mnt/music, then try mounting it by typing (as root) mount -t ntfs /dev/hda5 /mnt/music. If that works, create the directories /mnt/win and /mnt/documents, then add the following lines to your fstab:
There should be no errors, just #'s. Note: newer NTFS RPMs will also print a message telling you if install succeeded. If something goes wrong see the Help Section.
This is the only command we actually needed, but we'll go on and test what we have done.
Next load the kernel module
/sbin/modprobe ntfs
There should be no output. If there are a lot of error messages see the Help Section.
dmesg | grep NTFS
NTFS driver v1.1.22 [Flags: R/O MODULE]
We can now check that the kernel really understands NTFS. The output may vary slightly, but you are looking for the entry ntfs.
Well.. it finally all works.. But I don't have permission to view my mounts from my account.
I can in root..
When I try to change the permissions, it says that they cannot be set because the drive is read-only.. So I changed the "ro" bit at the end in fstab.. But that didn't work either.. I fiddled around and nothing worked.. What am I doing wrong?
I followed schauch's format, and.. only difference is I used "mymusic" as the folder..
Please help!
(Oh, and i should let you all know that I'm going to be asking ALOT of questions on this forum.. I am the ultimate )
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.