LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   making an image of floppy (https://www.linuxquestions.org/questions/linux-newbie-8/making-an-image-of-floppy-469835/)

computer 08-01-2006 02:48 PM

making an image of floppy
 
hi,

can you guys please show me how to make an image of a floppy diskette in linux (step by step)....i would appreciate it if you could give me the commands for it.

thank you

pixellany 08-01-2006 03:05 PM

Quote:

Originally Posted by computer
hi,

can you guys please show me how to make an image of a floppy diskette in linux (step by step)....i would appreciate it if you could give me the commands for it.

thank you

This is a job for "Captain DeDe"......;)

Seriously, the "dd" command does this and so much more....

to copy the entire contents of the floppy to a file "flopimage", do this (as root):

dd if=/dev/fd0 of=flopimage bs=1440 count=1

For more info: "man dd", or search here for the thread by AwesomeMachine: "Learn the dd command"

Matir 08-01-2006 03:19 PM

Quote:

Originally Posted by pixellany
dd if=/dev/fd0 of=flopimage bs=1440 count=1

That would only copy the first 1440 bytes from the floppy drive. You might need count=1k.

I prefer:
Code:

dd if=/dev/fd0 of=flopimage bs=4k
dd will automatically stop when it reaches the end of the disk.

pixellany 08-01-2006 04:10 PM

OOPS--I had it in my head that there was a default to KBytes. Sorry

Wiht 3X the number of posts, I would expect Matir to be right 3X as many times as me....;)

Actually, this works also, n'est-ce pas??

dd if=/dev/fd0 of=flopimage

computer 08-02-2006 07:24 AM

hi,

thanks for your replies.

would it be possible to put some files on floppy.then hide one and delete another and make an image of it using the command mentioned. and when opening the image, with some tool or maybe a command, i could get the hidden file as well as the deleted file.

hope it is clear enough....

thank you

computer 08-03-2006 11:44 AM

anyone???:confused:

Matir 08-03-2006 12:15 PM

The image would have any data that the disk did, so you could do anything to the image that you could to the disk.

pixellany 08-03-2006 02:49 PM

Quote:

Originally Posted by computer
would it be possible to put some files on floppy.then hide one and delete another and make an image of it using the command mentioned. and when opening the image, with some tool or maybe a command, i could get the hidden file as well as the deleted file.
thank you

The reason you did not get an instant response is that this question is not very clear. What is your end objective? There may be another approach that is better.

As Matir says, an image made using dd copies every bit verbatim.

computer 08-03-2006 05:21 PM

hi,

what i meant is can i recover hidden or deleted files from the image?

thank you

pixellany 08-03-2006 05:43 PM

If you delete a file--on any magnetic medium--the bit patterns are still there. All that gets deleted is the pointer that tells the filesystem where to find the bits.
"Hidden" files are another matter--The filesystem and/or file browser has commands, flags, whatever, to cause the file to be visible or hidden. Regardless--all the links are there.

Maybe this will help: Anything you can do on a disk--hd or floppy---you can also do with the disk image. All the bit patterns are copied verbatim. Suppose you take floppy A and make an image using dd. Then use that image to create floppy B. No one would ever be able to tell the difference between A and B.

Again--you might get more help if you would tell us the end goal.

Matir 08-03-2006 05:45 PM

Keep in mind that recovering deleted files is always hit or miss: if they've been overwritten, they're definitely gone, not to mention the difficulty of reconstructing some filesystems.

On the other hand, anyone with data recovery experience will tell you that data recovery is never done on the original disk, but a bitwise copy or image of it.

computer 08-05-2006 09:57 AM

hi,

i have an image.img and i did the following command:

Code:

dd if=/dev/fd0 of=/home/username/myfloppyimage
it says: -

Code:

2880+0 records in
2880+0 records out
1474560 bytes (1.5 MB) copied, 47.5336 seconds, 31.0 kB/s


but when i open the floppy there is nothing inside the floppy, am i doing somthing wrong?

thank you

pixellany 08-05-2006 11:20 AM

You just copied the contents of the floppy to a file named "myfloppyimage", located in /home/username/.

You did not use the file named "image.img"

If you want to copy that file TO the floppy, do this:

dd if=image.img of=/dev/fd0

Have you read "man dd" or the tutorial by AwesomeMachine?

computer 08-05-2006 11:53 AM

hi,

thanks for the reply.

i created an image, then wrote it to different floppy which worked like a charm(the files were there).

now i have another image, which a friend of mine gave me, i tried writing it several times but the floppy is still empty....

thanks

ps do you have the link for tutorial to AwsomeMachine?

pixellany 08-05-2006 03:25 PM

As before, what commands did you send, and what response?
Are you sure the image has data in it? Do "cat <filename> | hexdump -C | more" to see what's in the file.

Here is the "Awesome" tutorial:
http://www.linuxquestions.org/questi...d.php?t=362506


All times are GMT -5. The time now is 05:25 PM.