Yeah, I can create folders now, we are going to need to do the same sdb4 too now right?
No, sdb4 is ntfs, and therefore it has not linux compatible permission managment. If you need to write to ntfs partitions, then you have to set fake permissions at the mount process. But i guess the permissions are set by the file manager alreadyâŚ
Thanks I guess I will just leave it there then, You said I should backup the files to the ext4 partition, is there any risk in leaving them there? I only use that partition for that anyway.
And do I run a
sudo update-grub
just in case?
Just keep in mind. The ntfs filesystem driver on linux is a reverse-engineered one. That means it works good with a lot of functions and it is stable, but there is always a risk, that it has malfunctions.(Edit: have to correct myself, it is not reverse-engineered.) I would always recommend to use ntfs-3g only if there is no way around and then only in reading mode to prevent data lost (which would be the worst case).
And yes, there is nothing wrong to update grub after reinstalling it
Thanks for the advice! The funny thing is that the important files I have there are only family photos, so I donât really need ntfs for that, you think it would be a good idea to backup everything and re-format it to something like ext4 or even ntfs-3g for the security sake?
Also I will do a update-grub just in case
Yepp, better use a filesystem which fully compatible with linux like ext4 for the daily tasks. Btw⌠ntfs-3g is the name of the driver for the ntfs filesystem: NTFS-3G - Wikipedia
Ok Iâm going to do that then, thanks for the advice! Going to update you in case I get stuck again
So I re-formated the partition and this is the path: /run/media/fernando/Disco Principal/
The commad should be:
sudo chown -R $USER:$USER /run/media/fernando/Disco\ Principal/
And
sudo chmod -R 777 /run/media/fernando/Disco\ Principal/
Is that right?
Never mind just tried it and it worked
Anyway thank you very much for your help, I canât thank you enough!
I am going to mark your response as the solution now.
Also everytime I boot I have to manually mount the drives on the file manager, is there a way to make them be mounted on boot?
Glad i could help you
- Open /etc/fstab as root.
- Look up the UUID of the partition. For example:
sudo blkid /dev/sdY1
- Type in a new line like this:
UUID=<UUID> /path/to/mountpoint ext4 defaults,noatime 0 1
- The folder to the mountpoint must exist/have to be created before mounting.
- Now mount with:
sudo mount /path/to/mountpoint
Now this is permanent and already active.
More information here: https://wiki.archlinux.org/index.php/Fstab
Ok so fstab is like this now:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=9d137ceb-f57c-4775-b73e-bf4d98d12a91 / ext4 defaults,noatime,discard 0 1
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
UUID=82916290-6660-4a03-af8e-86875ea57b9d /run/media/fernando/Disco de Coisas/ ext4 defaults,noatime 0 1
UUID=47a993c2-3795-40b1-b5ba-af2e5a0076ef /run/media/fernando/Disco Principal/ ext4 defaults,noatime 0 1
Is that correct? The spacing between each item doesnât seem right.
Edit: I edited the file in the file manager, not in the terminal, just in case
I would not use /run/media/fernando/
for permanent mount, because it is mostly used for temporary mount. Choose another folder. It can be anywhere you want. And better user â_â instead of space at the folders. If you are the only user who uses it, choose /home/fernando/Disco_de_Coisas
, or maybe /mnt/Disco_de_Coisas
or at root: /Disco_de_Coisas
. Of course you have to create the folder first.
For example:
sudo mkdir /Disco_de_Coisas
Then just add the folder to your favorites at your file manager.
Thatâs interesting, because /run/media/ was the default mountpoint that Gparted created when mounting, so I can change that now even after mounting and setting up the permissions?
While @megavoltâs answer is perfect and nothing wrong with, I advise you to also look at the tutorial about [root tip] Use systemd to mount ANY device
Gparted has nothing to do with the default mountpoint. Your file manager have done this. After mounting it through fstab, the partition will not be listed there like before. It will mounted in the background and act like a normal folder. And the permission you have set are saved on the filesystem. Nothing have to be changed there if already set.
And yes, you can change the mountpoint anytime.
Ok, just mounted on root, and everything worked, all of the files are on the folders that I created, however when going to the partition on the file manager, it still appears as /run/media/fernando, maybe it updates after a reboot?
Also I didnât unmount it before mounting it on root
No problem on reboot it will be away definitely. Try restarting the file manager? At least on thunar or pcmanfm it disappears immediately.
I umounted it on the file manager and on Gparted, and mounted it again on root, it disapeared on the file manager, but I canât see the full space of the partiton, it just looks like a folder, with only counting the space that i already used.
On thunar root in the devices section it shows up but on the normal file manager it doesnât
mh⌠maybe choose /media/Disco_de_Coisas
instead. I guess this the correct one to be compatible with the file manager.
Ok so I just unmount it again on Gparted, edit fstab and do the mounting on the terminal again?