LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 03-31-2021, 02:39 PM   #1
cyno77
Member
 
Registered: Mar 2021
Location: Sydney, Australia
Distribution: Ubuntu Linux
Posts: 47

Rep: Reputation: Disabled
Red face Iso, disc backup, dd, disc to disc backup, UEFI, unmounting?,


I thought after recently installing grub Dual Boot with Ubuntu on a system where I had already got windows 7, I had better make a backup of the entire drive(both OS's) using maybe "dd" command, pref. to another disc, as it's pretty big: 500gb, 330gb of which is in use.

Nothing could have been more complicated, it seems, as dd requires AN UNMOUNTED DRIVE or disc, or maybe partition if I do it partition by partition.

What an ordeal, as I don't have another computer, and unmounting seems dangerous, and prob. cannot be done with a running system.

Could I unmount and remount a running system to just make "read-only"?

Am I supposed to unmount just the partitions, one at time? I have an extended drive,based on one particular partition, which Ubuntu kindly made on default-type install. Are there any other options for backing up entire system(s)?

What should I do? I am.loathe to play around with partitions as am not competent yet, and don't fully understand UEFI booting, or NVRAM.It seems in UEFI the UEFI does most of the os system detection, and boot manager.

Any information would be good, or decent, rigorous links! Thankyou so much in advance, you guys do amazing jobs, maybe one day I can be a forum answer specialist!
 
Old 03-31-2021, 03:21 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,987

Rep: Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627
There are maybe only one or two ways to image a mounted OS/boot drive. Normally one boots to a live media to do this task.

It is possible to image a drive that is data or a non booted drive or partition. Unmount then use some program.

If you have a modern uefi system and you have windows 7 on it then you already have outsmarted the newer uefi usb I'd think. That makes me think you really don't have uefi??

Some windows clone/backup programs will copy linux. Acronis will.

Consider Clonezilla maybe. It can be set to clone disk to disk or almost any networked location.
 
1 members found this post helpful.
Old 03-31-2021, 03:58 PM   #3
cyno77
Member
 
Registered: Mar 2021
Location: Sydney, Australia
Distribution: Ubuntu Linux
Posts: 47

Original Poster
Rep: Reputation: Disabled
...

Last edited by cyno77; 03-31-2021 at 07:39 PM.
 
Old 03-31-2021, 05:06 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,129

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Seems to be a little (a lot) over the top. Well educated with a thin skin maybe ... :shrug:

Park your ego and accept advice. dd is an awful option - go get clonezilla livecd as suggested. Go to the homepage and start reading.
 
1 members found this post helpful.
Old 03-31-2021, 05:20 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,987

Rep: Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627
It was a signature line. I change it often and will today not because of your comment but because I have a new one.

I have no idea if you have any relationship to a person named Harry. I might be pretty smart when it comes to a very few things in this world but I have no knowledge of you.
 
Old 03-31-2021, 05:30 PM   #6
quickbreakfast
Member
 
Registered: Oct 2015
Location: northern territory
Distribution: slackware 15
Posts: 335

Rep: Reputation: Disabled
Quote:
Originally Posted by Ana Hartley View Post
I thought after recently installing grub Dual Boot with Ubuntu on a system where I had already got windows 7, I had better make a backup of the entire drive(both OS's) using maybe "dd" command, pref. to another disc, as it's pretty big: 500gb, 330gb of which is in use.
Having an external HDD of your data is a good idea.

The external drive should be kept up to date.

As to how often you back up your data to the external drive is a personal decision.

Whether or not I have data to save I do a back up every week.

Quote:
Nothing could have been more complicated, it seems, as dd requires AN UNMOUNTED DRIVE or disc, or maybe partition if I do it partition by partition.
Using dd to back up your data may be complicated but I've never used it, so don't know for sure.

Instead I use the rsync command as in

Code:
 rsync -vr --update /original/ /copy
where original is, as the term implies, the address of the original and copy is address of the external drive..... How long backing up your data takes is beyond my ability to tell...... depends upon your cpu and amount of data.

All you need now is a, correctly formatted, external drive....... gparted can do this for you. Just make sure you format the correct drive...... format the wrong drive and you'll lose your data.

An explanation of the switches I use is in the man page. I suspect others will use/suggest other switches. To read the rsync man page, type

Code:
 man rsync
when you've read enough about the command type q to exit.

There is also this link https://www.howtogeek.com/135533/how...data-on-linux/ which could help you. However

If you making an "original" copy of your data, I'd use the copy (cp) command.

Code:
 cp -vr /original/ /copy
If you want read more about the copy command type

Code:
 man cp
again type q when you've read enough/to exit.

Most linux commands have a man page.

By the way. Having a copy of the installed distro to me isn't necessary. If the install becomes corrupt I'll either do a fresh install or after googling without finding a fix come here and ask.
 
1 members found this post helpful.
Old 03-31-2021, 05:40 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,129

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Quote:
Originally Posted by jefro View Post
It was a signature line.
Ah, I see. Well, actually I don't - I chose years ago not to be bombarded by what is predominantly drivel eating up screen space.
 
1 members found this post helpful.
Old 03-31-2021, 07:11 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,987

Rep: Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627
It is my online bumper sticker.

Wonder if the OP will return?
 
Old 03-31-2021, 08:34 PM   #9
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
dd is not a good choice for backups. Years ago, dd and tar were the tools used with tape drives, etc.; but dd does a bit for bit copy of an entire device so it is slow and inflexible. Tar still has a lot of power and can work.

Many better choices are available today, all that is needed is to look and a quick search will give you at least a dozen suggestions. Something simple and easy but powerful enough to meet your needs would be the best choice. You have to decide what that is.
 
1 members found this post helpful.
  


Reply

Tags
disk image, dual boot, uefi bios, unmounting



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
UEFI Class 3 :: To use UEFI, or not to use UEFI? jheengut Slackware 19 12-30-2020 09:24 AM
unmounting all nfs filesystems without unmounting local ones kaplan71 Linux - General 1 03-05-2009 11:00 AM
disc keeps unmounting on its own h3xis Linux - Desktop 3 09-01-2008 07:35 PM
Does anyone Know how to open either .iso.rz or these .iso.xdelta,.iso.bz2,.iso.lzma?? maximalred Debian 5 06-09-2004 06:15 AM
UT 2003 unmounting disc Abe_the_Man Linux - Games 7 10-13-2003 02:43 PM

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

All times are GMT -5. The time now is 02:42 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