1838766 Members
3269 Online
110129 Solutions
New Discussion

Re: Very simple question

 
SOLVED
Go to solution
Trent Cameron
Occasional Contributor

Very simple question

in HP-UX 11i, how do I mount the floppy drive?
I am using a MS-DOS diskette.

I remember it was something like:
mount -F (something) /dev/floppy/c0t1d0 /floppy

But I don't know what goes after the -F for the filesystem. I've tried -F msdos and -F auto, but they didn't work. And if I don't specify the -F it doesn't work at all.

for the mount command it doesn't help much and as I said I know it's a basic question and I feel wierd asking..

thanks!
Trent.


Trent Rules!
7 REPLIES 7
Vincenzo Restuccia
Honored Contributor

Re: Very simple question

In HPUX only vxfs or hfs:
newfs -F vxfs (hfs) /dev/floppy/c0t1d0
mount -F vxfs (hfs) /dev/floppy/c0t1d0 /floppy

Trent Cameron
Occasional Contributor

Re: Very simple question

I tried that, but it didn't work, it just said there were no vxfs filesystems on the drive.


HP-UX does support reading MS-DOS floppy filesystems doesn't it??

any other ideas for how I can get this to work?

Trent Rules!
Vincenzo Restuccia
Honored Contributor
Rita C Workman
Honored Contributor

Re: Very simple question

Using a floppy is something rarely done..

But if memory serves me right, to mount an internal floppy the command is:
#mount /dev/rfloppy/c_t_d_ /floppy

So you want to make sure that you have these special device files.

Now if you looking to get some DOS files into UNIX format the commands are:
dos2ux or reverse ux2dos

Hope this helps,
/rcw
Jim Moffitt_1
Valued Contributor

Re: Very simple question

To figure out the File System Type you could issue this command to figure it out:

fstyp /dev/floppy/c1t6d0

This should tell you the fs of the disk.
A. Clay Stephenson
Acclaimed Contributor

Re: Very simple question

Hi Trent:
It's been so long since I've used the commands I had all but forgotten them but believe it or not we don't need no stinkin' mount.
Determine the raw disk device of the floppy.
e.g. /dev/rdsk/c1t2d0

then to copy all the .dat files in lets say the Trent directory of the DOS diskette to /var/tmp
do this:
doscp '/dev/rdsk/c1t2d0:/Trent/*.dat' /var/tmp

You can reverse the arguments to copy to the floppy.
Man doscp,dosmkdir,dosls,dosrm for details.

This should do the trick.
Regards, Clay
If it ain't broke, I can fix that.
MANOJ SRIVASTAVA
Honored Contributor
Solution

Re: Very simple question

Hi Trent

Here is what you may be looking for . under /bin there are the following files

doscp
dosdf
dosll
dosls
dosmkdir
dosrmdir
dosrm

to run dos command on the floppy. Please do a man for the synopsis and use .Please insert the floppy and you are ready to go.


Manoj Srivastava