Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 07-06-2007, 07:00 PM   #1
Registered: Apr 2006
Posts: 49

Rep: Reputation: 15
How can I create an empty image bigger than 4 GB?

AS from the title: I need an empty 6GB image, but with
dd of=/usr/disk-img/homeImage bs=1024 count=0 seek=4194304
I arrive only to $ GB and I can't go further!

Is it possible in some way???
Old 07-06-2007, 07:43 PM   #2
Senior Member
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Uhh, maybe
dd of=/usr/disk-img/homeImage bs=1024 count=0 seek=6291456

Old 07-07-2007, 04:12 AM   #3
Senior Member
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
The instruction seem to suggest

bs=1024 ---> the record size is 1024 in each transfer

count=0 ---> copy 0 record only

seek=4194304 ---> skip 4194304 records in the output device when start
Old 07-07-2007, 04:39 AM   #4
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
Maybe the 0 count is the problem.

dd if=/dev/zero of=/usr/disk-img/homeImage bs=1024 count=1 seek=$((6*1024*1024-1024))

This positions the start of the write 1024 bytes before the end.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
create image from a part of big image myrmidon Programming 3 07-11-2007 03:00 PM
Perl to create an empty line if fields are equal ryedunn Programming 2 08-16-2006 04:14 PM
Can't create files bigger than 0 bytes GameboyHippo Linux - General 1 03-01-2005 09:04 PM
Can I create a empty /etc/ ? michael_util Linux - Software 1 01-20-2005 07:10 PM
Can you create an empty file and specify the byte length? harryo Linux - General 3 02-25-2004 11:01 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:44 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