The officially official Devuan Forum!

You are not logged in.

#1 2019-03-15 12:15:44

RIA77
Member
Registered: 2019-03-12
Posts: 28  

Automount problem

Hello again!

There is an old bug in Debian, if you can help me, I hope that bug is not in Devuan as well.
I tried to automount NTFS partition with Disks, and I failed.
I tried with every option - dev/sda, UI .... etc.
Is there any chance to automount partitions ?
Thank you very much and have a nice day, wonderful community of Devuan.

Offline

#2 2019-03-15 12:53:25

ToxicExMachina
Member
Registered: 2019-03-11
Posts: 210  

Re: Automount problem

Let's define the problem: you want an access to contents of partitions or you want ability to mount/unmount partitions for user without root privileges?

Last edited by ToxicExMachina (2019-03-15 12:57:03)

Offline

#3 2019-03-16 16:02:18

RIA77
Member
Registered: 2019-03-12
Posts: 28  

Re: Automount problem

I want to automount partitions with boot. I can mount them as I like, but I'd like to have some of them automount.

Offline

#4 2019-03-16 16:11:21

rolfie
Member
Registered: 2017-11-25
Posts: 1,047  

Re: Automount problem

What hinders you to use fstab? I mount ntfs partitions with boot with entries like:

# Windows
UUID=xxxxxx 	/mnt/Windows	ntfs-3g		rw,uid=1000,gid=1000,auto,users

Works like a charm for many years already.

Rolf

Online

#5 2019-03-16 16:55:05

Geoff 42
Member
Registered: 2016-12-15
Posts: 461  

Re: Automount problem

I wonder whether you mean using autofs. This way you can define the things you want mounted, but they are only actually mounted when you look at them.

Install autofs and then configure the auto.* files in /etc.

If I have a file server on my lan called sodium offering music then my auto.master might contain :-

/LAN    /etc/auto.lan  --ghost

the ghost flag is so that you can see the mount point all the time.

/etc/auto.lan might contain :-

music		-fstype=nfs,nolock	sodium:/volume1/music
# music		-fstype=cifs,user,uid=user1,gid=users,rw,suid,credentials=/etc/cifsmypwd	://sodium/music

I used to mount it via cifs but now I use nfs, so have commented out the cifs info.
My machine now only mounts /LAN/music if I go looking for it and unmounts it after a period of not using it.

Geoff

Offline

#6 2019-03-23 16:06:42

thierrybo
Member
Registered: 2017-11-11
Posts: 107  

Re: Automount problem

I have one NTFS partition mounted with autofs:

cat /etc/auto.master.d/misc_maps.autofs 
/misc	/etc/auto.misc	--timeout=60,--ghost
cat /etc/auto.misc 
........
winlinux	-fstype=ntfs,rw,nosuid,nodev,relatime,default_permissions,allow_other	:/dev/sdc1
ls /misc/winlinux

Last edited by thierrybo (2019-03-23 16:08:37)

Offline

Board footer