Results 1 to 3 of 3

Thread: Clone a disk to a zipped image file

  1. #1
    Join Date
    Mar 2007

    Clone a disk to a zipped image file

    I am having a bit of a problem with backing up a drive that has a bad sector, I need an image of the whole drive so that if anything goes wrong with the repair, I can return the drive to its original damaged state and try again to repair with another disk tool.

    I am currently running Ubuntu on the damaged machine from an SD Card so the drives are not mounted, only the target drive is mounted.

    Something odd with the resulting image, when I view it, the 51 GB image file has a file inside thats 3.9 GB in size.

    I issued a
    dd if=/dev/sda | gzip -c > /media/mountpoint/externalUSBdrive/ssd.img.gz
    which resulted in the PC being occupied for 10 hours, my PC is a bit odd in itself, windows report its quad core, box says dual core, so I can't say for sure what it is but 10 hours to compress a drive image of 64GB when copying the accessible files of some 40+ Gigs too about 45 minutes, say that something wasn't right.

    Any thoughts?
    --> JavaScript Frameworks like JQuery, Angular, Node <--
    ... and please remember to wrap code with forum BBCode tags:-

    [CODE]...[/CODE] [HTML]...[/HTML] [PHP]...[/PHP]

    If you can't think outside the box, you will be trapped forever with no escape...

  2. #2
    Join Date
    Mar 2007
    Well despite examples like I posted in my previous comment, I have since learned thet you SHOULD NEVER produce a disk image using gzip ir zip or any of the compression methods.

    What you are supposed to do is first off creat a bit for bit copy of the drive and this is achieved by issuing the following commands

    user@ubuntu:~$ sudo dd if=/dev/sda of="/media/mountpoint/externalUSBdrive/ssd.img"
    [sudo] password for user:<password>

    Then record the drive geometary with:

    user@ubuntu:~$ sudo fdisk -l /dev/sda > "/media/mountpoint/externalUSBdrive/list_fdisk.info"

    This will then create a file names ssd.img on the target device via its mount reference. It will take about 9 hours on a 64GiB drive, assuming that the system is like my nettop which is an Intel dual core 32 bit PC @ (1.6Ghz per CPU) or 3.2Ghz total bridged as a 32bit or 3Ghz as a 64 bit system and 2GiB RAM.

    A few things that need to be remembered is the source device /dev/sda will need to have an unmount commant issued or unmounted in the GUI program 'disks' the user will need to for safe operation if they are trying to copy the boot drive,MUST run a Live CD / USB.

    My intention is simply to have a copy of the drive in its damaged state to restore the image if the repair on the original drive doesn't go well and I am looking at binary spaghetti.

    Its been a long drawn out ordeal to get an answer out of askubuntu.com, too many anal moderators blocking users and rejecting questions and claiming that questions are or mark questions as duplicates... when they are not, this being because the first question asked or questions read to get an answer don't answer the problem thats being faced.

    All someone had to do in one of my questions was to say I needed to quote a path that has spaces in it, it took aboiut 5 questions to actually get to the bottom of the problem despite stating the error messages, all mods could do is mark the question as duplicate. The other problem with askubuntu is that the posts on there are only live, at most for a few hours before the question is swamped by other questions by other users.

    Finally, if anyone is thinking of running Ubuntu 14.10 as an install, my advice is don't Unity desktop is annoying, not helpful and you have no idea of what is installed unless it is pinned to the Unity side bar, complete pointless *&^%*%$ (that was me BTW and not a filter) and very few programs or hardware works that is bundled, fact that they bundled 500MB of programs that need a further 336 MB of libraries (dependencies) to make the software work.

    I have been informed that Linux Mint with MATE is what I am looking for, a friendlier uncluttered and faster distro as Unity dashboard as far as I understand required allot of processing and judging by the sound of my cooling fans, sounds like my CPU's are running flat out under Ubuntu 14.10 with Untiy.
    Last edited by \\.\; 03-04-2015 at 05:49 PM.
    --> JavaScript Frameworks like JQuery, Angular, Node <--
    ... and please remember to wrap code with forum BBCode tags:-

    [CODE]...[/CODE] [HTML]...[/HTML] [PHP]...[/PHP]

    If you can't think outside the box, you will be trapped forever with no escape...

  3. #3
    Join Date
    Mar 2007
    Well this week I am dropping Ubuntu for the pile of pants it has become, after trying Linux MINT, I can understand why it has jumpt to the No.1 desktop and out numbers all the other distros put together.

    I got a copy of Mint with MATE desk top, very clean, very very fast, I couldn't believe that even running it from a Live CD running the same Debain base so I could compare with Ubuntu, sorry guys at Ubunty, you really really do need to dump Unity desktop, it is a real resource hog and I am surprised that my Quad core PC keeps on stalling and I keep on getting Grey screens.

    Unity IMHO is going to bring about Ubuntu's demise.
    --> JavaScript Frameworks like JQuery, Angular, Node <--
    ... and please remember to wrap code with forum BBCode tags:-

    [CODE]...[/CODE] [HTML]...[/HTML] [PHP]...[/PHP]

    If you can't think outside the box, you will be trapped forever with no escape...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center



X vBulletin 4.2.2 Debug Information

  • Page Generation 0.12877 seconds
  • Memory Usage 2,864KB
  • Queries Executed 15 (?)
More Information
Template Usage (33):
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (3)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (26):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (70):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • bbcode_parse_start
  • postbit_imicons
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates