You are not logged in.

#1 2008-06-22 00:54:51

Raccoon1400
Member
From: Ontario, Canada
Registered: 2008-04-14
Posts: 853

Fstab entries for windows partitions

I have two ntfs windows partitons I want to create fstab entries for.

/dev/sda2 /media/RECOVERY  auto  ro,user,noauto            0      0
/dev/sda3 /media/OS       auto    ro,user,noauto           0      0

despite this, they still automount on boot, and I don't want that.
What am I doing wrong?


Fustrated Windows users have two options.
1. Resort to the throwing of computers out of windows.
2. Resort to the throwing of windows out of computers.

Offline

#2 2008-06-22 01:03:57

Aaron
Member
From: PA, USA
Registered: 2007-12-19
Posts: 108
Website

Re: Fstab entries for windows partitions

Don't know if this would work, but have you tried changing the filesystem type from 'auto' to 'ntfs-3g' ?

Offline

#3 2008-06-22 01:38:14

Raccoon1400
Member
From: Ontario, Canada
Registered: 2008-04-14
Posts: 853

Re: Fstab entries for windows partitions

Just tried that. If I do that, they won't mount at all. I get permissions errors.


Fustrated Windows users have two options.
1. Resort to the throwing of computers out of windows.
2. Resort to the throwing of windows out of computers.

Offline

#4 2008-06-22 01:55:53

Raccoon1400
Member
From: Ontario, Canada
Registered: 2008-04-14
Posts: 853

Re: Fstab entries for windows partitions

Also, when I use these entries, I don't have permission to view the contents of the partitions.


Fustrated Windows users have two options.
1. Resort to the throwing of computers out of windows.
2. Resort to the throwing of windows out of computers.

Offline

#5 2008-06-22 02:15:37

Aaron
Member
From: PA, USA
Registered: 2007-12-19
Posts: 108
Website

Re: Fstab entries for windows partitions

Raccoon1400 wrote:

Also, when I use these entries, I don't have permission to view the contents of the partitions.

Well, that's to be expected.  You need to specify permissions in the fstab entry.  You should be able to view the contents of the location as the super user or with sudo though.  You may or may not have write access though (Can't remember if it's by default or not now)

Do you have ntfs-3g installed?  Check please.

Here's my fstab line for my NTFS windows partition, with full user read/write support.

/dev/sda1  /mnt/windows  ntfs-3g  users,uid=1000,gid=100,fmask=0113,dmask=0002,locale=en_US.utf8  0 0

That will automount on boot, fyi.

Last edited by Aaron (2008-06-22 02:17:07)

Offline

#6 2008-06-22 02:29:36

Raccoon1400
Member
From: Ontario, Canada
Registered: 2008-04-14
Posts: 853

Re: Fstab entries for windows partitions

/dev/sda2 /media/RECOVERY  auto  noauto,users,uid=1000,gid=100,fmask=0113,dmask=0002        0      0
/dev/sda3 /media/OS       auto    noauto,users,uid=1000,gid=100,fmask=0113,dmask=0002          0      0

these entries, based on yours, automounts, and I can see the files, but not write
Yes, I have ntfs-3g installed.


Fustrated Windows users have two options.
1. Resort to the throwing of computers out of windows.
2. Resort to the throwing of windows out of computers.

Offline

#7 2008-06-22 02:34:32

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: Fstab entries for windows partitions

Raccoon1400 wrote:

I have two ntfs windows partitons I want to create fstab entries for.

/dev/sda2 /media/RECOVERY  auto  ro,user,noauto            0      0
/dev/sda3 /media/OS       auto    ro,user,noauto           0      0

despite this, they still automount on boot, and I don't want that.
What am I doing wrong?

Well, first things first. /media is for removable media. hal also autmounts to /media.
Use /mnt for mounting filesystems.
You can of course, mount them anywhere, but let's start on the right foot. wink
Second, you need something more like this:

/dev/sda2 /mnt/RECOVERY ntfs-3g user,noauto 0  0
/dev/sda3 /mnt/OS       ntfs-3g    ro,user,noauto           0      0

Make sure you are in the storage group, and ntfs-3g is installed.

Offline

#8 2008-06-22 02:37:05

Aaron
Member
From: PA, USA
Registered: 2007-12-19
Posts: 108
Website

Re: Fstab entries for windows partitions

#chmod u+s /bin/ntfs-3g

That should give your users write access to the partition.
http://wiki.archlinux.org/index.php/NTFS_Write_Support

I don't know why it insists on auto-mounting though? I still think it has something to do with using 'auto' in place of 'ntfs-3g', but I also don't understand why you're getting errors when trying to use it?

What are you doing in between changes to /etc/fstab?

I use the following command to remount my partitions according to fstab

$sudo mount -a

Offline

#9 2008-06-22 02:49:04

Raccoon1400
Member
From: Ontario, Canada
Registered: 2008-04-14
Posts: 853

Re: Fstab entries for windows partitions

when I change it to mnt, those volumes don't show up at all in gnome. (yes, it did create the directories)
When I use ntfs-3g, I get this

Error opening '/dev/sda2': Permission denied
Failed to mount '/dev/sda2': Permission denied
Pease check '/dev/sda2' and the ntfs binary permissions, 
and the mounting user ID. More explanation is provided at
http://ntfs-3g.org/support.html#unpriviledged

I also added my user to the storage group.
What is the command to see what groups I am in?


Fustrated Windows users have two options.
1. Resort to the throwing of computers out of windows.
2. Resort to the throwing of windows out of computers.

Offline

#10 2008-06-22 02:53:47

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: Fstab entries for windows partitions

groups

Try adding your user to the disk group. See if that helps. It's a security risk, but it may tell us something. If it doesnt help, pull yourself out of it. smile

Offline

#11 2008-06-22 02:54:50

Raccoon1400
Member
From: Ontario, Canada
Registered: 2008-04-14
Posts: 853

Re: Fstab entries for windows partitions

chmod u+s /bin/ntfs-3g
doesn't appear to help

what I have  in fstab now:
/dev/sda2 /media/RECOVERY  ntfs-3g  user,ro,noauto        0      0
/dev/sda3 /media/OS       auto    user,ro,noauto         0      0

The first entry does not mount and gives the errors posted above.
The second mounts, but I can't see any of the files.


Fustrated Windows users have two options.
1. Resort to the throwing of computers out of windows.
2. Resort to the throwing of windows out of computers.

Offline

#12 2008-06-22 02:56:01

Raccoon1400
Member
From: Ontario, Canada
Registered: 2008-04-14
Posts: 853

Re: Fstab entries for windows partitions

Misfit138 wrote:
groups

Try adding your user to the disk group. See if that helps.

does nothing


Fustrated Windows users have two options.
1. Resort to the throwing of computers out of windows.
2. Resort to the throwing of windows out of computers.

Offline

#13 2008-06-22 03:00:15

Raccoon1400
Member
From: Ontario, Canada
Registered: 2008-04-14
Posts: 853

Re: Fstab entries for windows partitions

Wait: now when I mount the volume where I told it the fs type was ntfs-3g
ntfs-3g-mount: user has no write access to mountpoint /media/RECOVERY


Fustrated Windows users have two options.
1. Resort to the throwing of computers out of windows.
2. Resort to the throwing of windows out of computers.

Offline

#14 2008-06-23 04:14:15

Raccoon1400
Member
From: Ontario, Canada
Registered: 2008-04-14
Posts: 853

Re: Fstab entries for windows partitions

When I log in as root, I can see both partitons' contents, but can't write to either.


Fustrated Windows users have two options.
1. Resort to the throwing of computers out of windows.
2. Resort to the throwing of windows out of computers.

Offline

#15 2010-06-03 19:15:26

Neo139
Member
Registered: 2010-06-03
Posts: 5

Re: Fstab entries for windows partitions

Disable Automount on login

You may want to disable automounting of ntfs(/or other filesystem) partitions on login.
File: /etc/hal/fdi/policy/20-disable-automount.fdi

<device>
  <match key="storage.hotpluggable" bool="false">
    <match key="storage.removable" bool="false">
      <merge key="storage.automount_enabled_hint" type="bool">false</merge>
    </match>
  </match>
</device>
http://wiki.archlinux.org/index.php/HAL … t_on_login

Offline

#16 2010-06-03 19:20:25

schen
Member
Registered: 2009-06-06
Posts: 468

Re: Fstab entries for windows partitions

@Neo139
This thread is two years old, and you created an entirely new account to answer it.

http://wiki.archlinux.org/index.php/For … Bumping.27

Offline

#17 2010-06-03 20:03:53

Neo139
Member
Registered: 2010-06-03
Posts: 5

Re: Fstab entries for windows partitions

schen wrote:

@Neo139
This thread is two years old, and you created an entirely new account to answer it.

http://wiki.archlinux.org/index.php/For … Bumping.27

sorry! (the new account was not just for answering that question!)

Offline

Board footer

Powered by FluxBB