Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I created a virtual machine in VMware as follows:

  1. SCSI HDD 1 GB (Main for short)
  2. SCSI HDD 0.8 GB (UClone for short)
  3. SCSI HDD 4 GB as a physically plugged UFD (Uphys for short)
  4. Arch Linux ISO as virtual CD

Where the UFD is a live USB created with YUMI.

After booting Arch via the ISO with fdisl -l, I get this mapping:

  1. Main is sda
  2. UClone is sdb
  3. Uphys is sdc and is reported as W95 FAT32 (LBA).

Now I want to clone Uphys to UClone, note that Uphys used space is about 600 Mega. If I issue:

partclone.fat32 -b -s /dev/sdc -o /dev/sdb

I get:

fatclone.c: Unknown fat type!!

Is it referred to source or output? The former is reported as W95 FAT32, the latter is unallocated.

UPDATE

With /dev/sdc1 as source, instead of /dev/sdc, I can go a bit further. But it seems that partclone is unable to get the actual used block size: http://s24.postimg.org/vwzhkhzcl/partclone1.png

If I set the -C option as suggested, I get a clone seek error and the destination device gets messed: http://postimg.org/image/51xaywn6r/

share|improve this question

2 Answers 2

I think yumi installs things to a partition, not to the entire disk, in which case it should not be /dev/sdc, but /dev/sdc1 should be your source? Likewise for the output. Take a look at the detailed fdisk -l /dev/sdc should make that clear. That is the only reason I can think of because otherwise your syntax is fine.

share|improve this answer
    
I updated the question based on your suggestions. –  antonio Aug 24 '13 at 15:53

As @johnshen64 said, you need to be copying to a partition as well as from a partition, not a device. If the destination partition were sdb1, then the command would be:

partclone.fat32 -b -s /dev/sdc1 -o /dev/sdb1

In the attached screenshot you only fixed half of the command.

share|improve this answer
    
Again parclone asks for the -C switch and again there is an error with it; but this time the partition doesn't look corrupted with fdisk -l /dev/sdb. See postimg.org/image/nco4mkau1 –  antonio Aug 30 '13 at 22:28
    
What is in /var/log/partclone.log? –  Alex Layton Aug 31 '13 at 5:05
    
postimg.org/image/eszgc8onb Note: reexcuting I see that the error triggers at about 98% completion. –  antonio Aug 31 '13 at 23:58
    
Partclone clones the contents of the partition, not the partition itself. Allocate a fat32 partition on UClone, then use partclone. –  Alex Layton Sep 1 '13 at 17:48
    
I repartitioned the output partition sdb1 (UClone) as W95 Fat32 following these steps: blog.jim80.net/2009/07/29/make-a-fat32-partition-in-linux, but still I get the error: postimg.org/image/428dvae8v. –  antonio Sep 1 '13 at 23:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.