01-06-2003 10:11 AM
From the mediainit man page:
Format an HP 9122 SS/80 3-1/2-inch flexible disk with an interleave factor of 2, 1024-byte sectors, and double-sided HP format:
# mediainit -i 2 -f 3 /dev/rdsk/9122
01-06-2003 02:14 PM
01-07-2003 05:13 AM
> tar files to it, but that's OK.
"Unix format" does not really exist. You can have HFS filesystem format,
vxfs/JFS filesystem format, (raw) tar(1) format, (raw) cpio(1) format,
etc., etc.. See later for tar(1) format.
> The only real use for the floppy drive is to receive a DOS file, which
> now seems to work fine. Still not sure what fixed it, but it works.
The simplest method is just to use pre-formatted 'DOS' diskettes or
format the diskette on a 'DOS' PC. There is no need to do a low-level
format on diskettes which were once properly low-level formatted (i.e.
mediainit(1M) is not needed), and you can not (easily) high-level (i.e.
filesystem level) format a diskette in 'DOS' format on HP-UX.
> I still have one question, is it possible to format a 3.5" 1.44MB
> floppy so that you can tar files to it? I was trying the mediainit
> command, but couldn't get it to work. Kept giving me an I/O error.
> Any ideas?
If you want to treat the diskette in 'raw' format, i.e. as if it was a
tape, then you do not have to (low-level) format it if it was ever
If you want to put a (HFS or vxfs/JFS) *filesystem* on the diskette and
put a tar archive *in* that filesystem, then you have to use newfs(1M),
just as you would for a real (hard) disk.
> I also couldn't get the floppy to mount either, kept getting the same
> errors the fellow was getting in the link you sent to me. Looks like
> he finally gave up, but I want to know what's up?? Any help is much
You can only mount a diskette which was *high*-level 'formatted' with
newfs(1M). I.e. you can not mount a 'DOS' diskette and you can not mount
'raw' tar/cpio/etc. diskettes.