LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cant write to new ext4 partition - no idea why (https://www.linuxquestions.org/questions/linux-newbie-8/cant-write-to-new-ext4-partition-no-idea-why-4175585643/)

louierev07 07-27-2016 12:38 PM

Cant write to new ext4 partition - no idea why
 
So in my computer I have 3 disks:
-1 SSD which I installed mint 18 on
-a 5TB HDD for Storage
-another 2TB HDD for storage

After installing mint, I quickly just formatted one of my storage disks (5tb) as ext4 to see if it would work - it worked with no problems. I added a few files there and everything was fine. (pretty sure I used the "disks" application in mint to do so.

Now today I went to go format the other Hard drive, and although it works and says Ive created an ext4 partition, once I try to use it it wont let me. If I try to drag a file in it says error while copying and permission denied. Tried formatting in both disks and also gparted - same result.

Any idea why this is happening? Im going nuts!

rknichols 07-27-2016 12:50 PM

By default, the root of the filesystem will be owned by root and writable only by root. While the drive is mounted, you need to use chown to change the ownership of the directory at that mount point to your ID. You will need to do that as root, either via sudo or from a root shell.

louierev07 07-27-2016 01:47 PM

Quote:

Originally Posted by rknichols (Post 5582116)
By default, the root of the filesystem will be owned by root and writable only by root. While the drive is mounted, you need to use chown to change the ownership of the directory at that mount point to your ID. You will need to do that as root, either via sudo or from a root shell.

Got it to work before seeing this. What I did was just right clicked my user file and did "open as root", and then edited the properties from there (just changed the owner to myself). Is that basically the same thing? I also clicked apply permissions to enclosed files even though it was an empty folder - just in case.

Before doing that, I tried following this guide: https://help.ubuntu.com/community/In...gANewHardDrive

The thing that really didnt make a lot of sense was making a mount point somewhere else besdies where hard drives normally are put in linux mint. Like - the drive was already there and showing up - why would I want a different mount point? I mean -doesnt it already have a mount point by formatting in gparted?

suicidaleggroll 07-27-2016 02:12 PM

The formatting in gparted has nothing to do with the mount point.

Some distros will automatically mount attached devices and assign them a dynamic mount point based on their label, some won't. On the ones that don't you need to make your own mount point and mount it there, on the ones that do you can use the default, or you can ignore the default and make your own mount point where you want it.

pressman57 07-27-2016 04:29 PM

The best way to mount and use the disk is by editing /etc/fstab. This is Arch Linux's wiki on fstab but should be good for Mint as well:

https://wiki.archlinux.org/index.php/Fstab

Be sure to use UUID's if any of the drives are USB.


All times are GMT -5. The time now is 10:52 PM.