Author Topic: Beta 4 Questions - Logfiles In Flash And More  (Read 4238 times)

GadgetGuy

  • Sr. Member
  • ****
  • Posts: 321
    • View Profile
    • http://
Beta 4 Questions - Logfiles In Flash And More
« on: May 24, 2006, 08:32:31 pm »
Hello all,

previous Beta versions have used the flash to write logfiles - potentially wearing the flash rom out relatively quickly. Is this still the case with beta 4?

I am trying to set up a normal etc/fstab, so that my C3100 HDD partitions, a CF card and an SD card work (currently my HDD partition 1 is recognized as CF, and all the other partitions are invisible).  Has anyone done this? Could you please share your fstab file?

Thank you all for any comments...
Zaurus C-3100 from PriceJapan with OZ 3.5.4.1. Opie and GPE
Ambicom CF WL1100C Wifi Card and Symbol Wireless Networker CF Wifi Card
1 GB Sandisk Ultra II SD
PdAir leather case - Nintendo DS metal case
various smaller CF and SD cards
all kinds of USB cables and accessories
-------------------------------------------------------------
Previous computers: TI 99/4A, ZX81, C64, Amiga 500, Apple Powerbook 100
Previous PDA's: Palm 1000, Palm III, Palm V, Palm Vx, Audiovox Maestro Pocket PC, Psion 5mx
Current PDA: Palm Tungsten E2
Current favourite: Zaurus C3100 - my "micro laptop"

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Beta 4 Questions - Logfiles In Flash And More
« Reply #1 on: May 25, 2006, 09:10:46 am »
Quote
previous Beta versions have used the flash to write logfiles - potentially wearing the flash rom out relatively quickly. Is this still the case with beta 4?
No idea for beta4, but with previous betas I just disabled the syslogd.

Quote
I am trying to set up a normal etc/fstab, so that my C3100 HDD partitions, a CF card and an SD card work (currently my HDD partition 1 is recognized as CF, and all the other partitions are invisible).  Has anyone done this? Could you please share your fstab file?
AFAICT, /etc/fstab is not used during bootup, it is only of use after bootup and you wish to manually mount partitions. To automount partitions see this thread for details:

https://www.oesf.org/forums/index.php?showt...=16560&hl=fstab

Basically you need to edit /etc/pcmcia/ide.opts. The advantage is that your HDD gets mounted correctly whether or not you have a CF inserted when booting.

-- cheers
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

emip

  • Newbie
  • *
  • Posts: 29
    • View Profile
Beta 4 Questions - Logfiles In Flash And More
« Reply #2 on: May 25, 2006, 09:32:08 am »
In beta4 the fstab file /is/ used.
I've edited it to mount my microdrive partitions. They are now mounted correctly at boot.

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Beta 4 Questions - Logfiles In Flash And More
« Reply #3 on: May 25, 2006, 01:03:54 pm »
Quote
In beta4 the fstab file /is/ used.
I've edited it to mount my microdrive partitions. They are now mounted correctly at boot.
Interesting. How does it handle a CF card being IN/OUT during boot? In beta3 (and older) if CF is not present during boot then microdrive is hda, however if CF is present then CF becomes hda and microdrive becomes hdc. This behaviour kind of messes up the entries in /etc/fstab. That is why the ide.opts method was better (after I fixed the bug   )

-- cheers
« Last Edit: May 25, 2006, 01:06:55 pm by desertrat »
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

GadgetGuy

  • Sr. Member
  • ****
  • Posts: 321
    • View Profile
    • http://
Beta 4 Questions - Logfiles In Flash And More
« Reply #4 on: May 26, 2006, 09:13:30 am »
Quote
No idea for beta4, but with previous betas I just disabled the syslogd.

How do you disable syslogd?
Zaurus C-3100 from PriceJapan with OZ 3.5.4.1. Opie and GPE
Ambicom CF WL1100C Wifi Card and Symbol Wireless Networker CF Wifi Card
1 GB Sandisk Ultra II SD
PdAir leather case - Nintendo DS metal case
various smaller CF and SD cards
all kinds of USB cables and accessories
-------------------------------------------------------------
Previous computers: TI 99/4A, ZX81, C64, Amiga 500, Apple Powerbook 100
Previous PDA's: Palm 1000, Palm III, Palm V, Palm Vx, Audiovox Maestro Pocket PC, Psion 5mx
Current PDA: Palm Tungsten E2
Current favourite: Zaurus C3100 - my "micro laptop"

GadgetGuy

  • Sr. Member
  • ****
  • Posts: 321
    • View Profile
    • http://
Beta 4 Questions - Logfiles In Flash And More
« Reply #5 on: May 26, 2006, 09:14:09 am »
Quote
In beta4 the fstab file /is/ used.
I've edited it to mount my microdrive partitions. They are now mounted correctly at boot.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=128396\"][{POST_SNAPBACK}][/a][/div]

Could you please share your fstab file?
Zaurus C-3100 from PriceJapan with OZ 3.5.4.1. Opie and GPE
Ambicom CF WL1100C Wifi Card and Symbol Wireless Networker CF Wifi Card
1 GB Sandisk Ultra II SD
PdAir leather case - Nintendo DS metal case
various smaller CF and SD cards
all kinds of USB cables and accessories
-------------------------------------------------------------
Previous computers: TI 99/4A, ZX81, C64, Amiga 500, Apple Powerbook 100
Previous PDA's: Palm 1000, Palm III, Palm V, Palm Vx, Audiovox Maestro Pocket PC, Psion 5mx
Current PDA: Palm Tungsten E2
Current favourite: Zaurus C3100 - my "micro laptop"

jerrybme

  • Hero Member
  • *****
  • Posts: 639
    • View Profile
    • http://
Beta 4 Questions - Logfiles In Flash And More
« Reply #6 on: May 26, 2006, 03:16:23 pm »
Quote
Could you please share your fstab file?
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]
Here' mine but you must remember, you should tweak it to fit how you've got your drive partitiioned. I've got 4 partitions on mine (4th partition is not in fstab as it is my swap partition and I use a seperate script to activate it)
Code: [Select]
/dev/mtdblock2    /      jffs2    rw  1  1
/dev/hdc1    /mnt/cf  auto    noauto,owner    0  0
/dev/mmcblk0p1  /mnt/card    auto    noauto,owner    0  0
none  /dev/pts    devpts    gid=5,mode=620    0  0
proc  /proc  proc    defaults    0  0
/dev/hda1    /mnt/ide    ext2    defaults    0  2
/dev/hda2    /mnt/ide2    ext2    defaults    0  3
/dev/hda3    /mnt/ide3    ext2    defaults    0  4
To understand the various options, take a look here: [a href=\"http://www.tuxfiles.org/linuxhelp/fstab.html]http://www.tuxfiles.org/linuxhelp/fstab.html[/url]

Cheers,
Jerry
SL-C3100
Angstrom-GPE
Lexar SD 1 GB
PQI 2GB CF
Ambicom WL1100 CF

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Beta 4 Questions - Logfiles In Flash And More
« Reply #7 on: May 27, 2006, 05:29:25 am »
Quote
How do you disable syslogd?
Edit /etc/rc.d/rc.sysinit and comment out the line /sbin/syslogd -S

-- cheers
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

GadgetGuy

  • Sr. Member
  • ****
  • Posts: 321
    • View Profile
    • http://
Beta 4 Questions - Logfiles In Flash And More
« Reply #8 on: May 27, 2006, 10:48:01 am »
Thanks, jerrybme and desertrat!
Zaurus C-3100 from PriceJapan with OZ 3.5.4.1. Opie and GPE
Ambicom CF WL1100C Wifi Card and Symbol Wireless Networker CF Wifi Card
1 GB Sandisk Ultra II SD
PdAir leather case - Nintendo DS metal case
various smaller CF and SD cards
all kinds of USB cables and accessories
-------------------------------------------------------------
Previous computers: TI 99/4A, ZX81, C64, Amiga 500, Apple Powerbook 100
Previous PDA's: Palm 1000, Palm III, Palm V, Palm Vx, Audiovox Maestro Pocket PC, Psion 5mx
Current PDA: Palm Tungsten E2
Current favourite: Zaurus C3100 - my "micro laptop"

InSearchOf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1144
    • View Profile
    • http://
Beta 4 Questions - Logfiles In Flash And More
« Reply #9 on: May 27, 2006, 03:27:59 pm »
Another option for your syslog dilema... if you would to continue logging but not to your flash... you could reroute your logs to write to an internal/external drive via fstab... and save your precious NAND... :-) ... just giving you an alternate option...
Sharp Zaurus SL-C3100 and SL-6000L
pdaXrom Developer
Please visit pdaXrom.org for updates
My Blog
IRC #pdaxrom @ FreeNode