About Linux FAQ

Browse More FAQs:

Linux copy data from a floppy to hard disk

Posted by Vivek Gite [Last updated: May 13, 2006]

Q. How do I copy files from a floppy disk to my hard disk. I am using a 1.44 MB floppy.

A. /dev/fd0 is your first floppy disk drive (/dev/fd1 is second and so on) under Linux. You need to use normal mount command. All files accessible in a Unix system are arranged in one big tree, the file hierarchy, rooted at /. These files can be spread out over several devices. The mount command serves to attach the file system found on some device to the big file tree.

a) First, login as root user

b) If you want to use MS-DOS or MS-Windows based fat file system (formatted floppy disk) type the following command:

# mkdir -p /mnt/floppy
# mount -t vfat /dev/fd0 /mnt/floppy

c) To access floppy disk go to /mnt/floppy directory:

# cd /mnt/floppy

d) Now use other commands such as ls, cp, mv and other commands to copy/move files.
e) To unmount (remove disk) floppy type command:

# sync
# cd /
# umount /mnt/floppy

Now you can remove floppy from disk drive.

To mount ext3/ext2 based floppy just use mount command without –t vfat option:

# mount /dev/fd0 /mnt/floppy

Subscribe to our free e-mail newsletter or RSS feed to get all updates. You can Email this page to a friend.

Related Other Helpful FAQs:

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Copyright © 2006-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.