Results 1 to 7 of 7
  1. #1
    Join Date
    Nov 2002
    Posts
    202

    How do i image a partition into a file in linux?

    I have a hard drive with a partition i want to save to an image so i can create a loop back device later and view the files.

    I wont have access to the hard drive with the partition i want to backup later. Hence my desire.

    What should i use? I tried
    PHP Code:
    dd if=/dev/hdb1 of=./mydrive.iso 
    But it grew very large. Is this correct? I thought the iso should be roughly the same size as when you do a `df`.

  2. #2
    Join Date
    Feb 2004
    Posts
    772
    hai

    plz check out this link,it'll be useful for u...

    http://www.mega-tokyo.com/osfaq2/ind...0Under%20Linux

    thanks
    Bright Info Solutions

  3. #3
    Join Date
    Nov 2002
    Posts
    202
    Does it matter if the hard drive in the if (input file), is already mounted?

  4. #4
    Join Date
    Nov 2002
    Posts
    202
    Originally posted by Brightadmin
    hai

    plz check out this link,it'll be useful for u...

    http://www.mega-tokyo.com/osfaq2/ind...0Under%20Linux

    thanks
    The link is interesting, but not exactly what i need. I just want to create an exact duplicate of the partition to a file. i dont want to mess aroudn with creating a zero'ed loop back device.

    Does it matter if i alreayd mount the device im trying to back up?

  5. #5
    Join Date
    Nov 2002
    Posts
    202
    To clarify, in the end i want to be able to create a loop back device to the file so i can access the data.

  6. #6
    Join Date
    Aug 2000
    Location
    Sheffield, South Yorks
    Posts
    3,480
    dd will create a file the same size as the partition, not just the used space on the partition.
    Karl Austin :: KDA Web Services Ltd.
    UK Business Hosting and Managed Servers - Hosting for Business Users :: 0800 5429 764
    Call us today and ask about our hosting solutions.

  7. #7
    Join Date
    Sep 2002
    Location
    ohio
    Posts
    132

    GRAB G4u

    search google for g4u (ghost for unix) it allows imaging of hard drives or a single partition

Posting Permissions

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