Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Timeshift Folder to USB


  • Please log in to reply
20 replies to this topic

#1 pcpunk

pcpunk

  • Members
  • 6,102 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Florida
  • Local time:03:01 PM

Posted 15 October 2016 - 09:39 PM

Hey guys, I am trying to use an old USB to put my Timeshift Backups to.  

 

It was a LinuxLive USB, I Deleted all the files on it, Formatted as ext4 and Labeled it as "TimeshiftKDE17.1" if that matters I don't know?

 

Now I see the LED is Flashing but I'm not doing anything with it.  I also notice that it has a "lost+found" Folder in it.  I took a look at it in gparted and see that it is still Flagged as "boot".  I don't know what to change the Flag to, and if I should just Delete the "lost+found" Folder after, or if it will go away on it's own?  Perhaps I will need to change the Flag and Re-Format...I don't know.  

 

I also would like to Copy my current Timeshift Folder over to this USB from my HDD to free up space, but don't know if it will be that simple?  If I can get the USB straightened out I will just try the Copy Paste of it.  Will someone guide me so I can get on with my Install.

 

Thanks, Pcpunk


sBCcBvM.png

Created by Mike_Walsh

 

KDE, Ruler of all Distro's

eps2.4_m4ster-s1ave.aes_pcpunk_leavemehere

 


BC AdBot (Login to Remove)

 


#2 pcpunk

pcpunk
  • Topic Starter

  • Members
  • 6,102 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Florida
  • Local time:03:01 PM

Posted 15 October 2016 - 09:45 PM

Okay, I took a look at my other Timeshift USB, and it did not have anything Flagged.  I UnTicked the "boot" Flag on the USB in question and it has stopped flashing, so that's good.  

 

It does however still have the "lost+found" Folder which I am guessing is a product of ext4 Filesystem, or a Timeshift thing, I don't know?  I'll wait to see if someone can help.

 

Okay, did a little search:

"The lost+found directory is used by file system check tools (fsck). When a system crashes and there is some inconsistency, fsck might be able to (partially) recover lost information (files or directories)."


Edited by pcpunk, 15 October 2016 - 09:48 PM.

sBCcBvM.png

Created by Mike_Walsh

 

KDE, Ruler of all Distro's

eps2.4_m4ster-s1ave.aes_pcpunk_leavemehere

 


#3 pcpunk

pcpunk
  • Topic Starter

  • Members
  • 6,102 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Florida
  • Local time:03:01 PM

Posted 15 October 2016 - 10:02 PM

Now back to the Timeshift Folder issue, as I thought there is some kind of Permissions problem so I cannot Copy Paste from HDD to USB.  I don't mind Re-Backing up with Timeshift to the Newly Formatted USB, but that will create a Large Backup if I am correct.  The USB is only 16GB so would like to use the smaller Backups I have now, because the First is always bigger.

 

Thanks, PcPunk


sBCcBvM.png

Created by Mike_Walsh

 

KDE, Ruler of all Distro's

eps2.4_m4ster-s1ave.aes_pcpunk_leavemehere

 


#4 Al1000

Al1000

  • Global Moderator
  • 7,975 posts
  • ONLINE
  •  
  • Gender:Male
  • Location:Scotland
  • Local time:08:01 PM

Posted 16 October 2016 - 05:06 AM

Now back to the Timeshift Folder issue, as I thought there is some kind of Permissions problem so I cannot Copy Paste from HDD to USB.


That's quite possible, and if so the easiest thing to do would be to change the permissions of the USB.

With the USB mounted, what is the output of this command?
ls -l /media/$USER/


#5 pcpunk

pcpunk
  • Topic Starter

  • Members
  • 6,102 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Florida
  • Local time:03:01 PM

Posted 16 October 2016 - 08:56 AM

Here is the output Al

chris@chris-HP-Compaq-nx7400-EN352UTR-ABA:~ > ls -l /media/$USER/
total 0

Well that's interesting, is that what you were looking for?

 

Here is the output from my other Timeshift USB that is used on my other laptop, not the one in question, just for comparison:

chris@chris-HP-Compaq-nx7400-EN352UTR-ABA:~ > ls -l /media/$USER/
total 4
drwxr-xr-x 4 root root 4096 Jul  9 11:02 Timeshift

Thanks, Pcpunk


Edited by pcpunk, 16 October 2016 - 09:07 AM.

sBCcBvM.png

Created by Mike_Walsh

 

KDE, Ruler of all Distro's

eps2.4_m4ster-s1ave.aes_pcpunk_leavemehere

 


#6 pcpunk

pcpunk
  • Topic Starter

  • Members
  • 6,102 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Florida
  • Local time:03:01 PM

Posted 16 October 2016 - 09:18 AM

Would this work Al

sudo cp -R home/timeshift/ media/chris/TimeshiftKDE17.1/

sBCcBvM.png

Created by Mike_Walsh

 

KDE, Ruler of all Distro's

eps2.4_m4ster-s1ave.aes_pcpunk_leavemehere

 


#7 Al1000

Al1000

  • Global Moderator
  • 7,975 posts
  • ONLINE
  •  
  • Gender:Male
  • Location:Scotland
  • Local time:08:01 PM

Posted 16 October 2016 - 09:38 AM

Well that's interesting, is that what you were looking for?


That indicates the USB wasn't mounted, but since your other USB is owned by root I'll take it that this one is too.
 

Would this work Al


This will copy a directory called "timeshift" in your user's home directory, to the USB:
sudo cp -R ~/timeshift/ /media/chris/TimeshiftKDE17.1/
EDIT: I assume there's enough space on the USB.

Edited by Al1000, 16 October 2016 - 09:42 AM.


#8 pcpunk

pcpunk
  • Topic Starter

  • Members
  • 6,102 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Florida
  • Local time:03:01 PM

Posted 16 October 2016 - 10:46 AM

Whoops, I see now.  Here it is mounted.

chris@chris-HP-Compaq-nx7400-EN352UTR-ABA:~ > ls -l /media/$USER/
total 4
drwxr-xr-x 3 root root 4096 Oct 15 22:13 TimeshiftKDE17.1

EDIT: I assume there's enough space on the USB. 

 

Let's hope lol.  It says 11GB for Timeshift, but it is only a 16GB USB as you know.  Working with little resources here lol, but won't let it stop me.
 
Now I wonder if I will be able to access those Timeshift Backups after cp'ing them in this way, would you know this Al?  This is what you mean by being owned by "root" right, all should be okay because of being owned by "root".  Either way Al, I'm not super worried just curious.  I can always re-install or even sacrifice another USB, and Timeshift to it Directly if needed.
 
I'm getting ready to Install Mint Mate 18, so need to make room and have at least one good Backup.  My skills in gparted are still not all that good, I get by, but only restructuring once or twice a year is not enough practice.  I guess I could try those Backups after cp'ing Timeshift to the new USB, although that would move me backwards a little.
 
Okay, was any of that coherent lol
 
Thanks again

Edited by pcpunk, 16 October 2016 - 10:46 AM.

sBCcBvM.png

Created by Mike_Walsh

 

KDE, Ruler of all Distro's

eps2.4_m4ster-s1ave.aes_pcpunk_leavemehere

 


#9 Al1000

Al1000

  • Global Moderator
  • 7,975 posts
  • ONLINE
  •  
  • Gender:Male
  • Location:Scotland
  • Local time:08:01 PM

Posted 16 October 2016 - 10:59 AM

The other thing you could do is change the permissions of the USB:
sudo chown chris:chris /media/chris/TimeshiftKDE17.1/
Then you won't have to use sudo to copy the directory using the terminal, and you can also "drag and drop" it using the GUI.

#10 pcpunk

pcpunk
  • Topic Starter

  • Members
  • 6,102 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Florida
  • Local time:03:01 PM

Posted 16 October 2016 - 11:00 AM

We must have got that Command wrong Al:

chris@chris-HP-Compaq-nx7400-EN352UTR-ABA:~ > sudo cp -R ~/timeshift/ /media/chris/TimeshiftKDE17.1/
[sudo] password for chris: 
cp: cannot stat ‘/home/chris/timeshift/’: No such file or directory

I'm confused, should the "/"s be removed from before "timeshift" and/or "media" ?

 

I just double checked all the Pathways and all seems right.  I copied those Pathways from Dolphin.

 

Edit just got your Post, but here is what I just wrote

 

Pcpunk 


sBCcBvM.png

Created by Mike_Walsh

 

KDE, Ruler of all Distro's

eps2.4_m4ster-s1ave.aes_pcpunk_leavemehere

 


#11 Al1000

Al1000

  • Global Moderator
  • 7,975 posts
  • ONLINE
  •  
  • Gender:Male
  • Location:Scotland
  • Local time:08:01 PM

Posted 16 October 2016 - 11:05 AM

I'm confused, should the "/"s be removed from before "timeshift" and/or "media" ?


Nope, you need both of them.

Are you sure the directory is called "timeshift" and that it's in your user's home directory? If so the output of this command should be "timeshift"
ls ~/ | grep timeshift


#12 pcpunk

pcpunk
  • Topic Starter

  • Members
  • 6,102 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Florida
  • Local time:03:01 PM

Posted 16 October 2016 - 11:16 AM

ls ~/ | grep timeshift

This Command produced nothing Al, here is a pic of what I have.

4e9uVUr.png


Edited by pcpunk, 16 October 2016 - 11:17 AM.

sBCcBvM.png

Created by Mike_Walsh

 

KDE, Ruler of all Distro's

eps2.4_m4ster-s1ave.aes_pcpunk_leavemehere

 


#13 pcpunk

pcpunk
  • Topic Starter

  • Members
  • 6,102 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Florida
  • Local time:03:01 PM

Posted 16 October 2016 - 11:20 AM

Just in case here is the other Pathway

6Cdumpb.png


sBCcBvM.png

Created by Mike_Walsh

 

KDE, Ruler of all Distro's

eps2.4_m4ster-s1ave.aes_pcpunk_leavemehere

 


#14 pcpunk

pcpunk
  • Topic Starter

  • Members
  • 6,102 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Florida
  • Local time:03:01 PM

Posted 16 October 2016 - 11:24 AM

Do you think I should just make a new Backup Al, or Change the Permissions with: 

"sudo chown chris:chris /media/chris/TimeshiftKDE17.1/"

 

Want to make sure future Backups will work also


sBCcBvM.png

Created by Mike_Walsh

 

KDE, Ruler of all Distro's

eps2.4_m4ster-s1ave.aes_pcpunk_leavemehere

 


#15 Al1000

Al1000

  • Global Moderator
  • 7,975 posts
  • ONLINE
  •  
  • Gender:Male
  • Location:Scotland
  • Local time:08:01 PM

Posted 16 October 2016 - 11:29 AM

This Command produced nothing Al, here is a pic of what I have.


Ah, "user's home directory" would be the directory "chris" in the screenshot. The timeshift directory is in your home directory.

I would check ownership of the timeshift directory with this command:
ls -l /home
If the timeshift directory is owned by chris, and you have changed ownership of the USB to chris using the command I posted in post #9, this should do the trick:
cp -R /home/timeshift/ /media/chris/TimeshiftKDE17.1/
Otherwise, preface the command with sudo.

An 11GB file will take some time to copy to USB; terminal will return to the command prompt when it's finished.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users