Take the State of DFIR Survey Caseloads, AI, tools and careers. 8 minutes, anonymous, early access to the report. Take the survey ›

Take the survey

Take the State of DFIR Survey

Caseloads, AI, tools and careers. 8 minutes, anonymous, early access to the report.

Take the survey →
dd command for writ...
 
Notifications
Clear all

dd command for writing to Fat32 drive

4 Posts
3 Users
0 Reactions
1,913 Views
(@ronanmagee)
Estimable Member
Joined: 21 years ago
Posts: 145
Topic starter   [#1944]

Hi guys,

I have a HD and I want to use DD to make an image of it. My image location is formatted with Fat32. I understand there are file size limits on this. I currently have the command below

dd if=/dev/hdc1 of=image.bin.01 conv=notrunc,noerror,sync count=3000000 skip=0
....
dd if=/dev/hdc1 of=image.bin.07 conv=notrunc,noerror,sync count=3000000 skip=1500000

I then have to update this command every time until I completely image the HD.

Is there any way to automate this so that I get multiple image files all with a unique filename?

Ronan



   
Quote
dfarmer03
(@dfarmer03)
Eminent Member
Joined: 20 years ago
Posts: 38
 

Not sure what the command would be to automate the process, but I know with Helix you can specify to split the image so you don't exceed the FAT32 4gb file size limitation.

Check out page 30.
http//www.e-fense.com/helix/Docs/Helix0307.pdf

Maybe there is a clue in the command line there that will help you.

Derrick



   
ReplyQuote
(@bgrundy)
Trusted Member
Joined: 21 years ago
Posts: 70
 

Hi guys,

I have a HD and I want to use DD to make an image of it. My image location is formatted with Fat32. I understand there are file size limits on this.
…
Is there any way to automate this so that I get multiple image files all with a unique filename?
Ronan

Pipe dd output to split

dd if=/dev/hdc conv=notrunc,noerror,sync | split -d -b 2000m - image.bin.split.
Drop the "of=" since you are sending the output through the pipe to split. "-d" indicates decimal extension (*.00, *.01, etc.), the "-b 2000m" makes 2GB splits, the lone "-" signifies to get your input from the pipe, and the output file name ends in a dot to allow the extension to be separated.

Also note that the command in your original post specifies "/dev/hdc1" which is not the whole disk, just the first partition.

See page 79 of http//www.linuxleo.com/Docs/linuxintro-LEFE-3.20.pdf

Please note I'm not suggesting this doc is better than the helix doc…it just serves a different purpose - hands on exercises and step by step directions on specific linux tools. The exercise files are available on the website.



   
ReplyQuote
(@ronanmagee)
Estimable Member
Joined: 21 years ago
Posts: 145
Topic starter  

Farmer/Grundy,

Cheers for your help, they're both what I'm looking for!

Off to play about with them now,

Ronan



   
ReplyQuote

Enterprise Partners

  • atola-logo
  • semantics21 2026 FF logo
  • celebrite-logo
  • MagnetForensics_ForensicFocus

Partners

  • logo Belkasoft 135x100
  • Logo_MSAB_Black (2)
  • detego-logo
  • gmdsoft-logo
  • Aid4Mail-Logo
  • ADF

Academic Partners

  • University of Southampton logo 2
Share: