You are not logged in.

#1 2015-06-22 15:46:41

gyosko
Member
Registered: 2015-06-22
Posts: 11

[SOLVED]Mounting partition at boot with right permissions

I need to mount my /dev/sda7 partition when I login so I added the following lines to /etc/fstab

# /dev/sda7 LABEL=Data
UUID=9E70298C70296BE9	/home/gyosko/Data	auto	rw,user,auto	0	0

I got the UUID by reading the output of

blkid
/dev/sda7: LABEL="Data" UUID="9E70298C70296BE9" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="0ddc5fe2-ff5e-434b-99df-76d035105f83"

The problem is that I can't even read the partition when it is mounted because root is the owner of Data directory.

Before mounting:

ls -l
drwxr-xr-x 2 gyosko gyosko 4096 22 giu 17.23 Data

After mounting:

ls -l
drwx------ 1 root   root   4096 20 giu 21.05 Data

How can I mount the partition and be the owner so that I can read/write without problem?

Last edited by gyosko (2015-06-22 16:10:00)

Offline

#2 2015-06-22 15:58:57

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,406
Website

Re: [SOLVED]Mounting partition at boot with right permissions


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2015-06-22 16:10:48

gyosko
Member
Registered: 2015-06-22
Posts: 11

Re: [SOLVED]Mounting partition at boot with right permissions

Offline

Board footer

Powered by FluxBB