You are not logged in.

#1 2009-11-04 02:38:43

Lobstertorch
Member
From: Fishers, IN, USA
Registered: 2009-11-02
Posts: 13

[Solved] Very quick question, Accessing NTFS windows drive

So I have Windows in my first harddrive (Bigger HD hold my music, games etc.)

And Arch is installed to the second smaller HD, How would I make it so that the NTFS windows HD would be automounted and I have the ability to view all my files?

Last edited by Lobstertorch (2009-11-04 03:03:44)

Offline

#2 2009-11-04 02:46:28

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

Re: [Solved] Very quick question, Accessing NTFS windows drive

I presume your windows disk has two partitions, /dev/sda1 which is a 'recover' partition (usually 8-15 gigs) and /dev/sda2 which is windows/ntfs proper.
If this is true, just do the following in your /etc/fstab

/dev/sda2  /win  ntfs-3g  defaults,uid=000,gid=000,noatime,locale=en_US.utf8  0 0

Obviously (I hope) your /win directory (or whatever you want to call it) must exist (mkdir /win; chmod a+rwx /win)
However, this is when the fun begins with all the filenames with embedded spaces in windows - be ready for a bumpy ride ...

Last edited by perbh (2009-11-04 02:49:10)

Offline

#3 2009-11-04 02:48:18

Lobstertorch
Member
From: Fishers, IN, USA
Registered: 2009-11-02
Posts: 13

Re: [Solved] Very quick question, Accessing NTFS windows drive

Eh... I think I understand what you're saying...

Mind explaining the chmod part?

Offline

#4 2009-11-04 02:52:33

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

Re: [Solved] Very quick question, Accessing NTFS windows drive

Well, you have to make sure that all users have both read and write access to the ntfs ... if the mount-point has only 'drwxr xr x' (which is the default values for using mkdir as root), only root will have write access :-(

Offline

#5 2009-11-04 02:55:19

Lobstertorch
Member
From: Fishers, IN, USA
Registered: 2009-11-02
Posts: 13

Re: [Solved] Very quick question, Accessing NTFS windows drive

;_; that sucks. alright... I'm gonna give this a whirl. I'm assuming i'd

sudo mkdir /win
chmod a+rwx /win

then add that above line to my /etc/fstab?

Will I need a reboot?

And what about the embedded spaces stuff? I plan on accesessing these files through a filemanager.

Thanks for your patience, and I spaced this post weird like what the hell?

EDIT: I did it :3. Thank you very much. At first when you posted I was kinda like uh oh. But I got it now. Always learning new things smile. Thanks.

Last edited by Lobstertorch (2009-11-04 03:03:30)

Offline

#6 2009-11-04 03:14:24

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

Re: [Solved] Very quick question, Accessing NTFS windows drive

Most filemanagers can handle embedded spaces.
It is if you ever use the command line that your ride will be bumpy ... or if you write shell-scripts.
I have threatened my family with a fate worse than death if they use embedded spaces in their filenames - in other words, I refuse to tidy up their mess when their 'other OS' crumbles and they need help and they have used spaces ... *lol*

No need to reboot, but you might have to manually mount it (sudo mount /win) the first time after you have changed /etc/fstab ... after that, it will be automagically mounted upon each new boot :-)

Offline

#7 2009-11-04 03:35:01

Lobstertorch
Member
From: Fishers, IN, USA
Registered: 2009-11-02
Posts: 13

Re: [Solved] Very quick question, Accessing NTFS windows drive

Okay, I know I marked my thread as solved... but while you're here, I'm running steam, there was an update and now when I run Steam.exe the update fails which I'm assuming is because I don't have write access. I suppose I could boot into windows and patch, but that's no fun. Any way to do this?

Offline

#8 2009-11-04 03:52:47

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

Re: [Solved] Very quick question, Accessing NTFS windows drive

?? You're running 'steam.exe'? from linux?
I don't know what 'steam' is - but it sure as hell looks like a windows executable!

Just check if you have write access - something like:

touch /win/zz; rm /win/zz

If this doesn't work .. hmmm, you _may_ have to add 'umask=000' as well as uid=000 and gid=000 ...

[edit]
nope - I've just checked it - I can write to it as a 'normal' user without the umask=000
[/edit]

Last edited by perbh (2009-11-04 03:57:41)

Offline

#9 2009-11-04 03:57:10

Lobstertorch
Member
From: Fishers, IN, USA
Registered: 2009-11-02
Posts: 13

Re: [Solved] Very quick question, Accessing NTFS windows drive

Oh sorry hah, I forget that not everyone is a gamer... Steam is a game launching / IM / game purchasing application. Digital distribution and all that. But yeah, wait isn't rm like.... delete? I'm assuming touch creates a folder to remove or something?

EDIT: Yeah I had it correct. That made the folder AND deleted it, no problems there no Sudo needed or anything. Hm... is there something I should change for Wine permissions or something?

Last edited by Lobstertorch (2009-11-04 03:58:45)

Offline

#10 2009-11-04 04:01:19

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

Re: [Solved] Very quick question, Accessing NTFS windows drive

nope - 'touch' just makes a zero-size file
and yes 'rm' is delete (a file), 'rmdir' to delete a (empty) directory/folder.
However - 'touch' will tell you whether or not you have write-access to the ntfs-drive.

Hmmm - you just maybe should have a li'l look at the most common commands - makes life somewhat easier ...

Offline

#11 2009-11-04 04:04:39

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

Re: [Solved] Very quick question, Accessing NTFS windows drive

I don't use 'wine' - so you maybe should open another thread for that ... or (which I believe might be appreciated) do some searching in the forum for 'wine' - I know there has been a lot of posts about it. Alternatively - look up 'wine' in the excellent wiki.

We dont mind helping people - but we do appreciate a little bit of research first ...

Offline

Board footer

Powered by FluxBB