Group: linux.gentoo.user
From: dexters84
Date: Saturday, March 15, 2008 2:40 PM
Subject: Re: [gentoo-user] jffs2 on gentoo

This is a multi-part message in MIME format.
--------------070001050504020901040500
Content-Type: text/plain; charset=ISO-8859-2; format=flowed
Content-Transfer-Encoding: 7bit

Florian Philipp pisze:
> On Fri, 2008-03-14 at 18:27 +0000, James wrote:
>
>> Hello,
>>
>> I have a firewall that is built pretty minimally on a P3 and
>> and old 4 gig ide disk:
>>
>> /dev/hda3 2068348 1668104 400244 81% /
>> /dev/hda1 100728 40452 60276 41% /boot
>>
>> I have a 4 gig Cf card (sandisk) and a ide-cf card that should
>> make the CF card look like an ide hard drive.
>>
>> I've been searching for a wiki or something that describes the general
>> sequence of events to migrate the existing gentoo system to the
>> CF/ide disk, with no luck.
>>
>> I did find this page:
>> http://gentoo-wiki.com/Mounting_a_block_device_with_JFFS2
>>
>>
>> But it seems vague(outdated) and missing many steps. Or
>> am I confused? I'm just looking for some outline or verbose
>> steps to replace an ide drive on a system with a CF/ide drive
>> and jffs2, as I have many systems that I'd like to do this with,
>> for core reliability on minimalistic gentoo servers. I plan
>> on having additional space on these systems (when needed)
>> via NFS.
>>
>>
>> Any help or ideas are greatly appreciated.
>>
>>
>> James
>>
>>
>
> As far as I know you won't need jffs2 (or any other fs for flash
> memory). It is meant to be used on embedded devices that directly access
> the flash memory. In your case, the CF-disk takes care of wear leveling.
> Just use ext2. However, you could still get problems because, as far as
> I know, wear leveling needs to be tuned for the FS and most probably no
> one tuned the CF-disk for ext2. Maybe you could use fat instead...
>
I did this sort of system a while ago. I've used 1GB card with gentoo
and cf-ide adapter. There are some tricky parts that nobody mentions.
One of them is that I wasn't able to boot from my 1GB "hard drive" when
it was connected via 80 pin ide cable, I've dig up some old 40 pin ata
cable and it worked.
Other things you have to remeber concern file system usage, you musn't
create swap partition, disable local syslog, log rotation, turn
everything except desired daemons etc.

regards
dexter

--------------070001050504020901040500
Content-Type: text/html; charset=ISO-8859-2
Content-Transfer-Encoding: 7bit








Florian Philipp pisze:

type="cite">
On Fri, 2008-03-14 at 18:27 +0000, James wrote:



Hello,


I have a firewall that is built pretty minimally on a P3 and
and old 4 gig ide disk:

/dev/hda3 2068348 1668104 400244 81% /
/dev/hda1 100728 40452 60276 41% /boot

I have a 4 gig Cf card (sandisk) and a ide-cf card that should
make the CF card look like an ide hard drive.

I've been searching for a wiki or something that describes the general
sequence of events to migrate the existing gentoo system to the
CF/ide disk, with no luck.

I did find this page:
http://gentoo-wiki.com/Mounting_a_block_device_with_JFFS2


But it seems vague(outdated) and missing many steps. Or
am I confused? I'm just looking for some outline or verbose
steps to replace an ide drive on a system with a CF/ide drive
and jffs2, as I have many systems that I'd like to do this with,
for core reliability on minimalistic gentoo servers. I plan
on having additional space on these systems (when needed)
via NFS.


Any help or ideas are greatly appreciated.


James





As far as I know you won't need jffs2 (or any other fs for flash
memory). It is meant to be used on embedded devices that directly access
the flash memory. In your case, the CF-disk takes care of wear leveling.
Just use ext2. However, you could still get problems because, as far as
I know, wear leveling needs to be tuned for the FS and most probably no
one tuned the CF-disk for ext2. Maybe you could use fat instead...


I did this sort of system a while ago. I've used 1GB card with gentoo
and cf-ide adapter. There are some tricky parts that nobody mentions.

One of them is that I wasn't able to boot from my 1GB "hard drive" when
it was connected via 80 pin ide cable, I've dig up some old 40 pin ata
cable and it worked.

Other things you have to remeber concern file system usage, you musn't
create swap partition, disable local syslog, log rotation, turn
everything except desired daemons etc.



regards

dexter




--------------070001050504020901040500--
--
gentoo-user@lists.gentoo.org mailing list