≡ Menu

Solaris > Format floppy, UFS file system, fix bad blocks

The rmformat utility is used to format, label, partition, and perform other miscellaneous functions on removable, rewritable media that include floppy drives, IOMEGA Zip/Jaz products, USB mass strorage and the PCMCIA memory and ata cards.

The mkfs utility constructs a file system on the device (format i.e. create file system).

Format floppy:
1) Use the command rmformat to format the floppy disk:

rmformat –F quick /dev/rdiskette

OR

rmformat –F quick /vol/dev/diskette0

OR

rmformat –F long /dev/rdiskette

OR

rmformat –F long /vol/dev/diskette0

Where,

  • -F long : Formatting with media verification
  • -F quick : Formatting w/o media verification

Solaris >Create the UFS file system on floppy
1) Use the command rmformat to format the floppy disk:

# newfs /dev/rdiskette

Solaris > How to check the floppy disk (scan disk i.e. just like scandisk in windows)
1) Use the command fsck:

# fsck –F ufs /dev/rdiskette

Solaris > Create the PCFS (FAT) file system on floppy:
1) Use the command mkfs command to format the floppy disk using FAT file system:

# mkfs –F pcfs /dev/rdiskette

Solaris > How to fix bad blocks on floppy
1) Use the command rmformat to with –c {block number} switch to fix bad block:

# rmformat -c 32 /dev/rdiskette

2) Then verify that it was fixed as follows:

# rmformat –V read /dev/rdiskette

(Check out all of our posts on Solaris)

Tweet itFacebook itGoogle+ itPDF itFound an error/typo on this page?

{ 0 comments… add one }

Leave a Comment