Author Topic: Locked files on USB sticks in Linux Mint 19.3 [SOLVED]  (Read 1866 times)

0 Members and 1 Guest are viewing this topic.

Offline Keith

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1430
  • Karma: 20
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: Locked files on USB sticks in Linux Mint 19.3
« Reply #15 on: January 19, 2021, 05:04:25 pm »
No sweat, Graeme.  It works for filenames and I have my fingers crossed that it works for "cd" as well!

Keith

Offline emegra

  • Jr. Member
  • **
  • Posts: 62
  • Karma: 1
  • Gender: Male
  • I've just joined!
    • View Profile
    • Awards
Re: Locked files on USB sticks in Linux Mint 19.3
« Reply #16 on: January 19, 2021, 05:26:35 pm »
Just out of curiosity I created a folder and named it "Untitled Folder" and put it /home/Documents  then in the terminal typed cd "~/Documents/Untitled Folder "

[email protected] ~ $ cd "~/Documents/Untitled Folder"
bash: cd: ~/Documents/Untitled Folder: No such file or directory


then typed

cd ~/Documents/Untitled Folder
[email protected] ~ $ cd  ~/Documents/Untitled Folder
bash: cd: too many arguments

Then typed cd ~/Documents/Untitled\ Folder

[email protected] ~ $ cd  ~/Documents/Untitled\ Folder
[email protected] ~/Documents/Untitled Folder $

I'm not saying you're wrong Keith but it doesn't seem to be working the way I'm doing it do you see anything I'm doing wrong ?






If you can keep your head while all around are losing theirs then you're not quite grasping the situation

The Linux Community Forum

Re: Locked files on USB sticks in Linux Mint 19.3
« Reply #16 on: January 19, 2021, 05:26:35 pm »

Offline Keith

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1430
  • Karma: 20
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: Locked files on USB sticks in Linux Mint 19.3
« Reply #17 on: January 19, 2021, 05:43:31 pm »
You are not doing anything wrong, Graeme.
cd "~/Documents/Untitled Folder" won't work, as you say. But
cd ~/"Documents/Untitled Folder"  does work. 
cd ~/Documents/"new folder" also works. 

Kevin is cd-ing from his home directory to /media so the ~/ is not necessary.  e.g.
[email protected]:~$ df | grep media
/dev/sdb1       30259440    30960  30228480   1% /media/keith/TOSHIBA
[email protected]:~$ cd "/media/keith/TOSHIBA"
[email protected]:/media/keith/TOSHIBA$

Confused?  Me too!  ;)

I don't have a spare USB stick to rename badly so can't test all this thoroughly.
Keith
« Last Edit: January 19, 2021, 05:53:48 pm by Keith »

Offline emegra

  • Jr. Member
  • **
  • Posts: 62
  • Karma: 1
  • Gender: Male
  • I've just joined!
    • View Profile
    • Awards
Re: Locked files on USB sticks in Linux Mint 19.3
« Reply #18 on: January 19, 2021, 06:48:57 pm »
Yeah you're right enough it's the way I was applying it :)
If you can keep your head while all around are losing theirs then you're not quite grasping the situation

Offline 19goalie50nxQ

  • Jr. Member
  • **
  • Posts: 97
  • Karma: 1
  • I've just joined!
    • View Profile
    • Awards
Re: Locked files on USB sticks in Linux Mint 19.3
« Reply #19 on: January 19, 2021, 06:56:37 pm »
Hi Keith & Graeme.

Once again I thank you both for your help with my 'locked' files problem. What I should have told you earlier is I'm nearly 81 and whilst I'm reasonably comfortable using the computer I'm not up to speed with the terminology used in computers so If I'm not understanding correctly your instructions please bare with me.

I've not had chance to sit down and study your replies, I have to help out with domestic chores with my wife. I'm expecting a phone call from one of my sons this evening so if its okay with you both I'll come back to tomorrow on this problem. I'm comfortable using the mouse for controls but willing to learn how to use Ctrl+shift etc. I note that whilst I've been away having tea that you have both been busy trying to resolve my problem, I need to have good look at them tomorrow to see if I can make understand better what you are both proposing I should do to resolve this problem.

So I'll be back in touch tomorrow.
 
Regards
Goalie

The Linux Community Forum

Re: Locked files on USB sticks in Linux Mint 19.3
« Reply #19 on: January 19, 2021, 06:56:37 pm »

Offline wishbone

  • Jr. Member
  • **
  • Posts: 86
  • Karma: 5
  • I've just joined!
    • View Profile
    • Awards
Re: Locked files on USB sticks in Linux Mint 19.3
« Reply #20 on: January 19, 2021, 08:00:31 pm »
I`m not sure if this will work, but when I have had the occasional problem with a locked  folder I opened it as root and ctrl+c and ctrl+v it onto the desktop (for example). Can you change the permissions of the file in the file properties? Right click and choose properties/permissions.

It can`t do any damage to try it anyway.

Tony

Offline Keith

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1430
  • Karma: 20
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: Locked files on USB sticks in Linux Mint 19.3
« Reply #21 on: January 19, 2021, 09:43:03 pm »
Hi Tony.

Might be able to but I'm guessing not if it's locked.  It's just dawned on me that even chmod might not work.  The chown command might be better but I don't have a locked file to try it on.  I wonder how I can deliberately lock a file without having it open.....

Keith

Offline 19goalie50nxQ

  • Jr. Member
  • **
  • Posts: 97
  • Karma: 1
  • I've just joined!
    • View Profile
    • Awards
Re: Locked files on USB sticks in Linux Mint 19.3
« Reply #22 on: January 20, 2021, 09:44:06 am »
Hi Keith & Graeme.

Thanks for both your replies and suggestions on how to solve the 'locked files' problem. I was busy yesterday with domestic chores and have not had chance to study your replies. What I should have told you previously is that I'm nearly 81 years but have a 'young' outlook. However whilst I'm fairly comfortable using the computer I struggle sometimes with the computer technology and language e.g. what is GUI etc. So if I don't quite follow your commands please bare with me. I will study your messages from yesterday and get back to a.s.a.p.

Hope that's okay with you both.

Regards

Goalie

Offline 19goalie50nxQ

  • Jr. Member
  • **
  • Posts: 97
  • Karma: 1
  • I've just joined!
    • View Profile
    • Awards
Re: Locked files on USB sticks in Linux Mint 19.3
« Reply #23 on: January 20, 2021, 10:16:01 am »
Hi Everybody.

I had a "senior moment" my last reply was written not realising that my reply which I sent on Tues evening had been posted. I've looked at the replies from you all and have to admit I'm confused. So if its not too much trouble could we start again on this problem, if I don't fully understand your commands I'll ask before I do it. 

Is this okay with you if not I won't be offended.

Regards

Goalie

The Linux Community Forum

Re: Locked files on USB sticks in Linux Mint 19.3
« Reply #23 on: January 20, 2021, 10:16:01 am »

Offline Keith

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1430
  • Karma: 20
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: Locked files on USB sticks in Linux Mint 19.3
« Reply #24 on: January 20, 2021, 10:35:36 am »
'Morning Kevin.

No problem at all.  I realise that giving you so many commands in one go can be confusing, and I do get a bit carried away. 
I shall review all your posts to be sure I understand the problems and return here shortly.

Keith

Offline Keith

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1430
  • Karma: 20
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: Locked files on USB sticks in Linux Mint 19.3
« Reply #25 on: January 20, 2021, 11:15:38 am »
OK.  We shall do just one thing at a time.  The first thing is to get the name of your USB stick. 
Here is a numbered list of instructions to achieve that:

1. Insert your USB stick.
2. start a Terminal by using Ctrl+Shift+t

3. Come back to this post and click on [Select] just above the code-box below this line.  This will highlight the code. 
Code: [Select]
df | grep media
4. Copy the code by using Ctrl+c
5. Go back to your terminal

6. Paste the code using Ctrl+Shift+v
7. Press the “Enter” key to tell the computer to act on the command.
8. Copy all the lines on the terminal by highlighting all the text (by clicking and dragging the cursor over everything) and then using Ctrl+Shift+c
9. Come back to here and paste (Ctrl+v) into your reply what you’ve copied. 

If any of this is not clear, please let me know.

Keith
« Last Edit: January 20, 2021, 12:55:26 pm by Keith »

Offline Keith

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1430
  • Karma: 20
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: Locked files on USB sticks in Linux Mint 19.3
« Reply #26 on: January 20, 2021, 11:42:46 am »
Kevin,
I have deleted your post because using commands from previous posts only confuses people (like me) and we are trying to simplify things for you.
Please follow the instructions in the post immediately above this one. 

Keith

Offline 19goalie50nxQ

  • Jr. Member
  • **
  • Posts: 97
  • Karma: 1
  • I've just joined!
    • View Profile
    • Awards
Re: Locked files on USB sticks in Linux Mint 19.3
« Reply #27 on: January 20, 2021, 12:42:55 pm »
Keith.

Thanks for your reply and patience I've got to 6. in your instructions but can't get further, tried various ways without success probably something simple I'm doing wrong.

[email protected]:~$ Ctrl+Shift+t.df | grep media
Ctrl+Shift+t.df: command not found
[email protected]:~$

Goalie

Offline Keith

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1430
  • Karma: 20
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: Locked files on USB sticks in Linux Mint 19.3
« Reply #28 on: January 20, 2021, 12:54:01 pm »
My apologies, Kevin - I am not expressing myself well.  Let me try again.

If copying and pasting is difficult for you then do this:
In your terminal type the following:
df | grep media
Then press the "Enter key"

Then copy the output and paste it here. 

[EDIT]  Just realised that I have been telling you to type e.g. Ctrl+Shift+c when I meant as follows:
When I say Ctrl_Shift+c (and similar) I don't mean type the letters "C t r l + S h i f t + c" I mean whilst holding down the Ctrl and Shift keys, tap the c key.
« Last Edit: January 20, 2021, 01:47:35 pm by Keith »

Offline 19goalie50nxQ

  • Jr. Member
  • **
  • Posts: 97
  • Karma: 1
  • I've just joined!
    • View Profile
    • Awards
Re: Locked files on USB sticks in Linux Mint 19.3
« Reply #29 on: January 20, 2021, 02:37:18 pm »
No problem Keith you are being really helpful.

I understood what you meant about commands Ctrl+c and Crtl+Shift+v that I press the keys to enter the Terminal, what I was not so sure about was why I had to type the command Ctrl+Shift+t at the start of opening Terminal.

Here is result of your latest instruction:-
[email protected]:~$ df | grep media
/dev/sdb1       60456992 43655168  16801824  73% /media/kevin/PHILIPS UFD
[email protected]:~$

Hope I've done it correctly.
Goalie

 

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal