maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Troubleshooting (https://talk.maemo.org/forumdisplay.php?f=6)
-   -   problem installin the OS on SD Card (https://talk.maemo.org/showthread.php?t=16737)

iliaden 2008-02-18 02:11

Re: problem installin the OS on SD Card
 
interesting:
I just found out that the command
# mount /dev/mmcblk0p1 /opt
works fine (gives no error message)

I'm thinking of reflashing my rom (to remove all the vain attempts once again) and formatting the card to have the 1st partition as the boot and the second as storage.
the problems I'm expecting (but praying that don't occur):
1) partition 2 will not be visible, even if formatted into FAT16 just because it's the second partition, not the first
2) the mount will once again be unsuccessful, yet it will work with the second partition (fat16)

I'm trying this because i'm out of ideas. If you have anything to suggest, i'll try it out.

bunanson 2008-02-18 03:18

Re: problem installin the OS on SD Card
 
First, installing the boot menu and cloning the Os are 2 different business. One does NOT affect the other and does not depend on the other. You can always clone the system 1st then install bootmenu or other ways around. It does not matter.

Patititon of the SD is the critical step. Formatting does not matter. You can do the fat16 formatting either before or after the Os cloning. Either way is fine.

Milhouse's script will format your system partition during the 0-4 .nupgrade.sh script. So again, formatting of the mmcblk0p2 is not necessary.


Finally, reflash your tablet is, again, not necessary. If you have to reinstall a lot of apps afterward, I would say just leave your tablet alone, should be fine. If your tablet is fresh anyway, reflash wont hurt.

Edit: Reflesh does hurt, i.e, you now will have to redo steps 1 - 6 of Milhouse's script. You may be able to avoid it if no reflesh.


Now, do you have anything to look at your disk? The one I like to use is diskUsage. It is a very convenient tool to look at your partition. Go www.gronmayer.com/it and search for it, install it and maybe that will help you to look at your SD disk. If not you can try either Control panel>memory or GPE file manager. They probably wont do squat if you have not format either partition.

For now, if you alread done all those dl wget, dl .nupgrade etc, you should not have to redo any of these. ALL you have to do is to partition your SD card, and just run the script, you are home.

Tell me I am full of BS.................

I am prepared.


bun

iliaden 2008-02-18 03:58

Re: problem installin the OS on SD Card
 
I don't think you understood the problem.

the ONLY step that I have not been able to complete was
# mount /dev/mmcblk0p2 /opt

this step is present in the script (./nupgrade 1 if i'm not mistaking)
I was not able to complete this step manually either.

right now, I am trying it again with a 1gb SD card.

edit: the boot menu installation was successful and flawles

edit: the reflashing of the device was a must since it copied everything on the internal memory, so i have every file in double, and 1kb free space.

edit: thanks for the hints on the formatting. Can you explain why I need to leave a second partition and not just have one, full-card boot partition?

ilia

P.S. just noticed (on 1GB card, but i guess its the same on 2GB previously used)

# sfdisk /dev/mmcblk0 -uM
0,256,06
,,,
[...]
Do you want to write this to disk? [ynq] y
Successfully wrote the new partition table

Re-reading the partition table ...
BLKRRPART: Device or resource busy
The command to re-read the partition table failed
Reboot your system now, before usink mkfs


this means something significant?

p.p.s. i was rebooting after this process before

bunanson 2008-02-18 04:33

Re: problem installin the OS on SD Card
 
Quote:

Originally Posted by iliaden (Post 143902)
Re-reading the partition table ...
BLKRRPART: Device or resource busy
The command to re-read the partition table failed
Reboot your system now, before usink mkfs


this means something significant?

p.p.s. i was rebooting after this process before

No. They all say that, just reboot and proceed with the script, you do not have to do anything else, ........um, maybe you have to, since your reflashed your system. Well, then you will have to go thru the same steps, but now you are better, right?

bun

iliaden 2008-02-18 04:45

Re: problem installin the OS on SD Card
 
IT WORKS!!!!!!!!!

on a 1GB card, it worked perfectly, i'll boot it in 3 min!

edit: it boots!!!!
now, i just have to find out whats wrong with the 2GB...

ideas:
1) no low level partitionning (whatever it is...)
2) corrupted card (or some parts)
3) i'll retry on another 2gb card tomorrow to see

thanks for your assistance.

P.S. before i've destroyed my work due to ignorance - will an old backup work on a mmc?

bunanson 2008-02-18 05:01

Re: problem installin the OS on SD Card
 
Quote:

Originally Posted by iliaden (Post 143914)
IT WORKS!!!!!!!!!

on a 1GB card, it worked perfectly, i'll boot it in 3 min!

edit: it boots!!!!
now, i just have to find out whats wrong with the 2GB...

ideas:
1) no low level partitionning (whatever it is...)
2) corrupted card (or some parts)
3) i'll retry on another 2gb card tomorrow to see

thanks for your assistance.


Congratulation! now if you just leave your tablet alone, no reflesh, you can partiton whatever SD cards you have and just type
'./nupgrade.sh wipe' they will do all steps 0-4 automatically and give a cloned system, be it 1G or 2G, or sometimes 16G if the card is right


Good job.


bun

bun

iliaden 2008-02-18 05:37

Re: problem installin the OS on SD Card
 
the main part is a success.

now, the finalizing touches - I have restored all the previous data from a backup; it's downloading the applications (I expect them to be done by morning... GMT-5)

is there any ways of setting the default boot device to mmc2 ext2?

I know reboots should never occur, but if they do and I forget that i'm booting from an SD i'll panick :(

I still believe that the problem is with the card itself...

ilia

iliaden 2008-02-18 05:59

Re: problem installin the OS on SD Card
 
HELP!!! (sorry, for disturbing again)

both boots (flash and mmc) became INCREDIBLY slow. the system boots fast, but afterwards it is unusable since it looks slower than a 386 with windows on it (i know what a 486 with windows 3.11 looks like, and what my nokia shows me is only worse)

any clue
1) why?
2) what to do?

iliaden 2008-02-18 06:07

Re: problem installin the OS on SD Card
 
it's getting worse and worse

is there any way of either:
1) removing the boot menu
2) while having the boot menu installed, connect to a pc and restore it to the factory settings (which, by experience, worked correctly?)

iliaden 2008-02-18 16:34

Re: problem installin the OS on SD Card
 
update:
I realized why the speed was so slow.
On my last backup, i had ~100 programs installed, as well as ~30 repositories. therefore the program restore feature ate all the ressources I had and froze. I reflashed and am restoring the applications manually. Once it's done, i'll recreate the second boot and it'll have all the apps already installed, thus (as i hope) working flawlessly.

Is my logic OK?


All times are GMT. The time now is 15:56.

vBulletin® Version 3.8.8