Author Topic: Swapfile And Cacko  (Read 4833 times)

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Swapfile And Cacko
« on: February 03, 2006, 10:48:54 pm »
tried adding the swapon /hdd3/Documents/.swapfile line to /sbin/hddmount, and no-joy, any ideas? cant add it to rc scripts, the hdd isnt mounted yet....so thats out.
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

qx773

  • Full Member
  • ***
  • Posts: 219
    • View Profile
Swapfile And Cacko
« Reply #1 on: February 03, 2006, 11:58:17 pm »
I use the Sharp ROM.  You could try and create:

/etc/rc.d/rc5.d/S99local

and make it executable with

chmod 755 /etc/rc.d/rc5.d/S99local

and add whatever initialization commands that you want to the S99local file.  I use the S99local file to mount loop files.
« Last Edit: February 04, 2006, 12:00:23 am by qx773 »

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Swapfile And Cacko
« Reply #2 on: February 04, 2006, 12:00:20 am »
forgot to add it to /etc/fstab, oops.
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

xamindar

  • Hero Member
  • *****
  • Posts: 803
    • View Profile
    • http://www.radnimax.com
Swapfile And Cacko
« Reply #3 on: February 11, 2006, 10:51:57 pm »
I thought I might as well reply to this one rather than create a new thread.

Is it OK to leave a swapfile on that is on the internal hard drive while you plug it into a computer for usb storage?  I'm just curious because it seems that the whole drive becomes unavailable to the zaurus while in this mode and if that's the case wouldn't the swapfile be unavailable as well?  And then easily become corrupted?
SL-C3100 happily Dualbooting Japanese Rom 1.02 and Debian Eabi
Replaced internal CF with 8gb seagate cf hard drive
Ambicom CF GPS
CyberPower battery powered USB hub
D-link DCF-650W (MAN THIS THING IS HUGE!!)

qx773

  • Full Member
  • ***
  • Posts: 219
    • View Profile
Swapfile And Cacko
« Reply #4 on: February 12, 2006, 12:16:07 am »
Using the internal flash memory of a Zaurus for a swap file is not a good idea.  If the swap file becomes corrupted, it will most likely be because the flash memory burned out.

When the Zaurus is attached to a PC as a storage device, the Zaurus is basically interfacing with the PC through software called Samba.  Samba is an open source project which replicates the functionality of Windows networking code.  The name Samba is derived from the abbreviation for the protocol that Windows computers use to network with one another, SMB.  When the Zaurus SL-5500 interfaces with a PC as a storage device, it seems to use a special user name and password to log into the Windows PC which identifies the Zaurus as a storage device.  The Zaurus's other processes should continue to run.
« Last Edit: February 12, 2006, 12:18:59 am by qx773 »

bluedevils

  • Hero Member
  • *****
  • Posts: 1284
    • View Profile
    • http://
Swapfile And Cacko
« Reply #5 on: February 12, 2006, 12:10:00 pm »
I'm confused.  I thought he was talking about hdd3 (hard drive) and not the internal flash.

I'm also confused as to why PC storage is using samba.  PC storage shows up as a usb device and samba uses network shares.
I'm now an iphone user and use my zaurii as serial terminals, perl and shell scripting and when I need 640x480 screens

sl-c3100/pda cacko 1.23 | sl-6000l/needs battery | sl-c760/server pdaxrom rc12 | Former sl-5500/tkcrom owner (sister's birthday gift)

xamindar

  • Hero Member
  • *****
  • Posts: 803
    • View Profile
    • http://www.radnimax.com
Swapfile And Cacko
« Reply #6 on: February 12, 2006, 06:46:51 pm »
Quote
I'm confused.  I thought he was talking about hdd3 (hard drive) and not the internal flash.

I'm also confused as to why PC storage is using samba.  PC storage shows up as a usb device and samba uses network shares.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=114566\"][{POST_SNAPBACK}][/a][/div]

You are right bluedevils,  that is what I am talking about.
SL-C3100 happily Dualbooting Japanese Rom 1.02 and Debian Eabi
Replaced internal CF with 8gb seagate cf hard drive
Ambicom CF GPS
CyberPower battery powered USB hub
D-link DCF-650W (MAN THIS THING IS HUGE!!)

qx773

  • Full Member
  • ***
  • Posts: 219
    • View Profile
Swapfile And Cacko
« Reply #7 on: February 12, 2006, 11:55:53 pm »
You can search for the smb.conf file on your computer and look at its contents to see if it is using USB or something else as its network connection.

xamindar

  • Hero Member
  • *****
  • Posts: 803
    • View Profile
    • http://www.radnimax.com
Swapfile And Cacko
« Reply #8 on: February 13, 2006, 05:07:17 am »
Quote
You can search for the smb.conf file on your computer and look at its contents to see if it is using USB or something else as its network connection.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=114604\"][{POST_SNAPBACK}][/a][/div]


  ???
SL-C3100 happily Dualbooting Japanese Rom 1.02 and Debian Eabi
Replaced internal CF with 8gb seagate cf hard drive
Ambicom CF GPS
CyberPower battery powered USB hub
D-link DCF-650W (MAN THIS THING IS HUGE!!)

qx773

  • Full Member
  • ***
  • Posts: 219
    • View Profile
Swapfile And Cacko
« Reply #9 on: February 13, 2006, 01:56:12 pm »
I was responding to the previous comment questioning why Samba would be used to interface the Zaurus with a PC through a USB port.  Whether or not that is true can be verified by searching the Zaurus for the smb.conf file and looking at the contents of the smb.conf file.

bluedevils

  • Hero Member
  • *****
  • Posts: 1284
    • View Profile
    • http://
Swapfile And Cacko
« Reply #10 on: February 13, 2006, 02:23:30 pm »
qx773

I wasn't questioning samba on a USB connection (many people do it)  

I think you are confusing samba with pc storage on the Z.  PC Storage is when the Z can be seen as a flash card reader.  On the older Zs it would be the sd slot or the cf slot.  Windows see this as a device or local drive and *not as a network share*.  The newer Zs also map to the internal hard drives if they have one.

xamindar,

It is a good question, but since I rarely use PC storage I can't really answer that one yet.  My guess is that it *would* be a good idea to detach the swap when using pc storage.

Bam,

I assume you meant fstab solved it for you?
« Last Edit: February 13, 2006, 06:39:50 pm by bluedevils »
I'm now an iphone user and use my zaurii as serial terminals, perl and shell scripting and when I need 640x480 screens

sl-c3100/pda cacko 1.23 | sl-6000l/needs battery | sl-c760/server pdaxrom rc12 | Former sl-5500/tkcrom owner (sister's birthday gift)

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Swapfile And Cacko
« Reply #11 on: February 13, 2006, 03:05:18 pm »
yea...
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

qx773

  • Full Member
  • ***
  • Posts: 219
    • View Profile
Swapfile And Cacko
« Reply #12 on: February 13, 2006, 06:09:52 pm »
My impression from looking at the smb.conf file of my SL-5500 before it burned out was that it interfaced with a PC via the USB interface with a special user name and password in order to make the Zaurus file system accessible from the PC.  If I changed the interface specified in the smb.conf file to eth0, then I was able to use a wireless network card to make the Zaurus file system accessible from the PC.

bluedevils

  • Hero Member
  • *****
  • Posts: 1284
    • View Profile
    • http://
Swapfile And Cacko
« Reply #13 on: February 13, 2006, 06:38:02 pm »
AFAIK (unless someone was able to port it over) the 5500 does not have the pc storage feature.   PC storage started with the clamshell zauruii.
I'm now an iphone user and use my zaurii as serial terminals, perl and shell scripting and when I need 640x480 screens

sl-c3100/pda cacko 1.23 | sl-6000l/needs battery | sl-c760/server pdaxrom rc12 | Former sl-5500/tkcrom owner (sister's birthday gift)

brashley46

  • Sr. Member
  • ****
  • Posts: 277
    • View Profile
    • http://brashley46.no-ip.info
Swapfile And Cacko
« Reply #14 on: February 13, 2006, 11:33:21 pm »
Quote
AFAIK (unless someone was able to port it over) the 5500 does not have the pc storage feature.   PC storage started with the clamshell zauruii.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=114706\"][{POST_SNAPBACK}][/a][/div]
Ah, but Cacko backported this app to the 5500, and it works well with the 3.13 ROM as well as with his. I know, I use it myself. Much faster transferring files than going through the Zaurus File Transfer interface.
« Last Edit: February 13, 2006, 11:33:44 pm by brashley46 »
B. Ross Ashley
http://brashley46.livejournal.com
http://brashley46.no-ip.info
Home desktops: Hewlett-Packard Kayak XM600 running Xandros Desktop Home Edition Premium (4.1), on a P3 Coppermine processor w/ 20G harddrive, 256 MB RAM; Abyss X2 server running on a local shop-built special with Intel Celeron 1.8GHz processor, 40G harddrive running Win XP Home SP2; and my wife's eMac running OS X3.9

Handheld: C860 running CACkO 1.23, with a Panasonic Class 2 1G SD card and a GXT 1G CF card; AmbiCom WL1100C-CF wifi card, and a CE-AG06 camera card.