Difference between revisions of "Reading 5.25" Floppy Disks"

From reBiND Documentation
Jump to: navigation, search
(more details)
(initial version finished)
Line 1: Line 1:
 
This article presumes that the reader has a working 5.25" floppy drive, a connector cable and a computer that has a corresponding connector on the motherboard (34 pin ATA/ATAPI).  
 
This article presumes that the reader has a working 5.25" floppy drive, a connector cable and a computer that has a corresponding connector on the motherboard (34 pin ATA/ATAPI).  
  
* Open the computer and position the drive in an empty slot in the drive rack. You might need to remove a small metal sheet and the corresponding plastic cover from the case.  
+
== Setting up the drive and the computer ==
 +
 
 +
1. Open the computer and position the drive in an empty slot in the drive rack. You might need to remove a small metal sheet and the corresponding plastic cover from the case.  
 
[[File:Comparison_Connector.jpg|thumb|right|500px]]
 
[[File:Comparison_Connector.jpg|thumb|right|500px]]
* <p>Connect the drive to the main board using the connector cable. The cable itself can only be connected in one way to the drive because of the plastic division bar in the connector. However, it might be possible to connect the cable in the wrong position to the motherboard.  
+
2. Connect the drive to the main board using the connector cable. The cable itself can only be connected in one way to the drive because of the plastic division bar in the connector. However, it might be possible to connect the cable in the wrong position to the motherboard.  
  
 
: The image shows the ends of two different floppy drive connectors. These ends are used to connect the cable to the motherboard. One of the connectors has a plastic knob on the long side, whereas the other one has none. This means that the connector on the right could be plugged in wrongly. If the connector doesn't have a plastic knob, but the socket has a notch for connectors that do have one, then the connector has to be plugged in with the two dents (which are present at both models) facing the side of the notch.  
 
: The image shows the ends of two different floppy drive connectors. These ends are used to connect the cable to the motherboard. One of the connectors has a plastic knob on the long side, whereas the other one has none. This means that the connector on the right could be plugged in wrongly. If the connector doesn't have a plastic knob, but the socket has a notch for connectors that do have one, then the connector has to be plugged in with the two dents (which are present at both models) facing the side of the notch.  
  
: <span style="color:red">'''Warning:''': Connecting the cable in the wrong way can destroy the floppy disk and make it unreadable and unusable.</span></p>
+
: <span style="color:red">'''Warning:''': Connecting the cable in the wrong way can destroy the floppy disk and make it unreadable and unusable.</span>
* Connect the electricity cable to the drive.
+
3. Connect the electricity cable to the drive.
 +
 
 +
4. Setting the drive in the BIOS of the computer. This step greatly depends on the manufacturer and the model of the computer. The BIOS can usually be entered by either pressing "Del", "Esc", or one of the function keys (F1-F12). The new floppy drive has to be selected as one of the floppy drives of this computer. It is important to note whether it is selected as the primary or secondary floppy drive, as this might has an influence on the later steps. For this tutorial the 5.25" floppy drive was selected as the secondary floppy drive, since the already present 3.5" floppy drive remains selected as the primary floppy drive.
 +
 
 +
5. The following steps for reading the data from the floppy drive where done using a Linux distribution called [http://www.damnsmalllinux.org/ Damn Small Linux (DSL)]. It is a small Linux system which can be run from a CD without installing any additional software. The following steps can however also be done using any other Linux system, regardless of whether it is run from a Live-CD or installed).
 +
 
 +
6. Once Linux has booted, the user should open the Linux shell and create a directory "data" within the current home directory. The shell shortcut for the current home directory is <code>~</code> and on DSL the home directory is <code>/home/dsl/</code>. The command to create that directory would therefore be:
 +
 
 +
: <pre>mkdir /home/dsl/data</pre>
 +
 
 +
7. If it doesn't already exist, one should also create a directory in which the floppy drive can be mounted. On DSL the directory <code>/mnt/floppy</code> already exists, but any other empty directory will work as well, e.g. <code>/home/dsl/floppy</code>. So if one wants to use a different directory or the default directory doesn't exist, one can create a new directory analog to previous command.
 +
 
 +
== Reading the data from the floppy ==
 +
8. Next the step would be to mount the floppy drive.
 +
: <pre>sudo mount -r -t msdos /dev/fd1 /mnt/floppy</pre>
 +
 
 +
::* <code>'''sudo'''</code> means that the command will be executed as the superuser.
 +
::* <code>'''mount'''</code> is the actual mount command.
 +
::* <code>'''-r'''</code> means that the drive is read-only.
 +
::* <code>'''-f msdos'''</code> means that the floppy drive is DOS formatted. The alternative would be <code>-f ext2</code> for Linux formatted floppies.
 +
::* <code>'''/dev/fd1'''</code> is the floppy device, if the floppy drive is selected as the secondary floppy drive. If the floppy drive is selected as the primary floppy drive, one has to use <code>/dev/fd0</code>.
 +
::* <code>'''/mnt/floppy'''</code> is the directory to which the floppy disk will be mounted.  
  
* Setting the drive in the BIOS of the computer. This step greatly depends on the manufacturer and the model of the computer. The BIOS can usually be entered by either pressing "Del", "Esc", or one of the function keys (F1-F12). The new floppy drive has to be selected as one of the floppy drives of this computer. It is important to note whether it is selected as the primary or secondary floppy drive, as this might has an influence on the later steps. For this tutorial the 5.25'' floppy drive was selected as the secondary floppy drive, since the already present 3.5'' floppy drive remains selected as the primary floppy drive.
+
9. Go to the directory where the floppy is mounted
 +
: <pre>cd /mnt/floppy</pre>
  
* The following steps for reading the data from the floppy drive where done using a Linux distribution called [http://www.damnsmalllinux.org/ Damn Small Linux (DSL)]. It is a small Linux system which can be run from a CD without installing any additional software. The following steps can however also be done using any other Linux system, regardless of whether it is run from a Live-CD or installed).
+
10. show the content of the floppy
 +
: <pre>ls -l</pre>
  
* Once Linux has booted, the user should open the Linux shell and create a directory "data" within the current home directory. The shell shortcut for the current home directory is <code>~</code> and on DSL the home directory is <code>/home/dsl/</code>. The command to create that directory would therefore be:
+
11. copy the content of the floppy to the <code>data</code> directory created previously.
 +
: <pre>cp -r -p * /home/dsl/data</pre>
 +
::* <code>'''-r'''</code> is for the recursive mode, so subdirectories will be copied as well
 +
::* <code>'''-p'''</code> is for the preserve mode, which means that the timestamps, ownership status and access rights flags of the files will be preserved
 +
::* <code>'''*'''</code> means that all the files will be copied 
  
mkdir /home/dsl/data
+
12. go to the home directory
 +
: <pre>cd /home/dsl/</pre>
  
* If it doesn't already exist, one should also create a directory in which the floppy drive can be mounted. On DSL the directory /mnt/floppy already exists, but any other empty directory will work as well, e.g. <code>/home/dsl/floppy</code>. So if one wants to use a different directory or the default directory doesn't exist, one can create a new directory analog to previous command.
+
13. create a zip file of the <code>data</code> data directory
 +
: <pre>zip -r data01.zip /home/dsl/data</pre>
  
* Next the step would be to mount the floppy drive.
+
14. If further floppies need to be read, then remove all the files in the data directory
sudo mount -r -t msdos /dev/fd1 /mnt/floppy
+
: <pre>rm -fr /home/dsl/data/*</pre>
  
** <code>'''sudo'''</code> means that the command will be executed as the superuser.
+
15. unmount the floppy drive.
** <code>'''mount'''</code> is the actual mount command.
+
: <pre>sudo umount /dev/fd1</pre>
** <code>'''-r'''</code> means that the drive is read-only.
 
** <code>'''-f msdos'''</code> means that the floppy drive is DOS formatted. The alternative would be <code>-f msdos</code>.
 
** <code>'''/dev/fd1'''</code> is the floppy device, if the floppy drive is selected as the secondary floppy drive. If the floppy drive is selected as the primary floppy drive, one has to use <code>/dev/fd0</code>.
 
** <code>'''/mnt/floppy'''</code> is the directory to which the floppy disk will be mounted.
 
  
cd /mnt/floppy
+
In order to process further floppies, repeat the steps 8 to 15 and rename the zip file in step 13 accordingly.
ls -l
 
cp -r -p * /home/dsl/data
 
cd /home/dsl/
 
zip -r data01.zip /home/dsl/data
 
rm -fr /home/dsl/data/*
 
sudo umount /dev/fd1
 

Revision as of 13:44, 4 December 2012

This article presumes that the reader has a working 5.25" floppy drive, a connector cable and a computer that has a corresponding connector on the motherboard (34 pin ATA/ATAPI).

Setting up the drive and the computer

1. Open the computer and position the drive in an empty slot in the drive rack. You might need to remove a small metal sheet and the corresponding plastic cover from the case.

2. Connect the drive to the main board using the connector cable. The cable itself can only be connected in one way to the drive because of the plastic division bar in the connector. However, it might be possible to connect the cable in the wrong position to the motherboard.

The image shows the ends of two different floppy drive connectors. These ends are used to connect the cable to the motherboard. One of the connectors has a plastic knob on the long side, whereas the other one has none. This means that the connector on the right could be plugged in wrongly. If the connector doesn't have a plastic knob, but the socket has a notch for connectors that do have one, then the connector has to be plugged in with the two dents (which are present at both models) facing the side of the notch.
Warning:: Connecting the cable in the wrong way can destroy the floppy disk and make it unreadable and unusable.

3. Connect the electricity cable to the drive.

4. Setting the drive in the BIOS of the computer. This step greatly depends on the manufacturer and the model of the computer. The BIOS can usually be entered by either pressing "Del", "Esc", or one of the function keys (F1-F12). The new floppy drive has to be selected as one of the floppy drives of this computer. It is important to note whether it is selected as the primary or secondary floppy drive, as this might has an influence on the later steps. For this tutorial the 5.25" floppy drive was selected as the secondary floppy drive, since the already present 3.5" floppy drive remains selected as the primary floppy drive.

5. The following steps for reading the data from the floppy drive where done using a Linux distribution called Damn Small Linux (DSL). It is a small Linux system which can be run from a CD without installing any additional software. The following steps can however also be done using any other Linux system, regardless of whether it is run from a Live-CD or installed).

6. Once Linux has booted, the user should open the Linux shell and create a directory "data" within the current home directory. The shell shortcut for the current home directory is ~ and on DSL the home directory is /home/dsl/. The command to create that directory would therefore be:

mkdir /home/dsl/data

7. If it doesn't already exist, one should also create a directory in which the floppy drive can be mounted. On DSL the directory /mnt/floppy already exists, but any other empty directory will work as well, e.g. /home/dsl/floppy. So if one wants to use a different directory or the default directory doesn't exist, one can create a new directory analog to previous command.

Reading the data from the floppy

8. Next the step would be to mount the floppy drive.

sudo mount -r -t msdos /dev/fd1 /mnt/floppy
  • sudo means that the command will be executed as the superuser.
  • mount is the actual mount command.
  • -r means that the drive is read-only.
  • -f msdos means that the floppy drive is DOS formatted. The alternative would be -f ext2 for Linux formatted floppies.
  • /dev/fd1 is the floppy device, if the floppy drive is selected as the secondary floppy drive. If the floppy drive is selected as the primary floppy drive, one has to use /dev/fd0.
  • /mnt/floppy is the directory to which the floppy disk will be mounted.

9. Go to the directory where the floppy is mounted

cd /mnt/floppy

10. show the content of the floppy

ls -l

11. copy the content of the floppy to the data directory created previously.

cp -r -p * /home/dsl/data
  • -r is for the recursive mode, so subdirectories will be copied as well
  • -p is for the preserve mode, which means that the timestamps, ownership status and access rights flags of the files will be preserved
  • * means that all the files will be copied

12. go to the home directory

cd /home/dsl/

13. create a zip file of the data data directory

zip -r data01.zip /home/dsl/data

14. If further floppies need to be read, then remove all the files in the data directory

rm -fr /home/dsl/data/*

15. unmount the floppy drive.

sudo umount /dev/fd1

In order to process further floppies, repeat the steps 8 to 15 and rename the zip file in step 13 accordingly.