LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-01-2006, 03:48 PM   #1
computer
Member
 
Registered: Nov 2005
Posts: 89

Rep: Reputation: 15
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
 
Old 08-01-2006, 04:05 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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"
 
Old 08-01-2006, 04:19 PM   #3
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
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.
 
Old 08-01-2006, 05:10 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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
 
Old 08-02-2006, 08:24 AM   #5
computer
Member
 
Registered: Nov 2005
Posts: 89

Original Poster
Rep: Reputation: 15
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
 
Old 08-03-2006, 12:44 PM   #6
computer
Member
 
Registered: Nov 2005
Posts: 89

Original Poster
Rep: Reputation: 15
anyone???
 
Old 08-03-2006, 01:15 PM   #7
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
The image would have any data that the disk did, so you could do anything to the image that you could to the disk.
 
Old 08-03-2006, 03:49 PM   #8
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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.
 
Old 08-03-2006, 06:21 PM   #9
computer
Member
 
Registered: Nov 2005
Posts: 89

Original Poster
Rep: Reputation: 15
hi,

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

thank you
 
Old 08-03-2006, 06:43 PM   #10
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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.
 
Old 08-03-2006, 06:45 PM   #11
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
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.
 
Old 08-05-2006, 10:57 AM   #12
computer
Member
 
Registered: Nov 2005
Posts: 89

Original Poster
Rep: Reputation: 15
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
 
Old 08-05-2006, 12:20 PM   #13
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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?
 
Old 08-05-2006, 12:53 PM   #14
computer
Member
 
Registered: Nov 2005
Posts: 89

Original Poster
Rep: Reputation: 15
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?
 
Old 08-05-2006, 04:25 PM   #15
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Making image of harddrive crxgames SUSE / openSUSE 2 04-11-2005 08:13 AM
Making a drive image pcdude Linux - General 3 01-05-2005 10:20 PM
Making a partition image PhuckFonix Linux - General 6 06-27-2004 02:06 PM
Making an iso image?? Peppercorn Linux - General 9 09-29-2003 09:23 AM
making an image of my drive antken Linux - General 1 07-16-2003 02:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration