I cannot create or copy data on a partition [SOLVED]

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
Stefano_IT
Level 2
Level 2
Posts: 69
Joined: Tue Jul 09, 2019 8:53 am
Location: Italy

I cannot create or copy data on a partition [SOLVED]

Post by Stefano_IT » Tue Sep 17, 2019 4:11 am

Hi guys, I hope it's the right forum section to ask this thing.
Please excuse my English, but use an online translator.

I have a desktop PC and a notebook, Mint 18.3 Silvia is installed on both

When I did the installation I created two additional partitions on both - one is called "Data" to keep files and a "Backup" (I use this for Timeshift)
The problem is that I can't copy anything to the Data partition on the Notebook - I can't even create a file or folder because the item is grayed out.
To copy data or create documents or folders, I must first select the item in the right-hand menu "Open as Root"
I don't have this problem on my desktop PC! - (only in the partition that I use for Timeshift is this problem but I use it only for that and Timeshift is able to create Backups without problems)
On the Notebook I tried with Gparted to delete and recreate the partition but the problem remains.
I tried to use Gparted both as an installed program and as a Live DVD
What can I do to access that partition without logging in as Root?
Many thanks for every suggestion.
Last edited by Stefano_IT on Tue Sep 17, 2019 8:40 am, edited 1 time in total.
Linux Mint 18.3 Sylvia XFCE 64 bit

deepakdeshp
Level 16
Level 16
Posts: 6055
Joined: Sun Aug 09, 2015 10:00 am

Re: I cannot create or copy data on a partition

Post by deepakdeshp » Tue Sep 17, 2019 4:56 am

Please connect all drives and post output of

Code: Select all

sudo fdisk -l
and identify your partition where you face the problem.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
Regards,
Deepak

I am using Mint 19.2 Cinnamon 64 bit with AMD A8/7410 processor . Memory 8GB

deck_luck
Level 4
Level 4
Posts: 234
Joined: Mon May 27, 2019 6:57 pm
Location: here

Re: I cannot create or copy data on a partition

Post by deck_luck » Tue Sep 17, 2019 5:17 am

Your problem appears to be a simple permission setup. Your mount point directory (before mounting) should have 755 permissions. After mounting the file system you can change the permissions, owner, and group as needed. If you are the only user on the computer you need to change the owner and group to your user name with the 700 permissions. I do not know your Linux skill level. Are you capable of using the bash command line?

Alternately, you can use the "disks" program to manage the file system. You have two options of automatically mounting at boot time or allowing the user to mount the file system from the file browser.
🐧Linux Mint 19.1 XFCE
💡Give a man a fish, and you feed him for a day. Teach a man to fish, and you feed him for a lifetime. ✝️

Stefano_IT
Level 2
Level 2
Posts: 69
Joined: Tue Jul 09, 2019 8:53 am
Location: Italy

Re: I cannot create or copy data on a partition

Post by Stefano_IT » Tue Sep 17, 2019 6:15 am

Istantanea_2019-09-17_12-05-00.png
Thank you both for your reply.
No I'm not familiar with bash.
I found "disks" and opened the program, in "edit mounting options" I found ON on both computers - so I don't understand why I only have that problem on the notebook.

Edit post: On the Notebook, the partitions I can't write to are SDA5 and SDA6
I use SDA5 only for Timeshift - I'm interested in writing and creating files on SDA6 - Both have Linux Ext4 filesystems
Attachments
Istantanea_2019-09-17_12-14-43.png
Istantanea_2019-09-17_12-06-32.png
Linux Mint 18.3 Sylvia XFCE 64 bit

User avatar
Larry78723
Level 7
Level 7
Posts: 1545
Joined: Wed Jan 09, 2019 7:01 pm
Location: Jasper County, SC, USA

Re: I cannot create or copy data on a partition

Post by Larry78723 » Tue Sep 17, 2019 7:15 am

Try this, enter the following in a terminal

Code: Select all

sudo chown -R -v $USER:$USER /mnt/988E-F8E4
Then try creating a file or folder in your data partition
Image

altair4
Level 19
Level 19
Posts: 9738
Joined: Tue Feb 03, 2009 10:27 am

Re: I cannot create or copy data on a partition

Post by altair4 » Tue Sep 17, 2019 7:16 am

Something is not right there.

fdisk thinks sda6 is an ext4 partition. gparted thinks it's an ext4 partition. But the Disks thingy is mounting it as /dev/disk/by-uuid/988E-F8E4.

** 988E-F8E4 is a UUID representing a FAT32 partition not an ext4 partition.
** Disks thinks it's mounted under /mnt
** But gparted thinks it's mounted under /media/me

See if the output of this command confirms any of this:

Code: Select all

sudo blkid -c /dev/null -o list
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

Stefano_IT
Level 2
Level 2
Posts: 69
Joined: Tue Jul 09, 2019 8:53 am
Location: Italy

Re: I cannot create or copy data on a partition

Post by Stefano_IT » Tue Sep 17, 2019 7:38 am

@altair

Edit:
Yes, on both computers the partitions were in FAT32 - after I noticed the problem on the notebook I deleted and recreated the partition using Ext4 (but the problem remained)
On the desktop PC the "Data" partition is still FAT32 but I can copy and create files without any problem.
Attachments
Istantanea_2019-09-17_13-35-14.png
Linux Mint 18.3 Sylvia XFCE 64 bit

altair4
Level 19
Level 19
Posts: 9738
Joined: Tue Feb 03, 2009 10:27 am

Re: I cannot create or copy data on a partition

Post by altair4 » Tue Sep 17, 2019 7:46 am

This is going to reflect my complete disdain for the Disks utility but I'm betting blkid is correct.

I think Larry78723 has the right approach but with the wrong mount point. Before you commit to anything why not post the permissions of all the subfolders under /media/me

Code: Select all

ls -al /media/me
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

Stefano_IT
Level 2
Level 2
Posts: 69
Joined: Tue Jul 09, 2019 8:53 am
Location: Italy

Re: I cannot create or copy data on a partition

Post by Stefano_IT » Tue Sep 17, 2019 7:53 am

@Altair: view this pics
Attachments
Istantanea_2019-09-17_13-51-27.png
Istantanea_2019-09-17_13-51-27.png (17.55 KiB) Viewed 266 times
Linux Mint 18.3 Sylvia XFCE 64 bit

deck_luck
Level 4
Level 4
Posts: 234
Joined: Mon May 27, 2019 6:57 pm
Location: here

Re: I cannot create or copy data on a partition

Post by deck_luck » Tue Sep 17, 2019 7:58 am

Is "me" your user name?
Since you have it configured to mount using the user file browser you will find in mounted under the /media/user_name directory. To quickly correct this you need to use the terminal at the bash command line. After you have mounted the file system from the user file browser open a terminal session. Run the following command and post the output

Code: Select all

cd /media/user_name
ls -l
If you see your file system and it has root root rwx r-x r-x owner and permission you can changed it with the following commands

Code: Select all

sudo chown user_name: your_mountpoint
chmod 700 your_mountpoint
The previous owernship and permissions assume you have one user exclusively accessing the file system.

Replace user_name with your user name (me) and your mountpoint with the appropriate values.

If you had used the disks program to create the partition it would have originally set the owner and group to your user_name. However, you used gparted to create it. By default the gparted program uses the root owner and group and 755 permission.

If you do not have any useful data in the file system you could delete it and recreate it using the disks program instead of using the bash command line in a terminal session.
Last edited by deck_luck on Tue Sep 17, 2019 8:34 am, edited 1 time in total.
🐧Linux Mint 19.1 XFCE
💡Give a man a fish, and you feed him for a day. Teach a man to fish, and you feed him for a lifetime. ✝️

altair4
Level 19
Level 19
Posts: 9738
Joined: Tue Feb 03, 2009 10:27 am

Re: I cannot create or copy data on a partition

Post by altair4 » Tue Sep 17, 2019 8:15 am

You have two issues - depending on who is accessing these folders.

[1] The Backup and Dati folders are owned and writeable only to root.

[2] Because they are mounted under /media/me - and assuming "me" is your user name - the only user capable of getting to those folders is "me". That is what the little "+" sign means at the end of the permissions:
drwxr-x---+ 2 root root
If you run getfacl /media/me you will see that "me" is the only user that can traverse the folder.

If you are the only user or if the process you are using is running as you this isn't a problem. If not it doesn't matter what the permissions are on the mount point - only "me" will get access to it.

You could eliminate the [2] problem just by mounting the partitions one level up from where they are: /media/Dati /media/Backup

You can eliminate the [1] problem with a chmod or chown.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

Stefano_IT
Level 2
Level 2
Posts: 69
Joined: Tue Jul 09, 2019 8:53 am
Location: Italy

Re: I cannot create or copy data on a partition

Post by Stefano_IT » Tue Sep 17, 2019 8:20 am

Yes, I'm the only user.
This is getting very complicated for me.. :-(
Attachments
Istantanea_2019-09-17_14-16-23.png
Istantanea_2019-09-17_14-16-23.png (17.84 KiB) Viewed 243 times
Linux Mint 18.3 Sylvia XFCE 64 bit

Stefano_IT
Level 2
Level 2
Posts: 69
Joined: Tue Jul 09, 2019 8:53 am
Location: Italy

Re: I cannot create or copy data on a partition

Post by Stefano_IT » Tue Sep 17, 2019 8:28 am

I tried to follow these commands but without success:

sudo chown me: /dev/sda6
chmod 700 /dev/sda6
Linux Mint 18.3 Sylvia XFCE 64 bit

altair4
Level 19
Level 19
Posts: 9738
Joined: Tue Feb 03, 2009 10:27 am

Re: I cannot create or copy data on a partition

Post by altair4 » Tue Sep 17, 2019 8:29 am

You never want to apply chown / chmod to anything in /dev

Does this allow you and whatever application you are using write access:

Code: Select all

sudo chown me /media/me/Backup
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

Stefano_IT
Level 2
Level 2
Posts: 69
Joined: Tue Jul 09, 2019 8:53 am
Location: Italy

Re: I cannot create or copy data on a partition

Post by Stefano_IT » Tue Sep 17, 2019 8:37 am

I executed your instructions:
sudo chown me /media/me/Backup
and this solved problem on "Backup" partition.

After :
sudo chown me /media/me/Dati

Problem solved here too :)
THANKS !
Linux Mint 18.3 Sylvia XFCE 64 bit

deck_luck
Level 4
Level 4
Posts: 234
Joined: Mon May 27, 2019 6:57 pm
Location: here

Re: I cannot create or copy data on a partition [SOLVED]

Post by deck_luck » Tue Sep 17, 2019 8:49 am

In the future I would suggest you only use the disks program to create new file systems.
Unlike gparted the disks program will apply your user name as the owner and group as well as 700 permissions. It will prevent this situation. Most new to Linux users should only use the disks program. It will make their life much easier.
🐧Linux Mint 19.1 XFCE
💡Give a man a fish, and you feed him for a day. Teach a man to fish, and you feed him for a lifetime. ✝️

Stefano_IT
Level 2
Level 2
Posts: 69
Joined: Tue Jul 09, 2019 8:53 am
Location: Italy

Re: I cannot create or copy data on a partition [SOLVED]

Post by Stefano_IT » Tue Sep 17, 2019 8:57 am

@deck_luck

Thank you very much for your suggestion!
I will try to remember this in the future.
Linux Mint 18.3 Sylvia XFCE 64 bit

altair4
Level 19
Level 19
Posts: 9738
Joined: Tue Feb 03, 2009 10:27 am

Re: I cannot create or copy data on a partition [SOLVED]

Post by altair4 » Tue Sep 17, 2019 9:50 am

And I would suggest just the opposite.

Larry78723 had the correct answer hours ago. The only problem with it is he had the wrong mount point. He had the wrong mount point because Disks told him that's where it was mounted.

Disks as an application really needed the aid of subject matter experts.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

Stefano_IT
Level 2
Level 2
Posts: 69
Joined: Tue Jul 09, 2019 8:53 am
Location: Italy

Re: I cannot create or copy data on a partition [SOLVED]

Post by Stefano_IT » Tue Sep 17, 2019 2:12 pm

Thanks also to Larry.
Thanks again to everyone for the professional support received, it is very nice to be able to receive help on this forum.
Linux Mint 18.3 Sylvia XFCE 64 bit

deck_luck
Level 4
Level 4
Posts: 234
Joined: Mon May 27, 2019 6:57 pm
Location: here

Re: I cannot create or copy data on a partition [SOLVED]

Post by deck_luck » Tue Sep 17, 2019 2:45 pm

altair4 wrote:
Tue Sep 17, 2019 9:50 am
And I would suggest just the opposite.

Larry78723 had the correct answer hours ago. The only problem with it is he had the wrong mount point. He had the wrong mount point because Disks told him that's where it was mounted.

Disks as an application really needed the aid of subject matter experts.
Do you have any experience using disks? Why are are misrepresenting disks indicating the wrong mount point. The disk summary had indicated the partition was in fact mounted on the /media/<username>/Dati mount point.

Contenuto Ext4 (versione 1.0) --- Montato su /media/me/Dati
🐧Linux Mint 19.1 XFCE
💡Give a man a fish, and you feed him for a day. Teach a man to fish, and you feed him for a lifetime. ✝️

Post Reply

Return to “Installation & Boot”