Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
automount external disc [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
apiaio
Apprentice
Apprentice


Joined: 04 Dec 2008
Posts: 208

PostPosted: Thu Oct 20, 2016 12:11 pm    Post subject: automount external disc [SOLVED] Reply with quote

Today I purchased 2TB external HD ntfs formated. Up to now I automounted FAT32 flash drive only.
In my fstab was
Code:
/dev/sdd1               /media          vfat   defaults,noauto,sync,users,gid=15,umask=0002 0 0

After connecting USB drive is /dev populated by /sdd1. In order to automount ntfs I changed this line like that
Code:
/dev/sdd1               /media          ntfs-3g   defaults,noauto,sync,users,gid=15,umask=0002 0 0
and everything works fine.
How can I connect both, ntfs HD and FAT32 flash, at the same time?
Thanks


Last edited by apiaio on Fri Oct 21, 2016 7:29 am; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21994
Location: here

PostPosted: Thu Oct 20, 2016 1:03 pm    Post subject: Reply with quote

You can create two subdirs in media (e.g. ext-hd and ext-flash) and you can use UUID device, you can see this with ls -l /dev/disk/by-uuid/ when attach external drive.
Code:
UUID=24f28fc6-717e-4bcd-a5f7-32b959024e26              /media/ext-flash          vfat   defaults,noauto,sync,users,gid=15,umask=0002 0 0
UUID=8936b4b8-19ac-4d86-8978-8e6e9236f44a               /media/ext-hd         ntfs-3g   defaults,noauto,sync,users,gid=15,umask=0002 0 0

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
apiaio
Apprentice
Apprentice


Joined: 04 Dec 2008
Posts: 208

PostPosted: Thu Oct 20, 2016 6:58 pm    Post subject: Reply with quote

That's exactly what I need. But I have another question anyway.
fstab now
Code:
UUID=F474B7AA74B76DCC   /media/ext-hd   ntfs-3g   defaults,noauto,sync,users,gid=15,umask=0002 0 0
UUID=F012-DC91          /media/ext-flash  vfat   defaults,noauto,sync,users,gid=15,umask=0002 0 0

When I insert two USB drives into two slots the directory of the first inserted device is populated .
In /dev directory was created new device sde1
Code:
ls -l /dev/disk/by-uuid/
.
.
lrwxrwxrwx 1 root root 10 Oct 20 20:14 F012-DC91 -> ../../sdd1
lrwxrwxrwx 1 root root 10 Oct 20  2016 f29489be-5690-411d-97c8-c762a4a3a19a -> ../../sdc2
lrwxrwxrwx 1 root root 10 Oct 20 20:14 F474B7AA74B76DCC -> ../../sde1
but is empty.
It is possible to copy from one USB drive to another one?
Thanks
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43375
Location: 56N 3W

PostPosted: Thu Oct 20, 2016 7:18 pm    Post subject: Reply with quote

apiaio,

Mount them both. Copy from one filesystem to another.
You need another fstab entry and another mount point.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum