ocs-get-part-info get the wrong filesystem type from a OpenBSD partition (0xA6)
A partition and disk imaging/cloning program
Brought to you by:
steven_shiau
Hello,
when I try to backup the hole disk or only the OpenBSD partition I get the error message:
extfsclone.c: Couldn't find valid filesystem bitmap
Here more informations. If I somehow can help just say.
Thank you for you work
Walter
Info-packages.txt
Image was saved by these Clonezilla-related packages:
drbl-2.19.3-drbl1 clonezilla-3.20.6-drbl1 mkswap-uuid-0.1.1-1drbl partclone-0.2.87-drbl2 drbl-chntpw-20110511-1drbl util-linux-2.27.1-3 gdisk-1.0.1-1
clonezilla-img
This image was saved by Clonezilla at 2016-02-21 05:22:13 UTC.
The log during saving:
----------------------------------------------------------
Starting /usr/sbin/ocs-sr at 2016-02-21 05:18:44 UTC...
*****************************************************.
Clonezilla image dir: /home/partimag
Shutting down the Logical Volume Manager
Finished Shutting down the Logical Volume Manager
The selected devices: sda5
PS. Next time you can run this command directly:
/usr/sbin/ocs-sr -q2 -c -j2 -z1p -i 4096 -p true saveparts 2016-02-21-05-img sda5
*****************************************************.
The selected devices: sda5
The following step is to save the hard disk/partition(s) on this machine as an image:
*****************************************************.
Machine: To be filled by O.E.M.
sda5 (146.4G_ext4(In_ST31000524AS_)_ST31000524AS_9VPFARXH)
*****************************************************.
-> "/home/partimag/2016-02-21-05-img".
Shutting down the Logical Volume Manager
Finished Shutting down the Logical Volume Manager
Saving block devices info in /home/partimag/2016-02-21-05-img/blkdev.list...
Saving block devices attributes in /home/partimag/2016-02-21-05-img/blkid.list...
Checking the integrity of partition table in the disk /dev/sda...
Reading the partition table for /dev/sda...RETVAL=0
*****************************************************.
The first partition of disk /dev/sda starts at 2048.
Saving the hidden data between MBR (1st sector, i.e. 512 bytes) and 1st partition, which might be useful for some recovery tool, by:
dd if=/dev/sda of=/home/partimag/2016-02-21-05-img/sda-hidden-data-after-mbr skip=1 bs=512 count=2047
2047+0 records in
2047+0 records out
1048064 bytes (1.0 MB, 1.0 MiB) copied, 0.163183 s, 6.4 MB/s
*****************************************************.
Saving the MBR data for sda...
1+0 records in
1+0 records out
512 bytes copied, 0.000124526 s, 4.1 MB/s
Starting saving /dev/sda5 as /home/partimag/2016-02-21-05-img/sda5.XXX...
/dev/sda5 filesystem: ext4.
*****************************************************.
*****************************************************.
Use partclone with pigz to save the image.
Image file will be split with size limit 4096 MB.
*****************************************************.
If this action fails or hangs, check:
* Is the disk full ?
*****************************************************.
Run partclone: partclone.ext4 -z 10485760 -N -L /var/log/partclone.log -c -s /dev/sda5 --output - | pigz -c --fast -b 1024 -p 16 --rsyncable | split -a 2 -b 4096MB - /home/partimag/2016-02-21-05-img/sda5.ext4-ptcl-img.gz. 2> /tmp/split_error.8bx5LF
Partclone v0.2.87 http://partclone.org
Starting to clone device (/dev/sda5) to image (-)
Reading Super Block
we need memory: 4804996 bytes
image head 4160, bitmap 4796736, crc 4100 bytes
Calculating bitmap... Please wait... extfsclone.c: Couldn't find valid filesystem bitmap.
Failed to use partclone program to save or restore an image!
*****************************************************.
Failed to save partition /dev/sda5.
End of saveparts job for image /home/partimag/2016-02-21-05-img.
Checking if udevd rules have to be restored...
This program is not started by Clonezilla server, so skip notifying it the job is done.
Finished!
### End of log ###
### Image created time: 2016-0221-0522
sda-pt.parted
Model: ATA ST31000524AS (scsi)
Disk /dev/sda: 1953525168s
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 2048s 206847s 204800s primary ntfs boot
2 206848s 307202047s 306995200s primary ntfs
3 307202048s 614195199s 306993152s primary ntfs
4 614197246s 1953523711s 1339326466s extended
5 614197248s 921188351s 306991104s logical ext4
6 921190400s 952438783s 31248384s logical linux-swap(v1)
7 952440832s 1259640831s 307200000s logical ext4
8 1259642880s 1552609279s 292966400s logical ext4
9 1552611328s 1953523711s 400912384s logical fat32
sda-pt.fs
label: dos
label-id: 0x6e48fe81
device: /dev/sda
unit: sectors
/dev/sda1 : start= 2048, size= 204800, type=7, bootable
/dev/sda2 : start= 206848, size= 306995200, type=7
/dev/sda3 : start= 307202048, size= 306993152, type=7
/dev/sda4 : start= 614197246, size= 1339326466, type=5
/dev/sda5 : start= 614197248, size= 306991104, type=a6
/dev/sda6 : start= 921190400, size= 31248384, type=82
/dev/sda7 : start= 952440832, size= 307200000, type=83
/dev/sda8 : start= 1259642880, size= 292966400, type=83
/dev/sda9 : start= 1552611328, size= 400912384, type=b
Here same outputs from my debian:
~# blkid -c /dev/null /dev/sda5
~# parted -s /dev/sda print
Model: ATA ST31000524AS (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 106MB 105MB primary ntfs boot
2 106MB 157GB 157GB primary ntfs
3 157GB 314GB 157GB primary ntfs
4 314GB 1000GB 686GB extended
5 314GB 472GB 157GB logical ext4
6 472GB 488GB 16,0GB logical linux-swap(v1)
7 488GB 645GB 157GB logical ext4
8 645GB 795GB 150GB logical ext4
9 795GB 1000GB 205GB logical fat32
~# wipefs /dev/sda5
offset type
----------------------------------------------------------------
0x255c ufs [filesystem]
UUID: 562ceb05087bd449
0x438 ext4 [filesystem]
UUID: 0c392e52-3a56-43e6-8fc3-982c1203ccaf
~# fdisk -l
Disk /dev/sda: 931,5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x6e48fe81
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 206847 204800 100M 7 HPFS/NTFS/exFAT
/dev/sda2 206848 307202047 306995200 146,4G 7 HPFS/NTFS/exFAT
/dev/sda3 307202048 614195199 306993152 146,4G 7 HPFS/NTFS/exFAT
/dev/sda4 614197246 1953523711 1339326466 638,7G 5 Extended
/dev/sda5 614197248 921188351 306991104 146,4G a6 OpenBSD
/dev/sda6 921190400 952438783 31248384 14,9G 82 Linux swap / Solaris
/dev/sda7 952440832 1259640831 307200000 146,5G 83 Linux
/dev/sda8 1259642880 1552609279 292966400 139,7G 83 Linux
/dev/sda9 1552611328 1953523711 400912384 191,2G b W95 FAT32
Hello,
here now the output from OpenBSD command fdisk sd0 (sd0 is my hard disk, under linux is called sda)
How about the output of "blkid" on clonzilla command line prompt?
Please show all of them.
Thanks.
Steve.
Hello Steve,
the command "blkid -c /dev/null /dev/sda5" has no output. Is exactly what you see above.
Thanks
Walter
Hi Walter,
I meant to show all of them by running only "blkid" without any options and parameters.
Steven.
Hello Steven,
here now the output from "blkid".
Thanks
Walter