OESF Portables Forum

Everything Else => General Support and Discussion => Zaurus General Forums => Archived Forums => Software => Topic started by: bam on February 03, 2006, 10:48:54 pm

Title: Swapfile And Cacko
Post by: bam 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.
Title: Swapfile And Cacko
Post by: qx773 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.
Title: Swapfile And Cacko
Post by: bam on February 04, 2006, 12:00:20 am
forgot to add it to /etc/fstab, oops.
Title: Swapfile And Cacko
Post by: xamindar 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?
Title: Swapfile And Cacko
Post by: qx773 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.
Title: Swapfile And Cacko
Post by: bluedevils 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.
Title: Swapfile And Cacko
Post by: xamindar 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.
Title: Swapfile And Cacko
Post by: qx773 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.
Title: Swapfile And Cacko
Post by: xamindar 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]


  ???
Title: Swapfile And Cacko
Post by: qx773 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.
Title: Swapfile And Cacko
Post by: bluedevils 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?
Title: Swapfile And Cacko
Post by: bam on February 13, 2006, 03:05:18 pm
yea...
Title: Swapfile And Cacko
Post by: qx773 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.
Title: Swapfile And Cacko
Post by: bluedevils 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.
Title: Swapfile And Cacko
Post by: brashley46 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.
Title: Swapfile And Cacko
Post by: xamindar on February 14, 2006, 05:50:52 am
http://my-zaurus.narod.ru/usbstorage.html (http://my-zaurus.narod.ru/usbstorage.html)