1827243 Members
2367 Online
109716 Solutions
New Discussion

Using floppy

 
SOLVED
Go to solution
Priss
Regular Advisor

Using floppy

Hi, I am new to all this. I am using HP-UX 10.20, I am trying to copy a script onto the box, then copy a few files created by the script onto a floppy disk. There seems to be many ways of doing this. Could you tell me the simplest way of doing it? Many thanks...
Where does the extra points came from?
6 REPLIES 6
Jairo Campana
Trusted Contributor

Re: Using floppy

example:
The device needed to archive to a floppy device is /dev/fl0a.
The command:

tar cvf /dev/fl0a object
will write to the floppy disk the file object or all files in the
directory object.
legionx
S.K. Chan
Honored Contributor
Solution

Re: Using floppy

Two ways ..
1) By setting the floppy to a HFS filesystem then copy it.
2) Using dos related copy utilities.
For 1.. (assuming c1t1d0 isyour floppy drive) .. insert a blank unformatted floppy, then run ..
# newfs -F hfs /dev/rfloppy/c1t1d0
# mkdir /temp
# mount /dev/floppy/c1t1d0 /temp
# cp /temp
# ll /temp
# umount /temp

For 2.. insert a formatted dos floppy and run..
# doscp /dev/rfloppy/c1t1d0:/
# dosll /dev/rfloppy/c1t1d0:
Jairo Campana
Trusted Contributor

Re: Using floppy

add something but with mkdone to the answer of S.K CHAN

To copy the file from a floppy to your
HP-UX system, follow these steps 1

1. Create the special device file for the floppy drive using:

mknod /dev/rfloppy c 4 0xScAd00 Where Sc is the select code of
the low speed HP-IB and Ad is the address of the floppy drive

2. Copy the DOS file from the floppy to the HP-UX hard drive using:

doscp /dev/rfloppy:DOS_FILE /users/some_user/DOS_FILE

3. You can also use:

dosls /dev/rfloppy: To list the contents of the floppy.
legionx
Francisco J. Soler
Honored Contributor

Re: Using floppy

Hi,
Another method:
Go to http://hpux.connect.org.uk/
search for mtools and install it via depot to your box, then you have new tools to access to your drive like a floppy in a windows box.

The new commands are mdir, mcopy and so on. You have not to type in the device for the floppy.

Frank.
Linux?. Yes, of course.
Priss
Regular Advisor

Re: Using floppy

Thanks to all of you, I haven't had a chance to try it yet. I will update points as soon as I have the chance to try! :)
Where does the extra points came from?
Caesar_3
Esteemed Contributor

Re: Using floppy

Hello!

The built in commands to work with floppy in HPUX is dos commands
doscp
you must use row floppy device /dev/rfloppy/cXtXdX:
(use ioscan -nfCfloppy to find the device)
you can use wild cards as "*" "." and so on
the problem with this tools is that is like in dos 8.3 file name.
example: doscp /dev/rfloppy/cXtXdX:/AST.TXT /tmp/ast.txt

* note that if ioscan would return the entry for floppy you may be need to compile the driver in the kernel (use sam or mk_kernel)

Caesar