LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-03-2017, 01:39 PM   #1
GrumpyGnome
Member
 
Registered: May 2004
Location: El Sobrante, CA (the scraps)
Distribution: Fedora, RH, & Slack
Posts: 57

Rep: Reputation: 15
Unexpected dd of=file size reported by ls


Hello,
I am running Slack 14.2 x64 and am practically a zero time slacker. The install is very stock; no updates or net connection.

I want to make a 1MiB image file from a section of a 2TB disk with no partition (/dev/sdc) starting at 1.6TiB's. Here is what I have tried:

Code:
bash-4.3# dd if=/dev/sdc of=1600GB-1MiB.dd bs=4096 seek=391130026 count=257
257+0 records in
257+0 records out
1052672 bytes (1.1 MB, 1.0 MiB) copied, 0.201666 s, 5.2 MB/s
bash-4.3# ls -l
total 4948
-rw-r--r-- 1 root root 1602069639168 Feb  3 10:57 1600GB-1MiB.dd
drwxr-xr-x 2 root root          4096 Feb  1 21:43 rawout
-rw-r--r-- 1 root root       2000828 Feb  1 22:19 rawout.dd
-rw-r--r-- 1 root root       2000828 Feb  1 21:54 rawout.zip
-rw-r--r-- 1 root root             2 Jan 31 02:48 test.txt
bash-4.3#
I think 'ls' is saying my outfile size is 1.6TB.
The dd only wrote 1.0 MiB.
This became an issue when I needed to move the file to my 64GB flash drive and 'mv' says the disc is full
Anyone see what I did wrong?

Happy Trails
 
Old 02-03-2017, 02:02 PM   #2
TracyTiger
Member
 
Registered: Apr 2011
Location: California, USA
Distribution: Slackware
Posts: 528

Rep: Reputation: 273Reputation: 273Reputation: 273
Try using "skip" instead of "seek". See "man dd".
 
Old 02-03-2017, 06:15 PM   #3
GrumpyGnome
Member
 
Registered: May 2004
Location: El Sobrante, CA (the scraps)
Distribution: Fedora, RH, & Slack
Posts: 57

Original Poster
Rep: Reputation: 15
Thanks Tracy I just wasn't seeing it.
 
  


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
Drive Size Reported Wrong After Re-size Phiberoptic Linux - General 2 12-05-2007 05:15 PM
Drive size not reported correctly dlynch912 Linux - General 4 02-23-2006 05:04 AM
memory size reported wrong 2.6.12.2/slack 10.2 urbanwks Linux - Hardware 4 12-18-2005 09:44 AM
incorrect memory size reported tintapok Slackware 3 10-29-2005 01:11 AM
reported partition size error jsmarshall85 Debian 4 11-06-2004 02:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:29 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
Open Source Consulting | Domain Registration