- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: floppy diskette (3.5 inch) on HPUX11.0
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-24-2001 05:44 AM
тАО09-24-2001 05:44 AM
floppy diskette (3.5 inch) on HPUX11.0
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-24-2001 06:07 AM
тАО09-24-2001 06:07 AM
Re: floppy diskette (3.5 inch) on HPUX11.0
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-24-2001 06:11 AM
тАО09-24-2001 06:11 AM
Re: floppy diskette (3.5 inch) on HPUX11.0
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-24-2001 06:12 AM
тАО09-24-2001 06:12 AM
Re: floppy diskette (3.5 inch) on HPUX11.0
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
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-24-2001 06:39 AM
тАО09-24-2001 06:39 AM
Re: floppy diskette (3.5 inch) on HPUX11.0
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 ???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-24-2001 06:42 AM
тАО09-24-2001 06:42 AM
Re: floppy diskette (3.5 inch) on HPUX11.0
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 ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-24-2001 06:46 AM
тАО09-24-2001 06:46 AM
Re: floppy diskette (3.5 inch) on HPUX11.0
think hfs is the only one you could do on a floppy.
Try:
newfs -F hfs /dev/rfloppy/c0t1d0
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-24-2001 06:49 AM
тАО09-24-2001 06:49 AM
Re: floppy diskette (3.5 inch) on HPUX11.0
I try it also:
newfs -F hfs /dev/rfloppy/c0t1d0
newfs (hfs): Insufficient space for swap reservation
same error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-24-2001 07:01 AM
тАО09-24-2001 07:01 AM
Re: floppy diskette (3.5 inch) on HPUX11.0
just another guess:
newfs -F hfs -O IBM_1440 /dev/rfloppy/c0t1d0
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-24-2001 07:19 AM
тАО09-24-2001 07:19 AM
Re: floppy diskette (3.5 inch) on HPUX11.0
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 !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-25-2001 12:33 AM
тАО09-25-2001 12:33 AM
Re: floppy diskette (3.5 inch) on HPUX11.0
> 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.