[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 ?



Thanks for taking the time to address this one...
Ok... I will try that out.

from a console... as root.

mkdir -p init_tmp && init_tmp ->gives bash: init_tmp: command not found
(I guess this would be where I change directory into init_temp so I do that)

then the zcat portion yields...

etc/mtab
cpio: Removing leading `/' from member names
cpio: cannot remove current lib/terminfo/l/linux: Read-only file system
lib/terminfo/l/linux

cpio: cannot make directory `sbin': No such file or directory
cpio: sbin/mount.ntfs: No such file or directory
sbin/mount.ntfs
cpio: Removing leading `/' from member names
cpio: cannot make directory `sbin': No such file or directory

cpio: etc/mtab not created: newer or same age version exists
etc/mtab


Did I mention I am doing this from a Knoppix 5.1.1 and a persistent home?
~lib points to /KNOPPIX/lib which on a running Knoppix is valid, but
is a absolute path that bypasses /UNIONFS/ and is readonly. If you are
on a real system you might not get that error. But I am in init_temp
when I do the command.

root@Knoppix:/KNOPPIX.IMG/home/knoppix/Desktop/init_tmp# ls -al
total 96
drwxr-xr-x 14 root    root     4096 Apr 11 14:26 .
drwxr-xr-x 20 knoppix knoppix  4096 Apr 11 14:15 ..
drwxr-xr-x  2 root    root     4096 Mar 26 05:20 KNOPPIX
lrwxrwxrwx  1 root    root        7 Apr 11 14:17 bin -> /static
lrwxrwxrwx  1 root    root       13 Apr 11 14:17 boot -> /KNOPPIX/boot
drwxr-xr-x  2 root    root     4096 Mar 26 05:20 cdrom
drwxr-xr-x  5 root    root     8192 Apr 11 14:17 dev
drwxr-xr-x  2 root    root     4096 Apr 11 14:17 etc
lrwxrwxrwx  1 root    root        8 Apr 11 14:17 init -> /linuxrc
lrwxrwxrwx  1 root    root       12 Apr 11 14:17 lib -> /KNOPPIX/lib
-rwxr-xr-x  1 root    root    34086 Mar 26 05:20 linuxrc
drwxr-xr-x  5 root    root     4096 Apr 11 14:17 media
drwxr-xr-x  2 root    root     4096 Mar 26 05:20 mnt
drwxr-xr-x  3 root    root     4096 Apr 11 14:17 modules
lrwxrwxrwx  1 root    root       12 Apr 11 14:17 opt -> /KNOPPIX/opt
drwxr-xr-x  2 root    root     4096 Mar 26 05:20 proc
lrwxrwxrwx  1 root    root        7 Apr 11 14:17 sbin -> /static
drwxr-xr-x  2 root    root     4096 Mar 26 05:20 selinux
drwxr-xr-x  2 root    root     4096 Apr 11 14:17 static
drwxr-xr-x  2 root    root     4096 Mar 26 05:20 sys
drwxrwxrwt  2 root    root     4096 Mar 26 05:20 tmp
lrwxrwxrwx  1 root    root       12 Apr 11 14:17 usr -> /KNOPPIX/usr
root@Knoppix:/KNOPPIX.IMG/home/knoppix/Desktop/init_tmp#

Even if you remove forward slashes... links that point to absolute
locations still need a chroot... wouldn't they?
The chroot environment worked out ok for this...
(Why I posted a howto on the forum, because I will forget how I did it!)

Regards,
John


Reply to: