How can I mount the window partition?
How can I mount the window partition so that I can read/copy files from window partition to linux partition?
|
First, the Windows partition needs to be a FAT filesystem,
and not a NTFS filesystem; because writing to a NTFS filesystem is still not considered stable and reliable from Linux. To mount a FAT filesystem from Linux, edit your /etc/fstab to look like this: Code:
/dev/sda2 /Shared vfat users,umask=1000,rw,auto 1 0 NB: You must change /dev/sda2 to your partition, and /Shared to your mount point. If you don't have a mount point in Linux, you will need to create one (as root). You may issue and read "man mount" and "man fstab" for more detailed instructions. |
You can read from an NTFS partition, if you have no intent to write to it from Linux. In that case, the filesystem type would ntfs vice vfat.
|
Yes, I didn't address if you just want to read NTFS files and copy to Linux.
In that case, you would setup your /etc/fstab line like this: Code:
/dev/sda1 /WinXP ntfs ro 1 0 Which distribution of Linux are you using? Put that in your LQ UserCP so we can help you better. Slackware sets these things up correctly by default when you install, if you allow it. |
Can I just use the mount command instead of modify the /etc/fstab file?
if yes, how to use the mount command? |
Did you issue and read "man mount" yet?
Yes, you can do it. Please read and see if you can understand how. If not, post what you read, what you tried, how it didn't work, please... |
I add this to my /etc/fstab file:
Code:
/dev/sda2 /WinXP ntfs ro 1 0 Code:
[root]# mount /WinXP my complete /etc/fstab file Code:
# This file is edited by fstab-sync - see 'man fstab-sync' for details |
You can only mount to a directory that already exists. It should have been noted that there was nothing special about "/WinXP" in the bits of code you were given, and that it was just an example. The mount command fails because the directory doesn't exist, and will work if you first create the directory with
Code:
mkdir /WinXP (you'll need to be root) |
Quote:
|
I meant noted as in noticed by the reader - no slur on your help!
|
Quote:
Didn't mean your post, sorry for the confusion. |
And I meant... never mind ;)
|
Gah! For a moment there I thought I was in couples-therapy again. :D
|
All times are GMT -5. The time now is 12:37 AM. |