Since I'm a Gentoo fan, I was wondering how to install Gentoo on my Gdium. The main problem is the mass storage medium used by the Gdium, i.e. a USB stick. In fact, this kind of problem would have arosen with any SSD based laptop, where you are limited on writing times by the medium.
My solution in a first time is quick and dirty. I may improve it by a few day, but by now, I've not so much time.
First of all, I've created a /Gdium on one of my boxes, around 10GB. Thanks to lvm, it was quite easy to mve partition to get that space. Then I've setup a nfs4 server on this machine. The main point in using nfs4 over nfs3 is that nfs4 actually locks file, without a dedicated userspace daemon.
On the Gdium side, be sure to have libnfsidmap0 and start rpc.idmapd. Original init scripts were a bit buggy, and since I was in a hurry to test, I've just launch rpc.idmapd. You'll have to mount -t rpc_pipefs none /var/lib/nfs/rpc_pipefs before. Go to any good nfs4 documentations if you need to. Here are some of my bookmarks.
I exported my /Gdium and then mounted in on the Gdium side in say /mnt/Gentoo. Then I've proceed as you may do for any Gentoo installation: mounting proc, sys and dev; chrooting; merging … In the mean time, a fact just hit me: I was still using swap from the USB stick. So, I've created a zero-padded file, using dd in the exported space. Then, using losetup and mksawp, I was able to add a swap device to the Gdium. Then using swapon and swapoff, I've changed the location of the swap.
Next step is to create an iSCSI node and export it, using the iSCSI device to put the swap
Hi! Do you think you could
Hi! Do you think you could make a raw image available for download for people who want to try (we can host it). I know it's not really the Gentoo mentality (you guys like to do things yourself) but I'll be curious to try (and probably a few other guys).
Thanks
by Fred Muller May 05, 2009 - 08:17
Post new comment