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

Re: How to extract the content of the Knoppix 5.3.0 minirt.gz ?



On 3/15/08, John Woods <gtbutton@gmail.com> wrote:
> Well after wondering what the missing 2k bytes or so were... it would
> seem that because ~lib is restored as a link... whatever is below
> can't be restored in the relative tree maybe.
> Same with files under ~sbin.
>
> lib/terminfo/l/linux
> and sbin/mount.ntfs as well as sbin/mount.ntfs-3g are missing after
> the restore to the working directory.
>
> There's the 2k.
> So that doesn't reall work to well.
>
> -rwxr-xr-x 1 root root 1695 Feb 2 18:25 /lib/terminfo/l/linux
> -rwxr-xr-x 1 root root 652380 Feb 11 17:34 /static/ntfs-3g
> -rwxr-xr-x 1 root root 209 Jul 31 2002 /etc/auto.mnt
> lrwxr-xr-x 1 root root 18 Feb 16 15:51
> /sbin/mount.ntfs -> ../static/ntfs-3g
> lrwxr-xr-x 1 root root 18 Feb 16 15:51
> /sbin/mount.ntfs-3g -> ../static/ntfs-3g
>
>
> On 3/15/08, John Woods <gtbutton@gmail.com> wrote:
> > Well I gave it a try... and then another.
> > Then I backed up my knoppix.img.
> > Then I did the commands that previously gave me all kinds of errors... as
> > root.
> > Which produced only the expected output about removing leading slash...
> >
> > gunzip minirt.gz
> > mkdir init_tmp
> > cd init_tmp
> >
> > cpio -imvd --no-absolute-filenames -I ../minirt
> > yada yada yada... well all I did here was touch ./linuxrc
> > find . | cpio --quiet -o -H newc | gzip -9 > ../minirt.gz
> >
> > and the new minirt.gz is about the same size as the original.
> > It booted up ok.
> >
> > What's with the error about a missing selinuxfs on these minirts?
> > .
> >
>

Just for completeness sake...
The answer to this riddle is... you must have a chroot setup to extract it to.
I made a quick and dirty chroot to see and left my steps to make one here.
http://www.knoppix.net/forum/viewtopic.php?t=28645

john


Reply to: