maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   how to cd to memory card (https://talk.maemo.org/showthread.php?t=52054)

ossipena 2010-05-07 11:40

Re: how to cd to memory card
 
Quote:

Originally Posted by Joorin (Post 646887)
It's interesting how this "32GByte myth" is kept alive.

Do a "df" in your XTerminal and you'll notice that the partition mounted under /home/user/MyDocs is around 28GByte in size. A 2GByte partition is mounted under /home/user and "the rest" is kind of available under / in the shape of 233MBytes.

http://wiki.maemo.org/N900_filesystem

it is a confusion between memory chip specs and partitioning...

GameboyRMH 2010-05-07 14:26

Re: how to cd to memory card
 
Quote:

Originally Posted by rokafellaskank (Post 647876)
guys, sorry to be a pain but could you tell me how to save different commands in x-terminal, so i don't have to type in the commands that i use all the time.
cheers.

You have to make a shellscript - this is just a plaintext file that you can execute like a .BAT file in Windows. For example this one will show you the reason for the last boot

Code:

#! /bin/sh
cat /proc/bootreason

You can handily run them from anywhere when you put them in /home/user/

Now you make it executable. Let's say you named the file bootreason. You enter:

chmod ug+x bootreason

Then you can handily run it from anywhere by simply entering

~/bootreason

You can do a lot more with shellscripts like accepting arguments, just do some searching.


All times are GMT. The time now is 17:13.

vBulletin® Version 3.8.8