I have Debian10 installed on M.2 SSD in a Dell laptop. I also have a 2Tb HDD, but I have to enter the password to access it using Gnome 'Files' app.
How do I configure it to mount automatically?
And can I give it an alias name, as it is listed as "2.0 TB Volume" which is not very elegant?
Thanks
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
2nd drive - how to mount automatically
Re: 2nd drive - how to mount automatically
Put a line in your /etc/fstab
Use as rootto get drive info
https://manpages.debian.org/buster/moun ... .5.en.html
https://manpages.debian.org/buster/moun ... .8.en.html
Use as root
Code: Select all
blkid
https://manpages.debian.org/buster/moun ... .5.en.html
https://manpages.debian.org/buster/moun ... .8.en.html
- ticojohn
- Posts: 1284
- Joined: 2009-08-29 18:10
- Location: Costa Rica
- Has thanked: 21 times
- Been thanked: 44 times
Re: 2nd drive - how to mount automatically
I assume that the 2Tb HDD is used for data and does not have some OS installed. To do what I think you want to do, and not taking anything away from the post by @4D696B65, I installed a program called gnome-disk-utility. With that utility you can name the drive and can designate the drive to be mounted at startup. After installing (on xfce), the utility is found at Menu > Accessories > Disks.
I am not irrational, I'm just quantum probabilistic.
-
- Global Moderator
- Posts: 2638
- Joined: 2018-06-20 15:16
- Location: Colorado
- Has thanked: 41 times
- Been thanked: 192 times
Re: 2nd drive - how to mount automatically
Well, it's an option, a long one with a few low level ingredients that all tie together.p.H wrote:Beware, automount is not what one usually expects
It is indeed re-inventing the wheel.
there are the two required systemd .mount and .automount files.
then the modded pkla polkit file with an additional 'org.freedesktop.systemd1.manage-units' right added to the user...
I'll note, the udisk2 rules mentioned elsewhere don't work for me...
Then the user need no privileged, they can not choose what where, just on/off.
I have this worked out reliably, not extensively tested, on a sudo-less system. More to go.
If you mix this wheel with older wheels it can destroy the differential!
ie, use a standard 'umount' as root on a automounted device it can lock the interface, tty's alive.