FC6 - Teaching A New Dog Old Tricks

Net Llama! netllama
Sun Jan 7 19:11:39 PST 2007


On Sun, 7 Jan 2007, Leon Goldstein wrote:
> Leon Goldstein wrote:
>> Net Llama! wrote:
>>>> <snip>
>>
>>
>>>> I get most of what you suggest, although I'll have to research the
>>>> meaning of "mount it over loopback"  since I have never done that.  (I
>>>> have used chroot to salvage data from an unbootable drive onto a CD
>>>> using Knoppix.)
>>>>
>> Hmm, I must have had a senile moment, oops, "senior moment".   You don't
>> need to chroot to burn from Knoppix.
>> I think I did use chroot to reinstall GRUB on a distro when the mbr got
>> trashed.
>>
>>
>>>> Could I  coax you into writing a little more detailed how-to?
>>>>
>>>>
>>> Sure, its actually simple.
>>> 0) Install whatever distro works well with WP8
>>> on 1 harddrive, with just a single / partition (nothing separate for /usr
>>> /home, etc) with the smallest / partition possible
>>> 1) Once you're
>>> comfortable that WP8 works fine there, either connect a 2nd HD to the WP8
>>> system that is at least as large as the first, or make sure that the WP8
>>> system is networked to whatever other system you want to ultimately use
>>> (such as the one with FC6).  What you need to do here is use dd to take an
>>> image of the WP8 / partition and either write that image as a file to the
>>> 2nd HD.  Or use the FC6 system as NFS server, mount it from the WP8 box,
>>> and then dd the image to the NFS server
>>> 2) So for the dd command you'd do:
>>> dd if=/dev/hda1 of=/nfs-mountpoint/wp8.img bs=10k
>>> 3) Then once you've got the wp8.img on the target system (FC6), you just
>>> mount it over loopback:
>>> mount -o loop wp8.img /mnt/wherever
>>> 4) chroot into it:
>>> chroot /mnt/wherever
>>> 5) and run wp8
>
> I reinstalled FC6 in a larger partition, then made a minimal install of
> Libranet 2.8.1 (very WP friendly) on the same lab-rat.  Per
> instructions, I used dd to copy an image of the Lib 2.8.1 partition,
> into which I istalled both WP8.1 as well as WPO2KL, with printers set up
> and verified as functional.
>
> After mounting the image file and chroot to the mounted image, I get
> this error when I try to run WP (/usr/bin/xwp):
> X11TransSocketUNIXConnect: Can't connect: errno=2
>
> Is this THE END, or is  something missing?

You prolly need to run a minimal X server inside the chroot (or perhaps 
use xnest somehow), or maybe just xhost?  I've never done this with an X 
app before, my uses have always been with console apps.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Lonni J Friedman                        netllama at linux-sxs.org
LlamaLand				http://netllama.linux-sxs.org



More information about the Linux-users mailing list