LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-10-2007, 10:53 PM   #1
SlowCoder
Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Ubuntu, Mint
Posts: 939

Rep: Reputation: 38
Mounting a USB Floppy drive?


I have the NEC UF0002 external floppy drive. I plugged it into my usb port and the drive activated (light came on for a couple of seconds). I don't know how to mount it so I can access the data.

I'm working with Wine to try to run some old DOS/Windows educational games for my kids. I believe the disks are formatted FAT12 (DOS).
 
Old 03-11-2007, 05:32 AM   #2
fukawi2
Member
 
Registered: Oct 2006
Location: Melbourne, Australia
Distribution: ArchLinux, ArchServer, Fedora, CentOS
Posts: 449

Rep: Reputation: 34
You will first need to find out what the device name is...
[code]dmesg | tail[/tail]

See what shows up there when you plug the drive in - for example, my USB hard drives pop up at sda / sdb

Then, using the mount command:
Code:
mount -t fat /dev/<device> /mnt/floppy
Replace <device> with whatever dmesg gives you, and you may need to create /mnt/floppy if it doesn't already exist
 
Old 03-11-2007, 06:07 AM   #3
donnied
Member
 
Registered: Oct 2006
Distribution: Debian x64
Posts: 198

Rep: Reputation: 30
problems mounting a usb floppy drive

I'm having troubles mounting/reading/formatting my usb floppy drive.
lsusb tells me:
Code:
Bus 001 Device 007: ID 03ee:6901 Mitsumi SmartDisk FDD
dmesg |tail
originally told me:
Code:
[17182848.096000] usb 1-2: new full speed USB device using uhci_hcd and address 3
[17182848.220000] usb 1-2: device descriptor read/64, error -71
[17182849.220000] usb 1-2: new full speed USB device using uhci_hcd and address 5
[17182849.628000] usb 1-2: device not accepting address 5, error -71
If I try
Code:
 mount -t vfat /dev/sde /mnt/floppy
 mount -t msdos /dev/sde /mnt/floppy
it tells me "can't read superblock"
and after trying to mount as msdos it tells me:
Code:
[17213821.932000] sd 1:0:0:3: SCSI error: return code = 0x8000002
[17213821.932000] sdd: Current: sense key: Medium Error
[17213821.932000]     Additional sense: Cannot read medium - unknown format
[17213821.932000] end_request: I/O error, dev sdd, sector 0
[17213821.932000] FAT: unable to read boot sector
Also /dev/fd is a directory with device files so:
Code:
 mount /dev/fd0 /mnt/floppy
mount: special device /dev/fd0 does not exist
How do I find / identify the floppy? what should I see / look for/ write in /etc/mtab or /etc/fstab? I just want to format the floppies. I don't care about reading them. It would be nice but not essential.
Thank you for your time.

Last edited by donnied; 03-11-2007 at 06:17 AM.
 
Old 03-11-2007, 09:44 AM   #4
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,219

Rep: Reputation: 54
Because it's usb it's going to get a scsi device name instead of fd0 or fd1, just like a flash drive. So, after inserting a disk, if your drive is sda and your mount point is /mnt/floppy, it would mount like this:

mount -t vfat /dev/sda /mnt/floppy

Donnied, you're getting medium error and boot sector errors. Do you have a [good] disk inserted into the floppy drive? That could explain those. When I get the "device not accepting..." errors with mine I have to move it to a different usb port. One more thing: is uhci correct for your usb controller?
 
Old 03-11-2007, 10:41 PM   #5
donnied
Member
 
Registered: Oct 2006
Distribution: Debian x64
Posts: 198

Rep: Reputation: 30
Thank you for the info. It suddenly started (somewhat) working.
Yeah, most of the disks I had weren't very good. So I bought some new ones. They work better but it takes a long time to mount them.

the usb floppy is somewhat working. three questions:
1. every diskette brings up about 5 floppies in /media/ floppy-1, floppy-5.
I'm guessing this is because of the partitions. Is there any neat way to have it appear as just /media/floppy?
(does /mnt/floppy represent all the partitions on the floppy)

2. I'm trying to set up an install of tiny linux (a slackware derivative). I have bare.i. I used
'dd if=bare of=/media/floppy-1/bare.i' to write it to a floppy. So far it's only produced disks that give me a non-system disk or disk error message.
Should this produce a floppy that I can boot from to continue installation?

dmesg | tail now gives me
Code:
 unable to read partition table
[17185716.852000] ldm_parse_privhead(): Cannot find PRIVHEAD structure. LDM database is corrupt. Aborting.
I'll check on the UHCI.
 
Old 03-11-2007, 10:49 PM   #6
donnied
Member
 
Registered: Oct 2006
Distribution: Debian x64
Posts: 198

Rep: Reputation: 30
All my other usb devices work fine. This is working somewhat. It does write and read files. Just not well. Could it be because it's not the greatest usb > floppy?
would it be worth investing more?
 
Old 03-12-2007, 09:25 AM   #7
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally Posted by fukawi2
... dmesg | tail[/tail]
You might want to edit that "[/tail]" to "[/code]" -- the appearance is confusing.

Also, if you run this before plugging in the USB device, doesn't tail need an "-f" option?:
Code:
dmesg  | tail -f
 
Old 03-12-2007, 11:18 AM   #8
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,219

Rep: Reputation: 54
Quote:
1. every diskette brings up about 5 floppies in /media/ floppy-1, floppy-5.
I'm guessing this is because of the partitions. Is there any neat way to have it appear as just /media/floppy?
I'm not very familiar with Ubuntu, but I would think that these are created automatically with the detection of devices, regardless of how many physically exist. Unless you've partitioned the floppy disk it should be just the floppy-1.

Quote:
I used 'dd if=bare of=/media/floppy-1/bare.i' to write it to a floppy. So far it's only produced disks that give me a non-system disk or disk error message.
dd = duplicate disk - creates or restores an uncompressed image.

Code:
dd if=/dev/floppy-1 of=~/floppy_backup.img
Use the cp command instead.
 
Old 03-12-2007, 11:56 AM   #9
donnied
Member
 
Registered: Oct 2006
Distribution: Debian x64
Posts: 198

Rep: Reputation: 30
Any ideas on how to fix/diagnose the appearance of multiple floppies?


I'm using dd because I'm writing a disk image to boot from. I thought I couldn't use cp for that.

Thank you for your time.
 
Old 03-13-2007, 06:57 PM   #10
SlowCoder
Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Ubuntu, Mint
Posts: 939

Original Poster
Rep: Reputation: 38
Thank you. I didn't see anything in the dmesg, but I guessed at the /dev/sda and was able to mount.

I appreciate the help.
 
  


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
Mounting a floppy drive Ashrack Linux - Hardware 12 06-12-2006 07:48 AM
mounting floppy drive foliva SUSE / openSUSE 2 09-21-2005 03:24 PM
mounting floppy drive??? SillyLinuxNewb Linux - Laptop and Netbook 1 12-29-2004 05:59 AM
Mounting Floppy Drive weelyjim Linux - Newbie 2 08-29-2003 03:27 PM
mounting floppy drive safra Linux - Newbie 9 09-24-2002 01:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:45 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration