Author Topic: Any Idea How To Chkdsk In Linux?  (Read 10649 times)

niv

  • Full Member
  • ***
  • Posts: 237
    • View Profile
Any Idea How To Chkdsk In Linux?
« on: June 26, 2005, 03:21:31 pm »
well obviosly it wasnt a good idea to use a 32Mb MMC.
I quickly filled it up.
stuff started looking wierd - then I realized why.

I deleted all the smb bin. any way to check the filesystem - 2 see I don't have any problems?

Niv
« Last Edit: June 26, 2005, 03:34:46 pm by niv »

Pyrates

  • Full Member
  • ***
  • Posts: 198
    • View Profile
    • http://www.pipsfrank.de
Any Idea How To Chkdsk In Linux?
« Reply #1 on: June 26, 2005, 03:28:15 pm »
The command is "fsck". Typing "man fsck" will tell you more (if you have manpages installed, probably not on a Z; google will help ). Of course, it might just be that you have to install fsck first...

Cheers
Philipp
\" ... and the Vogon will do things to you that you wish you\'d never been born, or, if you\'re a clearer minded thinker, that the Vogon had never been born.\"

niv

  • Full Member
  • ***
  • Posts: 237
    • View Profile
Any Idea How To Chkdsk In Linux?
« Reply #2 on: June 26, 2005, 03:34:12 pm »
10x mate
I found a bounce of other stuff on google.

no it seems funny, in order to fix the filesystem I need to install a new bin, thus make more problems
oh well maybe install to ram...
by the way, odd thing, I got the whole 32Mb stuff by:
0. moving the /opt to sd (14 MB)
1. adding connect + support
2. installing nano (which still aint working)
3. qpdf2

so I gather I should be looking to get 256 Mb - just for the applications?

Pyrates

  • Full Member
  • ***
  • Posts: 198
    • View Profile
    • http://www.pipsfrank.de
Any Idea How To Chkdsk In Linux?
« Reply #3 on: June 26, 2005, 06:46:26 pm »
Sorry, I don't understand what the question is now... I gather you don't have fsck (which ROM are you using?), so you'd have to install it, RAM sounds like a good idea. 32 MB is plenty space for applicatioins for me, what do you mean by "connect+support"? I'm not sure it matters, but you're asking for "looking to get 256", you mean like buying a new card?

Sorry, I'm not a native speaker, so...

Cheers
Philipp
\" ... and the Vogon will do things to you that you wish you\'d never been born, or, if you\'re a clearer minded thinker, that the Vogon had never been born.\"

niv

  • Full Member
  • ***
  • Posts: 237
    • View Profile
Any Idea How To Chkdsk In Linux?
« Reply #4 on: June 26, 2005, 06:56:38 pm »
Quote
Sorry, I don't understand what the question is now... I gather you don't have fsck (which ROM are you using?), so you'd have to install it, RAM sounds like a good idea. 32 MB is plenty space for applicatioins for me, what do you mean by "connect+support"? I'm not sure it matters, but you're asking for "looking to get 256", you mean like buying a new card?

Sorry, I'm not a native speaker, so...

Cheers
Philipp
[div align=\"right\"][a href=\"index.php?act=findpost&pid=85947\"][{POST_SNAPBACK}][/a][/div]

I did this steps:

note: mmc=sd (/media/card)

0. flash 3.5.3
1. cp -a /opt /media/card ; rm -rf /opt ; ls -s /media/card /opt
that moved 14 mb -> mmc
2. install hostap-modules so my wifi card work. install is to mmc.
3. ipkg install nano -d sd
4. ipkg install qpdf2 -d sd
5. df

mmc is 100% full

Pyrates

  • Full Member
  • ***
  • Posts: 198
    • View Profile
    • http://www.pipsfrank.de
Any Idea How To Chkdsk In Linux?
« Reply #5 on: June 27, 2005, 03:56:14 am »
Hmm, dunno. Do "cd /media/card" and then "du -h --max-depth=1" to find the dirs which use up the space. Add, and see if it's right (this doesn't count the files that are not in a subdir of /media/card). Maybe there were dependencies installed... did you do a df -h when there was nothing on the card to make sure the whole space is available for you?

Cheers
Philipp
\" ... and the Vogon will do things to you that you wish you\'d never been born, or, if you\'re a clearer minded thinker, that the Vogon had never been born.\"

JohnX

  • Full Member
  • ***
  • Posts: 126
    • View Profile
    • http://
Any Idea How To Chkdsk In Linux?
« Reply #6 on: June 29, 2005, 01:14:13 am »
niv: IIRC, / (ie, /dev/mtdblock4) is formatted as a jffs2 filesystem, and therefore is compressed.  So once you copy the files out of it they may take up more than the 12.9MB that the jffs2 fs occupies on mtdblock4
Zaurus SL-C1000 - Linux 2.6.22 - Angstrom/Debian dual boot - Ambicom 802.11b - 1GB Corsair SD
Nokia N800 - 2GB PQI SD card
Zaurus SL-5500 - OZ 3.5.3/Hentges T2/Opie - 64MB Lexar SD card

niv

  • Full Member
  • ***
  • Posts: 237
    • View Profile
Any Idea How To Chkdsk In Linux?
« Reply #7 on: June 29, 2005, 02:20:47 am »
Thanks JohnX,
didn't know that,
As I odered 512M SD @20$ I will have the room needed.

I will copy /opt as described. I notice I need to add the path and lib path to the .profile - so programs will run.
any other hints?