FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 02-15-2011, 07:57 PM
Kwan Lowe
 
Default Creating floppy image without root permissions?

Hello All:

I've recently had to provision some RHEL and CentOS VMWare
instances. There was no network connectivity so I had to use a
kickstart floppy and DVD iso rather than installing from our
repository. To create the floppy I used the following:


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.
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 02-15-2011, 09:37 PM
James Pearson
 
Default Creating floppy image without root permissions?

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
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 02-16-2011, 01:50 PM
Kwan Lowe
 
Default Creating floppy image without root permissions?

On Tue, Feb 15, 2011 at 5:37 PM, James Pearson
<james-p@moving-picture.com> wrote:
> 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

Well, hey now! That works nicely. Thank you!
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 09:01 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org