Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am attempting to setup nightly builds of an OS on my website server. Well, the problem is I need to generate a floppy disk image without being root.

Really, I don't need to fully generate it. I just need to update the image. As I have a FFS image with boot manager and such, and just need to add my kernel file to the image. I have seen no useful image tools out there though with dealing with FFS.

Does anyone know of some tools to use for updating such a floppy image. I wouldn't mind programming a little glue program, but I really don't want to code up full FFS support by myself at the moment.

The server runs linux. btw

share|improve this question
    
Try modifying the ftsab entry, or at least add it to your question. –  Brad Gilbert Jun 16 '09 at 21:30
    
I don't have root privilege so I can't do such things. The server does not just allow me to make loopback devices or mount things. –  Earlz Jun 17 '09 at 4:43

3 Answers 3

up vote 1 down vote accepted

I can offer two (non-ideal) options:

  • Create a 'placeholder' file inside your disk image and splice the kernel into the image (ick)
  • If you don't need to use FFS, you could try FAT. mtools is very handy for this sort of thing.

Example:

michael:~> mdir -i test.img ::
 Volume in drive : is Testing (abbr=TESTING    )
 Volume Serial Number is 0000-0000
Directory for ::/

No files
                          1 457 664 bytes free

michael:~> mcopy -i test.img kernel.com ::
michael:~> mdir -i test.img ::
 Volume in drive : is Testing (abbr=TESTING    )
 Volume Serial Number is 0000-0000
Directory for ::/

kernel   com     47632 2009-06-17  16:50 
        1 file               47 632 bytes
                          1 409 536 bytes free
share|improve this answer

Can you just mount it on loopback and access it as any other filesystem?

I assume by FFS that you're meaning the BSD Fast File System? I don't know what kind of support Linux has for it offhand. If Linux can mount it, that's going to be your easiest bet. If not, then you either need to write your own FFS support, or use an OS that can manage it easier.

Or switch to using a filesystem that is better supported.

share|improve this answer

I'm unsure which operations might require being root to create a disk image, so you should really post what are you doing exactly.

If you need to mount a loop device or something like that, you might be able to give a regular user rights to do so. If not, there might be a Fuse module to do it.

share|improve this answer
    
Mounting any loopback device requires root permissions. –  Michael Mior Jul 6 '10 at 18:20

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.