Gentoo Archives: gentoo-embedded

From: Christopher Friedt <cfriedt@××××××××××××××.com>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] profiles for reduced disk usage
Date: Thu, 17 Apr 2008 20:16:41
Message-Id: 4807B02D.6050004@visible-assets.com
In Reply to: Re: [gentoo-embedded] profiles for reduced disk usage by Joshua ChaitinPollak
1 I've taken a similar approach with the package db and the emerge cache,
2 which would usually reside in /var/db/pkg and /var/cache/edb.
3
4 good idea for the log, and lock dirs.
5
6 I guess /var/run, etc, etc can all go in tmpfs
7
8 C
9
10 Joshua ChaitinPollak wrote:
11 > Chris,
12 >
13 > I think you'll still want to use the desktop profile, but configure your
14 > /tmp and /var/log to be mounted on a shared file system. What I've done
15 > in my embedded system is modify the inittab file to mount tmp on a shmfs
16 > file system, and the create directories called /tmp/var/log and
17 > /tmp/var/lock. The root file system (on disk), has symbolic links in
18 > place at /var/log and /var/lock that point to /tmp/var/log and
19 > /tmp/var/lock, respectively. This works fine, because by the time any
20 > process is ready to write to /var/log, the inittab has already mounted
21 > the shared file system and made the target directories of the symbolic
22 > links.
23 >
24 > I think this would work for you, but its a bit of manual configuration
25 > you'll have to work through.
26 >
27 > I don't know how you'd handle things like Firefox's cache, I don't know
28 > any way to reduce its writes or redirect them out of your profile.
29 >
30 >
31 > On Apr 17, 2008, at 9:47 AM, Christopher Friedt wrote:
32 >
33 >> Does anyone know if there is a portage profile for reduced disk
34 >> writes? I just got an EEE pc and I'm experimenting on a USB stick
35 >> before I write to the SDD. I'm sort of guessing that such a profile
36 >> would basically just slightly alter the default configuration files of
37 >> certain apps to either turn off logging or to mount temporary
38 >> directories as tmpfs.
39 >>
40 >> Does such a profile sound closer to embedded, or would it be a desktop
41 >> profile without the logger, etc, etc.
42 >>
43 >> It seems the line between embedded and default is growing thinner
44 >> every day!
45 >>
46 >> I guess I'm looking for something that's more or less a Desktop
47 >> profile, but something that would be more suitable for flash-based
48 >> devices, like the OpenMoko/Neo, EEE Pc, or a Maemo.
49 >>
50 >> Nedd, I've been using qmerge with my arm packages by the way, and it's
51 >> fantastic. I'm really looking forward to using it more. At some point
52 >> I'm hoping to use, augment or write a graphical app for installing
53 >> packages locally and also remotely via ssh or some web interface.
54 >>
55 >> Cheers,
56 >>
57 >> Chris
58 >> --
59 >> gentoo-embedded@l.g.o mailing list
60 >>
61 >>
62 >
63 --
64 gentoo-embedded@l.g.o mailing list