Professional Web Applications Themes

Creating a disk image without a floppy drive - Linux Setup, Configuration & Administration

Hi, despite extensive googling I still cant figure out how I can create a floppy disk image (for use with rawrite, etc) simply from a bunch of files in a directory. My computer doesn't have a floppy drive so the usual dd if=/dev/fd0.... doesn't work :( It seems so simple, yet I'm struggling to find results that dont refer to using your floppy disk. If somebody could point in the right direction I'd be grateful? I think the solution may involve creating some kind of virtual floppy drive: if so then info on that would suffice. Unfortunately rebooting isn't really ...

  1. #1

    Default Creating a disk image without a floppy drive

    Hi, despite extensive googling I still cant figure out how I can create
    a floppy disk image (for use with rawrite, etc) simply from a bunch of
    files in a directory. My computer doesn't have a floppy drive so the
    usual dd if=/dev/fd0.... doesn't work :(

    It seems so simple, yet I'm struggling to find results that dont refer
    to using your floppy disk. If somebody could point in the right
    direction I'd be grateful? I think the solution may involve creating
    some kind of virtual floppy drive: if so then info on that would suffice.

    Unfortunately rebooting isn't really an option.

    thanks for all your help,
    Ross

    Ross Guest

  2. #2

    Default Re: Creating a disk image without a floppy drive

    Ross McKerchar <uk> wrote: 

    Why not? An image is an image. And what do you mean "for use with
    rawrite"? Do you mean "by rawrite"? Any instructions you have will
    tell you all about it.
     

    Why would you care? Just make a file size 1440 KB, and mount it
    loopback. Then format it as msdos fat 12. Then stuff it full of stuff.
    Then dismount.

    Peter
    P.T. Guest

  3. #3

    Default Re: Creating a disk image without a floppy drive


    "Ross McKerchar" <uk> wrote in message
    news:FSpub.2098$blueyonder.co.uk... 

    OK, first you need a 1.44 Megabyte file of the same size as the floppy image
    you
    want to create.

    dd if=/dev/zero of=/tmp/floppy.img bs=1024 count=1440

    Create a file system on it.
    mkfs -t vfat /tmp/floppy.img

    Mount and copy your files to it.
    mount -o loop /tmp/floppy.img /mnt/floppy
    cp files /mnt/floppy/.
    umount /mnt/floppy

    Voila! You have your files on a floppy! You can look into this approach by
    reading the contents of `which mkbootdisk`.


    Nico Guest

Similar Threads

  1. Why can't I access my floppy disk?
    By Anthony Atkielski in forum FreeBSD
    Replies: 13
    Last Post: February 28th, 07:56 PM
  2. floppy drive a: failing to see disk. drive b: ok. help!
    By Mr Major Thorburn in forum Windows Server
    Replies: 0
    Last Post: June 9th, 06:16 PM
  3. floppy disk icon
    By LScolnik in forum Windows XP/2000/ME
    Replies: 9
    Last Post: July 23rd, 12:38 AM
  4. Can't defragment floppy disk
    By CM in forum Windows XP/2000/ME
    Replies: 5
    Last Post: July 5th, 11:42 PM
  5. Replies: 0
    Last Post: July 4th, 08:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139