Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-21-2006, 10:37 PM   #1
Registered: May 2006
Location: NEWBIE!
Distribution: Ubuntu 6.06
Posts: 31

Rep: Reputation: 15
reading and writing floppydisks

how do i read and write to a floppydisk? i found /dev/fd0 but have no clue how to use it... i need to put the output of dmesg and kde on a floppy (need to save the errormessages when i type kde). thanks!
Old 05-21-2006, 11:05 PM   #2
Senior Member
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
Put the Floppy disk in, and run the command:
mount /media/floppy
The contents of your floppy disk should now appear under /media/floppy.

Copy whatever files you want to the floppy, and then run:
umount /media/floppy
Make sure that your current directory is not under /media/floppy when you do this, and make sure you run the command before ejecting the floppy. If you don't your files will not be copyed.

I hope this helps
Old 05-21-2006, 11:05 PM   #3
Wim Sturkenboom
Senior Member
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Look at /etc/fstab. It will more than likely contain an entry for the floppy disk.
cat /etc/fstab
/dev/hda1        /                reiserfs    defaults         1   1
/dev/hda3        /server          reiserfs    defaults         1   2
/dev/hda5        /home            reiserfs    defaults         1   2
/dev/cdrom       /mnt/cdrom       iso9660     noauto,owner,ro  0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
/dev/sda1        /mnt/cruzer2     vfat        noauto,user      0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
In above example, one can mount the floppy with the mount command
mount /mnt/floppy
Old 05-22-2006, 12:32 AM   #4
Registered: May 2006
Location: NEWBIE!
Distribution: Ubuntu 6.06
Posts: 31

Original Poster
Rep: Reputation: 15
thanks very much Iball and Wim, that really helps me.


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
writing and reading from a file! sahel Programming 1 12-27-2005 01:33 PM
Binary reading/writing in cpp kornerr Programming 1 11-27-2005 07:09 PM
C File reading and writing AbhishekSamuel Programming 3 05-03-2005 03:59 PM
Help reading and writing to file xiste Programming 1 04-15-2005 12:43 AM
reading / writing OpenOffice files. GŠutama Programming 1 11-04-2003 06:46 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:36 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration