About Linux FAQ

Browse More FAQs:

Howto: Linux formatting floppy and zip disk and create filesystem

Posted by Vivek Gite [Last updated: August 30, 2006]

Q. How do I format floppy and zip disk under Linux?

A. You need to fdformat command. It does a low level format on a floppy disk device is usually /dev/fd0 or /dev/fd1:

/dev/fd0 is your first floppy disk drive (A: under MS-DOS/ Windows XP). You must be the root to run following command.

Task: Low level format on a floppy disk

# fdformat /dev/fd0

Task: Create a Linux file system on a floppy disk

# /sbin/mkfs.ext3 /dev/fd0

Task: Create a MS DOS FAT file system on a floppy disk

# /sbin/mkfs.vfat /dev/fd0

Task: Create a partition on zip device

Zip device treated as SCSI device. So your first zip disk is /dev/sda. To remove or to create partition type the following command:
# fdisk /dev/sda
Type m for help and follow on screen instructions.

Task: Create or format a partition on zip device

/dev/sda1 is your first partition. To format in Linux file system type the following command:
# mkfs.ext /dev/sda1OR for FAT file system use # mkfs.vfat /dev/sda1

/etc/fstab file

The /etc/fstab allows you to configure the mount points.
# mkdir -p /mnt/zipOpen file and add entry:
# /etc/fstabAppend following text:
/dev/sda1 /mnt/zip ext3 noauto,rw,user,nosuid,sync
For DOS FAT file system add something as follows:
/dev/sda2 /mnt/zipd vfat noauto,rw,user,nosuid,sync,mode=0777
Save close the file.

Task: Mount zip device

To mount zip type following command:
$ mount /mnt/zip
$ cd /mnt/zip
$ ls

Subscribe to our free e-mail newsletter or RSS feed to get all updates. You can Email this page to a friend.

Related Other Helpful FAQs:

Discussion on This FAQ

  1. rubal das Says:

    encouraging

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Copyright © 2006-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.