LinuxQuestions.org
Help answer threads with 0 replies.
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 07-25-2022, 04:57 AM   #1
Adagio_Leopard
LQ Newbie
 
Registered: Jul 2022
Location: South Africa
Distribution: Manjaro
Posts: 14

Rep: Reputation: 0
Struggling to mount floppy disks that have been created with a really old redhat distro


Hey guys, I'm struggling a bit to mount some floppies that are created by our Pick And Place machine.
It's network card had been removed before we purchased it, and its Pentium 1 processor didn't come with USB, so I'm stuck using the floppy disk.
I don't know Redhat, and I don't know if the floppy disk is even working. Can you guys maybe give me any idea of how to firstly check that the FDD is working, and secondly if it is working and I just can't read it from a different PC, wwhat I'm doing wrong.

The errors I get when trying to read from Ubuntu:
Code:
mount: /dev/sdd: /mnt is not a block device.
or when I try to use the GUI it says:
Quote:
Unable to access "Floppy Disk"
Error mounting /dev/sdd at /media/ubuntu/disk: can't read superblock on /dev/sdd
It looks like the hard drive is in the process of failing, and I would like to make sure that the weekly backups I'm so diligently creating are actually readable

Any and all help is appreciated!
 
Old 07-25-2022, 06:09 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,812

Rep: Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958
What version of Red Hat are you running?

A floppy disk drive connected to a real floppy disk controller would have a device ID /dev/fd0.

The output of the following command would show if the drive is recognized and the floppy drive module is loaded.

ls -l /dev/fd0

What type of floppy drive is installed on the different PC? hardware floppy controller or USB drive? What version of Ubuntu is runnint? I don't think that Ubuntu installs the floppy drive module by default anymore. If it is a real floppy drive controller is the drive recognized and do you have a /dev/fd0 device. Otherwise, if it is a USB drive then it would look like a typical USB drive with a /dev/sdx ID.
 
Old 07-25-2022, 06:10 AM   #3
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
hmm well the floppy drive needs a disk in it and it should not be a sdX but a fdX
see
https://home.ubalt.edu/abento/linux/terminal/mount.html

does your kernel have the floppy.ko module? Check using root powers

Code:
find /lib/modules -name floppy.ko
 
Old 07-25-2022, 07:04 AM   #4
Adagio_Leopard
LQ Newbie
 
Registered: Jul 2022
Location: South Africa
Distribution: Manjaro
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
What version of Red Hat are you running?
I'm not quite sure how to check what version of Red Hat is running. How do I check?

EDIT: Red Har V6.2 (Zoot)

Quote:
Originally Posted by michaelk View Post
A floppy disk drive connected to a real floppy disk controller would have a device ID /dev/fd0.

The output of the following command would show if the drive is recognized and the floppy drive module is loaded.

ls -l /dev/fd0

What type of floppy drive is installed on the different PC? hardware floppy controller or USB drive? What version of Ubuntu is runnint? I don't think that Ubuntu installs the floppy drive module by default anymore. If it is a real floppy drive controller is the drive recognized and do you have a /dev/fd0 device. Otherwise, if it is a USB drive then it would look like a typical USB drive with a /dev/sdx ID.
Yes, thats right, it's a USB Floppy Disk Drive that is plugged into a machine that I have Ubuntu 22.04 runing from a live USB

On the Pick and Place machine I haven't really messed around in the CLI, it's usually busy building PCBs.
And most of the commands I know don't work on it.
It's an old and customized version of Red Hat

Quote:
Originally Posted by aus9 View Post
hmm well the floppy drive needs a disk in it and it should not be a sdX but a fdX
see
https://home.ubalt.edu/abento/linux/terminal/mount.html

does your kernel have the floppy.ko module? Check using root powers

Code:
find /lib/modules -name floppy.ko
As stated above, the FDD I have is a USB one, which is why it shows up as sdX instead of fdX

Could that be the reason I'm having trouble?



Also, it's(The Pick And Place machine) definitely trying something. It formats the disks, and writes data to them. The floppy makes the "normal" floppy sounds.(Well... I can't say that as I got into computers after floppies was phased out)

I don't think we have a PC in the office that has a native floppy installed.

Last edited by Adagio_Leopard; 07-25-2022 at 07:26 AM.
 
Old 07-25-2022, 07:15 AM   #5
Adagio_Leopard
LQ Newbie
 
Registered: Jul 2022
Location: South Africa
Distribution: Manjaro
Posts: 14

Original Poster
Rep: Reputation: 0
I ran this:

Code:
cat /etc/redhat-release
Red Hat Linux release 6.2 (Zoot)
So it's running Red Hat 6.2
 
Old 07-25-2022, 07:32 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,812

Rep: Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958
If the Pentium PC fails is there is a backup plan in place? Do you have spare hardware etc?
Is creating backups to floppy an automated process?

You need to make sure the write process is complete and the disk is unmounted before you can eject the disk. After you insert the disk into the Ubuntu PC run this from a terminal.

sudo file -s /dev/sdx (Replace with the actual floppy drive device ID)
 
Old 07-25-2022, 07:38 AM   #7
Adagio_Leopard
LQ Newbie
 
Registered: Jul 2022
Location: South Africa
Distribution: Manjaro
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
If the Pentium PC fails is there is a backup plan in place? Do you have spare hardware etc?
Is creating backups to floppy an automated process?
The backup plan is buy a replacement. The spares are available but very expensive.
https://www.pfipartsus.com/products/...5-for-linescan
It's not automated, but after hounding my boss for a few months to buy an Ethernet card, he determined it was too expensive, so floppy is what we have.

Quote:
Originally Posted by michaelk View Post
You need to make sure the write process is complete and the disk is unmounted before you can eject the disk. After you insert the disk into the Ubuntu PC run this from a terminal.

sudo file -s /dev/sdx (Replace with the actual floppy drive device ID)
The machine tells you to remove the disk, so I assume it does that in the background.
I'll try that now, thanks!

Last edited by Adagio_Leopard; 07-25-2022 at 07:39 AM.
 
Old 07-25-2022, 07:53 AM   #8
Adagio_Leopard
LQ Newbie
 
Registered: Jul 2022
Location: South Africa
Distribution: Manjaro
Posts: 14

Original Poster
Rep: Reputation: 0
I ran
sudo file -s /dev/sdd
Got:
/dev/sdd: ERROR: cannot read '/dev/sdd' (Input/output error)
 
Old 07-25-2022, 08:04 AM   #9
Adagio_Leopard
LQ Newbie
 
Registered: Jul 2022
Location: South Africa
Distribution: Manjaro
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by aus9 View Post

does your kernel have the floppy.ko module? Check using root powers

Code:
find /lib/modules -name floppy.ko
Code:
find /lib/modules -name floppy.ko

/lib/modules/5.15.0-25-generic/kernel/drivers/block/floppy.ko
Looks like it.
 
Old 07-25-2022, 08:17 AM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,812

Rep: Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958
A USB drive does not use the floppy module.

Difficult to say if the USB or the hardware floppy drive is not working, what filesystem it might contain or if the disk is broken. Insert a floppy in the USB drive does not contain any important data and try to format it like:

sudo mke2fs -t ext2 /dev/sdd

Make sure that /dev/sdd is really your USB floppy disk drive...
 
Old 07-25-2022, 09:00 AM   #11
Adagio_Leopard
LQ Newbie
 
Registered: Jul 2022
Location: South Africa
Distribution: Manjaro
Posts: 14

Original Poster
Rep: Reputation: 0
So I think the floppy is corrupt or the drive is not working.

I tried mounting the floppy on the machine itself, and it said
Quote:
Input/output error
Mount: /dev/fd0 has wrong major or minor number
 
Old 07-25-2022, 09:20 AM   #12
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,812

Rep: Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958
Major, minor device numbers for the floppy are 2,0 i.e. ls -l /dev/fd0
Code:
brw-rw---- 1 root root 2, 0  Mon YY XX:XX /dev/fd0
The exact date (Mon YY XX:XX) does not matter. /dev directory in RH 9 would be part of the root filesystem versus Ubuntu as a temporary filesystem.

Last edited by michaelk; 07-25-2022 at 09:21 AM.
 
Old 07-25-2022, 09:31 AM   #13
Adagio_Leopard
LQ Newbie
 
Registered: Jul 2022
Location: South Africa
Distribution: Manjaro
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
Major, minor device numbers for the floppy are 2,0 i.e. ls -l /dev/fd0
Code:
brw-rw---- 1 root root 2, 0  Mon YY XX:XX /dev/fd0
The exact date (Mon YY XX:XX) does not matter. /dev directory in RH 9 would be part of the root filesystem versus Ubuntu as a temporary filesystem.
When I ran ls -l /dev/fd0
It returned
brw-rw-rw- 1 root root 2, 0 May 5 1998 /dev/fd0
 
Old 07-25-2022, 09:46 AM   #14
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,812

Rep: Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958Reputation: 5958
How are you trying to mount the disc?
 
Old 07-25-2022, 09:58 AM   #15
Adagio_Leopard
LQ Newbie
 
Registered: Jul 2022
Location: South Africa
Distribution: Manjaro
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
How are you trying to mount the disc?
Code:
su root
mount /dev/fd0 /mnt/floppy
 
  


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
[SOLVED] RHEL8 udev & partprob Error: Partition(s):1,2,3.. /dev/sdc1 have been written, but we have been unable to inform the kernel of the change scofieldd Red Hat 5 11-08-2019 11:02 AM
[SOLVED] Distro for really really old PC aarsh Linux - Distributions 4 06-01-2018 12:25 PM
HP 15-g259sa(5 yr old) but HDD broken. Struggling to run Live USB distro andrewindockland Linux - Laptop and Netbook 5 11-15-2017 04:58 PM
I need a good laptop distro for a really old and really odd laptop. Monsuco Linux - Laptop and Netbook 16 01-03-2008 11:55 AM
Installation Disks not recognized as official disks when booting with floppy coal-fire-ice Mandriva 13 12-09-2004 04:29 PM

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

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