LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 05-21-2006, 10:37 PM   #1
anatman
Member
 
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
IBall
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:
Code:
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:
Code:
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
--Ian
 
Old 05-21-2006, 11:05 PM   #3
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
Look at /etc/fstab. It will more than likely contain an entry for the floppy disk.
Code:
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
Code:
mount /mnt/floppy
 
Old 05-22-2006, 12:32 AM   #4
anatman
Member
 
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.
 
  


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 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

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

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