LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] dd weirdness

[ILUG] dd weirdness

Padraig Brady padraig at antefacto.com
Fri Oct 12 17:23:06 IST 2001


Paul Jakma wrote:

>why does:
>
>	dd bs=1024k count=150 seek=150 if=/dev/zero of=var_fs
>
>give me:
>
>	[paulj at doohan host1]$ ls -lh
>	total 176M
>	-rw-rw-r--    1 paulj    paulj         50M Oct 12 17:10 swap
>	-rw-rw-r--    1 paulj    paulj        300M Oct 12 17:13 var_fs
>
>(the swap file was also dd'd - i wanted 25M). It also happens with 
>bs=1M.
>
>weird...
>
>--paulj
>
>
seek skips bytes on OUTPUT so you will get a 150MB hole @ the
start of the file and then the 150MB of read zeros will be written.
Why are you seeking, are you sure you don't want to skip?

Padraig.





More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell