HP Laptop 15s-eq1xxx
Kernel: 6.4.12-arch1
Desktop: KDE Plasma
EndeavourOS
Hi,
I have a dualuser and multiboot system with several partitions on the same SSD. 2 ntfs partiions, WinLin and Tbird, are used by both user1 (admin) and user2 (normal). Each time either user1 or user2 logs in, he has to hit WinLin, enter the admin password, and then Tbird, to mount and use the partitions. And he has to unmount the partitions before the other user can mount them with the admin password.
How can I manage that both partitions mount automatically for both users, please?
Thanks, but only partial success. Since I do not undestand the contents of both your links, I just added the following two lines in /etc/tstab:
First this: A:
Works fine with user1, WinLin is accessible and Thunderbird is functioning (its personal profiles are on partition Tbird). But, replacing “user1” with “users” B:
This works fine for both user1 and user2 regarding accesssibilty of files and forlders with Dolphin. But Thunderbird complains “Your Thunderbird profile cannot be loaded. It may be missing or inaccessible”. TIts profiles are in Tbird. Funny though, that Dolphin can browse through these profile folders, but Thundebird cannot.
Hmmm… what are you trying to accomplish?
First, let’s forget about partitions.
I’d guess you want both admin and normal user to be able to use the same mail account with thunderbird, right?
Of course not. Each one has a different mail account. EDIT: Trying to accomplish? Each user should be able to use his mail account without entering the root password first to mount the Thunderbird partition. Like usser1 can do if I put “user1” in the fstab-line. But I want the same for user2. And “users” does not do it as outlined above. A couple of years ago I had a smooth solution for this with Ubuntu, but, I could bite my backside, I cannot remember how I did it.Sorry, I have to continue tomorrow
Thanks, but it could be so easy, if I had only one user, but I have two. For one user it works like shown below beautifully; please note that partition Tbird contains seperate personal mail folders for user1 and user2 (and I am simplifying, only one partition shown here to automount, disregarding partition WinLin):
*** Add this line to /etc/fstab: *** UUID=[UUID] /media/user1/Tbird ntfs-3g defaults,noatime 0 2
Reboot, log in as user1, enjoy your own mailaccount with Thunderbird. No luck for user2 (see my postings above).
s
*** Now replace “user1” in the above fstab line with “user2”, reboot and log in as user 2 ***
Now user2 can enjoy his mail on his own account. No luck for user1 this time, even if he unmounts with root password and mount again.
The question remains: how can both users use the partition Tbird? Without the hassle (see below, P.S.)
P.S. What has been working for me for years, but is a little bit ugly: Say, user1 logs in, enters the root password to mount the partiion(s); if user2 wants to use the PC right away, user1 logs out, user2 logs in, uses the root password to unmount the partitions mounted by user1 (if user1 forgot to unmount), and vice versa.
Why don’t you simply mount the partitions permanently, with proper rights for the users who use them?
If you want to keep .thunderbird folders in those partitions, then you can symlink them to ~/.thunderbird for each user.
where gid=1000 refers to the main group of user1 (admin).
*** 2 ***
For thunderbird I just had to recreate the relevant two accounts anew, using the respective personal folders within Tbird, which was child’s play with $ thunderbird -p
As for my big data partition WinLin, I will have to create all links from my /home/etc. directory to files and directories/folders within WinLin afresh. No pain, no gain! EDIT: easier than I thought
As long as you are using NTFS on Linux, you are bound to periodically have issues–even if you handle the drives carefully. NTFS tends to be very fragile when handled from Linux.
Assuming you have a Windows system you can run filesystem repair from in cases where ntfsfix doesn’t cut it, you should be fine. If you do not have a Windows system associated with these drives, you should switch to another filesystem like ext4.
I do use bind option in fstab in such scenario…
Will make you able to mount a folder into another folder in users home p.e. so you can mount drive and mount folders from that drive in different places.
As long as you are using NTFS on Linux, you are bound to periodically have issues–even if you handle the drives carefully. NTFS tends to be very fragile when handled from Linux.
I have been using Windows along with Linux ever since we had our first PC at home. No problems so far. For a few practical reasons I keep Windows; and for nostalgia because my first steps into e-mail and social media were done, decades ago, with MS DOS, Kermit and Swedish KOM.
I might be able to move our Linux mail folders onto an ext4 partition, but not the big data on partition WinLin that should be accessible by both Linux and Windows.