LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

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
sectors
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, 07:29 AM   #2
mjolnir
Member
 
Registered: Apr 2003
Posts: 820

Rep: Reputation: 99
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: http://www.linuxquestions.org/questi...ml#post2679562

http://www.linuxquestions.org/questi...ommand-362506/
 
  


Reply



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 02:09 PM
sparse file vs. ramfs Skaperen Linux - Kernel 0 05-17-2011 05:02 PM
[SOLVED] How to use sparse tool Odulo Linux - Kernel 1 07-08-2010 11:13 AM
copy sparse files tincboy Linux - Newbie 14 07-07-2010 01:47 AM
slackwiki.org -- why is it so sparse? arcanex Slackware 1 08-31-2007 06:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:20 PM.

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