Re: the first part of my installation writeup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At 17:46 28-11-2001 -0500, you wrote:
privilege for some of them):

  $ gunzip -c initrd.img > initrd.tmp   (extract gunzip'ed filesystem)
  $ mkdir m                             (create a temporary mount point)
  $ mount -o loop initrd.tmp m          (mount the filesystem)
  $ cp -av m initrd.d                   (copy to, say, "initrd.d")

If you do a:

(cd m && tar cf - *) | (cd initrd.d && tar xvf -)

you can leave out side note 1.


  $ umount m                            (finished, so umount it)
  $ rm initrd.tmp                       (no need for initrd.tmp anymore)
  $ rmdir m                             (no need for mount point either)

  The initrd.d directory now contains what is a minimal root-lookalike
filesystem, with contents:

  bin/ dev/ etc/ linuxrc lost+found/ modules/ proc/ sbin/ tmp/ var/

(Side note 1:  This isn't the *entire* contents of the initrd.img ramdisk
file.  All of the special device files in the /dev directory could not
be duplicated using a simple copy so, if you want to see the actual
contents of /dev, you'll have to do it while you have the filesystem
image mounted.)

(Side note 2:  You might want to poke around the ram disk image, just


Perhaps helpfull.

Koos






[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux