You are not logged in.

#1 2008-08-07 11:22:46

visio159
Member
Registered: 2008-07-03
Posts: 31

How to disable ext3 automounting ??

Its so noob of me wink that I disabled ntfs automounting easily but don't know how to disable ext3 automounting.

I used gconf-editor to alter mount setting for ntfs so that they dont get automounted.

My fstab file contains no entry for data partition, only for system partition etc

# 
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0


/dev/cdrom /media/cdrom   auto    ro,user,noauto,unhide   0      0
/dev/dvd /media/dvd   auto    ro,user,noauto,unhide   0      0
UUID=cbf00f1f-6f57-4cc4-9855-8623311aeb3a / ext3 defaults 0 1

So the question is how do I disable ext3 data partitions from automounting ? I just want to mount the partition which I want to after I login in to the desktop and not every partition.

Disabling HAL daemon (!hal) works but it disable various other good services too.

Offline

#2 2008-08-07 11:34:09

daneel971
Member
Registered: 2008-03-28
Posts: 197

Re: How to disable ext3 automounting ??

create an entry in fstab:

UUID=yourUUIDhere /path/to/mountpoint ext3 user,noauto,defaults 0 1

being noauto and user the key options: the first prevent the device to be automounted at boot, the second allows a user to mount it.

Offline

#3 2008-08-07 11:37:58

visio159
Member
Registered: 2008-07-03
Posts: 31

Re: How to disable ext3 automounting ??

^^thanks will let you know if it works big_smile

Last edited by visio159 (2008-08-07 11:38:26)

Offline

#4 2008-08-07 11:49:07

visio159
Member
Registered: 2008-07-03
Posts: 31

Re: How to disable ext3 automounting ??

Ok now what is this ?
/dev/sda1: UUID="6368746f-2074-616b-6f65-207575696400" TYPE="ext3"
/dev/sda5: UUID="6368746f-2074-616b-6f65-207575696400" TYPE="ext3"
/dev/sda6: UUID="6368746f-2074-616b-6f65-207575696400" TYPE="ext3"
/dev/sda7: LABEL="tmp" UUID="6368746f-2074-616b-6f65-207575696400" TYPE="ext3"

How can UUID be same ?

Offline

#5 2008-08-07 12:36:13

rooloo
Member
Registered: 2008-07-09
Posts: 218

Re: How to disable ext3 automounting ??

Offline

#6 2008-08-07 14:05:24

visio159
Member
Registered: 2008-07-03
Posts: 31

Re: How to disable ext3 automounting ??

^^yeah I mounted using LABEL

but still ext3 partitions are automounted sad

Please someone help me

Offline

#7 2008-08-07 16:21:25

visio159
Member
Registered: 2008-07-03
Posts: 31

Re: How to disable ext3 automounting ??

daneel971 wrote:

create an entry in fstab:

UUID=yourUUIDhere /path/to/mountpoint ext3 user,noauto,defaults 0 1

being noauto and user the key options: the first prevent the device to be automounted at boot, the second allows a user to mount it.

Hey it worked big_smile
There was a small amendment

I had to use nouser instead of user
like this:

LABEL=vsz /media/d3 ext3 nouser,noauto,defaults 0 1

Thank you

Last edited by visio159 (2008-08-07 16:22:03)

Offline

#8 2008-08-07 18:18:54

Onwards
Member
From: Pakistan
Registered: 2007-04-18
Posts: 108

Re: How to disable ext3 automounting ??

Specifying defaults includes nouser (meaning only root can mount the partition...), so its superfluous here.

Offline

#9 2008-08-07 18:40:08

visio159
Member
Registered: 2008-07-03
Posts: 31

Re: How to disable ext3 automounting ??

^^thanks for pointing out

Offline

Board footer

Powered by FluxBB