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

 

 

 

Accessing non-linux partition

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
kskruser
Posts: 12
Joined: 2020-12-31 22:02

Accessing non-linux partition

#1 Post by kskruser »

Hi all...

This is probably an easy one:

My 1TB SSD (sda) is divided up into many partitions as follows:

(output of lsblk)

Code: Select all

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
fd0      2:0    1     4K  0 disk 
sda      8:0    0 931.5G  0 disk 
├─sda1   8:1    0  23.5M  0 part 
├─sda2   8:2    0  29.3G  0 part 
├─sda3   8:3    0  39.1G  0 part 
├─sda4   8:4    0     1K  0 part 
├─sda5   8:5    0 500.4G  0 part 
├─sda6   8:6    0 149.4G  0 part 
└─sda7   8:7    0 149.4G  0 part /
sr0     11:0    1  1024M  0 rom
Windows 10 is on sda3 and Debian (Bullseye) \ KDE) is on sda7. sda5 is part of sda4, an extended partition. It uses the NTFS file system. It has data files that I want to share between Windows and Debian. (FWIW, sda1 is FDOS and sda2 is Windows XP.) Clear as mud? It's an MBR disk (not UEFI).

Now, this works fine, but from Debian I have to first 'authorize' sda5 access by entering my password.

However, this system also has Manjaro / KDE on sda6. From Manjaro, I do NOT have to provide my password in order to access sda5. Obviously, I prefer this.

FWIW /etc/fstab is the same on both Linux parts. It does not include sda5.

Question: Why do I have to supply my password to access sda5 in Debian, but not in Manjaro? And how do I 'tweak' Debian so as not to require my password?

Any thoughts welcome!

...Richard

User avatar
Hallvor
Global Moderator
Global Moderator
Posts: 2029
Joined: 2009-04-16 18:35
Location: Kristiansand, Norway
Has thanked: 139 times
Been thanked: 206 times

Re: Accessing non-linux partition

#2 Post by Hallvor »

Make a mountpoint and, if necessary, change ownership?
[HowTo] Install and configure Debian bookworm
Debian 12 | KDE Plasma | ThinkPad T440s | 4 × Intel® Core™ i7-4600U CPU @ 2.10GHz | 12 GiB RAM | Mesa Intel® HD Graphics 4400 | 1 TB SSD

CwF
Global Moderator
Global Moderator
Posts: 2636
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 192 times

Re: Accessing non-linux partition

#3 Post by CwF »

kskruser wrote: 2022-08-04 23:01 FWIW /etc/fstab is the same on both Linux parts. It does not include sda5.
It does not need to be.
It is simply a user authority question within your particular debian DE, the disc in question is irrelevant.

Build your own options are to enable the user with a pkla policy kit rule for udisk2 (best),
or install pmount (slimmest) and follow instructions to enable the user,
Or however many other redundant methods are out there.

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 461 times

Re: Accessing non-linux partition

#4 Post by sunrat »

Sure I've posted this on the forum several times before. I use this for Dolphin to allow password-less mounting and access of internal drives.

Create:
/etc/polkit-1/localauthority/50-local.d/10-desktop.policy.pkla
With content something like this:

Code: Select all

[Mounting, checking, etc. of internal drives]
Identity=unix-group:admin;unix-user:<username>;
Action=org.freedesktop.udisks2.filesystem-*;org.freedesktop.udisks2.drive-ata-smart*
ResultActive=yes
Of course replace <username> with the user you want to grant access.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

Post Reply