[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help!! I need my LS120



On Mon, 25 Sep 2000, Christopher W. Aiken wrote:

>I have an external, parallel port, LS120 floppy drive (128Mb).
>When I tried MD 6.2, SuSE 6.2, MD 7.1, Caldera 2.4 flavors
>of Linux all I had to do was:
>
>modprobe paride
>modprobe epat
>modprobe pf
>mount -t vfat /dev/pf0 /mnt
>
>and I could use my LS120 just as any other floppy.
>
>When I do this in Debian 2.2 I get an error that there
>is no device /dev/pf0.  I attached /dev and did a "./MAKEDEV pf0"
>( and ./MAKEDEV pf ) and got the error don't know what "pf0" is.
>I tried a "./MAKEDEV update" and also got a "don't know how to 
>make device "pf".
>
>Any ideas on how to get my LS120 working on Debian?
>
Try this to make the devices.

2.3  Using a PARIDE device

Once the drivers have been loaded, you can access PARIDE devices in the
same way as their traditional counterparts.  You will probably need to
create the device "special files".  Here is a simple script that you can
cut to a file and execute:

#!/bin/bash
#
# mkd -- a script to create the device special files for the PARIDE
subsystem
#
function mkdev {
  mknod $1 $2 $3 $4 ; chmod 0660 $1 ; chown root:disk $1
}
#
function pd {
  D=$( printf \\$( printf "x%03x" $[ $1 + 97 ] ) )
  mkdev pd$D b 45 $[ $1 * 16 ]
  for P in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
  do mkdev pd$D$P b 45 $[ $1 * 16 + $P ]
  done
}
#
cd /dev
#
for u in 0 1 2 3 ; do pd $u ; done
for u in 0 1 2 3 ; do mkdev pcd$u b 46 $u ; done 
for u in 0 1 2 3 ; do mkdev pf$u  b 47 $u ; done 
for u in 0 1 2 3 ; do mkdev pt$u  c 96 $u ; done 
for u in 0 1 2 3 ; do mkdev npt$u c 96 $[ $u + 128 ] ; done 
for u in 0 1 2 3 ; do mkdev pg$u  c 97 $u ; done 
#
# end of mkd

from /usr/src/linux/Documentation/paride.txt

Note: I've NOT done this.

Brent



Reply to: