Compressed Disk Image App for Porteus

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
jimwg
Shogun
Shogun
Posts: 322
Joined: 09 Oct 2013, 18:15
Distribution: porteus
Location: NYC

Compressed Disk Image App for Porteus

Post#1 by jimwg » 14 Feb 2014, 15:31

Greetings!

Subject line says it all. Compressed Disk Image App for Porteus. I want to image and store away a Mint flash drive to clear it for Porteus. If there's none for Porteus I can make do with one that runs on Puppy.

Thanks for any hints.

Jim in NYC

User avatar
fanthom
Site Admin
Site Admin
Posts: 4565
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: Compressed Disk Image App for Porteus

Post#2 by fanthom » 14 Feb 2014, 16:25

you could use dd + gzip compression (change partitions to match yours):

Code: Select all

dd if=/dev/sdb6 | gzip > /mnt/sda1/backup.gz
Please add [Solved] to your thread title if the solution was found.

donald
Full of knowledge
Full of knowledge
Posts: 1155
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Re: Compressed Disk Image App for Porteus

Post#3 by donald » 14 Feb 2014, 16:42


User avatar
Slaxmax
Contributor
Contributor
Posts: 403
Joined: 03 Jan 2013, 09:51
Distribution: KDE4
Location: Campinas Brazil https://goo.gl/yrxwKi

Re: Compressed Disk Image App for Porteus

Post#4 by Slaxmax » 14 Feb 2014, 18:33

@jimwg

Try pigz which is multithreaded gzip
http://zlib.net/pigz/

package i486
http://slackware.org.uk/people/alphagee ... -1_ejt.txz

package x86_64
ftp://ftp.yandex.ru/mirrors/agilialinux ... 6_64-1.txz

example
dd if=/dev/sdb6 | pigz > /mnt/sda1/backup.gz

see diference

gzip

Code: Select all

guest@porteus:~$ dd if=/dev/sda1 | gzip > /mnt/sdb2/gz-backup.gz
^C314110+0 records in
314109+0 records out
160823808 bytes (161 MB) copied, 10,031 s, 16,0 MB/s
pigz

Code: Select all

guest@porteus:~$ dd if=/dev/sda1 | pigz > /mnt/sdb2/pigz-backup.gz
^C1120759+0 records in
1120758+0 records out
573828096 bytes (574 MB) copied, 10,4082 s, 55,1 MB/s
“DNA is like a computer program but far, far more advanced than any software ever created.”
― Bill Gates, The Road Ahead

jimwg
Shogun
Shogun
Posts: 322
Joined: 09 Oct 2013, 18:15
Distribution: porteus
Location: NYC

Re: Compressed Disk Image App for Porteus

Post#5 by jimwg » 15 Feb 2014, 00:57

Slaxmax wrote:@jimwg

Try pigz which is multithreaded gzip
http://zlib.net/pigz/

package i486
http://slackware.org.uk/people/alphagee ... -1_ejt.txz

package x86_64
ftp://ftp.yandex.ru/mirrors/agilialinux ... 6_64-1.txz

example
dd if=/dev/sdb6 | pigz > /mnt/sda1/backup.gz

see diference

gzip

Code: Select all

guest@porteus:~$ dd if=/dev/sda1 | gzip > /mnt/sdb2/gz-backup.gz
^C314110+0 records in
314109+0 records out
160823808 bytes (161 MB) copied, 10,031 s, 16,0 MB/s
pigz

Code: Select all

guest@porteus:~$ dd if=/dev/sda1 | pigz > /mnt/sdb2/pigz-backup.gz
^C1120759+0 records in
1120758+0 records out
573828096 bytes (574 MB) copied, 10,4082 s, 55,1 MB/s
I'm a newbie but I'll try it out! Just to be sure, this creates a disk image, yes?
Thanks!

JIm in NYC

jimwg
Shogun
Shogun
Posts: 322
Joined: 09 Oct 2013, 18:15
Distribution: porteus
Location: NYC

Re: Compressed Disk Image App for Porteus

Post#6 by jimwg » 15 Feb 2014, 00:59

Slaxmax & donald & fanthom, I'll check these out! I just need to create the highest compressed disk image!

Thanks!

Jim in NYC

User avatar
Ed_P
Contributor
Contributor
Posts: 3142
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: Compressed Disk Image App for Porteus

Post#7 by Ed_P » 15 Feb 2014, 01:48

@jimwg

Make sure you test the restore aspect of your backup before writing over your Mint flash drive.
Ed

jimwg
Shogun
Shogun
Posts: 322
Joined: 09 Oct 2013, 18:15
Distribution: porteus
Location: NYC

Re: Compressed Disk Image App for Porteus

Post#8 by jimwg » 16 Feb 2014, 06:03

I tried all three examples given, and all I get after it seems to compress files is ERROR 27 File Too Large STDOUT. Maybe the file is corrupt as well?

Jim in NYC

User avatar
fanthom
Site Admin
Site Admin
Posts: 4565
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: Compressed Disk Image App for Porteus

Post#9 by fanthom » 16 Feb 2014, 07:58

FAT has 4GB limit so save it on some other filesystem.
Please add [Solved] to your thread title if the solution was found.

tome
Contributor
Contributor
Posts: 562
Joined: 26 Jun 2013, 14:03
Distribution: x64 Openbox
Location: Poland
Contact:

Re: Compressed Disk Image App for Porteus

Post#10 by tome » 16 Feb 2014, 20:37

better choice can be backup only important data (user folder) and delete all system files that are not changed by you.

Post Reply