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.
First, find out what filesystem your C: Drive has been formatted in.
IF it is a NTFS partition (Linux can't recognize NTFS which is what WinXP is most likely running on, but it can recognize FAT32) then you should created another partition in FAT32 and then mount it on Linux.
I recommend using something like PartitionMagic to create the other partition.
Once you have a FAT32 partition, go to a command prompt in Linux and do this:
# mkdir /mnt/<whatever you wanna call your new partition>
# mount -t vfat /dev/hdax /mnt/<whatever the partition is called>
-you don't actually have to type the <>
-the x in hdax stands for whatever number that partition is
then you may wanna edit the file /etc/fstab so Linux could automatically mount the partition on startup. what you'd have to do is simply add the following line to that file:
Actually I think recent kernels can read ntfs quite well (writing is still experimental). You'll only need a vfat fs to transfer data from linux to winxp (but why would you use winxp any more? )
First check this:
You may find your xp disk is already mounted
If not, type this a root :
mount -r -t ntfs /dev/hda1 /mnt/winxp
TIP: make use of shell auto-completion, try for example /m<tab>w<tab>
if it works put this in /etc/fstab:
/dev/hda1 /mnt/winxp ntfs ro,auto,umask=0 0 0
PS: i would suggest a
ln -s /mnt/winxp/<your mp3 directory> /home/<username>/mp3
you can't mount a directory, you always mount a whole filesystem. If you don't actually use a directory, it will never be read, so don't worry about memory.
What you can do is symlinking: ln -s <file> <linkname>
>I did the mounting within root but I can see that user james does not have permissions, how do I allow others permissions.
did you mean you mounted under /root ? if so, don't do it! mount under /mnt/win
if you mean as root user, use mount -o umask=0 ...
1) It's strange you can't write. Please send me the output of these commands, so i can further help you:
ls -l /mnt/c
2) FAT filesystem doesn't have the concept of 'owner' or 'permissions', so you must specify what users can/cannot do (to learn more about permissions, use
This is the relevant part of mount manpage ('man mount')
Set the umask (the bitmask of the permissions that are not
present). The default is the umask of the current process. The
value is given in octal.
3) Probably what makes free software great is good to excellent documentation. if you feel courious/have a question about a command, the first thing to try is 'man commadname'. Pressing 'h' while in man pages takes you to viewer help. Take a minute to read the 'searching' section, it's worth it.
HOMEWORK: find the info on umask in muont man page with '/' and 'n' commands
Ok, got the problem: that dir has the readonly bit set (from win, i suppose)
as root, type:
chmod +w /mnt/win/Music\ mp3
tip: get used to shell auto-completion: /m<tab>w<tab>Mu<tab>
note: it's not common for unix files to include spaces, it may confuse badly-written shell scripts. Consider replacing the space with an underscore
(unix command for renaming is mv (for move))
Have you tryed again writing to the fs? 777 is exacly what you need!
the reason why you got the error message was actually your defaul umask (that a property of the shell, not of the filesystem) is probably 022, so chmod +w is interpreted as 'u+w'. To override explicitly type 'chmod a+w' or use numerical permissions like 777. Refer to chmod man page.
Last note: the executable flag for directories means stands for the ability to make it the current dir. A 666 permission (rw-rw-rw-), besides being unachevable on fat, makes little sense.
> Not sure what you mean by Autocomplete?
if you press <tab> your shell will complete the filename you're typing up to the first ambiguity. When there's no unique next char, it will beep. Pressing it again will list all the possible completions.
Originally posted by Foggy
[root@localhost james]# chmod +w /mnt/win/Music\ mp3
chmod: changing permissions of `/mnt/win/Music mp3' (requested: 0755, actual: 0777): Operation not permitted
This is really strange for a fat32 drive. Have you used any 3rd party encryption utils in windows that may be causing problems? You could also try creating another directory in Windows (or better still from Linux: mkdir /mnt/win/musicfiles as a normal user) and moving all your mp3's to there.