Author Topic: moving /home to /mnt/cf/home ?  (Read 8521 times)

padishah_emperor

  • Hero Member
  • *****
  • Posts: 849
    • View Profile
    • http://
moving /home to /mnt/cf/home ?
« Reply #15 on: May 09, 2004, 01:32:37 pm »
**thwack**

I tried and failed, ran into major problems. Namely that I could not boot up and had to reflash. You have a 6000, that\'s not an option for you so don\'t risk it. So everything is put back as was. Complete with my internal flash being slowly knawed away :-(

I want to see a ROM made like the one made on the 5500\'s where the entire home is on SD or CF by design. (I only have a 64MB MMC and 512MB CF BTW which is why I mentioned the CF)

I\'m running into a *slight* usability problem, the old problem of tinkering more than using it.

With sufficient storage, you could move some of the following maybe and symlink them back to /home:

/home/QtPalmtop
/home/root
/home/samba
/home/zaurus (if you have that)
/home/tmp

I\'m moving the tmp now to my 64MB mmc, in ext2 of course.
Left Linux and Linux PDAs... sorry, got boring.  Switched to Mac.

Ethereal

  • Full Member
  • ***
  • Posts: 236
    • View Profile
    • http://
moving /home to /mnt/cf/home ?
« Reply #16 on: May 09, 2004, 02:52:13 pm »
Quote
So everything is put back as was. Complete with my internal flash being slowly knawed away :-(


Does anyone know what the nominal read/write lifespan of the Z\'s internal flash is, or how that translates into normal activities of daily use?  Just wondering if this is the sort of thing that could really be the \"weakest link\" in the Z\'s longevity, or will most normal Z users run out heartbeats before we run out of flash cycles?
SL-6000L, Sharp ROM 1.12;
Socket Rev 2.5 CF Bluetooth::SE T608;
Sandisk 512MB SD, formatted ext2;
Pocketop IR Keyboard

padishah_emperor

  • Hero Member
  • *****
  • Posts: 849
    • View Profile
    • http://
moving /home to /mnt/cf/home ?
« Reply #17 on: May 09, 2004, 03:01:45 pm »
100,000 ops I believe
Left Linux and Linux PDAs... sorry, got boring.  Switched to Mac.

DrWowe

  • Hero Member
  • *****
  • Posts: 696
    • View Profile
    • http://
moving /home to /mnt/cf/home ?
« Reply #18 on: May 09, 2004, 03:16:25 pm »
Also, the figure is per-erase block.  Since jffs2 is designed to spread the wear evenly around, it will last for a very long time under normal usage.

padishah_emperor

  • Hero Member
  • *****
  • Posts: 849
    • View Profile
    • http://
moving /home to /mnt/cf/home ?
« Reply #19 on: May 09, 2004, 06:21:37 pm »
thats right

I\'d still like a ROM with all the rw operations on external media.
Left Linux and Linux PDAs... sorry, got boring.  Switched to Mac.

Tyris

  • Newbie
  • *
  • Posts: 38
    • View Profile
    • http://
moving /home to /mnt/cf/home ?
« Reply #20 on: May 11, 2004, 11:17:07 am »
Quote
thats right

I\'d still like a ROM with all the rw operations on external media.


Thanks for the warning about moving all of /home. I had my suspicion that it would not  try to mount  /mnt/card before trying to read /home/etc.

One wrinkle I did come across while moving /home/QtPalmtop:
Remember to run /sbin/ldconfig after the move.

I had a few problems running items from the settings menu tab. So I tried to run \"netsetup\" from the terminal window to see if there was any more error info available. Here\'s what I saw:
# ./netsetup
./netsetup: error while loading shared libraries: libnetgui.so.1: cannot load shared object file: No such file or directory

I had tried this at 2AM yesterady and gave up for the night. Woke up this morning, a little more clear headed  and ran ldconfig which fixed all of my errors. Things seem to be back to normal.

I now have 2.8M on used on internal ram. I\'ll attempt moving /home/root off shortly.
Here\'s the break down:
Filesystem                Size      Used Available Use% Mounted on
/dev/root                28.0M     27.6M    424.0k  99% /
/dev/ram1                44.0k     29.0k     15.0k  66% /dev
/dev/mtdblock3           29.0M      2.8M     26.2M  10% /home
none                      1.0M     60.0k    964.0k   6% /dev/shm
/dev/mmcda1             236.2M      6.6M    217.4M   3% /usr/mnt.rom/card
/dev/hda1               122.2M    122.2M         0 100% /usr/mnt.rom/cf


I need to return that CF back to my digital cam and get a real one for the 6000

EDIT:
Seems it needs ldconfig run after each reboot. I may stick this into rc.local until I can find a more elegant solution. Any ideas?

-T

Joltz

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • http://
moving /home to /mnt/cf/home ?
« Reply #21 on: May 16, 2004, 09:59:35 pm »
Quote
I just got my 6000 yesterday -- I\'ve been without a PDA since my Casio E100 days long ago. Im blown away by the capabilities of this thing, wireless networking worked first try. I\'ve got smbmount mounting my mp3\'s from my linux desktop. this thing is unbelievable.  

I did have a few issues:

Im trying to reduce the wear and tear on internal flash by moving everything offboard.
Has anyone tried moving /home or /home/zaurus to /mnt/cf/ via a symlink?

I did a cp -a /home/zaurus to my cf card (formated vfat) then symlinked it back to /home. Unfortunately none of my address or calendar entries were visible until I undid the changes.


-T



I\'m new to the Zaurus.
I tried this on my 5600 and it filled the SD card???
I would like to move my user files and as many programs as possible to the SD card so that I can install more programs.
I\'ve seen in the Calendar program a menu item that says Link and then lists the SD and CF cards. Does this means the program will find calendar files on these cards?

So much to learn. Such a cool computer.
thanks

jz
_________________
SL-5600, Sharp 1.21 ROM
Kernel 2.4.18-rmk7-pxa3-embedix
Linksys wcf12 CF Wi-Fi,  Socket Rev 2.5 CF Bluetooth::SE T608;
Lexar 256MB SD, formatted ext2
Lexar 256MB CF, formatted fat

Tyris

  • Newbie
  • *
  • Posts: 38
    • View Profile
    • http://
moving /home to /mnt/cf/home ?
« Reply #22 on: May 17, 2004, 12:47:02 am »
Quote
I\'m new to the Zaurus.
I tried this on my 5600 and it filled the SD card???
I would like to move my user files and as many programs as possible to the SD card so that I can install more programs.  
I\'ve seen in the Calendar program a menu item that says Link and then lists the SD and CF cards. Does this means the program will find calendar files on these cards?  


I filled my SD card when I did a cp -a /home /mnt/sd -- it seems that cp -a did not maintain symlinks, but actually followed them which is why I had to tar the directory.

Start out by moving /home/zaurus to your SD, not /home:

Apparently moving /home will make the Z unbootable, as you have to have the SD card mounted before /home/etc will be visible. The catch is that /home/etc must be visible to mount the SD during bootup.

I\'ve moved /home/zaurus to /mnt/sd/home/zaurus using this procedure:

1. tar your /home/zaurus (needed to do this to maintain symlinks [if any])
2. make directory /mnt/sd/home/
3. untar the zaurus.tar into /mnt/sd/home
4. rename /home/zaurus to something else
5. make a symlink from /mnt/sd/home/zaurus to /home/zaurus

That should do it.

If it works out, you can erase the renamed copy of \"zaurus\" in /home.
If that fails, remove the symlink, and change the renamed directory back to zaurus.

On mine, it moved all used data including address, calendar, todo lists over to the SD. I was adventurous enough to move /home/QtPalmtop over to /mnt/sd/home/QtPalmtop, but that requires that you run ldconfig every time you reboot or some of the settings programs fail. I attempted to put ldconfig into rc.sysinit and rc.local, but to no avail.

Let us know how it goes.

-T

Joltz

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • http://
moving /home to /mnt/cf/home ?
« Reply #23 on: May 17, 2004, 07:50:54 pm »
Tyris,

Thanks, your directions worked perfectly.  Now I\'m thinking of all the software I want to install.

jz
_________________
SL-5600, Sharp 1.21 ROM
Kernel 2.4.18-rmk7-pxa3-embedix
Linksys wcf12 CF Wi-Fi,  Socket Rev 2.5 CF Bluetooth::SE T608;
Lexar 256MB SD, formatted ext2
Lexar 256MB CF, formatted fat

jerbell

  • Newbie
  • *
  • Posts: 24
    • View Profile
moving /home to /mnt/cf/home ?
« Reply #24 on: May 18, 2004, 06:52:20 pm »
er wouldn\'t /mnt/sd still be using the internal flash? the sd card is mounted on /mnt/card

Tyris

  • Newbie
  • *
  • Posts: 38
    • View Profile
    • http://
moving /home to /mnt/cf/home ?
« Reply #25 on: May 18, 2004, 07:07:54 pm »
Quote
er wouldn\'t /mnt/sd still be using the internal flash? the sd card is mounted on /mnt/card


Good call. My intent was to say /mnt/card instead of /mnt/sd.

-T

Joltz

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • http://
moving /home to /mnt/cf/home ?
« Reply #26 on: May 20, 2004, 09:37:24 pm »
/mnt/sd would make sense. /mnt/card was a bit of a surprise to me. But easy to figure out in the end.
Thanks again,

jz
_________________
SL-5600, Sharp 1.21 ROM
Kernel 2.4.18-rmk7-pxa3-embedix
Linksys wcf12 CF Wi-Fi,  Socket Rev 2.5 CF Bluetooth::SE T608;
Lexar 256MB SD, formatted ext2
Lexar 256MB CF, formatted fat