maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Did I just erase my SD card? (https://talk.maemo.org/showthread.php?t=80096)

radical7dreamer 2011-11-18 09:28

Did I just erase my SD card?
 
I installed nitdroid, my files where there on the SD card, and I did these magic commands:
(from here: http://www.youtube.com/watch?v=WY839T78qcY)

root
cd /home/user/MyDocs
bzip2 -d gingerbread_superuser.tar.bz2
cd /
mount /home /and
cd /and
tar xvf /home/user/MyDocs/gingerbread_superuser.tar

Cuz I wanted to overclock nitdroid, now there is not one file on my SD, it appears as a 5GB in windows explorer but it is a *GB SD card, did I delete my sd card or just unmounted it?
If so how do I go back?
Will the overclocking be affected?

sulu 2011-11-18 10:25

Re: Did I just erase my SD card?
 
No, you didn't erase anything. Actually you didn't do anything with your SD card.
According to the commands you provided and asuming they all were successful you now should have the contents of the archive in: /and

But there are two things that might have gone wrong:
1.
Code:

mount /home /and
Do you have a mount point called /ant? By default you don't. So if you didn't create it this didn't work. I that case you should have seen an error message here about a missing directory. As a consequence the subsequent cd command didn't work either and the contents of the archive should be directly in / now.

2.
Code:

tar xvf /home/user/MyDocs/gingerbread_superuser.tar
Regardless of the outcome of 1. you most likely don't have enough space in / or /ant (you don't have it on an unmodified N900). So you should have received an error message about insufficient disk space.

The worst thing that might have happened is that your / or /home partition is full now.

btw:
There's nothing "magic" about these commands. These are basic unix shell commands. I'd suggest to get familiar with them and understand what they are doing first before you try any further "magic".

erendorn 2011-11-18 11:38

Re: Did I just erase my SD card?
 
Quote:

Originally Posted by radical7dreamer (Post 1125388)
root
cd /home/user/MyDocs
bzip2 -d gingerbread_superuser.tar.bz2
cd /
mount /home /and
cd /and
tar xvf /home/user/MyDocs/gingerbread_superuser.tar

translation so that the magic disappear:

get admin rights
Change Directory to /home/user/MyDocs
use bzip2 with option Decompres on the file gingerbread_superuser.tar.bz2
Change Directory to /
attach filesystem from /home folder in the /and folder
Change Directory to /and
use tar with options eXtract, Verbose, File on the file /home/user/MyDocs/gingerbread_superuser.tar

radical7dreamer 2011-11-18 17:51

Re: Did I just erase my SD card?
 
Well I understood the code, exept for some parts like xvf. The magic comes when they mix together :)
I actually did not receive any warnings in the terminal, witch puzzles me. So how would I go and remount my sd card? Thanks for your help


All times are GMT. The time now is 03:45.

vBulletin® Version 3.8.8