Operating System - HP-UX
1832343 Members
2931 Online
110041 Solutions
New Discussion

Re: Floppy disk file system?

 
SOLVED
Go to solution
Mike Nemeth
Advisor

Floppy disk file system?

Is it possible to create a file system on a floppy
disk and then mount the disk?
What commands are needed?

I want to be abbe to put scripts and small programs on the floppy
to mount temperarily on other (production) systems.
Theses system neede to be squeeky clean; don't even
want to coy the file then delete because of security issues.
9 REPLIES 9
Cheryl Griffin
Honored Contributor

Re: Floppy disk file system?

Have you tried mounting the floppy and copying the files there?

# mkdir /floppy (to create mountpoint)
# mount /dev/dsk/{floppy_device} /floppy
# cp {files} /floppy
# umount /floppy

Take the disk to the other machine, mount it, copy the files off, then umount.
"Downtime is a Crime."
Mike Nemeth
Advisor

Re: Floppy disk file system?

That produces unreconized file system on mount.
Kofi ARTHIABAH
Honored Contributor

Re: Floppy disk file system?

Would mediainit or newfs help you?

nothing wrong with me that a few lines of code cannot fix!
Patrick Wallek
Honored Contributor

Re: Floppy disk file system?

Mike Nemeth
Advisor

Re: Floppy disk file system?

Kofi and Patrick you'e on the right track I'm sure , but the hpux 9.0 doc gives: newfs -n and that returns illegal option.

I'm try to be very careful in what I do so don't mess up my system.

I was hopeing someone has done this before, so I could remove some of the risk.

Patrick Wallek
Honored Contributor

Re: Floppy disk file system?

Do a 'man dosif'. I think this will give you some useful information.

To summarize:

Format the floppy on a PC. Then you can use the HPUX dos* commands (doscp, dosls, etc -- 'man -k dos' to get a list') on the floppy with the syntax 'doscp /etc/hosts /dev/dsk/c#t#d#:/etc/hosts' to copy the /etc/hosts files from your unix machine to the /etc/ directory on the floppy drive.

I think this will accomplish what you want without having to mount or newfs the floppy and it will be portable between your HPUX boxes.
Cheryl Griffin
Honored Contributor
Solution

Re: Floppy disk file system?

You can newfs the disk drive if needed with a command like:
# newfs -F hfs /dev/rfloppy/{floppy_device}

The only risk involved is getting the name of the floppy device correct.

It will help us if you provide the model floppy drive and os level you are working with.
"Downtime is a Crime."
Mike Nemeth
Advisor

Re: Floppy disk file system?

Cheryl , this worked completely correctly and accomplish ed
what I want to do! Thank you. I'm suprized it didn't
need any options!
Cheryl Griffin
Honored Contributor

Re: Floppy disk file system?

That is good news.
Happy copying!
Cheryl
"Downtime is a Crime."