Nieuws:

Welkom, Gast. Alsjeblieft inloggen of registreren.
Heb je de activerings-mail niet ontvangen?

Auteur Topic: Clonezilla?!  (gelezen 2177 keer)

Clonezilla?!
« Gepost op: 2016/02/09, 15:24:29 »
In mijn computer zitten er drie harde schijven. Eentje met Windows besturingssystemen, eentje met Linux besturingssystemen en eentje met al mijn documenten erop. De harde schijf met Windows besturingssystemen is aan het crashen. We hebben nog maar 4 slechte sectoren, bijgevolg is de schade niet erg. Maar goed, ik heb me een nieuwe harde schijf gekocht. De harde schijf waar mijn documenten, opstaan is voorlopig verwijderd en nu zou ik graag de schijf kopiëren. Clonezilla is geïnstalleerd onder Ubuntu en kan perfect opgestart worden via de terminal. Maar het kopiëren lukt me niet. Ik krijg als foutmelding dat het geen FAT bestandsindeling is? Natuurlijk niet. Alles staat in NTFS. Hoe pak ik dit het best aan? Ik heb nog nooit gewerkt met Clonezilla en ik doe waarschijnlijk zaken fout. Wie heeft er wel ervaring en kan deze ook delen? Bij momenten is mijn Engels niet goed genoeg, vrees ik?! (Ik vindt vooral Engelstalige uitleg over het gebruik van Clonezilla.) Thanks!

Offline kuifje09

  • Lid
Re: Clonezilla?!
« Reactie #1 Gepost op: 2016/02/09, 16:20:38 »
Ik zou clonezilla in livemode gebruiken en de nieuwe disk ook in je systeem hangen.
Let bij copieren wel op dat je de goede disk gebruikt voor input en de juite als output aanwijst.

Dit zouden de stappen moeten zijn.

    Prepare Clonezilla live
    Boot your Clonezilla live via USB ( of vanaf de cd natuurlijk, kan ook )
    Choose "ToRAM" option in the boot menu
    Choose language
    Choose keyboard layout
    Choose "Start Clonezilla"
    Choose "disk_to_local_disk"
    Choose source disk
    Choose target disk
    Start cloning
    Disk is cloned

Staat hier :   http://clonezilla.org/clonezilla-live-doc.php    Hoofdstuk disk to disk clone.
« Laatst bewerkt op: 2016/02/09, 16:22:14 door kuifje09 »

Re: Clonezilla?!
« Reactie #2 Gepost op: 2016/02/09, 16:26:17 »
Clonezilla moet je downloaden als een .iso-bestand en branden naar een CD of zetten op een USB. Het is een live-cd, dus met een eigen OS gebaseerd op Ubuntu of Debian. Als je zegt  "Clonezilla is geïnstalleerd onder Ubuntu" dan klopt er iets niet...  FAT of NTFS mag geen probleem zijn. Clonezilla copiëert gewoon de bits en bites.
Je kan dus best de Windows hd klonen naar de nieuwe hd.
http://computertotaal.nl/pc/zo-kloon-je-een-harde-schijf-63952#qMFWpLwB8x6M24RH.97

Offline kuifje09

  • Lid
Re: Clonezilla?!
« Reactie #3 Gepost op: 2016/02/09, 16:30:49 »
Clonezilla kan tegenwoordig ook als applikatie draaien...

Edit: Ik weet alleen niet wat dan de plussen en minnen zijn het gebruik... Zo gebruik ik het nooit.
« Laatst bewerkt op: 2016/02/09, 17:06:40 door kuifje09 »

Re: Clonezilla?!
« Reactie #4 Gepost op: 2016/02/09, 18:43:59 »
De nieuwe disk hangt eraan in de plaats van de disk waar mijn documenten opstaan.
Waarom Cloezilla vanaf een usb booten als de software draait binnen de terminal van Ubuntu? Clonezilla kan u gewoon installeren via het softwarecentrum. Het lijkt me logisch dat er rootrechten nodig zijn om met Clonezilla te werken?!! Dat men het programma binnen de terminal laat werken, lijkt me dan ook volledig logisch?
Verder is het scherm van Clonezilla in de terminal gelijkaardig aan de schermafbeeldingen die men ziet op de gegeven link van computertotaal. Momenteel past het mij niet om er aan door te werken, maar hartelijk dank voor de link van computertotaal. Ik zal hem zeker doornemen!! Als de uitleg op computertotaal duidelijk is, zal ik partitie per partitie kopiëren!

Re: Clonezilla?!
« Reactie #5 Gepost op: 2016/02/10, 16:04:12 »
Het lukt me niet. Dit is de uitvoer in het terminal venster:
etting the TERM as xterm
Starting /usr/sbin/ocs-onthefly at 2016-02-10 15:50:30 CET...
Excluding busy partition or disk...
Excluding busy partition or disk...
PS. Next time you can run this command directly:
/usr/sbin/ocs-onthefly -g auto -e1 auto -e2 -r -j2  -f sda -t sdc
This command is also saved as this file name for later use if necessary: /tmp/ocs-onthefly-2016-02-10-15-52
*****************************************************.
Press "Enter" to continue...
*****************************************************.
///WARNING/// filesystem.squashfs not found! No idea where is LIVE MEDIA!!! Assume this is running in DRBL client.
*****************************************************.
*****************************************************.
The first partition of disk /dev/sda starts at 63.
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=/tmp/ocs_onthefly_local.Vv8WW0/src-hidden-data.img skip=1 bs=512 count=62
62+0 records gelezen
62+0 records geschreven
31744 bytes (32 kB) gekopieerd, 0,00112199 s, 28,3 MB/s
*****************************************************.
Collecting partition /dev/sda1 info...
Collecting partition /dev/sda2 info...
Collecting partition /dev/sda3 info...
umount: /tmp/ntfs_mnt.sv9ElH: apparaat is bezig
        (Welke processen het apparaat gebruiken kan mogelijk
         gevonden worden met behulp van lsof(8) of fuser(1).)
rmdir: kan ‘/tmp/ntfs_mnt.sv9ElH’ niet verwijderen: Apparaat of hulpbron is bezig
Non-grub boot loader found on /tmp/ocs_onthefly_local.Vv8WW0/sdc-mbr...
The CHS value of hard drive from EDD will be used for sfdisk.
Kernel EDD (sysfs interface to BIOS EDD (Enhanced Disk Device) information) not supported!
You can try to enable it if it's builtin by putting edd=on as boot parameter.
No CHS value was found from EDD info for disk /dev/sdc.
Searching for data partition(s)...
Excluding busy partition or disk...
Unmounted partitions (including extended or swap): sdc1 sdc2 sdc3
Collecting info.... done!
Getting /dev/sdc1 info...
Getting /dev/sdc2 info...
Getting /dev/sdc3 info...
WARNING!!! WARNING!!! WARNING!!!
WARNING! THE EXISTING DATA IN THIS HARDDISK/PARTITION(S) WILL BE OVERWRITTEN! ALL EXISTING DATA WILL BE LOST: sdc
*****************************************************.
Machine: P5K
sdc (2000GB_WDC_WD20EADS-00S_WDC_WD20EADS-00S2B0_WD-WCAVY2185034)
sdc1 (55.2G_boot(In_WDC_WD20EADS-00S)_WDC_WD20EADS-00S2B0_WD-WCAVY2185034)
sdc2 (100G(In_WDC_WD20EADS-00S)_WDC_WD20EADS-00S2B0_WD-WCAVY2185034)
sdc3 (1.7T(In_WDC_WD20EADS-00S)_WDC_WD20EADS-00S2B0_WD-WCAVY2185034)
*****************************************************.
Are you sure you want to continue? ? (y/n) y
OK, let's do it!!
*****************************************************.
Will create the partition on the target machine...
Let me ask you again.
*****************************************************.
Machine: P5K
sdc (2000GB_WDC_WD20EADS-00S_WDC_WD20EADS-00S2B0_WD-WCAVY2185034)
sdc1 (55.2G_boot(In_WDC_WD20EADS-00S)_WDC_WD20EADS-00S2B0_WD-WCAVY2185034)
sdc2 (100G(In_WDC_WD20EADS-00S)_WDC_WD20EADS-00S2B0_WD-WCAVY2185034)
sdc3 (1.7T(In_WDC_WD20EADS-00S)_WDC_WD20EADS-00S2B0_WD-WCAVY2185034)
*****************************************************.
WARNING!!! WARNING!!! WARNING!!!
WARNING! THE EXISTING DATA IN THIS HARDDISK/PARTITION(S) WILL BE OVERWRITTEN! ALL EXISTING DATA WILL BE LOST: sdc
Are you sure you want to continue? ? (y/n) y
OK, let's do it!!
Trying to clean the MBR and GPT partition table on the destination disk first: /dev/sdc
Creating MBR type's partition table...
No partition table exists in target disk /dev/sdc, try to initialize one so that we can get the disk size by parted... Running: parted -s /dev/sdc mklabel msdos
done!
sfdisk --force /dev/sdc < /tmp/ocs_onthefly_local.Vv8WW0/tgt-pt.sf
Checking that no-one is using this disk right now ...
OK
Warning: partition 3 does not start at a cylinder boundary

Disk /dev/sdc: 243201 cylinders, 255 heads, 63 sectors/track
Old situation:
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/sdc1          0       -       0          0    0  Empty
/dev/sdc2          0       -       0          0    0  Empty
/dev/sdc3          0       -       0          0    0  Empty
/dev/sdc4          0       -       0          0    0  Empty
New situation:
Units = sectors of 512 bytes, counting from 0

   Device Boot    Start       End   #sectors  Id  System
/dev/sdc1   *        63 115667999  115667937   7  HPFS/NTFS/exFAT
/dev/sdc2     115668000 325396574  209728575   7  HPFS/NTFS/exFAT
/dev/sdc3     325396582 3907024064 3581627483   7  HPFS/NTFS/exFAT
/dev/sdc4             0         -          0   0  Empty
Successfully wrote the new partition table

Re-reading the partition table ...
If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes:  dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)

This was done by "sfdisk --force /dev/sdc < /tmp/ocs_onthefly_local.Vv8WW0/tgt-pt.sf"
Informing the OS that partition table has changed...
Checking the integrity of partition table in the disk /dev/sdc...
done!
*****************************************************.
The first partition of disk /dev/sdc starts at 63.
Restoring 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=/tmp/ocs_onthefly_local.Vv8WW0/tgt-hidden-data.img of=/dev/sdc seek=1 bs=512 count=62
62+0 records gelezen
62+0 records geschreven
31744 bytes (32 kB) gekopieerd, 0,00160833 s, 19,7 MB/s
*****************************************************.
*****************************************************.
Do you want to clone the boot loader (executable code area, the first 446 bytes) to: sdc ?
[Y/n] y
Cloning the boot loader (executable code area) from "sda" to "sdc"...
*****************************************************.
Now we will start to clone data to the target machine...
Are you sure you want to continue? ? (y/n) y
OK, let's do it!!
*****************************************************.
Searching for data partition(s) in source disk: sda ...
Excluding busy partition or disk...
Unmounted partitions (including extended or swap): sda1 sda2
Collecting info... done!
*****************************************************.
Source partition file system is ntfs...
Cloning the /dev/sda1 to /dev/sdc1...
Clean filesystem header in device /dev/sdc1...
*****************************************************.
Using partclone to clone...
Run partclone: partclone.ntfs -z 10485760 -N -L /var/log/partclone.log -b -s /dev/sda1 -O /dev/sdc1
partclone.ntfs: invalid option -- 'z'
partclone.ntfs v0.2.51 http://partclone.org
Usage: partclone.ntfs [OPTIONS]
    Efficiently clone to a image, device or standard output.

    -o,  --output FILE      Output FILE
    -O   --overwrite FILE   Output FILE, overwriting if exists
    -W   --restore_raw_file create special raw file for loop device
    -s,  --source FILE      Source FILE
    -L,  --logfile FILE     Log FILE
    -c,  --clone            Save to the special image format
    -r,  --restore          Restore from the special image format
    -b,  --dev-to-dev       Local device to device copy mode
    -D,  --domain           Create ddrescue domain log from source device
         --offset_domain=X  Add offset X (bytes) to domain log values
    -R,  --rescue           Continue after disk read errors
    -dX, --debug=X          Set the debug level to X = [0|1|2]
    -C,  --no_check         Don't check device size and free space
    -N,  --ncurses          Using Ncurses User Interface
    -I,  --ignore_fschk     Ignore filesystem check
    -i,  --ignore_crc       Ignore crc check error
    -F,  --force            Force progress
    -f,  --UI-fresh         Fresh times of progress
    -m,  --max_block_cache  The used block will be cache until max number
    -q,  --quiet Disable progress message
    -B,  --no_block_detail  Show progress message without block detail
    -v,  --version          Display partclone version
    -h,  --help             Display this help
cat: /var/log/partclone.log: Bestand of map bestaat niet
*****************************************************.
Source partition file system is ntfs...
Cloning the /dev/sda2 to /dev/sdc2...
Clean filesystem header in device /dev/sdc2...
*****************************************************.
Using partclone to clone...
Run partclone: partclone.ntfs -z 10485760 -N -L /var/log/partclone.log -b -s /dev/sda2 -O /dev/sdc2
partclone.ntfs: invalid option -- 'z'
partclone.ntfs v0.2.51 http://partclone.org
Usage: partclone.ntfs [OPTIONS]
    Efficiently clone to a image, device or standard output.

    -o,  --output FILE      Output FILE
    -O   --overwrite FILE   Output FILE, overwriting if exists
    -W   --restore_raw_file create special raw file for loop device
    -s,  --source FILE      Source FILE
    -L,  --logfile FILE     Log FILE
    -c,  --clone            Save to the special image format
    -r,  --restore          Restore from the special image format
    -b,  --dev-to-dev       Local device to device copy mode
    -D,  --domain           Create ddrescue domain log from source device
         --offset_domain=X  Add offset X (bytes) to domain log values
    -R,  --rescue           Continue after disk read errors
    -dX, --debug=X          Set the debug level to X = [0|1|2]
    -C,  --no_check         Don't check device size and free space
    -N,  --ncurses          Using Ncurses User Interface
    -I,  --ignore_fschk     Ignore filesystem check
    -i,  --ignore_crc       Ignore crc check error
    -F,  --force            Force progress
    -f,  --UI-fresh         Fresh times of progress
    -m,  --max_block_cache  The used block will be cache until max number
    -q,  --quiet Disable progress message
    -B,  --no_block_detail  Show progress message without block detail
    -v,  --version          Display partclone version
    -h,  --help             Display this help
cat: /var/log/partclone.log: Bestand of map bestaat niet
*****************************************************.
*****************************************************.
Searching for data partition(s) in target disk for post process: sdc...
Excluding busy partition or disk...
Unmounted partitions (including extended or swap): sdc1 sdc2 sdc3
Collecting info.... done!
*****************************************************.
Now tuning the file system size on partition /dev/sdc1 to fit the partition size...
"boot" is an unknown or unsupported filesystem... Skip resizing that.
*****************************************************.
Now tuning the file system size on partition /dev/sdc2 to fit the partition size...
Unknown or unsupported partition (/dev/sdc2) found! Skip this partition /dev/sdc2.
*****************************************************.
Now tuning the file system size on partition /dev/sdc3 to fit the partition size...
Unknown or unsupported partition (/dev/sdc3) found! Skip this partition /dev/sdc3.
*****************************************************.
Creating the swap partition if exists...
*****************************************************.
Trying to remove udev hardware record in the restored OS...
The specified destination device: sdc1 sdc2 sdc3
Trying to remove udev persistent files. The devices to be searched: sdc1 sdc2 sdc3...
Now searching possible device /dev/sdc1...
Skip /dev/sdc2 (No file system. Extended partition?).
Skip /dev/sdc3 (No file system. Extended partition?).
done!
*****************************************************.
Device /dev/sdc1 is not a FAT partition.
Skip updating syslinux on that.
Device /dev/sdc2 is not a FAT partition.
Skip updating syslinux on that.
Device /dev/sdc3 is not a FAT partition.
Skip updating syslinux on that.
*****************************************************.
Run grub install on disk sdc...
The grub directory is NOT found. Maybe it does not exist (so other boot manager exists) or the file system is not supported in the kernel. Skip running grub-install.
*****************************************************.
Try to run partclone.ntfsfixboot for NTFS boot partition if it exists. Scanning partition(s):  sdc1 sdc2 sdc3...
The NTFS boot partition was not found or not among the restored partition(s). Skip running partclone.ntfsfixboot.
*****************************************************.
Checking if udevd rules have to be restored...
Ending /usr/sbin/ocs-onthefly at 2016-02-10 15:54:20 CET...
Press "Enter" to continue......
Wat doe ik verkeerd?

Offline kuifje09

  • Lid
Re: Clonezilla?!
« Reactie #6 Gepost op: 2016/05/31, 15:22:53 »
Jammer dat er geen reactie meer is geweest... Maar ik zie ook niet wat er fout gaat.
Het enige wat ik zeker weet is dat ik clonezilla al meerdere keren voor een dergelijk grapje heb gebruikt.
Misschien lukte het mij wel omdat ik de iso vanaf cd startte en niet als applikatie op het systeem zelf.

Of is het inmiddels wel gelukt ?

Re: Clonezilla?!
« Reactie #7 Gepost op: 2016/06/01, 17:51:49 »
Doe het eens zoals Willibuntu schreef:
Citaat
Clonezilla moet je downloaden als een .iso-bestand en branden naar een CD of zetten op een USB. Het is een live-cd, dus met een eigen OS gebaseerd op Ubuntu of Debian. Als je zegt  "Clonezilla is geïnstalleerd onder Ubuntu" dan klopt er iets niet...  FAT of NTFS mag geen probleem zijn. Clonezilla copiëert gewoon de bits en bites.
Je kan dus best de Windows hd klonen naar de nieuwe hd.
http://computertotaal.nl/pc/zo-kloon-je-een-harde-schijf-63952#qMFWpLwB8x6M24RH.97

Het grote voordeel is dat je dan enkel MOUNT wat er nodig is, en zeker niet gestoord wordt door andere situaties.

Verder valt me op uit je terminallog dat je precies een schijf met 3 grote volumes wil gaan clonen, klopt dit wel?
Mint Cinnamon fan  Mint cinnamon-21.2   (vorige linux: LMDE-5 / Mint cinnamon-20+19+18+17 / Ubuntu-16+14+12)