Create a DOS floppy image

dd if=/dev/zero bs=1024 count=1440 > floppy.img && mkdosfs floppy.img
mount with: mount -t msdos -o loop ./floppy.img /tmp/mnt

2
By: wwest4
2009-02-05 18:56:55

These Might Interest You

  • -t option tells the system to look for a msdos filesystem The /dev/fd0 is your floppy drive ( This may be different for you check /dev folder to confirm) /mnt/floppy is the point where you want to mount the device to


    -2
    mount -t msdos /dev/fd0 /mnt/floppy
    eastwind · 2009-12-10 06:46:53 2
  • create iso image from directory . Usefull for virtualised machine To create CD ISO image of directories that contain long file name or non-8.3 format (particularly if you want to burn the CD image for use in Windows system), use the -J option switch that generates Joliet directory records in addition to regular iso9660 file names. For example, to create CD image of Vista SP1 directory: mkisofs -o VitaSP1.iso -J VistaSP1 Show Sample Output


    7
    mkisofs -o XYZ.iso XYZ/
    eastwind · 2009-10-17 16:28:47 0
  • This does not require you to know the partition offset, kpartx will find all partitions in the image and create loopback devices for them automatically. This works for all types of images (dd of hard drives, img, etc) not just vmkd. You can also activate LVM volumes in the image by running vgchange -a y and then you can mount the LV inside the image. To unmount the image, umount the partition/LV, deactivate the VG for the image vgchange -a n <volume_group> then run kpartx -dv <image-flad.vmdk> to remove the partition mappings. Show Sample Output


    11
    kpartx -av <image-flat.vmdk>; mount -o /dev/mapper/loop0p1 /mnt/vmdk
    rldleblanc · 2014-09-25 23:05:09 0
  • Use ImageMagick to create a "black and white" copy of an image.


    4
    convert -colorspace gray face.jpg gray_face.jpg
    medina · 2009-03-23 14:18:04 1

What Others Think

Corresponding this will work in windows platform, if not can you please suggest me how to do in windows platform. 1. Create a floppy image in windows.(64 bit supported). 2. OR edit the floppy image and copy some files into that. Thanks a lot. Chandran
chanthru · 448 weeks and 5 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: