OESF Portables Forum

Everything Else => Sharp Zaurus => Model Specific Forums => Distros, Development, and Model Specific Forums => Archived Forums => C1000/3x00 General discussions => Topic started by: DoTheDog on August 22, 2005, 11:44:42 pm

Title: /home Full C3100 Help!
Post by: DoTheDog on August 22, 2005, 11:44:42 pm
Hi all, I just got a new c3100 in Japan about two weeks ago and have been loving it. I have been using meanie's guide here:
http://www.users.on.net/~hluc/myZaurus/ (http://www.users.on.net/~hluc/myZaurus/)
It has been great. Well, after installing a bunch of apps I noticed that I was getting kinda low on space on the /home drive (about 12MB left out of 89MB). That wasn't a problem until, I tried reinstalling Debian Pocketworkstation using xqt-debian-install.sh version 0.3.7. It failed saying that I was out of room on /home. I checked it (df -h) and sure enough it was completely full.

I tried running meanie's script to move all the . files out of /home/zaurus and that only freed up about 300K. I have been looking all over my /home drive to find the culprit but can't seem to. Anyone have any advice on where to look to free up more space? I want to get Debian back on. I was liking it alot but needed to install Open Office.

Any and All help is appreciated

Rob

Oh yeah, forgot to mention, I am running the stock Sharp Rom...
Title: /home Full C3100 Help!
Post by: Meanie on August 23, 2005, 03:07:04 am
Quote
Hi all, I just got a new c3100 in Japan about two weeks ago and have been loving it. I have been using meanie's guide here:
http://www.users.on.net/~hluc/myZaurus/ (http://www.users.on.net/~hluc/myZaurus/)
It has been great. Well, after installing a bunch of apps I noticed that I was getting kinda low on space on the /home drive (about 12MB left out of 89MB). That wasn't a problem until, I tried reinstalling Debian Pocketworkstation using xqt-debian-install.sh version 0.3.7. It failed saying that I was out of room on /home. I checked it (df -h) and sure enough it was completely full.

I tried running meanie's script to move all the . files out of /home/zaurus and that only freed up about 300K. I have been looking all over my /home drive to find the culprit but can't seem to. Anyone have any advice on where to look to free up more space? I want to get Debian back on. I was liking it alot but needed to install Open Office.

Any and All help is appreciated

Rob

Oh yeah, forgot to mention, I am running the stock Sharp Rom...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=92923\"][{POST_SNAPBACK}][/a][/div]

You probably filled up /hdd2 already. On the c3000, /home is stored on flash which is only 16MB and /home is allocated 4MB of it.
The c3100 has 128MB flash as far as i know, and i guess, both /home and your applications are installed there.
I have about 240MB of applications under /hdd2 (which is why I had to use cramfs to compress some of them)
See whether there is anything on /hdd2 (i assume that is where the flash is mounted but i don't really know for sure since i dont have a c3100 yet) that can be moved off to /hdd3 and/or compressed
Title: /home Full C3100 Help!
Post by: DoTheDog on August 23, 2005, 09:57:34 am
Meanie, Thanks for the reply. BTW you have a killer site for this stuff. Thanks for putting it out there for us!

On a df -h hdd2 shows up as only 9.5MB (hdd1 is the same) so I guess I would want to move stuff to hdd3.  Both hdd1 and hdd2 only have 1MB of the 9.5MB used. Any help on what to move/link? I have read in some threads that some stuff cannot be moved to the microdrive due to boot and suspend issues that may affect stability. As I mentioned in the first post I have already run your script to move all the . files.
Title: /home Full C3100 Help!
Post by: bam on August 23, 2005, 03:54:18 pm
how do you check how much is in home, and how much is availiable?
Title: /home Full C3100 Help!
Post by: bluedevils on August 23, 2005, 04:24:52 pm
I assume this would do it.

Code: [Select]
df -k
Title: /home Full C3100 Help!
Post by: DoTheDog on August 23, 2005, 08:26:50 pm
Actually it is "df -h" without the quotes. -h is for human readable I believe...
Title: /home Full C3100 Help!
Post by: bam on August 23, 2005, 11:06:10 pm
cool thanks
Title: /home Full C3100 Help!
Post by: DoTheDog on August 24, 2005, 09:31:09 am
quick update: I freed up about 1MB by clearing the netfront3 cache. I'm still wondering what else I can move off of there to make more room. Are there any other log files besides dmesg? I looked in /var/log and there isn't much there...
Title: /home Full C3100 Help!
Post by: MONVMENTVM on August 24, 2005, 09:38:29 am
oh yeah... i have almost the same problem with my c3100. i wanted to install xqt jumbopackage. i have about 17MB free on /home.
Title: /home Full C3100 Help!
Post by: DoTheDog on August 26, 2005, 12:46:46 pm
Another quick update:
I created about 10MB of space by uninstalling FireFox. I realized that I had a different version running in Debian PocketWorkstation already. So I really didn't need it in X/Qt.
Title: /home Full C3100 Help!
Post by: bluedevils on August 26, 2005, 04:35:21 pm
quick question (almost related).  If the 128 is used for home, then where does the hdd3 (~3GB?) user space reside in the filesystem scheme?
Title: /home Full C3100 Help!
Post by: DoTheDog on August 29, 2005, 11:14:13 pm
If you do a "df -h" you should see it mounted on /dev/hda3.
Title: /home Full C3100 Help!
Post by: bluedevils on August 30, 2005, 04:53:37 pm
I don't have 3100 (yet).  Where does /dev/hda3 mount to?

Quote
If you do a "df -h" you should see it mounted on /dev/hda3.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=93708\"][{POST_SNAPBACK}][/a][/div]
Title: /home Full C3100 Help!
Post by: Meanie on August 30, 2005, 09:08:06 pm
Quote
I don't have 3100 (yet).  Where does /dev/hda3 mount to?

Quote
If you do a "df -h" you should see it mounted on /dev/hda3.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=93708\"][{POST_SNAPBACK}][/a][/div]
[div align=\"right\"][a href=\"index.php?act=findpost&pid=93814\"][{POST_SNAPBACK}][/a][/div]

On a C3000 /dev/hda3 is mounted to /hdd3

Can someone post the output of df -h for a C3100 and maybe if possible also the directory structure so I will be able to build more compatible ipks. you probably can run `ls -RF|grep /`
Title: /home Full C3100 Help!
Post by: DoTheDog on August 31, 2005, 12:27:32 am
Meanie,
Here is the df -h
# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                   32.0M     32.0M         0 100% /
/dev/root                32.0M     32.0M         0 100% /
/dev/mtdblock3           89.0M     73.4M     15.6M  82% /home
/dev/ram1                44.0k     29.0k     15.0k  66% /dev
none                      1.0M     36.0k    988.0k   4% /dev/shm
/dev/hda1                 9.5M      1.0M      8.0M  11% /hdd1
/dev/hda2                 9.5M      1.0M      8.0M  11% /hdd2
/dev/hda3                 3.8G      1.3G      2.5G  34% /hdd3  

I am having trouble with the ls -RF | grep /
I am getting a bunch of garbage characters, then when I try to highlight it to copy it kills the terminal.

I:ll give it another go.
Title: /home Full C3100 Help!
Post by: DoTheDog on August 31, 2005, 12:34:36 am
Here is the ls -RF |grep / results. bad characters and all. I:m not sure why it is doing this. I used your jaen ipk so that I could have both Japanese and English working. It works for most stuff. The translator has been a godsend. But for whatever reason the qconsole (and the terminal app as well~ don't like Japanese for some reason...

# ls -RF |grep /
Applications/
Settings/
./Applications:
Contents/
IR/
ImageNote_Files/
MusicPlayer/
Network/
addressbook/
dtm/
helpbrowser/
netfront3/
qtmail/
todolist/
./Applications/Contents:
TOEIC® 鐓�鐔緒�/
�����/
�鴻���若��/
���潟�����若��/
絎����沿�/
絎����鐓�鐔種�鐓�鐔�
�㏍���鐓�鐔逸�鐓�鐔醐�/
./Applications/Contents/TOEIC® 鐓�鐔緒�:
weekly TOEIC���鴻�� mini-training/
./Applications/Contents/TOEIC® 鐓�鐔緒�/weekly TOEIC���鴻�� mini-training:
./Applications/Contents/�����:
./Applications/Contents/�鴻���若��:
羆��c��綽��������潟�����若�潟�鴻�ゃ�潟�謂��������5/
羆��c��綽����莊居��激�с�����<�ゃ��������4鐔���膈����沿�����/
./Applications/Contents/�鴻���若��/羆��c��綽��������潟�����若�潟�鴻�ゃ�潟�謂��������5:
./Applications/Contents/�鴻���若��/羆��c��綽����莊居��激�с�����<�ゃ��������4鐔���膈����沿�����:
./Applications/Contents/���潟�����若��:
./Applications/Contents/絎����沿�:
./Applications/Contents/絎����鐓�鐔種�鐓�鐔�
���㏍�吾�с����X/
./Applications/Contents/絎����鐓�鐔種�鐓�鐔����㏍�吾�с����X:
./Applications/Contents/�㏍���鐓�鐔逸�鐓�鐔醐�:
./Applications/IR:
modules/
./Applications/IR/modules:
./Applications/ImageNote_Files:
./Applications/MusicPlayer:
./Applications/Network:
modules/
./Applications/Network/modules:
./Applications/addressbook:
./Applications/dtm:
./Applications/helpbrowser:
./Applications/netfront3:
cache/
plugins/
./Applications/netfront3/cache:
./Applications/netfront3/plugins:
./Applications/qtmail:
./Applications/todolist:
./Settings:
Title: /home Full C3100 Help!
Post by: xfaethorx on August 31, 2005, 03:14:03 pm
is there a replacement for th cp command that supports the copying of symbolic links as the default one DOESNT if we can find one we can successfully copy all the home directories to larger storage and just simlink to it!
Title: /home Full C3100 Help!
Post by: bluedevils on August 31, 2005, 04:39:20 pm
why wouldn't you be able to use tar?  That preserves symlinks.
Title: /home Full C3100 Help!
Post by: xfaethorx on September 01, 2005, 03:06:49 am
i think mv does as well, the bottom line is you could move quite a bit of /home safely over to the HDD or SD card as long as the symlinks are maintained. I'm a bit reluctant to mv a directory incase I break something .

Point is you could move /home/ in its entrity to /hdd3 and symlink to it . Sure that will mean the HDD is doing more work than usual and you may consider using an SD card instead as that then means less moving parts, so less performance for your HDD to do.
Title: /home Full C3100 Help!
Post by: Meanie on September 01, 2005, 06:59:29 am
Quote
i think mv does as well, the bottom line is you could move quite a bit of /home safely over to the HDD or SD card as long as the symlinks are maintained. I'm a bit reluctant to mv a directory incase I break something .

Point is you could move /home/ in its entrity to /hdd3 and symlink to it . Sure that will mean the HDD is doing more work than usual and you may consider using an SD card instead as that then means less moving parts, so less performance for your HDD to do.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=94035\"][{POST_SNAPBACK}][/a][/div]

It isnt that bad, actually it is   This is the situation on the C3000. /home is only 4MB and almost everything lives on the microdrive.

Btw, what is in /hdd1 and /hdd2? I guess only directories and symlinks?
Title: /home Full C3100 Help!
Post by: DoTheDog on September 02, 2005, 12:57:12 am
Hey Meanie,
Not sure, on /hdd1 there is a .sys directory. Inside that directory there are two files:
hdimage2.tgz and hdlist1.dat all in about 3K is all. On /hdd2 same .sys directory with nothing in it. Seems a waste of 19MB...

Rob
Title: /home Full C3100 Help!
Post by: xfaethorx on September 02, 2005, 04:02:17 am
Quote
Quote
i think mv does as well, the bottom line is you could move quite a bit of /home safely over to the HDD or SD card as long as the symlinks are maintained. I'm a bit reluctant to mv a directory incase I break something .

Point is you could move /home/ in its entrity to /hdd3 and symlink to it . Sure that will mean the HDD is doing more work than usual and you may consider using an SD card instead as that then means less moving parts, so less performance for your HDD to do.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=94035\"][{POST_SNAPBACK}][/a][/div]

It isnt that bad, actually it is   This is the situation on the C3000. /home is only 4MB and almost everything lives on the microdrive.

Btw, what is in /hdd1 and /hdd2? I guess only directories and symlinks?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=94078\"][{POST_SNAPBACK}][/a][/div]

meanie.. I'm not sure but HDD1 and HDD2 look like other partitions either way they only hold the lost+found directories on my C3100..

i guess I'm going to have to do an mv on a bunch of directroies and see what happens !
Title: /home Full C3100 Help!
Post by: DoTheDog on September 13, 2005, 10:25:44 pm
xfaethorx, did you succeed in moving stuff to your hard drive from your /home dir? Let me know if it worked and what you moved/linked.

Quote
Quote
Quote
i think mv does as well, the bottom line is you could move quite a bit of /home safely over to the HDD or SD card as long as the symlinks are maintained. I'm a bit reluctant to mv a directory incase I break something .

Point is you could move /home/ in its entrity to /hdd3 and symlink to it . Sure that will mean the HDD is doing more work than usual and you may consider using an SD card instead as that then means less moving parts, so less performance for your HDD to do.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=94035\"][{POST_SNAPBACK}][/a][/div]

It isnt that bad, actually it is   This is the situation on the C3000. /home is only 4MB and almost everything lives on the microdrive.

Btw, what is in /hdd1 and /hdd2? I guess only directories and symlinks?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=94078\"][{POST_SNAPBACK}][/a][/div]

meanie.. I'm not sure but HDD1 and HDD2 look like other partitions either way they only hold the lost+found directories on my C3100..

i guess I'm going to have to do an mv on a bunch of directroies and see what happens !
[div align=\"right\"][a href=\"index.php?act=findpost&pid=94242\"][{POST_SNAPBACK}][/a][/div]
Title: /home Full C3100 Help!
Post by: xfaethorx on September 14, 2005, 04:40:19 am
Quote
xfaethorx, did you succeed in moving stuff to your hard drive from your /home dir? Let me know if it worked and what you moved/linked.

Quote
Quote
Quote
i think mv does as well, the bottom line is you could move quite a bit of /home safely over to the HDD or SD card as long as the symlinks are maintained. I'm a bit reluctant to mv a directory incase I break something .

Point is you could move /home/ in its entrity to /hdd3 and symlink to it . Sure that will mean the HDD is doing more work than usual and you may consider using an SD card instead as that then means less moving parts, so less performance for your HDD to do.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=94035\"][{POST_SNAPBACK}][/a][/div]

It isnt that bad, actually it is   This is the situation on the C3000. /home is only 4MB and almost everything lives on the microdrive.

Btw, what is in /hdd1 and /hdd2? I guess only directories and symlinks?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=94078\"][{POST_SNAPBACK}][/a][/div]

meanie.. I'm not sure but HDD1 and HDD2 look like other partitions either way they only hold the lost+found directories on my C3100..

i guess I'm going to have to do an mv on a bunch of directroies and see what happens !
[div align=\"right\"][a href=\"index.php?act=findpost&pid=94242\"][{POST_SNAPBACK}][/a][/div]
[div align=\"right\"][a href=\"index.php?act=findpost&pid=95750\"][{POST_SNAPBACK}][/a][/div]


the HDD is fat so it wont maintain the symlinks you'd have to convert part of or if not all of your drive to compensate for that.

I managed to move some applications over , thunderbird , firefox and abiword but it copies the symlink as a file so it'll make it bigger on the HDD if your bothered.

I did this BEFORE i finally got my hands on mkcramfs.

I've used mkcramfs since to cram the java of blackdown and a few other bits and bats.

I think the best thing for people to do is to look at what your installing, decide wether or not the install directory well NEVER be written to and then

1. cram it if you can and mount it at boot time.

2. if you can't cram it see if you can move it! thing is here if you want proper symlinks convert your HDD , i haven't I need to do more reading before I start breaking shit on here. So the rule of thumb here is you can symlink TO the directory  from say /home to /hdd3 but you CANT put a symlink INSIDE that directory so be careful with what you move! Look at the directory structure before you move it. TBH i did a copy first and symlinked to it, tested ALL functionailty and then completed the "move" by removing the backed up directory!