LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-27-2016, 12:38 PM   #1
louierev07
LQ Newbie
 
Registered: Jul 2016
Posts: 14

Rep: Reputation: Disabled
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!
 
Old 07-27-2016, 12:50 PM   #2
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,770

Rep: Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210
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.
 
Old 07-27-2016, 01:47 PM   #3
louierev07
LQ Newbie
 
Registered: Jul 2016
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rknichols View Post
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?
 
Old 07-27-2016, 02:12 PM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
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.
 
Old 07-27-2016, 04:29 PM   #5
pressman57
Member
 
Registered: Feb 2005
Location: Escondido Ca.
Distribution: Arch
Posts: 118

Rep: Reputation: 29
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.

Last edited by pressman57; 07-27-2016 at 04:31 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
read/write ext4 partition from windows 7 soumya_r Linux - Newbie 11 02-08-2013 04:32 AM
[SOLVED] I need help converting a vfat extended partition into a ext4 partition zorro70 Linux - General 6 02-15-2011 08:55 PM
[SOLVED] Write permission to every user in ext4 (fstab) the98 Linux - General 10 09-14-2010 09:23 AM
where do I start I have no idea how to use Linux let alone write programs for it chrisbaby-nz Linux - Newbie 43 05-24-2010 02:55 PM
Ext4 partition corrupted by resized NTFS Vista C:\ partition? graviton-boson Linux - Newbie 2 03-16-2009 01:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration