LinuxQuestions.org
Visit Jeremy's Blog.
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, 02:42 PM   #1
Jaw3000
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
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, 08:29 AM   #2
mjolnir
Member
 
Registered: Apr 2003
Posts: 748

Rep: Reputation: 82
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


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
slackwiki.org -- why is it so sparse? arcanex Slackware 1 08-31-2007 07:52 PM


All times are GMT -5. The time now is 06:33 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration