Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-24-2012, 02:42 PM   #1
LQ Newbie
Registered: Oct 2003
Location: Washington, D.C.
Distribution: Ubuntu
Posts: 8

Rep: Reputation: 0
DD sparse image for 2TB HD?

Hello. I'm trying to create a sparse image/loopback device with DD to match my physical two terabyte HD, but I'm not sure how to properly calculate block size and seek settings. Any assistance on what the correct setting would be so that it matches exactly to my HD would be greatly appreciated. This is for use with ZFS on Ubuntu. I'm transitioning a ZFS mirror to a raid-z, and need to use a sparse image to create the raid-z, which I can then detach and use the pool degraded until I can get my data copied over. Thank you for any assistance!

The fdisk -lu output for one of my 2TB drives is:

Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/sda doesn't contain a valid partition table
Old 02-25-2012, 08:29 AM   #2
Registered: Apr 2003
Posts: 755

Rep: Reputation: 84
I have no idea exactly how to do this but here are two threads that might get you started until someone more knowledgeable comes along:


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
copying files as sparse Skaperen Linux - Software 7 08-31-2011 03:09 PM
sparse file vs. ramfs Skaperen Linux - Kernel 0 05-17-2011 06:02 PM
[SOLVED] How to use sparse tool Odulo Linux - Kernel 1 07-08-2010 12:13 PM
copy sparse files tincboy Linux - Newbie 14 07-07-2010 02:47 AM -- why is it so sparse? arcanex Slackware 1 08-31-2007 07:52 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:32 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration