Author Topic: Moving to SD... again.  (Read 10542 times)

bluey

  • Full Member
  • ***
  • Posts: 125
    • View Profile
    • http://
Moving to SD... again.
« Reply #15 on: February 09, 2004, 12:33:23 pm »
Quote
Copied the libncurses file from /usr/lib to /lib and recopied it to the name of the libncurses link on /usr/lib. Everything is working  - nice one Bluey, you here of the Zaurus nation !

I almost miss all of those link errors when installing stuff  -NOT  :-D

I\'m glad I could help!

Maybe I\'m feelin\' it wrong, but it seems applications start faster with this partition scheme, than with just one partition mounted as /opt and /usr linked to it, which was my previous setup.


See you later!  :wink:
SL-5500 - OZ 3.5.3
256Mb Kingston SD Card
64Mb PQI CF Card
Netgear MA701 WiFi CF Card
Mandriva GNU/Linux LE2005
Dreaming of a C model...

Anonymous

  • Guest
Moving to SD... again.
« Reply #16 on: February 12, 2004, 09:40:49 am »
When you originally set up the partions, how did you divide up the card?  50-50 for both /usr and /opt?  Should /usr get a larger share of the partition, or do the app installations fill up /opt quicker?  I have a 128 meg SD card that I am looking to carve up.

bluey

  • Full Member
  • ***
  • Posts: 125
    • View Profile
    • http://
Moving to SD... again.
« Reply #17 on: February 12, 2004, 11:27:05 am »
I believe that most apps get installed to the /opt/QtPalmtop which is similar to /usr, but some things still go to /usr, mostly libs.

I did 50/50, but with a 128Mb card, maybe you should try to see the usage you\'d get. Maybe a 50/50 for start, install all the apps you need right now, and if needed reajust the partitions.

My occupation is of 75Mb in /opt and 34Mb in /usr.

(But /opt has also /home, and must have a couple of video files, which I don\'t recall their size, but they are small)


Have a wonderful day!
SL-5500 - OZ 3.5.3
256Mb Kingston SD Card
64Mb PQI CF Card
Netgear MA701 WiFi CF Card
Mandriva GNU/Linux LE2005
Dreaming of a C model...

Anonymous

  • Guest
Moving to SD... again.
« Reply #18 on: February 12, 2004, 12:45:41 pm »
Thanks Bluey.  I\'m going to try making a 48MB partition for /usr, and leave the rest for opt, home, and root.  I like the idea of having /usr, with all of those links buried in there, in a separate partition.  That may be a reson why you see some performance gains.  

I\'ll see how 48MB works out after a week or so and let you all know.  Unfortunately I messed up some filesystem moves this morning, and I need to reflash my machine again.  If you use the lcd, is it still a typo, or a tap-o?  

khim

  • Newbie
  • *
  • Posts: 8
    • View Profile
    • http://
Moving to SD... again.
« Reply #19 on: February 29, 2004, 06:32:05 pm »
Ok. I admit I do not yet have Zaurus, I\'m only thinking about it. But still...

Why do you feel any need to split you card at all ??? To avoid symlinks ? I do it with bind option on my server system.

Here is /etc/fstab :
...
/dev/md3                                /mnt/RAID-A     reiserfs        defaults,usrquota,grpquota      1       1
/dev/md4                                /mnt/RAID-B     reiserfs        defaults,usrquota,grpquota      1       1
/dev/md5                                /mnt/RAID-C     reiserfs        defaults,usrquota,grpquota      1       1
/mnt/RAID-A/home                        /home           -               bind            0       0
/mnt/RAID-C/systems                     /var/systems    -               bind            0       0
/mnt/RAID-A/ftp                         /var/lib/ftp    -               bind            0       0
/mnt/RAID-C/www                         /var/www        -               bind            0       0
/mnt/RAID-B/squid-cache                 /var/cache/squid        -       bind            0       0
...

/home and /var/ftp are directories as some programs like but both are in fact from /dev/md3 ... This way I can move any part of system to any RAID and still programs will not be confused (if you\'ll simplink /home to /mnt/RAID-A/home then /home/.. will not be equal to / and this confuses some scripts but when bind mount is used everythin works as expected). Why it does not work on Z ? Why play with symplinks or split puny card in half when bind mount can solve all problems ? What I\'m missing here ?
SL-С860 PXA255
Cacko 1.21a ROM
Hitachi MicroDrive 4GB HDD

Anonymous

  • Guest
Moving to SD... again.
« Reply #20 on: March 01, 2004, 09:33:25 pm »
Perhaps that mount option could be unknown, until know...

I\'d rather read \"you can you use this xpto option, it works without the need for that kind of kung-foo\" than that \"why don\'t you use that option? are you ignorant?\"...

I\'ll try it in the Z to see if it works, I believe it should...

Thanks.

Anonymous

  • Guest
Moving to SD... again.
« Reply #21 on: March 01, 2004, 09:47:24 pm »
It works.

khim

  • Newbie
  • *
  • Posts: 8
    • View Profile
    • http://
Moving to SD... again.
« Reply #22 on: March 13, 2004, 04:41:08 pm »
Quote
Perhaps that mount option could be unknown, until know...

I\'d rather read \"you can you use this xpto option, it works without the need for that kind of kung-foo\" than that \"why don\'t you use that option? are you ignorant?\"...

Oops. Sorry if I offended someone. It\'s well-known feature of Linux kernel 2.4.x (Al Viro was really proud three years ago when he finally was able to make it work) and it\'s documented (it\'s used to pull parts of devfs, procfs or just any partition trees in chroot jail, for example), it\'s not some undocumented trick so I just assumed it was tried and rejected. Why was it rejected ? I was confused: I never had any problem with bind mounts for last few years but I\'ve read a lot about \"symlink horrors\" on Z so I assumed something prevent you from bind mount on Z...
SL-С860 PXA255
Cacko 1.21a ROM
Hitachi MicroDrive 4GB HDD

braindrop

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
    • http://
Moving to SD... again.
« Reply #23 on: March 23, 2004, 03:43:35 pm »
just want to say thanks for the scripts, so far its working good.

not that any improvemwnts with the scripts are needed but if they were it would be kinda nice to start the script from the point of someone just popping in there sd card for the first time. i.e. have the fdisk part in there and each person just chooses the size of the partition. and maybe put that whole last part with the libncurses deal in the script as well

oh, and I am pretty new, is there a way to have root reflect the size correctly? i have a 256 sd but when i install to root it only shows 9660. or am i doing something dumb?

anyway thanks, i really like this setup so far.

braindrop

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
    • http://
Moving to SD... again.
« Reply #24 on: March 24, 2004, 07:38:15 pm »
one thing i have noticed is longer load times for the apps on the sd, figured this is probably normal but wanted to ask to make sure.  an example time: opera 6 takes on average about 6-8 seconds for the window frame to pop up and about another 15 sec for the black to go away before it loads the page.
i never timed it before but i noticed a definite increase here.

bluey

  • Full Member
  • ***
  • Posts: 125
    • View Profile
    • http://
Moving to SD... again.
« Reply #25 on: March 26, 2004, 11:10:31 pm »
SD access is rather slow, so it is normal that the load times increase. You\'ll notice that with the volume applet, which writes the current value to disk with a large frequency, which isn\'t noticed when you have have the conf files on the Z instead of on the SD, and it gets very slow while changing the volume.

The root size is what /dev/root has free, and not the SD card, that is why you see that value.

I\'ve been testing with the binds instead of breaking the card in two partitions. It works ok too, at least it seems so, I\'ve been without time to extend my testing.

I\'ll try to modify the script to use bind and that way it\'ll do everything or you, and no fdisk will be necessary.

I want pack the scripts on an ipk and make in run with opie-sh. One for creating everything, and another for recovering in case of some problem. When I do it, I\'ll post the ipk. Feel free to add and improve whatever you feel it should.


Greetings!
SL-5500 - OZ 3.5.3
256Mb Kingston SD Card
64Mb PQI CF Card
Netgear MA701 WiFi CF Card
Mandriva GNU/Linux LE2005
Dreaming of a C model...

catachresis

  • Newbie
  • *
  • Posts: 48
    • View Profile
    • http://
Moving to SD... again.
« Reply #26 on: March 27, 2004, 04:46:39 am »
Thanks bluey for your contributions!

Mahoro

  • Full Member
  • ***
  • Posts: 133
    • View Profile
Moving to SD... again.
« Reply #27 on: July 24, 2004, 01:09:01 pm »
Arr..... are those for multi-parition..??
I am doing @ it, but I have no idea what you guys talking...I am an n00b..
Zaurus 5500- 3.5.2 64mb memory
XP- Qtopia 1.7

Kingston CF 512 RAM on FAT
DigitFilm SD 256 RAM on ext2
Panasonic SD 256 RAM <- can't manage to put ext2 in it :(

Targus universal keyboard <- Not working in 3.5.2
Symbol CF wifi <- worked, but have a bump on the back of the card :(
Intel CF wifi <- not working well :(

2 broken stylus...(bought another one in Japan but I broke that within 2 week after. = o o = )
(managed to glue it w/ krazy glue :)

Battery box <-DIY (Stuffs were bought in RadioShack)

javamatte

  • Newbie
  • *
  • Posts: 18
    • View Profile
Moving to SD... again.
« Reply #28 on: October 15, 2004, 12:51:36 pm »
Looks like I caught this thread very late, but are there any updates, Bluey?

I should be receiving my Zaurus (SL-5500) early next week, and this sounds like EXCACTLY what I want to do with it.  I've got a 256M SD card, and I'd like to use all the SRAM for heap space, instead of file storage.

I'm a little worried about the earlier problems w/ libncurses and bash because I'm a Linux newbie.  I only know enough to be very dangerous

Let me know if you have a pretty good script to mount the whole card (using the bind mounts) and xfer the /usr and /opt dirs to the SD.

In regards to the slow performance of the SD cards, are you binding with sync or async?  I've heard that sync makes it slow, and since you aren't ejecting the card, maybe async would help?  I'm not sure of all the implications of doing this, though, so don't try it out just because I said so!

Thanks,
-javamatte

RickG03

  • Newbie
  • *
  • Posts: 3
    • View Profile
Moving to SD... again.
« Reply #29 on: October 18, 2004, 12:16:29 pm »
I would like to use these scripts to run /usr and /opt off a 256MB SD card. Reading through the posts, it seems that libncurses needs to be copied from /usr/lib to /lib. However, I don't have libncurses in /usr/lib and it does not appear to be available from the OZ feeds. Where can I get this library? Will a copy from another linux system work?

Thanks.

-Rick