Re: formatting a floppy disk (115 Views)
Reply
Advisor
Grant Willey
Posts: 37
Registered: ‎04-14-2002
Message 1 of 10 (115 Views)
Accepted Solution

formatting a floppy disk

Under v11.0, how do I format a 3.5" DS/HD floppy? Do I use the mediainit command?
Honored Contributor
Patrick Wallek
Posts: 13,786
Registered: ‎06-21-2000
Message 2 of 10 (115 Views)

Re: formatting a floppy disk

Yes, I believe that mediainit would be appropriate for this.

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
Advisor
Grant Willey
Posts: 37
Registered: ‎04-14-2002
Message 3 of 10 (115 Views)

Re: formatting a floppy disk

I get an error "can't open file /dev/floppy/c0t1do: no such device or address" Any ideas?
Honored Contributor
Patrick Wallek
Posts: 13,786
Registered: ‎06-21-2000
Message 4 of 10 (115 Views)

Re: formatting a floppy disk

What does ioscan show as the device file for the floppy drive?

# ioscan -fn

Also make sure there is a disk in the drive.
Advisor
Grant Willey
Posts: 37
Registered: ‎04-14-2002
Message 5 of 10 (115 Views)

Re: formatting a floppy disk

ioscan shows its there. 8/16/10.1 is the device, shows it's claimed.
Honored Contributor
Robert-Jan Goossens
Posts: 7,384
Registered: ‎04-04-2000
Message 6 of 10 (115 Views)

Re: formatting a floppy disk

Hi,

Could you give the output of
ioscan -fnc floppy.

You have posted "can't open file /dev/floppy/c0t1do" are you shure about the number/letter ?

Robert-Jan.
Advisor
Grant Willey
Posts: 37
Registered: ‎04-14-2002
Message 7 of 10 (115 Views)

Re: formatting a floppy disk

sorry, the device is /dev/floppy/c0t1d0. It is present and it is CLAIMED. Any ideas?
Honored Contributor
Robert-Jan Goossens
Posts: 7,384
Registered: ‎04-04-2000
Message 8 of 10 (115 Views)

Re: formatting a floppy disk

Hi,

Think I found something,
Look at this link.

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x088eabe92dabd5118ff10090279cd0f9,00.html
Hope it helps,

Robert-Jan.
Advisor
Grant Willey
Posts: 37
Registered: ‎04-14-2002
Message 9 of 10 (115 Views)

Re: formatting a floppy disk

Thank you for the link Robert. I still couldn't get the disk to format in Unix format so that I could tar files to it, but that's OK. 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. 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? 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 appreciated!
Honored Contributor
Frank Slootweg
Posts: 890
Registered: ‎09-06-2001
Message 10 of 10 (115 Views)

Re: formatting a floppy disk

> I still couldn't get the disk to format in Unix format so that I could
> 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
low-level formatted.

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
> appreciated!

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.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.