[solved] Deleting .trash from external media

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[solved] Deleting .trash from external media

Postby Garthhh » Jan 31st, '17, 20:25

I found this
viewtopic.php?f=7&t=7654

alt F2>kdesu dolphin
entered password
root dolphin opens

navigate to .Trash-500
shift delete no effect
configured toolbar to include Delete, which is greyed out
same with files within the folder
all options are available for files on the local HDD

are there other options, i'm not understanding?
Last edited by Garthhh on Feb 8th, '17, 19:01, edited 1 time in total.
Sorry my if Experience doesn't meet your Expectations, I'll try Harder in the Future
User avatar
Garthhh
 
Posts: 483
Joined: Jun 2nd, '11, 19:27
Location: Reno

Re: Deleting .trash from external media

Postby benmc » Feb 1st, '17, 03:57

Dolphin will allow you to view the permissions of a file.

Invoke Dolphin, right click the .Trash-500, the choose the permissions tab.
Whom does the "user" and "group" belong to?
If both are blank,
Code: Select all
kdesu dolphin
again and change them to "root" or "your_user_name".
you should now be able to delete the folder.

You may have to invoke Dolphin as root:
Code: Select all
$ su -
password:
# dolphin


Use with care.
benmc
 
Posts: 1214
Joined: Sep 2nd, '11, 12:45
Location: Pirongia, New Zealand

Re: Deleting .trash from external media

Postby gohlip » Feb 1st, '17, 11:11

Directory in external media is most likely not user owned.
Use 'chown' to set permission for user.
To be sure, user must be in sudoer list.

"delete' then will not require sudo rights.

As for "kdesu dolphin", repeat "Use with care." Almost certainly do not use it at all.
Use 'user dolphin' and if require 'sudo rights', then at dolphin command (F4), use "sudo ...." or "kdesu ..........."; Never "kdesu dolphin"; that will give 'root dolphin', not 'user dolphin', always bad.

ps: preferably same goes for 'su -' in terminal (though not as fatal), create sym-links so we can use "sudo" or "kdesu" in user terminal. Avoid root terminal.
Why do we live? To prove not everything in nature has a purpose.
gohlip
 
Posts: 573
Joined: Jul 9th, '12, 10:50

Re: Deleting .trash from external media

Postby Garthhh » Feb 4th, '17, 19:30

benmc wrote:Dolphin will allow you to view the permissions of a file.

Invoke Dolphin, right click the .Trash-500, the choose the permissions tab.
Whom does the "user" and "group" belong to?
If both are blank,
Code: Select all
kdesu dolphin
again and change them to "root" or "your_user_name".
you should now be able to delete the folder.

You may have to invoke Dolphin as root:
Code: Select all
$ su -
password:
# dolphin


Use with care.


Dolphin won't let me change permissions
Root Dolphin won't allow me to access permissions
Sorry my if Experience doesn't meet your Expectations, I'll try Harder in the Future
User avatar
Garthhh
 
Posts: 483
Joined: Jun 2nd, '11, 19:27
Location: Reno

Re: Deleting .trash from external media

Postby Garthhh » Feb 4th, '17, 19:51

gohlip wrote:Directory in external media is most likely not user owned.
Use 'chown' to set permission for user.
To be sure, user must be in sudoer list.

"delete' then will not require sudo rights.

As for "kdesu dolphin", repeat "Use with care." Almost certainly do not use it at all.
Use 'user dolphin' and if require 'sudo rights', then at dolphin command (F4), use "sudo ...." or "kdesu ..........."; Never "kdesu dolphin"; that will give 'root dolphin', not 'user dolphin', always bad.

ps: preferably same goes for 'su -' in terminal (though not as fatal), create sym-links so we can use "sudo" or "kdesu" in user terminal. Avoid root terminal.


thank you for the reply & patience
I looked up chown & am not able to follow the tutorials, which seem to assume a certain level of understanding
could you suggest one?
Sorry my if Experience doesn't meet your Expectations, I'll try Harder in the Future
User avatar
Garthhh
 
Posts: 483
Joined: Jun 2nd, '11, 19:27
Location: Reno

Re: Deleting .trash from external media

Postby gohlip » Feb 5th, '17, 14:32

Code: Select all
# chown <your username> <directory>


To make it recursive (plus all directories inside it)
Code: Select all
# chown -R <your username> <directory>


ps: (should have asked in my previous post)
won't "sudo rm -Rf <directory>" work?
Won't '# rm -Rf <directory>" work?
note: use 'rm -Rf <anything>' with care - doubly make sure directory name is there first before pressing <enter>

ps: uid - Mageia uses uid of 500 (I made my mageia uid 1000)
if directory (you want to trash) is originally uid 1000 (and yours 500), not sure if you need to further commands (like usermod).
Try above first and if won't work others can jump in with this uid thingy.
Why do we live? To prove not everything in nature has a purpose.
gohlip
 
Posts: 573
Joined: Jul 9th, '12, 10:50

Re: Deleting .trash from external media

Postby doktor5000 » Feb 5th, '17, 14:42

gohlip wrote:ps: uid - Mageia uses uid of 500 (I made my mageia uid 1000)
if directory (you want to trash) is originally uid 1000 (and yours 500), not sure if you need to further commands (like usermod).

FWIW, since mga5 we use UID 1000 as default for the first user, but upgraded systems will keep their UIDs.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18056
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Deleting .trash from external media

Postby Garthhh » Feb 5th, '17, 21:47

gohlip wrote:
Code: Select all
# chown <your username> <directory>


To make it recursive (plus all directories inside it)
Code: Select all
# chown -R <your username> <directory>


ps: (should have asked in my previous post)
won't "sudo rm -Rf <directory>" work?
Won't '# rm -Rf <directory>" work?
note: use 'rm -Rf <anything>' with care - doubly make sure directory name is there first before pressing <enter>

ps: uid - Mageia uses uid of 500 (I made my mageia uid 1000)
if directory (you want to trash) is originally uid 1000 (and yours 500), not sure if you need to further commands (like usermod).
Try above first and if won't work others can jump in with this uid thingy.


I got to here
Code: Select all
[dash@localhost ~]$ chown -R /run/media/dash/F2E9-2034/.Trash-500
chown: missing operand after ‘/run/media/dash/F2E9-2034/.Trash-500’
Try 'chown --help' for more information.
Sorry my if Experience doesn't meet your Expectations, I'll try Harder in the Future
User avatar
Garthhh
 
Posts: 483
Joined: Jun 2nd, '11, 19:27
Location: Reno

Re: Deleting .trash from external media

Postby gohlip » Feb 5th, '17, 21:58

[dash@localhost ~]$ chown -R /run/media/dash/F2E9-2034/.Trash-500
chown: missing operand after ‘/run/media/dash/F2E9-2034/.Trash-500’

You're missing your username.
And you need to be root. [edit]

Code: Select all
# chown <your username> <directory>


Also "/run/media/..../..." (though that might work actually, I just don't use it) - Just try at your dolphin and open up a command (F4) - oh, never mind. Mageia can't use sudo (without sym-links) -
Or just mount partition first as /media/xxxx and ......... argh.... sorry. try it out first with /run/media/xxx/xx , let us know.

ps: /run/xx/xxx is a gnome thingy which I just dislike. It may work. try it.
Last edited by gohlip on Feb 7th, '17, 08:55, edited 1 time in total.
Why do we live? To prove not everything in nature has a purpose.
gohlip
 
Posts: 573
Joined: Jul 9th, '12, 10:50

Re: Deleting .trash from external media

Postby doktor5000 » Feb 5th, '17, 23:13

gohlip wrote:ps: /run/xx/xxx is a gnome thingy which I just dislike. It may work. try it.

Not really, /run is in FHS: http://refspecs.linuxfoundation.org/FHS ... riableData
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18056
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Deleting .trash from external media

Postby gohlip » Feb 6th, '17, 00:48

Not really, /run is in FHS:
Correct. yes, it's also in kde. What I'm saying is it's pushed by the gnome people.

I sometimes get the feeling LFS is too gnome-centric, fedora-centric and awarding an award to Poettering?
That's a bit too much. Just saying.
Why do we live? To prove not everything in nature has a purpose.
gohlip
 
Posts: 573
Joined: Jul 9th, '12, 10:50

Re: Deleting .trash from external media

Postby doktor5000 » Feb 6th, '17, 01:17

Why does it matter whether something is mounted below /mnt, /media or /run ? But in any case, that's a bit offtopic here.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18056
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Deleting .trash from external media

Postby gohlip » Feb 6th, '17, 06:58

Since you asked.....
When it worked well with mnt and media, why create another unnecessary run.

It's like having linuxefi and initrd16.
Useless, unnecessary
Why do we live? To prove not everything in nature has a purpose.
gohlip
 
Posts: 573
Joined: Jul 9th, '12, 10:50

Re: Deleting .trash from external media

Postby Garthhh » Feb 8th, '17, 19:00

thanks for the replies
I'm not following
I'll go back to brute force move any files, reformat the media [card]
[solved] it is
Sorry my if Experience doesn't meet your Expectations, I'll try Harder in the Future
User avatar
Garthhh
 
Posts: 483
Joined: Jun 2nd, '11, 19:27
Location: Reno


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest