Reply
Thread Tools
giannoug's Avatar
Posts: 334 | Thanked: 171 times | Joined on Dec 2009
#21
Originally Posted by DrWilken View Post
Then doing it as root should give *some* kind of (visual) output...
Lol, no

This does:
Code:
cat /dev/urandom > /cat/fb0
Shows some noice and then dies
 
Posts: 515 | Thanked: 266 times | Joined on Nov 2009 @ Oelsted, Denmark
#22
Shows *real* filesystems (mounted) and usage (excluding duplicate ubifs0:rootfs and pymaemo overmounts):

Code:
df -h -x bind -x ubifs
Output looks like this:
Code:
N900:~$ df -h -x bind -x ubifs
Filesystem            Size  Used Avail Use% Mounted on
rootfs                228M  170M   54M  76% /
tmpfs                 1,0M   92K  932K   9% /tmp
tmpfs                 256K   88K  168K  35% /var/run
none                   10M   72K   10M   1% /dev
tmpfs                  64M  4,0K   64M   1% /dev/shm
/dev/mmcblk0p2        2,0G  1,7G  180M  91% /home
/dev/mmcblk0p1         28G  3,0G   25G  11% /home/user/MyDocs
Instead of:
Code:
N900:~$ df -h
Filesystem            Size  Used Avail Use% Mounted on
rootfs                228M  170M   54M  76% /
ubi0:rootfs           228M  170M   54M  76% /
tmpfs                 1,0M   92K  932K   9% /tmp
tmpfs                 256K   88K  168K  35% /var/run
none                   10M   72K   10M   1% /dev
tmpfs                  64M  4,0K   64M   1% /dev/shm
/dev/mmcblk0p2        2,0G  1,7G  180M  91% /home
/opt/pymaemo/usr/lib/python2.5
                      2,0G  1,7G  180M  91% /usr/lib/python2.5
/opt/pymaemo/usr/share/pyshared
                      2,0G  1,7G  180M  91% /usr/share/pyshared
/opt/pymaemo/usr/lib/pyshared
                      2,0G  1,7G  180M  91% /usr/lib/pyshared
/opt/pymaemo/usr/share/python-support
                      2,0G  1,7G  180M  91% /usr/share/python-support
/opt/pymaemo/usr/lib/python-support
                      2,0G  1,7G  180M  91% /usr/lib/python-support
/dev/mmcblk0p1         28G  3,0G   25G  11% /home/user/MyDocs
I know it isn't actually a "one-liner" (only one command), but still useful...
__________________
Christian Wilken - tux-POWER.dk!
... May the Source be with You ...
 
Posts: 515 | Thanked: 266 times | Joined on Nov 2009 @ Oelsted, Denmark
#23
Backup to a remote server using tar/ssh:

Code:
tar cf - /local/path | ssh username@remote_server tar xfp - -C /remote/path
You need tar and ssh (client) installed.
__________________
Christian Wilken - tux-POWER.dk!
... May the Source be with You ...
 
Posts: 486 | Thanked: 251 times | Joined on Oct 2009
#24
Originally Posted by DrWilken View Post
Shows *real* filesystems (mounted) and usage (excluding duplicate ubifs0:rootfs and pymaemo overmounts):

Code:
df -h -x bind -x ubifs
The busybox df on the n900 does not have the -x option to df

Which df are you using and where did you get it? Are you using some PATH ordering to over ride busybox?
__________________
The Mini-USB plug is an improvement over both the Type B plug and the Micro-B plug.
 
Posts: 515 | Thanked: 266 times | Joined on Nov 2009 @ Oelsted, Denmark
#25
Originally Posted by j.s View Post
The busybox df on the n900 does not have the -x option to df

Which df are you using and where did you get it? Are you using some PATH ordering to over ride busybox?
I'm using coreutils-gnu among other of the -gnu packages and have put /usr/bin/gnu first in my $PATH.

Install it (and/or any of the other -gnu packages) and run this:
Code:
echo "# Set PATH
PATH=/usr/bin/gnu:$PATH
export PATH" >> ~/.profile
You can do it as both user and root (to set it up in both environments).
__________________
Christian Wilken - tux-POWER.dk!
... May the Source be with You ...
 

The Following User Says Thank You to DrWilken For This Useful Post:
Posts: 490 | Thanked: 191 times | Joined on May 2010
#26
Originally Posted by giannoug View Post
Hmm... /dev/dsp is the DSP and not the sound module, I think.
Digital Sound Processing. Might be wrong abbreviation, but it's the sound 100%

Originally Posted by DrWilken View Post
Then doing it as root should give *some* kind of (visual) output...
of course we run it as root.


Originally Posted by giannoug View Post
Lol, no

This does:
Code:
cat /dev/urandom > /cat/fb0
Shows some noice and then dies

no need for fb0 just run it as cat /dev/urandom

[Added] Ahh I c, it actually overwrites the display. Nice
btw, It's /dev/fb0

Last edited by aligatro; 2010-08-22 at 01:55.
 
Reply


 
Forum Jump


All times are GMT. The time now is 20:21.