#[SOLVED BY MY BABYBOY] How do i own the directory that my disk is mounted on

75 messages · Page 1 of 1 (latest)

void fulcrum
foggy rose
# void fulcrum

It looks like a VFAT system, which does not support unix permission.

void fulcrum
#

that means ?

foggy rose
#

Means that you will have to specific the uid in the mount options

#

The same applies to file permissions, which are also set using umask.

void fulcrum
#

so what should i do

foggy rose
void fulcrum
#

okay i wil specific the uid thanks for the help

foggy rose
#
sudo mount -t vfat /dev/sdc1 /path/to/mount/point -o rw,uid=$(id -u),gid=$(id -g)
#

Please modify as appropriate

void fulcrum
#

is there anyway i can run this command without sudo

void fulcrum
#

i think it worked let me check

void fulcrum
foggy rose
#

Mounting is a privilege

foggy rose
void fulcrum
#

but when i use udisk it doesnt let me exec c++ code

#

and i have to use mount

foggy rose
void fulcrum
#

do you think its unsafe if i put my password on a variable and run echo $PASS | mount ...

foggy rose
foggy rose
void fulcrum
#

on terminal

#

read -s $PASSWORD

foggy rose
foggy rose
foggy rose
void fulcrum
#

how do i use polkit

foggy rose
void fulcrum
#

mount the disk automaticly when i open the pc

#

i use i3

foggy rose
void fulcrum
#

/home/zketra/mnt/main

#

/dev/sdc1

foggy rose
void fulcrum
#

where do i write this

foggy rose
void fulcrum
#

i dont have a fstab

#

directoruy

foggy rose
#

It is a file

void fulcrum
#

ach so

foggy rose
void fulcrum
#

do i have to put the thing with M

foggy rose
void fulcrum
#

only added what you sent me

foggy rose
# void fulcrum i havent changed anything

Unix uses 0xA for a newline character. Windows uses a combination of two characters: 0xD 0xA. 0xD is the carriage return character. ^M happens to be the way vim displays 0xD (0x0D = 13, M is the 13th letter in the English alphabet).

foggy rose
void fulcrum
#

okay baby

#

so im saving the file

foggy rose
#

However, you must first unmount any existing mount points from /dev/sdc1.

#

Or the mount options won't apply

void fulcrum
#

alr it worksss

#

does it run everytime i open the pc

#

or do i have to mount it every time

foggy rose
void fulcrum
#

so it mounts everytime i open my pc

foggy rose
void fulcrum
#

thank you for your delicious help

foggy rose
# void fulcrum thank you for your delicious help

I see you're a C++ fellow as well, I happened to come across this question, which is why std::enable_if_t<std::is_function<F>::value, bool> = true doesn't work with lambda.
Do you happened to know an answer?

void fulcrum
#

lemme see

void fulcrum
#

i mean the and conditions

#

what is at the other end

foggy rose
void fulcrum
#

have a nice day

#

babyboy