You are not logged in.

#1 2024-08-19 20:59:09

CoolMan
Member
Registered: 2024-07-03
Posts: 18

[SOLVED] Not able to add extra userspace with nvme

I bought an nvme ssd and I'm having a really hard time connecting it to my system for some extra space. Thus far I created an fdisk /dev/nvme0n1 new partition with the name nvme0n1p1 and then with mkfs.ext4 /dev/nvme0n1p1 I added a filesystem where it also got recognised from my disks and devices settings. However when I try to access it from my file manager, all it has is a locked folder called lost+found and i don't seem to be able to do much with it. Any advise?

NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda           8:0    0 931.5G  0 disk 
├─sda1        8:1    0   100M  0 part /boot/efi
├─sda2        8:2    0     4G  0 part [SWAP]
└─sda3        8:3    0 927.4G  0 part /
nvme0n1     259:0    0 931.5G  0 disk 
└─nvme0n1p1 259:1    0 931.5G  0 part /run/media/CooL/28ffd27a-693f-45c4-8345-1ddddd457eef

Last edited by CoolMan (2024-08-29 09:53:27)

Offline

#2 2024-08-19 21:04:54

cryptearth
Member
Registered: 2024-02-03
Posts: 2,026

Re: [SOLVED] Not able to add extra userspace with nvme

are you familiar with the concept of file permissions?
also: as this is fixed drive you may give it a more permandnt mountpoint

Offline

#3 2024-08-19 22:07:39

CoolMan
Member
Registered: 2024-07-03
Posts: 18

Re: [SOLVED] Not able to add extra userspace with nvme

are you familiar with the concept of file permissions?

With chmod you mean? Should I change all the files that i want to insert?

also: as this is fixed drive you may give it a more permandnt mountpoint

How do I do that?

Offline

#4 2024-08-20 05:56:32

cryptearth
Member
Registered: 2024-02-03
Posts: 2,026

Re: [SOLVED] Not able to add extra userspace with nvme

is this your first time using Linux?

Offline

#5 2024-08-20 07:03:35

CoolMan
Member
Registered: 2024-07-03
Posts: 18

Re: [SOLVED] Not able to add extra userspace with nvme

I am about 3 months in

Offline

#6 2024-08-20 07:12:18

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,104

Re: [SOLVED] Not able to add extra userspace with nvme

To more directly answer the question, any ext4 filesystem will be root writeable by default, you'll want to

chown -R youruser:yourgroup /run/media/CooL/28ffd27a-693f-45c4-8345-1ddddd457eef #yourgroup is likely same as youruser if you used archinstall, followed wiki guidance, maybe check with ls -l or so a file in your current /home

Read https://wiki.archlinux.org/title/File_p … attributes for further information

Last edited by V1del (2024-08-20 07:12:55)

Offline

#7 2024-08-20 07:29:54

Funny0facer
Member
From: Germany
Registered: 2022-12-03
Posts: 159

Re: [SOLVED] Not able to add extra userspace with nvme

about the permanent mountpoint: do a research about mounting

Offline

#8 2024-08-20 09:09:22

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: [SOLVED] Not able to add extra userspace with nvme

https://wiki.archlinux.org/title/Fstab, especially 3.10.

Search "man mount" for gid= and uid= to find out how to mount a partition accessible for a specific user or group.

I usually do not mount anything writable, but I create a folder on the partition and then chown that folder to my user and group.

Offline

#9 2024-08-27 10:01:31

CoolMan
Member
Registered: 2024-07-03
Posts: 18

Re: [SOLVED] Not able to add extra userspace with nvme

Sorry for the delay, I was on vacation. I did a some research from your links and I think I mounted the new drive successfully, I even labeled it to backup so it is easier to address it

so it looks like this now if i type :

NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda           8:0    0 931.5G  0 disk 
├─sda1        8:1    0   100M  0 part /boot/efi
├─sda2        8:2    0     4G  0 part [SWAP]
└─sda3        8:3    0 927.4G  0 part /
nvme0n1     259:0    0 931.5G  0 disk 
└─nvme0n1p1 259:1    0 931.5G  0 part /media/backup 

First I did chown -R that v1del told me and it unlocked the drive just fine and then for the perma mount I did sudo nano /etc/fstab from root and i followed a guide because it was very easy to screw up your computer...

#backup (dev/nvme0n1p1)
UUID=******************************       /media/backup   ext4    defaults        0       0

The only problem I have right now is with steam, whenever I try to connect my new drive with the library it reads it as an external drive and whenever i try to download a game on the new drive it says disk write error. Is there something special i have to do with steam? or did I do something wrong?

Last edited by CoolMan (2024-08-27 19:27:09)

Offline

#10 2024-08-29 09:48:32

CoolMan
Member
Registered: 2024-07-03
Posts: 18

Re: [SOLVED] Not able to add extra userspace with nvme

Update:

So I found the solution with steam... it was a flatpak problem.

I would recommend reading this forum

https://bbs.archlinux.org/viewtopic.php?id=286968

I did what the last guy said and it worked!

Offline

Board footer

Powered by FluxBB