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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-19-2019, 04:48 AM
|
#1
|
Member
Registered: Apr 2016
Posts: 550
Rep: 
|
Unable to mount Floppy Disk
I am using Linux Mint 17.3 Rosa Cinnamon. The computer is a Dell Dimension 5150.
When I put a floppy disk in the floppy disk drive its small green light lights up. But when I click on its icon in Nemo 2.8.7 file manager, I get a pop-up error message:
"Unable to mount Floppy Disk
Error mounting system-managed device /dev/fd0: Command-line `mount "/media/floppy0"' exited with non-zero exit status 32: mount: /dev/fd0 is not a valid block device".
When I remove the floppy disk and click on the floppy drive icon again I get another pop-up:
"Unable to mount Floppy Disk
An operation is already pending"
A long time later I got another pop-up:
"Unable to mount Floppy Disk
Timeout was reached"
The floppy disk is not actually physically floppy but it a standard plastic-encased 3 1/2 inch wide disk. The text on it says: "KAO MF2HD Double Sided 2 MB Capacity".
I have tried it with two other floppy disks also, same result. One of them makes more noise but still never mounts the drive. All the disks are around 20 years old. Two of them are commercial software disks that were enclosed within a book, the above disk looks like a copy of the same.
What is wrong? Could it be:
a) software not functioning correctly?
b) drive not working or heads dusty/dirty?
c) that the magnetic signal on the disk has faded over 20 years?
Thanks.
Last edited by grumpyskeptic; 11-19-2019 at 05:02 AM.
|
|
|
11-19-2019, 05:04 AM
|
#2
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,253
|
Check the /dev directory. Do you actually have a /dev/fd0?
Also look at /var/log/messages? Can you see the kernel recognising the disk?
Do you have CONFIG_BLK_DEV_FD set in the kernel configuration? I suspect it often isn't these days.
|
|
|
11-19-2019, 07:47 AM
|
#3
|
Member
Registered: Apr 2016
Posts: 550
Original Poster
Rep: 
|
Thanks. Looking at the /dev folder with Nemo file manager , I can see a file fd0, but it is zero bytes in length, and described as a "block device". Nearly all the files in the /dev folder are zero bytes in length.
I cannot see anything in the var/log/ folder that has a name anything like "messages", either a file or another folder. Nemo is showing hidden files.
Quote:
Do you have CONFIG_BLK_DEV_FD set in the kernel configuration? I suspect it often isn't these days.
|
Sorry, I've no idea what that means or how to find it.
|
|
|
11-19-2019, 08:24 AM
|
#4
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,253
|
OK. First you need to know what the dev folder actually is, for the future. It's an important part of how Linux works. In Linux, all your hardware is managed by the Linux kernel. There are no separate drivers as there are in Windows. Programs communicate with the hardware via the kernel. The files in the /dev directory are pseudo-files; that's why they have zero length. Whenever a program accesses one of these files, the kernel wakes up and does the read or write operation, then passes the result back to the program. As far as the program is concerned, it's just read or written to a file. It doesn't need to know anything about the hardware at the other end. And "block device" is just jargon for a disk or similar because data passes to and from such devices in blocks.
You do have a /dev/fd0 file, so we know now that the kernel can see your floppy drive. Therefore you don't need to do the other things I suggested. But since the mount command doesn't recognise it, you may not have a valid filesystem on the disk. Is it a completely blank disc? Did you format it in any way? I doubt if a purely physical problem with the disk would cause this particular error. You'd more likely be able to mount it but then get read/write errors. So I suspect it's the format that's wrong. Please tell us more about how you used this disk before and what might be on it.
Last edited by hazel; 11-19-2019 at 08:46 AM.
|
|
|
11-19-2019, 08:51 AM
|
#5
|
Moderator
Registered: Aug 2002
Posts: 26,733
|
As a frame of reference I have Ubuntu 19 xfce running as a VirtualBox virtual machine and can confirm the floppy drive capability has not been removed from the kernel. I would assume no basic difference between xfce and Cinnamon except for the desktop and also that 17 would be unchanged since it is an older version.
The floppy module was inserted automatically and /dev/fd0 device was created. Try manually mounting the disk from the command line
sudo mount -t vfat /dev/fd0 /media/floppy0
or
sudo mount -t msdos /dev/fd0 /media/floppy0
It is possible the drive has failed or the disks no longer readable.
|
|
|
11-19-2019, 09:45 AM
|
#6
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,253
|
It's been such a long time since I used floppies that I can't remember if they come with a vfat filesystem on them like USB drives do or if they need to be formatted before use.
Last edited by hazel; 11-19-2019 at 09:47 AM.
|
|
|
11-19-2019, 09:57 AM
|
#7
|
Senior Member
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674
|
Quote:
Originally Posted by hazel
It's been such a long time since I used floppies that I can't remember if they come with a vfat filesystem on them like USB drives do or if they need to be formatted before use.
|
It depends:
in the very first time floppies came UNformatted, because you could use them for CP/M, PC-Dos or i.e. Apple // or Commodore 64
And 3.5" floppies were introduced for the Apple MacIntosh (400K 1-side or later 800K double, with varying speed drives) or, say the Apricot computer with about 315 KB (again 1-sided).
But when the PC was about the only actual system left and they introduced HD floppies (with the AT and later), floppies often came pre-formatted with a FAT (fat12, to be exact) filesystem ON them.
But I think the OP was talking about old floppies with data on them, so they should have been formatted with some sort of file-system, most likely thus fat12
|
|
|
11-19-2019, 10:26 AM
|
#8
|
LQ Veteran
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,243
|
If three disks all fail to mount, the problem could be a dirty drive. You can still buy cleaning disks:
https://www.floppydisk.com/floppy-drive-cleaner
The disks themselves may be dirty, and cleaners are available:
https://www.floppycleaner.co.uk/
The disks may have decayed over the years. There are claims of them lasting 20 years, but some people have found them lasting less than 10. You could run gparted and see if it can identify the filing system, then check if it's damaged with fsck.
|
|
|
11-19-2019, 02:08 PM
|
#9
|
Senior Member
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674
|
Quote:
Originally Posted by DavidMcCann
You could run gparted and see if it can identify the filing system, then check if it's damaged with fsck.
|
Note that floppies do not have partitions. Block 0 directly is the boot block.
So the OP could try just to read that block, with dd or so
Code:
dd if=/dev/fd0 count=1|hexdump -C
and look if that succeeds and looks like a fat12 fs bootblock (use wikipedia to find out how that would look if you never did that)
|
|
|
11-19-2019, 02:57 PM
|
#10
|
Moderator
Registered: Mar 2008
Posts: 22,361
|
Maybe make a folder for floppy then mount it??
|
|
|
11-19-2019, 03:20 PM
|
#11
|
Senior Member
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
|
I'm betting this is a file-system thing. As mentioned by a previous poster, floppys back then could be formatted for Apple computers, Amigas, Ataris, MS-DOS systems, Windows ... you name it.
It would help to know what system they were prepared for and then figuring our if a proper file system driver is available.
|
|
|
11-19-2019, 09:15 PM
|
#12
|
Moderator
Registered: Mar 2008
Posts: 22,361
|
|
|
|
11-20-2019, 04:59 AM
|
#13
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,253
|
Quote:
Originally Posted by Rickkkk
I'm betting this is a file-system thing.
|
I'm inclined to agree with you. I think if the drive was kaput, the kernel wouldn't have recognised the device. And if it was a bad disk surface, you'd expect to get loads of read errors rather than a refusal to mount.
Quote:
It would help to know what system they were prepared for and then figuring our if a proper file system driver is available.
|
Wouldn't it be simpler just to use mkfs.ext4 on it?
|
|
|
11-20-2019, 05:18 AM
|
#14
|
LQ Guru
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: One main distro, & some smaller ones casually.
Posts: 5,861
Rep: 
|
Make image copies of them with dd, & then work on them, by loop mounting them.
Depending on what computer system they were originally formatted for, you will need the corresponding file system to be compiled into the kernel or it's modules.
2MB disks were commonly known as 1.44MB floppies.
|
|
|
All times are GMT -5. The time now is 06:42 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|