LinuxQuestions.org
Visit Jeremy's Blog.
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 10-09-2017, 03:22 PM   #1
NormMike
LQ Newbie
 
Registered: Oct 2017
Distribution: Fedora 26
Posts: 1

Rep: Reputation: Disabled
Backup USB Live flash drive


I am running Fedora 26 from my 64GB USB Live flash drive. Looking for simple method to backup the entire drive to a matching 64GB USB drive. Thank you.
 
Old 10-09-2017, 04:33 PM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174
Hi:

Here's a simple command that you can use.

Code:
   cp /home/filename /media/sdb1/filename
(Where /sdb1/ is you would indicate the name that fdisk -l gives it).

-::-With your matching 64 GB USB drive plugged in run fdisk -l as root to find out it's name.-::-
 
Old 10-09-2017, 08:58 PM   #3
tofino_surfer
Member
 
Registered: Aug 2007
Posts: 472

Rep: Reputation: 150Reputation: 150
Quote:
I am running Fedora 26 from my 64GB USB Live flash drive. Looking for simple method to backup the entire drive to a matching 64GB USB drive.
What do you mean by "live" flash drive ? Most live distributions are read only so there would be nothing to back up.

Quote:
cp /home/filename /media/sdb1/filename

(Where /sdb1/ is you would indicate the name that fdisk -l gives it).
Quite empty on several fronts. What does "filename" refer to ? A user's home directory ? Also to backup an entire drive or home directory wouldn't cp -aR be used or rsync -a? The regular cp is not recursive and does not preserve all information.

Also the links in /dev/disk/by-label or /dev/disk/by-id are safer and quicker to use than fdisk and referring to raw device nodes. Also auto-mounts by udev in /media use file system labels if they exist so there is no need to refer to device nodes.

Last edited by tofino_surfer; 10-09-2017 at 10:43 PM.
 
Old 10-09-2017, 10:01 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 20,843

Rep: Reputation: 3370Reputation: 3370Reputation: 3370Reputation: 3370Reputation: 3370Reputation: 3370Reputation: 3370Reputation: 3370Reputation: 3370Reputation: 3370Reputation: 3370
If you have a current working usb drive then you could clone it. Usually you want to clone from a different booted live media. Cloning live media may have some unexpected results.

Clonezilla or G4U sort of way should work. Be sure you read and understand what you are cloning from and to.
 
Old 10-09-2017, 10:26 PM   #5
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174
http://clonezilla.org/downloads.php
 
Old 10-10-2017, 09:52 AM   #6
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
If you have a 3rd bootable live stick. Mount the one you want to copy. Create the partitions and filesystems on the to be copied to stick. Mount the to be copied to stick, and rsync. Adjust the /etc/fstab with the different UUID of the copied partition. Adjust the bootloader on the NEW stick and you should be good. Probably not that simple with lvm2 things like fedora. But generally everything on linux is a file, so filesystem, copies of files, done. YMMV.

TBH, it's probably simpler to use clonezille, ghost 4 linux (G4L), bacula or some other specialized tool that does most of it for you.
 
  


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
[SOLVED] Ubuntu live usb flash drive rocky1927 Linux - Newbie 8 04-24-2011 08:17 PM
Live CD on USB Flash Drive - Changes Do Not Stick on Reboot rrrssssss Linux - Hardware 8 04-11-2010 02:48 PM
Installing a Live Distro in a USB flash drive htamayo Linux - Newbie 4 12-04-2008 11:03 AM
bootable live Linux on USB flash drive james2b Linux - General 3 03-03-2008 02:08 AM
How to use Live CD with USB flash drive? Cathinfo Mandriva 1 12-30-2006 11:10 PM

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

All times are GMT -5. The time now is 10:37 PM.

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