LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 01-11-2006, 11:16 AM   #1
yinglcs
LQ Newbie
 
Registered: Jan 2006
Posts: 27

Rep: Reputation: 15
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?
 
Old 01-11-2006, 11:24 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
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
and it will mount read/write as user when you boot your system.

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.
 
Old 01-11-2006, 11:52 AM   #3
Dngrsone
Member
 
Registered: Nov 2005
Location: Centrally located far from everywhere
Distribution: Ubuntu, Smoothwall
Posts: 30

Rep: Reputation: 15
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.
 
Old 01-11-2006, 12:00 PM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
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
You still need to change partitions and mount points from my entries to yours as previously stated. Thanks Dngrsone.

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.
 
Old 01-11-2006, 02:00 PM   #5
yinglcs
LQ Newbie
 
Registered: Jan 2006
Posts: 27

Original Poster
Rep: Reputation: 15
Can I just use the mount command instead of modify the /etc/fstab file?
if yes, how to use the mount command?
 
Old 01-11-2006, 02:02 PM   #6
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
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...
 
Old 01-11-2006, 03:44 PM   #7
yinglcs
LQ Newbie
 
Registered: Jan 2006
Posts: 27

Original Poster
Rep: Reputation: 15
I add this to my /etc/fstab file:
Code:
/dev/sda2        /WinXP           ntfs        ro               1   0
When I try to mount at the command prompt, both fail.
Code:
[root]# mount /WinXP
mount: mount point /WinXP does not exist
[root]# mount /dev/sda2
mount: mount point /WinXP does not exist
Thanks for any help.
my complete /etc/fstab file
Code:
# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/VolGroup00/LogVol00 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
/dev/devpts             /dev/pts                devpts  gid=5,mode=620  0 0
/dev/shm                /dev/shm                tmpfs   defaults        0 0
/dev/proc               /proc                   proc    defaults        0 0
/dev/sys                /sys                    sysfs   defaults        0 0
/dev/VolGroup00/LogVol01 swap                    swap    defaults        0 0
/dev/hdc                /media/cdrecorder       auto    pamconsole,exec,noauto,managed 0 0
/dev/sda1               /media/Windows          ntfs    pamconsole,exec,noauto,managed 0 0
/dev/sda5               /media/LINUXDATA        ext3    pamconsole,exec,noauto,managed 0 0
/dev/sda2        /WinXP           ntfs        ro               1   0
 
Old 01-11-2006, 04:07 PM   #8
Dtsazza
Member
 
Registered: Oct 2005
Location: Oxford, UK
Distribution: Debian Etch (w/ dual-boot XP for gaming)
Posts: 282

Rep: Reputation: 31
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)
or alternatively, substitute the name of another existing directory in /etc/fstab (e.g. /mnt/windows).

Last edited by Dtsazza; 01-11-2006 at 04:08 PM.
 
Old 01-11-2006, 08:15 PM   #9
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by Dtsazza
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.
Thanks, it was noted. It seems there is a "lack of reading" problem...
 
Old 01-12-2006, 06:18 AM   #10
Dtsazza
Member
 
Registered: Oct 2005
Location: Oxford, UK
Distribution: Debian Etch (w/ dual-boot XP for gaming)
Posts: 282

Rep: Reputation: 31
I meant noted as in noticed by the reader - no slur on your help!
 
Old 01-12-2006, 09:12 AM   #11
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by Dtsazza
I meant noted as in noticed by the reader - no slur on your help!
And I meant the same thing, meaning, the OP needs to read more carefully.
Didn't mean your post, sorry for the confusion.
 
Old 01-12-2006, 10:46 AM   #12
Dtsazza
Member
 
Registered: Oct 2005
Location: Oxford, UK
Distribution: Debian Etch (w/ dual-boot XP for gaming)
Posts: 282

Rep: Reputation: 31
And I meant... never mind
 
Old 01-12-2006, 01:24 PM   #13
Dngrsone
Member
 
Registered: Nov 2005
Location: Centrally located far from everywhere
Distribution: Ubuntu, Smoothwall
Posts: 30

Rep: Reputation: 15
Gah! For a moment there I thought I was in couples-therapy again.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
installed FC 3 on another partition but can not mount that partition. MurX Fedora 15 02-01-2006 05:28 AM
How to resize a partition and create/mount a new partition? Maarten_Holland Linux - Newbie 1 04-20-2005 08:56 AM
How to mount window partition ....? wlaw Linux - Newbie 4 06-25-2004 12:58 PM
mount window karunesh Linux - General 3 05-30-2004 09:23 PM
window on second partition? morgainebrigid Linux - Newbie 3 11-19-2003 07:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration