LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-14-2005, 11:00 AM   #1
vibhory2j
Member
 
Registered: Apr 2004
Location: India
Posts: 42

Rep: Reputation: 15
how to creare floppy images


hi everybody,

i am new to linux and learning kernel development and it is required to create a bootable floppy again and again which is frustrating. is there any way to create bootable floppy images directly with out making one from a real floppy so that it can tested on bochs.
if i am not wrong it is possible making links of /dev/fd0 but i am not sure how to do it.
any help is appreciated.
thanks in advance for help.
 
Old 10-15-2005, 01:11 PM   #2
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
I'm just guessing, but try

cat /dev/fd0 > floppy.img

or

dd if=/dev/fd0 of=floppy.img
 
Old 10-16-2005, 04:16 AM   #3
vibhory2j
Member
 
Registered: Apr 2004
Location: India
Posts: 42

Original Poster
Rep: Reputation: 15
yeah you are right but i dont want this way.
what i want is that i create a floppy image of data on the hard disk itself, the same way as mkisofs is used to create a iso image on hard disk.
main purpose of doing is to be able to test the floppy images on bochs.

any help??
thanks in advance.
 
Old 12-27-2005, 11:42 AM   #4
kozaki
Member
 
Registered: Jun 2004
Location: France, UE
Distribution: Arch Linux, Bodhi, Debian, Mageia, OpenMediaVault, Q4OS
Posts: 133

Rep: Reputation: 20
better latter than never, that's how to do this with a single floppy drive:

1) copy your data to the floppy

cd /your_data_directory
mount -t ext2 /dev/fd0 /mnt/floppy (adapt /dev/fd0 to where your floppy is located on /dev)
cp -R * /mnt/floppy

I check the data went well on to hte floppy, then

2) Make an image of the floppy :

umount /mnt/floppy
cat /dev/fd0 > /where_you_wanna_put/floppy.img
or
dd if=/dev/fd0 of=/where_you_wanna_put/floppy.img
As dracolich said

3) Copy the floppy image to another floppy :
cat /where_is_your/floppy.img > /dev/fd0
or
dd if=/where_is_your/floppy.img of=/dev/fd0
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
making an iso out of floppy images missinghelix Linux - General 0 07-07-2004 04:38 PM
Floppy Images PhuckFonix Mandriva 1 04-18-2004 04:57 AM
Where can I get updated floppy images? lectraplayer Linux - Newbie 0 05-23-2003 05:00 PM
partimage Boot Floppy Images? falcon56215 Linux - Software 2 05-19-2003 02:36 PM
Creating floppy images. nutshell Linux - Software 2 07-06-2002 07:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:09 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