You are not logged in.

#1 2022-10-24 00:10:18

JasonMehmel
Member
Registered: 2015-10-06
Posts: 186

Saving hard drive access permissions?

So, I installed Byrillium on a new partition on my laptop, with Ubuntu and Windows. (I leave Windows there for the few things that make it absolutely necessary in my profession...)

I've been living in Bunsen Labs for weeks now and I don't think I'll need to go back to Ubuntu for much. I am considering leaving the linux games I've installed over there so that I'm not tempted to load them while I'm working...

But because I was living in Ubuntu for a couple of years before coming back to Bunsen Labs, I've got a lot of files still over there. Downloads I mean to do something with, music files, wallpapers, etc.

Whenever I reboot Bunsen Labs I need to re-enter my password for the Ubuntu partition to access it. I'd love to not have to do that!

Where would I look to either save the password or add it to some kind of autostart list that adds it with permission?


Fortune favours the bold.
ThinkPad T15 Gen 2i

Offline

#2 2022-10-24 00:18:16

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 2,660

Re: Saving hard drive access permissions?

What is the actual partition layout?

You may be able to use chown and/or chmod to set the permissions ( https://wiki.archlinux.org/title/File_p … attributes ) for the files/filesystem so that they are shared data.


You must unlearn what you have learned.
    -- yoda

Online

#3 2022-10-24 00:43:54

sleekmason
zoom
Registered: 2018-05-22
Posts: 1,110
Website

Re: Saving hard drive access permissions?

You can add the ubuntu partition to /etc/fstab as well. Be aware that a slip up in /etc/fstab can have consequences, but this isn't all that difficult.

To find the uuid of the partition you want to add, in a terminal type:

blkid

and look for the partition number to want to add, and copy the uuid number.  Then add something like the below line to the bottom of your /etc/stab as root, changing the [your uuid number] to match the number you found in blkid.  Look at the other entries there for further info.  To know more about what each field does, look at 'man fstab' in a terminal.

[UUID=[your uuid number]  /mnt/data       ext4    rw,user,auto    0       2

Here is the link where I got the above line to add.  I just added a partition I've been meaning to add for quite a while using this method and had no issues.

https://forums.bunsenlabs.org/viewtopic.php?id=5873

I was able to just logout and back in and could access the partition without root.

Last edited by sleekmason (2022-10-24 00:56:02)

Offline

#4 2022-10-24 12:48:54

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 2,660

Re: Saving hard drive access permissions?

sleekmason wrote:

You can add the ubuntu partition to /etc/fstab as well. Be aware that a slip up in /etc/fstab can have consequences, but this isn't all that difficult.

To find the uuid of the partition you want to add, in a terminal type:

blkid

and look for the partition number to want to add, and copy the uuid number.  Then add something like the below line to the bottom of your /etc/stab as root, changing the [your uuid number] to match the number you found in blkid.  Look at the other entries there for further info.  To know more about what each field does, look at 'man fstab' in a terminal.

[UUID=[your uuid number]  /mnt/data       ext4    rw,user,auto    0       2

Here is the link where I got the above line to add.  I just added a partition I've been meaning to add for quite a while using this method and had no issues.

https://forums.bunsenlabs.org/viewtopic.php?id=5873

I was able to just logout and back in and could access the partition without root.

This would be the best method. Mounting the partition from /etc/fstab with the correct permissions.


You must unlearn what you have learned.
    -- yoda

Online

Board footer

Powered by FluxBB