You are not logged in.

#1 2007-05-22 01:17:49

pain of salvation
Member
Registered: 2007-05-22
Posts: 76

Fstab: noauto, but ntfs partition still automounts on boot...

Hello you guys! I'm new to arch, moved from Ubuntu...

First of all, congrats to the devs, this is a really great distro!!

Well, I don't know how to make my ntfs partition to mount only when I want (not on boot). Here is my fstab:

none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0


/dev/fd0 /mnt/fd0   vfat   user,noauto   0      0
/dev/sda5 / ext3 defaults 0 1
/dev/sda6 swap swap defaults 0 0
/dev/sda2 /mnt/Arquivos ext3 defaults 0 2
/dev/sda1 /mnt/Windows ntfs-3g users,noauto,uid=0,gid=100,fmask=0113,dmask=0002,locale=pt_BR.utf8  0 0

I want to set root as the owner of the ntfs partition, but users could mount it too. May you guys help me on this?

PS: sorry for my english, I'm brazilian... tongue

Last edited by pain of salvation (2007-05-22 01:18:20)

Offline

#2 2007-05-22 13:02:21

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: Fstab: noauto, but ntfs partition still automounts on boot...

I think udev does this.  Mine is set to noauto as well and they still mount (I don't mind though).


Matt

"It is very difficult to educate the educated."

Offline

#3 2007-05-22 14:05:25

mitsoko
Banned
From: In the Coal Chamber
Registered: 2007-05-08
Posts: 143

Re: Fstab: noauto, but ntfs partition still automounts on boot...

if you have hal starting at boot, chances are that it( tool like gnome-voulme-mnager,etc) mounts it automatically ...

Last edited by raeven (2007-05-22 14:06:17)

Offline

#4 2007-05-22 15:38:58

pain of salvation
Member
Registered: 2007-05-22
Posts: 76

Re: Fstab: noauto, but ntfs partition still automounts on boot...

Yeah, I have hal starting at boot.

So I will take that "noauto" off my fstab..

anyway, thanks!

Offline

#5 2007-05-23 09:25:16

DERA
Member
Registered: 2006-12-21
Posts: 19
Website

Re: Fstab: noauto, but ntfs partition still automounts on boot...

Hi,

This is a guess thought but it works in my Arch so it might works with you. This is a extract of my fstab and I confirm you that the Windows partition (my Windows partition is the C drive, only the OS, since my personal data is in a D drive) is not auto mounted but only when I want. The only difference is that regular users can't do it, only root. But, do you really need that, I mean, everyone being able to access the Windows OS files?

/

dev/hda1        /media/WINDOWS    ntfs        noauto,nls=utf8,umask=0222        0    0

PS: I've noticed that your are Brazilian but my answer in English because everyone here uses it (no entanto eu sou Português)...

Um abraço.


DerA (pt_PT)

What one fool can do, another can. - Ancient Simian Proverb

Offline

#6 2007-05-23 09:57:17

mitsoko
Banned
From: In the Coal Chamber
Registered: 2007-05-08
Posts: 143

Re: Fstab: noauto, but ntfs partition still automounts on boot...

oh, i forgot  .... if you have gnome-volume-manager installed ... then you should be able to configure auto mounting, etc.. via /usr/bin/gnome-volume-properties

Offline

#7 2007-05-23 17:55:17

pain of salvation
Member
Registered: 2007-05-22
Posts: 76

Re: Fstab: noauto, but ntfs partition still automounts on boot...

Three noob questions:

1. Why /media and not /mnt? Whats the difference?

2. Should I put my /dev/sda2 to mount in /media/Arquivos instead of /mnt/Arquivos?

3. Is "0222" the same thing of "222"? Why the zero?

Dera, it worked, but I set umask=022, not  0222, 'cause I want root to have permission to write (I have installed ntfs-3g)

Last edited by pain of salvation (2007-05-23 18:57:26)

Offline

#8 2007-05-24 09:14:09

Romashka
Forum Fellow
Registered: 2005-12-07
Posts: 1,054

Re: Fstab: noauto, but ntfs partition still automounts on boot...

pain of salvation wrote:

Hello you guys! I'm new to arch, moved from Ubuntu...

First of all, congrats to the devs, this is a really great distro!!

Well, I don't know how to make my ntfs partition to mount only when I want (not on boot).
I want to set root as the owner of the ntfs partition, but users could mount it too. May you guys help me on this?

Use this trick: http://wiki.archlinux.org/index.php/HAL … le_devices wink


to live is to die

Offline

#9 2007-05-24 09:22:23

Romashka
Forum Fellow
Registered: 2005-12-07
Posts: 1,054

Re: Fstab: noauto, but ntfs partition still automounts on boot...

pain of salvation wrote:

Three noob questions:

1. Why /media and not /mnt? Whats the difference?

2. Should I put my /dev/sda2 to mount in /media/Arquivos instead of /mnt/Arquivos?

3. Is "0222" the same thing of "222"? Why the zero?

Dera, it worked, but I set umask=022, not  0222, 'cause I want root to have permission to write (I have installed ntfs-3g)

1. FHS (Filesystem Hierarchy Standard) says that /media should be used for mounting removable media, while /mnt - for (temporary) mounting of other filesystems.

2. mount other local partitions to /mnt

3. I don't know, I always use 3-digit umask/dmask/fmask.

To allow any user write to vfat and get correct file/dir permissions I use:

quiet,nodev,nosuid,noexec,noatime,dmask=000,fmask=111

Last edited by Romashka (2007-05-24 09:24:59)


to live is to die

Offline

#10 2007-05-24 16:46:37

pain of salvation
Member
Registered: 2007-05-22
Posts: 76

Re: Fstab: noauto, but ntfs partition still automounts on boot...

Ubuntu mounts everything on /media roll

Offline

#11 2007-05-24 17:32:24

pain of salvation
Member
Registered: 2007-05-22
Posts: 76

Re: Fstab: noauto, but ntfs partition still automounts on boot...

Ok, now its working as it should be (I think).

ntfs is not automounting at boot, and its in /mnt now.

My fstab:

/dev/sda5 / ext3 defaults 0 1
/dev/sda6 swap swap defaults 0 0
/dev/sda2 /mnt/arquivos ext3 rw,auto,users, 0 2
/dev/sda1 /mnt/windows ntfs-3g noauto,noexec,nls=utf8,umask=0022 0 0

Last edited by pain of salvation (2007-05-24 17:34:34)

Offline

Board footer

Powered by FluxBB