[CentOS] Creating floppy image without root permissions?

Tue Feb 15 22:37:32 UTC 2011
James Pearson <james-p at moving-picture.com>

Kwan Lowe wrote:

> As root:
> 	dd if=/dev/zero of=floppy.flp bs=1k count=360
> 	mkfs.vfat floppy.flp
> 	mount -o loop floppy.flp /mnt/floppy
> 	cp base_kickstart.ks /mnt/floppy/ks.cfg
> 	umount /mnt/floppy
> 
> 
> It works, but now I need to automate the process and have to do with
> without root access.  Is there a way to create a floppy iso with a
> single file without root access?   I looked at fuseiso, but it appears
> that it still requires some root permissions.

Have a look at mtools (part of CentOS) - you can do something similar as 
above as a non-root user:

  mformat -C -i floppy.flp -f 360 ::
  mcopy -i floppy.flp base_kickstart.ks ::ks.cfg

James Pearson