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)

rokafellaskank 2010-05-06 18:05

how to cd to memory card
 
Hi guys, could anyone tell me how to cd to the memory card in x-terminal.

Also, how can I delete commands that I've used before in x-terminal.

Cheers.

CepiPerez 2010-05-06 18:06

Re: how to cd to memory card
 
cd /media/mmc1 (sd card)
cd /home/user/MyDocs (internal mem 32gb)

Megaltariak 2010-05-06 18:07

Re: how to cd to memory card
 
- cd /media/mmc1/
- I forgot where the history file is

rokafellaskank 2010-05-06 18:14

Re: how to cd to memory card
 
cheers guys

GameboyRMH 2010-05-06 18:22

Re: how to cd to memory card
 
To clear bash history:

echo > ~/.ash_history

^not a typo BTW

Then close terminal.

Joorin 2010-05-06 18:27

Re: how to cd to memory card
 
Quote:

Originally Posted by CepiPerez (Post 646841)
cd /media/mmc1 (sd card)
cd /home/user/MyDocs (internal mem 32gb)

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.

rokafellaskank 2010-05-06 18:44

Re: how to cd to memory card
 
Quote:

Originally Posted by GameboyRMH (Post 646880)
To clear bash history:

echo > ~/.ash_history

^not a typo BTW

Then close terminal.


That's great, thanks.

cpitchford 2010-05-06 19:06

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.

weeeelll.. kind of..
actually the 32gig is split 3 ways:
  • /home (2gigs) for all you settings and installed applications (that have been optified)
  • 768Meg of swap memory space
  • the rest is MyDocs
the root (/) is actually a 256meg flash storage device.. completely different to the emmc..

GameboyRMH 2010-05-06 19:13

Re: how to cd to memory card
 
Yeah you gotta remember that you're starting with 32GB in "drivemaker's gigabytes" :rolleyes: so it's really closer to 30 right off the bat.

rokafellaskank 2010-05-07 11:36

Re: how to cd to memory card
 
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.

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:47.

vBulletin® Version 3.8.8