Operating System - HP-UX
1820969 Members
4118 Online
109630 Solutions
New Discussion юеВ

Re: floppy diskette (3.5 inch) on HPUX11.0

 
Jose_11
Advisor

floppy diskette (3.5 inch) on HPUX11.0

Hi,

1.How can i mount floppy diskette on HPUX 11.0

ioscan -fnC floppy
Class I H/W Path Driver S/W State H/W Type Description
====================================================================
floppy 0 8/16/10.1 pflop CLAIMED DEVICE HP_PC_FDC_FLOPPY
/dev/floppy/c0t1d0 /dev/rfloppy/c0t1d0

2.Can I read dos file from the diskette .
3.How can i format diskette to work on 11.0

Thanks for any response

Joe
10 REPLIES 10
eran maor
Honored Contributor

Re: floppy diskette (3.5 inch) on HPUX11.0

Hi

i m giving you some examp. how to use the floppy .

i had a same case with a cu 2 yes. ago and didnt try it but the cu gave me good feedback .


for copy a file in a format dos to floppy :
doscp /dev/rdsk/floppy:BIKE.DXF - | dos2ux > bike.dxf

here is all the exam that i gave him .

1.
if you wish to copy the file BIKE.DXF from a DOS formatted floppy and
store it in the file bike.dxf in HP-UX format, use the command:

doscp /dev/rdsk/floppy:BIKE.DXF - | dos2ux > bike.dxf

where /dev/rdsk/floppy is the name of the device file for your floppy
drive.

Similarly, if you want to copy an HP-UX file onto a DOS formatted
floppy after converting it to DOS format, use a command similar to:

ux2dos bike.dxf | doscp - /dev/rdsk/floppy:BIKE.DXF

ow do I copy files between my DOS and HP-UX systems using the HP
floppy drive?

Solution

Make sure that the following floppy driver is in the kernel:

scsifloppy

If it is not in the kernel, add it.

Also, newer floppies need these drivers:

pcfloppy and pcfdc

Note that you do not mount the floppy disk on the HP-UX system.

Always remember to use the dos2ux/ux2dos commands to ensure correct
formatting between the PC and HP-UX system.

Here's how to copy a DOS file to HP-UX:

1. Insert a 1.44mb DOS diskette with into the HP-UX system floppy
drive;

2. Do a:

doscp /dev/rfloppy/floppy:/dos.txt /tmp/dos.txt

3. Format the file for HP-UX:

dos2ux /tmp/dos.txt >/tmp/unix.txt

Here's how to copy an HP-UX file to DOS:

1. Insert a PC-formatted 1.44mb diskette into the HP-UX system floppy
drive;

2. Format the file for DOS:

ux2dos /tmp/hpux.txt >/tmp/dos.txt

3 Then do a:

doscp /tmp/dos.txt /dev/rfloppy/floppy:/dos.txt

To list the contents of DOS files on the floppy:

dosls /dev/rfloppy/floppy:
/dev/rfloppy/floppy:/DOS.TXT


case 3:
I am trying to use dosls to list the files on a DOS formatted
3.5" floppy connected to my system. What is the trick to using
dosls ?

Solution

The syntax for the dos* commands is much like a unix cp command,

For example: doscp source destination.

The trick is the path naming convention. The file name must be
prefixed with the raw disk device file name.

For example: dosls /dev/rdsk/1s0:

( This assumes your floppy drive is at the SCSI address corresponding to
/dev/rdsk/1s0, normally address one.)

A minus sign may be used to indicate stdin/stdout as appropriate, e.g.

ps -ef | doscp - /dev/rdsk/1s0:PS.OUT

will put the contents of a ps - ef into a DOS file PS.OUT


case 4 :
How can I copy a DOS file from a floppy to an HP-UX system?


Solution

HP-UX Programming Environment offers some DOS commands. These commands
would be installed in /usr/bin. To copy the file from a floppy to your
HP-UX system, follow these steps:

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.


case 5:
What is the correct syntax for the doscp command?

Solution

1. from HP-UX disk to DOS floppy do:
doscp /etc/passwd /dev/rdsk/3s0:passwd.txt

2. from DOS floppy to HP-UX disk do:
doscp /dev/rdsk/3s0:autoexec.bat /tmp/autoexec.bat
love computers
A. Clay Stephenson
Acclaimed Contributor

Re: floppy diskette (3.5 inch) on HPUX11.0

Hi:

Since you already have the device files, you are all set. There are a number of utilities in /usr/bin to do DOS -> UNIX and UNIX -> DOS file copies, mkdirs, deletes, ls, etc.
Man doscp, dosrm, dosls, dosmkdir,dosif, doschmod for details.

Clay
If it ain't broke, I can fix that.
Andreas Voss
Honored Contributor

Re: floppy diskette (3.5 inch) on HPUX11.0

Hi,

To mount a floppy you have to create first a filesystem on it.
Insert floppy and then do:
newfs /dev/rfloppy/c0t1d0
After this you can mount:
mount /dev/floppy/c0t1d0 /

Be careful: DO NOT REMOVE THE FLOPPY WHEN IT IS MOUNTED.
Before removing do:
umount /

Better way is to use dos utilities:
Listing the DOS-floppy:
dosls -l /dev/rfloppy/c0t1d0:
Copying from ux to floppy:
doscp /dev/rfloppy/c0t1d0:
Copying from floppy to ux:
doscp /dev/rfloppy/c0t1d0:

Sorry, there is no DOS-format utitily on HP-UX.
You have to format the floppy on a DOS/WINDOWS system.

Regards



Jose_11
Advisor

Re: floppy diskette (3.5 inch) on HPUX11.0

Hello Andreas,

Thanks for your reply.
I try to do
newfs /dev/rfloppy/c0t1d0
but i get an error:
newfs (vxfs): insufficient space for boot/swap reservation
Can you imagine why ???

Jose_11
Advisor

Re: floppy diskette (3.5 inch) on HPUX11.0

Hi All,
I have problem reading the diskette:

dosls -l /dev/rfloppy/c0t1d0:
Unrecognizable disc format on /dev/rfloppy/c0t1d0
dosls: can't open /dev/rfloppy/c0t1d0: for listing

Do you know WHY ?

Andreas Voss
Honored Contributor

Re: floppy diskette (3.5 inch) on HPUX11.0

Hi,

think hfs is the only one you could do on a floppy.

Try:

newfs -F hfs /dev/rfloppy/c0t1d0

Regards
Jose_11
Advisor

Re: floppy diskette (3.5 inch) on HPUX11.0

Hi again,
I try it also:
newfs -F hfs /dev/rfloppy/c0t1d0

newfs (hfs): Insufficient space for swap reservation

same error
Andreas Voss
Honored Contributor

Re: floppy diskette (3.5 inch) on HPUX11.0

Hi,

just another guess:

newfs -F hfs -O IBM_1440 /dev/rfloppy/c0t1d0

Regards
Jose_11
Advisor

Re: floppy diskette (3.5 inch) on HPUX11.0

Hi Andreas,

newfs -F hfs -O IBM_1440 /dev/rfloppy/c0t1d0

mkfs (hfs): read of lvm record failed
mkfs (hfs): No such device or address

didn't help - thanks anyway.

Do you shure I can work with floppy on 11.0.
I know that in 10.20 - no problem !
Frank Slootweg
Honored Contributor

Re: floppy diskette (3.5 inch) on HPUX11.0

> dosls -l /dev/rfloppy/c0t1d0:
> Unrecognizable disc format on /dev/rfloppy/c0t1d0
> dosls: can't open /dev/rfloppy/c0t1d0: for listing

The diskette must be DOS-formatted for dosls to work. Probably it *was* DOS-formatted at some time, but probably your newfs attempts have removed the DOS filesystem information.

So I suggest to start with a new diskette, write-protect it, test it on a PC (so that you know that it works) and then try the dosls command on your HP-UX system.