HOME
Home
Home
Search
About
TECHNOLOGY
Misc Tech
Tools
Linux
SQL
Webmaster:
HTML
Javascript
Drupal
Programming Languages:
Perl
Java
Boards
Tech Blog
Message Board
THE ARCHIVE
Places:
Points of Interest
WTC
Museum
Lists:
The Text Files
Fonts Archive
Names Database
Hobby:
Hobbies
Stereograms
JUST FOR FUN
Games:
Web Games
Games Reference
Other Amusement:
Meme Generator
Weird Pix
Flip Text
Ugly Cars
Aquarium
Tech Blog
2023
2022
2021
2020
2019
2018
2017
2016
2015
2014
2013
2012
2011
2010
2009
2008
2007
2006
2005
2001
 
Linux Geeks: copy a floppy with dd and gzip 2007-05-03 09:43 UTC

From floppy to file on filesystem:
dd if=/dev/fd0 | gzip --to-stdout -9 > image.file.gz


dd reads from floppy drive fd0 and writes to standard output.
gzip compresses stdin to stdout. -9 telss gzip to compress better.
And the compressed image file is created.

from file on filesystem to floppy:
cat image.file.gz | gzip -d --to-stdout | dd of=/dev/fd0


cat reads the compressed image file and pipes it to gzip.
-d tells gzip to decompress. gzip's stdout is piped to dd.
dd writes to floppy fd0

If you have two floppy drives, and most people don't, you can just run:
dd if=/dev/fd0 of=/dev/fd1


You can have more fun if you know how to use netcat. netcat lets you send data over your network. You get the drill.

I haven't tried to copy/clone a hard drive this way yet.

Anyone want to try this on a working hard drive? Let me know how it works out.

How about this:
Do the above with a USB hard drive plugged in to your computer. Then take the USB drive to an identical computer and decompress the image there.
The Linux kernel recognises the USB drive as /dev/sda. So on a single partition USB drive, you would use /dev/sda1.

LINK

Comments:




All comments are filtered before moderator review.
Only common ASCII characters allowed.
Comments are truncated to 2000 characters.
Names are also kept short by truncation.