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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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 :
and then the root password, and type :
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..
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>
#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
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
As you have a proper entry in your /etc/fstab flie it will be mounted is /mnt/mymusic mount point.
Hope this helps
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:
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..
(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 )