#can't see mounted drive or edit it's contents
52 messages · Page 1 of 1 (latest)
You need root privileges to tinker with hard drives. This is usually achieved by prefacing your commands with sudo , which will then prompt you for your password.
How have you mounted the drive anyway?
Mkfs and mount, I have been using sudo, just was really late last night and I forgot😂, theres no sudo for cd and thats my problem i cant navigate into my drive or add files.
I have it mounted to /media/disk
I was just looking at the fdisk command lacking sudo, which will of course not work. And I was not asking about the mount point, but how you are mounting it. Via fstab? Via Disks GUI tool? Manually?
Manually, I looked into fstab, but it was a read only file and wouldn't let me write (plus I had no idea what I was doing)
If you are unsure, it is a good idea to keep out of fstab. Could you please share the output of lsblk? That will list all your block devices, which includes hard drives.
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 4K 1 loop /snap/bare/5
loop1 7:1 0 90.6M 1 loop /snap/bitwarden/103
loop2 7:2 0 105.8M 1 loop /snap/core/16202
loop3 7:3 0 55.7M 1 loop /snap/core18/2812
loop4 7:4 0 74.1M 1 loop /snap/core22/1033
loop5 7:5 0 97.7M 1 loop /snap/discord/176
loop6 7:6 0 164.8M 1 loop /snap/gnome-3-28-1804/198
loop7 7:7 0 497M 1 loop /snap/gnome-42-2204/141
loop8 7:8 0 229.8M 1 loop /snap/godot-4/4
loop9 7:9 0 91.7M 1 loop /snap/gtk-common-themes/1535
loop10 7:10 0 20K 1 loop /snap/hello-world/29
sda 8:0 0 3.6T 0 disk
nvme0n1 259:0 0 465.8G 0 disk
├─nvme0n1p1 259:1 0 512M 0 part /boot/efi
└─nvme0n1p2 259:2 0 465.3G 0 part /
That one is your 4TB HDD: sda 8:0 0 3.6T 0 disk. It does not appear to be partitioned, otherwise you would see the partitions in the lines underneath it, same as with the nvme SSD at the bottom. So if you are sure it was partitioned, Windows might still be locking it somehow. Or it never was partitioned.
I am not dual booting, is there a way windows could lock the drive?
Is that drive supposed to be empty, or are there files on it that you need?
no there are no files I need it's empty
Then you should just open the Disks tool from the start menu and select the drive. Feel free to share a screenshot of how it looks in there.
That is formatted in ext4, a common Linux filesystem. Didn't you say it was supposed to be exfat?
Because exfat could also be read by Windows, but this cannot without extra tools.
well they are pretty close I just confused the two, and idc if it's read by windows not using it anyways
Then you can just click the play button, and it will be mounted.
It should show up in Nemo as a device, and I expect it to be writable.
ok, it's mounted but I still don't have permissions to view the contents
heres a image
What error does it give? Have you tried the mount point shown in Disks? Should be clickable.
that is clicking on the disk
Alright. Please unmount it for a moment with the stop button, then enter this on a terminal: sudo chown jamie:jamie /media/jamie/bigChonkie, then mount and try again.
chown: cannot access '/media/jamie/bigChonkie': No such file or directory
the folder bigChonkie is no longer inside jamie.
that's expected right?
Well, it is being pissy today. Try sudo chown jamie:jamie /media/jamie/* - this is to make sure you actually own that mount point.
zsh: no matches found: /media/jamie/*
The thing here is, this is mounted to a temporary directory, which apparently gets entirely removed when it is not in use. So when it is created again, it somehow gets created without you having access to it. This points to something being broken with your user, since this would just work in a plain Mint install. I have no idea what broke here.
hmmm, I have the snapshots thing enabled, I think that gives me options yes? I could revert the files to the first snapshot and try that?
You could. But how did you create your user account? Let the installer create it, or made it yourself?
I let the installer create it.
You are lacking rights, or some group membership for this. But whatever - please run blkid and copy the UUID of your 4TB drive somewhere you can get it back from, text file or something.
ok, done
Then you want to add a line to your fstab to mount that drive always. Like so UUID=<insert here> /media/jamie/bigChonkie ext4 defaults 0 0
You can sudo xed /etc/fstab to get in there. And make sure to insert the UUID that you copied.
When you are done, save it and quit. You can then sudo mount -a to mount everything, which should now include that fstab line.
ok, that's done.
If you did that last command, look for your drive. Should be mounted.
yep it is
Did that solve your problem, or are you still unable to access it?
still can't access it.
Try sudo chmod 777 /media/jamie/bigChonkie
IT WORKS!
Permissions had to be refreshed.
Should stick now. The fstab entry will auto-mount the drive on every boot. If it should fail (sometimes does for me), re-run sudo mount -a.
Check if you can write to it, too.
thanks sooo much, and yes I can write to it!
Glad it works. Feel free to mark this thread solved if you are done.
hit the play button to remount it. it needs to be mounted to change owner as was mentioned there