-
Backup Linux System
Hi, I wanted to know if you know of any good backup utility. I tryed using partimage, but when I run it it says:
CANNOT BACK UP PARTITION HDA5 BECAUSE ITS MOUNTED
That is my main partition, where knoppix is running. I want to know how to back up my system. If you knwo of another good utility, or how to make this one work I'd really apretiate it.
-
Senior Member
registered user
You could use partimage from the CD - without mounting your partition. Or just use the classic unix tools (cpio,tar,dump..). "apropos backup" also mentions mondo & kbackup.
-
I used partimage like you sayed, and it work ok. Thanks for the tip...
-
Senior Member
registered user
RE: BACKUPS, What's the Trick?
I tried doing a backup with partimage with the CD (Knoppix 3.7) and the program tells me I must be in root mode.
OK, so I try to get in to root mode (su) and then it asks me for a password.
Hmm, this is the CD I'm using. I didn't know that there was a password on the CD version.
What's the trick here?
sakiZ
-
Senior Member
registered user
Try sudo. I haven't yet seen it fail on me. Or you can boot into text mode which will log you in as root by default. Boot cheat code: knoppix 2
I hope this helps.
James
-
The liveCD asked for a password???
That's a bit strange....
-
Senior Member
registered user
Got Partimage Going
OK, thanks fo the tips on Partimage, etc.
I got that going.
Once I was in the Partimage menu, and attempted a backup it wanted to create the image file in the same partition as my Knoppix installation.
Well, I really don't want that. I have a blank Linux partion on my alternate drive that I want to create the system image on. But I don't see that Partimage gives me a way to do that.
sakiZ
-
Senior Member
registered user
Cloned it!
Hi
I used the DD comand
dd if=/dev/hdb2 of=/dev/hda6
It cloned the partition to my Linux partion on my other drive!!
Better check the docs before you use this one folks!
sakiZ
-
Senior Member
registered user
Re: Cloned it!

Originally Posted by
sakiZ
I used the DD comand
dd if=/dev/hdb2 of=/dev/hda6
It cloned the partition to my Linux partion on my other drive!!
Better check the docs before you use this one folks!
Yep it's dangerous! Not half as dangerous though if you are doing if=/dev/hdb2 of=/mnt/hda6/hdb2.img which will store the image in a file instead of cloning it to another partition. You can loop mount those images afterwards to extract files from them (mkdir ~/mnt ; mount -o loop /mnt/hda6/hdb2.img ~/mnt), and you can dd them into a partition to make a clone (dd if=/mnt/hda6/hdb2.img /dev/hdb2).
If you want to minimise the filesize of the img by compressing it you should also zero out the free space. Probably not a good idea to try this unless you are sure of your system (and preferably of your backup) EDIT I think some types of filesystems might not like it either, research before you do this /EDIT but you can do "dd if=/dev/zero of=/mnt/hdb2/zero" and it will write one file full of zeros until it runs out of space, then delete the file and do your dd but pipe it through gzip to get a compressed image "dd if=/dev/hdb2 | gzip > /mnt/hda6/hdb2.img.gz". Unfortunately you can't just mount the compressed images though.
Hope you didn't wipe stuff that mattered!
-
Senior Member
registered user
Backups
<<Hope you didn't wipe stuff that mattered!>>
No. I had used Partition Magic in Windows XP to create a fresh blank partition to write to.
Thanks for your input on this though. I will investigate doing the dd thing to an image file.
sakiZ
Similar Threads
-
By Jakykong in forum The Lounge
Replies: 2
Last Post: 12-14-2005, 08:36 AM
-
By Cuddles in forum General Support
Replies: 9
Last Post: 11-26-2004, 10:57 PM
-
By helios17 in forum General Support
Replies: 12
Last Post: 10-28-2004, 12:47 PM
-
By Jaguar600 in forum General Support
Replies: 5
Last Post: 09-27-2004, 10:34 PM
-
By mconzo in forum MS Windows & New to Linux
Replies: 4
Last Post: 09-06-2004, 02:09 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

(New) AMD Ryzen 7 5700X 8 Core 16 Thread AM4 Unlocked 3.4 GHz CPU OEM Tray
$169.99

Intel Core i9-9900K SRG19 3.60GHz 16MB 8-Core LGA1151 B Grade CPU Processor
$175.00

Home Assistant Server | 8GB RAM | 128GB SSD | Intel i5 Quad-Core | Dell OptiPlex
$159.99

DELL OPTIPLEX 3280 21.5" AIO Core i5 10500T 8GB 256GB NVMe Windows 11 -NO STAND
$179.99

Intel Xeon E5 - 2667V2 / SR19W 3.30GHz 25MB 8-Core CPU Socket LGA2011
$30.00

AMD Ryzen 5 PRO 4650GE 100-000000153 6-Core 3.30GHz 8MB AM4 CPU Processor
$59.99

AMD Ryzen Threadripper PRO 3945WX 12-Core 4.0GHz sWRX8 CPU NEW Tray Unlocked
$79.99

AMD FX 8350 8-CORE 4.00GHz CPU FD8350FRW8KHK SOCKET AM3+ *QTY
$39.99

AMD Ryzen 7 7700X 8-Core, 16-Thread Unlocked Desktop Processor
$250.00

Dell T7810 Workstation 8-Core 2.40GHz E5-2630 v3 No RAM GPU HDD OS
$259.98