Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Cloning Linux Drive using Win7/LiveCD?
New Posts  All Forums:Forum Nav:

Cloning Linux Drive using Win7/LiveCD? - Page 4

post #31 of 43
oh and, a little trick for monitoring the progress without needing to "refresh" the current size of the target image (when making that backup.img) is to open up another console window and type in this command:
watch ls -lh /path/to/file/backup.img
( again being lower case L in ls and -lh
eg.
watch ls -lh /media/External500GB/backup.img

and the output should be smiliar to this:

Every 2.0s: ls -lh /media/External500GB/backup.img Mon Apr 2 01:08:36 2012

-rw-rw-r-- 1 scrin scrin 23K 2011-11-23 19:07 /media/External500GB/backup.img




where there is the current size, after username and group, (23K in my example) updated every 2 seconds smile.gif

this command will run forever, until interrupted with ctrl + C
Edited by Microx256 - 4/1/12 at 3:13pm
Minimachine
(9 items)
 
  
CPUMotherboardGraphicsRAM
i7-5775C Asus Maximus VII Impact EVGA GTX1080 Founders edition 2x8GB Kingston HyperX 1600Mhz 
Hard DriveMonitorPowerCase
Samsung 950 PRO 512GB M.2 NVMe 3x Asus PB287Q 4k Silverstone 600W Strider SFX NCASE M1 Rev 2 
  hide details  
Reply
Minimachine
(9 items)
 
  
CPUMotherboardGraphicsRAM
i7-5775C Asus Maximus VII Impact EVGA GTX1080 Founders edition 2x8GB Kingston HyperX 1600Mhz 
Hard DriveMonitorPowerCase
Samsung 950 PRO 512GB M.2 NVMe 3x Asus PB287Q 4k Silverstone 600W Strider SFX NCASE M1 Rev 2 
  hide details  
Reply
post #32 of 43
Thread Starter 
Quote:
Originally Posted by Microx256 View Post

cant get sleep >.<<br /> 14.9GB in 45 minutes would mean 45.2Mb/s (=5,65MB/s) and assuming this was a usb stick, this seems to be a decent speed for it. however, (internal) hard disks are usually alot faster than that so its not necessarily "a few hours". however, this also depends on the destination, which is your external hard drive I suppose? doing internal-to-internal copies are usually alot faster, (easily 10-20x faster than that) so its possible it could be done in even less than what it took with your usb stick smile.gif this, however, obviously requires the "original" and the "target" drives to be internal drives, preferably SATA instead of IDE rolleyes.gif
and about that question; no, there are not really any "easy" way to get a (true) identical copy/backup any faster rolleyes.gif
oh, and, that
ubuntu@ubuntu:~$:
is the new prompt line I was talking about, which indicated the previous command finished and its waiting for a new one (if any) smile.gif

Sweet!
Forgot I was writing/taking from a USB stick.
Would it being on a LiveCD be slowing it down too?
I figure that it would..
Maybe I'll open up a secondary partition on my primary backup internal drive, which is a SATA drive, install Ubuntu on that, and whatnot.

In anyway, this was a pretty fun & interesting day thumb.gif
Next week should be a success, will keep you guys updated with whatever happens.. rolleyes.gif
post #33 of 43
Quote:
Originally Posted by rawfuls View Post

Quote:
Originally Posted by Microx256 View Post

cant get sleep >.<<br /> 14.9GB in 45 minutes would mean 45.2Mb/s (=5,65MB/s) and assuming this was a usb stick, this seems to be a decent speed for it. however, (internal) hard disks are usually alot faster than that so its not necessarily "a few hours". however, this also depends on the destination, which is your external hard drive I suppose? doing internal-to-internal copies are usually alot faster, (easily 10-20x faster than that) so its possible it could be done in even less than what it took with your usb stick smile.gif this, however, obviously requires the "original" and the "target" drives to be internal drives, preferably SATA instead of IDE rolleyes.gif
and about that question; no, there are not really any "easy" way to get a (true) identical copy/backup any faster rolleyes.gif
oh, and, that
ubuntu@ubuntu:~$:
is the new prompt line I was talking about, which indicated the previous command finished and its waiting for a new one (if any) smile.gif

Sweet!
Forgot I was writing/taking from a USB stick.
Would it being on a LiveCD be slowing it down too?
I figure that it would..
Maybe I'll open up a secondary partition on my primary backup internal drive, which is a SATA drive, install Ubuntu on that, and whatnot.

In anyway, this was a pretty fun & interesting day thumb.gif
Next week should be a success, will keep you guys updated with whatever happens.. rolleyes.gif

the location of the livecd itself does not make any difference in copying speed (other than the startup time of the livecd itself) since its no involved in any way, the dd program is loaded on the memory when first launched, and stay there for whole time, transferring data from one source to target smile.gif

most important factors in the speed is the source and destination, and since you cant change the source wherefrom you are copying, only thing to do is to ensure that you have a fast target drive where to store the image smile.gif


anyway, before i go to sleep (again), just a reminder; when working with dd, ALWAYS double-check the source (if=) and target (of=) parameters! especially if any change is made in the system: restarting, removing or plugging devices, or stuff like that smile.gif
Edited by Microx256 - 4/1/12 at 3:40pm
Minimachine
(9 items)
 
  
CPUMotherboardGraphicsRAM
i7-5775C Asus Maximus VII Impact EVGA GTX1080 Founders edition 2x8GB Kingston HyperX 1600Mhz 
Hard DriveMonitorPowerCase
Samsung 950 PRO 512GB M.2 NVMe 3x Asus PB287Q 4k Silverstone 600W Strider SFX NCASE M1 Rev 2 
  hide details  
Reply
Minimachine
(9 items)
 
  
CPUMotherboardGraphicsRAM
i7-5775C Asus Maximus VII Impact EVGA GTX1080 Founders edition 2x8GB Kingston HyperX 1600Mhz 
Hard DriveMonitorPowerCase
Samsung 950 PRO 512GB M.2 NVMe 3x Asus PB287Q 4k Silverstone 600W Strider SFX NCASE M1 Rev 2 
  hide details  
Reply
post #34 of 43
Thread Starter 
Curious, if I have two of the EXACT same drive sizes, how do I know which is which?
Last I checked, it didn't say the model number anywhere?
post #35 of 43
Quote:
Originally Posted by rawfuls View Post

Curious, if I have two of the EXACT same drive sizes, how do I know which is which?
Last I checked, it didn't say the model number anywhere?

Sharpie....?
Current Rig
(14 items)
 
  
CPUMotherboardGraphicsRAM
FX-8350 4.6GHz@1.44v GA-990FXA-UD3 R4.0 HD 7950 (1100/1450) 8G Muskin DDR3 1866@8CLS 
Hard DriveOptical DriveOSMonitor
1TB WD LiteOn DVD-RW DL Linux/Windows 19" Phillips TV 1080p 
PowerCaseMouseMouse Pad
OCZ 600W Generic Junk Logitech MX400 Generic Junk 
Audio
SBL 5.1 
  hide details  
Reply
Current Rig
(14 items)
 
  
CPUMotherboardGraphicsRAM
FX-8350 4.6GHz@1.44v GA-990FXA-UD3 R4.0 HD 7950 (1100/1450) 8G Muskin DDR3 1866@8CLS 
Hard DriveOptical DriveOSMonitor
1TB WD LiteOn DVD-RW DL Linux/Windows 19" Phillips TV 1080p 
PowerCaseMouseMouse Pad
OCZ 600W Generic Junk Logitech MX400 Generic Junk 
Audio
SBL 5.1 
  hide details  
Reply
post #36 of 43
Thread Starter 
Quote:
Originally Posted by mushroomboy View Post

Sharpie....?

No, like... when, I check for the /dev/sdx..
sudo fdisk -l?
post #37 of 43
Quote:
Originally Posted by rawfuls View Post

No, like... when, I check for the /dev/sdx..
sudo fdisk -l?

fdisk -l yes, and the first drive will be a, second in line b, etc.
post #38 of 43
Yeah, drives have a different /dev/sdX/ Where X is A, B,C, ect... Pay attention to that as well, make sure you know which drive is which. I prefer using a GUI utility like gparted (ubuntu LiveCD has it) and using that as a reference as to which drive is the target and which is the destination. Just wipe clean the target, then you know in gparted due to one drive having used space and the other being unpartitioned.
Current Rig
(14 items)
 
  
CPUMotherboardGraphicsRAM
FX-8350 4.6GHz@1.44v GA-990FXA-UD3 R4.0 HD 7950 (1100/1450) 8G Muskin DDR3 1866@8CLS 
Hard DriveOptical DriveOSMonitor
1TB WD LiteOn DVD-RW DL Linux/Windows 19" Phillips TV 1080p 
PowerCaseMouseMouse Pad
OCZ 600W Generic Junk Logitech MX400 Generic Junk 
Audio
SBL 5.1 
  hide details  
Reply
Current Rig
(14 items)
 
  
CPUMotherboardGraphicsRAM
FX-8350 4.6GHz@1.44v GA-990FXA-UD3 R4.0 HD 7950 (1100/1450) 8G Muskin DDR3 1866@8CLS 
Hard DriveOptical DriveOSMonitor
1TB WD LiteOn DVD-RW DL Linux/Windows 19" Phillips TV 1080p 
PowerCaseMouseMouse Pad
OCZ 600W Generic Junk Logitech MX400 Generic Junk 
Audio
SBL 5.1 
  hide details  
Reply
post #39 of 43
Thread Starter 
Quote:
Originally Posted by Shrak View Post

fdisk -l yes, and the first drive will be a, second in line b, etc.

Well, that's a given, but how would I know which drive is the first, and which is the second?
Besides being in cable select, just to be safe?
Quote:
Originally Posted by mushroomboy View Post

Yeah, drives have a different /dev/sdX/ Where X is A, B,C, ect... Pay attention to that as well, make sure you know which drive is which. I prefer using a GUI utility like gparted (ubuntu LiveCD has it) and using that as a reference as to which drive is the target and which is the destination. Just wipe clean the target, then you know in gparted due to one drive having used space and the other being unpartitioned.

Same as above, how would I know which is why...
Beside wiping clean...
post #40 of 43
Quote:
Originally Posted by rawfuls View Post

Curious, if I have two of the EXACT same drive sizes, how do I know which is which?
Last I checked, it didn't say the model number anywhere?

ls -l /dev/disk/by-id/

should help smile.gif

so, remove the other disk (so you have only other one plugged) and check the ID of that disk, write it down somewhere, and then you can add the second, boot up again and issue same command and now you should have the other one there aswell, just write down it ID smile.gif

example output:

root@scrinnet:/home/scrin# ls -l /dev/disk/by-id/
total 0
lrwxrwxrwx 1 root root 9 2012-03-24 13:53 ata-SAMSUNG_HD204UI_S2H7J1BZ908516 -> ../../sdd
lrwxrwxrwx 1 root root 10 2012-03-24 13:59 ata-SAMSUNG_HD204UI_S2H7J1BZ908516-part1 -> ../../sdd1
lrwxrwxrwx 1 root root 9 2012-03-24 13:53 ata-SAMSUNG_HD204UI_S2H7JD1B217068 -> ../../sdc
lrwxrwxrwx 1 root root 10 2012-03-24 13:59 ata-SAMSUNG_HD204UI_S2H7JD1B217068-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 9 2012-03-23 15:46 ata-WDC_WD1600AAJS-07M0A0_WD-WMAV3A115952 -> ../../sda ### disk CURRENTLY /dev/sda would have id of ata-WDC_WD1600AAJS-07M0A0_WD-WMAV3A115952
lrwxrwxrwx 1 root root 10 2012-03-23 15:46 ata-WDC_WD1600AAJS-07M0A0_WD-WMAV3A115952-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 2012-03-23 15:46 ata-WDC_WD1600AAJS-07M0A0_WD-WMAV3A115952-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 2012-03-23 15:46 ata-WDC_WD1600AAJS-07M0A0_WD-WMAV3A115952-part5 -> ../../sda5
lrwxrwxrwx 1 root root 9 2012-03-23 15:46 ata-WDC_WD800JD-55MUA1_WD-WMAMD8803205 -> ../../sdb ### disk CURRENTLY /dev/sdb would have id of ata-WDC_WD800JD-55MUA1_WD-WMAMD8803205
lrwxrwxrwx 1 root root 10 2012-03-23 15:46 ata-WDC_WD800JD-55MUA1_WD-WMAMD8803205-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 2012-03-23 15:46 dm-name-bu-backup -> ../../dm-0
lrwxrwxrwx 1 root root 10 2012-03-23 15:46 dm-name-scrinnet-root -> ../../dm-1
lrwxrwxrwx 1 root root 10 2012-03-23 15:46 dm-name-scrinnet-swap_1 -> ../../dm-2
lrwxrwxrwx 1 root root 10 2012-03-23 15:46 dm-uuid-LVM-7B7eGxpHXsVlzwF5OKo6oQqpuncAL39Dq6cGHCaodDxn8uFdkKgTUxYN2vLkiRVW -> ../../dm-0
lrwxrwxrwx 1 root root 10 2012-03-23 15:46 dm-uuid-LVM-g6yaOvihuHaVjHYt8V2cPjltu6kqyJC72XJANGDdy6btO49Xi9iPle6JIyUEeuRT -> ../../dm-2
lrwxrwxrwx 1 root root 10 2012-03-23 15:46 dm-uuid-LVM-g6yaOvihuHaVjHYt8V2cPjltu6kqyJC7sFvFazPx2DfLIbbPbyKpHRXl3Xrj8hsS -> ../../dm-1
lrwxrwxrwx 1 root root 9 2012-03-24 14:01 md-name-scrinnet:0 -> ../../md0
lrwxrwxrwx 1 root root 9 2012-03-24 14:01 md-uuid-4865fe8a:130d4841:b4c084e4:9a7923dd -> ../../md0
lrwxrwxrwx 1 root root 9 2012-03-24 13:53 scsi-SATA_SAMSUNG_HD204UIS2H7J1BZ908516 -> ../../sdd
lrwxrwxrwx 1 root root 10 2012-03-24 13:59 scsi-SATA_SAMSUNG_HD204UIS2H7J1BZ908516-part1 -> ../../sdd1
lrwxrwxrwx 1 root root 9 2012-03-24 13:53 scsi-SATA_SAMSUNG_HD204UIS2H7JD1B217068 -> ../../sdc
lrwxrwxrwx 1 root root 10 2012-03-24 13:59 scsi-SATA_SAMSUNG_HD204UIS2H7JD1B217068-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 9 2012-03-23 15:46 scsi-SATA_WDC_WD1600AAJS-_WD-WMAV3A115952 -> ../../sda
lrwxrwxrwx 1 root root 10 2012-03-23 15:46 scsi-SATA_WDC_WD1600AAJS-_WD-WMAV3A115952-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 2012-03-23 15:46 scsi-SATA_WDC_WD1600AAJS-_WD-WMAV3A115952-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 2012-03-23 15:46 scsi-SATA_WDC_WD1600AAJS-_WD-WMAV3A115952-part5 -> ../../sda5
lrwxrwxrwx 1 root root 9 2012-03-23 15:46 scsi-SATA_WDC_WD800JD-55M_WD-WMAMD8803205 -> ../../sdb
lrwxrwxrwx 1 root root 10 2012-03-23 15:46 scsi-SATA_WDC_WD800JD-55M_WD-WMAMD8803205-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 9 2012-03-23 15:46 wwn-0x50014ee056faa671 -> ../../sda
lrwxrwxrwx 1 root root 10 2012-03-23 15:46 wwn-0x50014ee056faa671-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 2012-03-23 15:46 wwn-0x50014ee056faa671-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 2012-03-23 15:46 wwn-0x50014ee056faa671-part5 -> ../../sda5
lrwxrwxrwx 1 root root 9 2012-03-24 13:53 wwn-0x50024e90041198dc -> ../../sdd
lrwxrwxrwx 1 root root 10 2012-03-24 13:59 wwn-0x50024e90041198dc-part1 -> ../../sdd1
lrwxrwxrwx 1 root root 9 2012-03-24 13:53 wwn-0x50024e9004ac60ac -> ../../sdc
lrwxrwxrwx 1 root root 10 2012-03-24 13:59 wwn-0x50024e9004ac60ac-part1 -> ../../sdc1


and yes, the ID is persistent, dev/sd* is not smile.gif so you have to verify which sd* is which actual disk after every boot (when operating with livecd's)
Minimachine
(9 items)
 
  
CPUMotherboardGraphicsRAM
i7-5775C Asus Maximus VII Impact EVGA GTX1080 Founders edition 2x8GB Kingston HyperX 1600Mhz 
Hard DriveMonitorPowerCase
Samsung 950 PRO 512GB M.2 NVMe 3x Asus PB287Q 4k Silverstone 600W Strider SFX NCASE M1 Rev 2 
  hide details  
Reply
Minimachine
(9 items)
 
  
CPUMotherboardGraphicsRAM
i7-5775C Asus Maximus VII Impact EVGA GTX1080 Founders edition 2x8GB Kingston HyperX 1600Mhz 
Hard DriveMonitorPowerCase
Samsung 950 PRO 512GB M.2 NVMe 3x Asus PB287Q 4k Silverstone 600W Strider SFX NCASE M1 Rev 2 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Cloning Linux Drive using Win7/LiveCD?