LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-21-2016, 03:24 AM   #1
mangya
Member
 
Registered: Jul 2015
Distribution: CentOS
Posts: 84

Rep: Reputation: Disabled
Need help on partclone...


Hello all,

Following this guide 'Partclone', I cloned root filesystem (lvm) in regular mode and compress mode.

Code:
# partclone.xfs -c -s /dev/sda1 -o /mnt/test/root.img
# partclone.xfs -c -s /dev/sda1 | gzip -c > /mnt/test/root.img.gz
Now, to get info of cloned images, I used

Code:
# partclone.info -s /mnt/test/root.img
Partclone v0.2.88 http://partclone.org
Display image information
File system:  XFS
Device size:   40.2 GB = 9821184 Blocks
Space in use:   1.5 GB = 370117 Blocks
Free Space:    38.7 GB = 9451067 Blocks
Block size:   4096 Byte
But how do i get info like above with compressed image file 'root.img.gz'

Thanks.
 
Old 05-21-2016, 06:35 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,133

Rep: Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273Reputation: 2273
I think first you need to unzip the compressed image, probably:
gunzip -c image.gz | partclone.info -s -
 
1 members found this post helpful.
Old 05-21-2016, 06:43 AM   #3
mangya
Member
 
Registered: Jul 2015
Distribution: CentOS
Posts: 84

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
I think first you need to unzip the compressed image, probably:
gunzip -c image.gz | partclone.info -s -
Worked like a charm.

Many thanks.
 
  


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] mount partclone.ntfs. hack3rcon Linux - Desktop 1 10-06-2015 06:32 AM
X-based alternative to Partclone? littlebigman Linux - Software 4 09-01-2010 06:22 AM


All times are GMT -5. The time now is 02:38 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration