maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2008 / Maemo 4 / Chinook - Diablo (https://talk.maemo.org/forumdisplay.php?f=29)
-   -   Clone OS to SD Deb!! Boot from SD made EASY!! (https://talk.maemo.org/showthread.php?t=19639)

quicksilver524 2008-07-31 20:30

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
although when i connected it to my cp for the first time i think with this sd card my computer wanted to format it so i will try just for fun to see what happens?

fatalsaint 2008-07-31 20:35

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Don't see how it can hurt.

And don't use .docx.. when you save in Microsoft Word do a "Save As..." and select "File Type.." and use Plain Text .txt or Rich Text Format .rtf..

They are more universally compatible anyway.

quicksilver524 2008-07-31 20:39

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
good news, something new happened :) lol
i read through the log afterwards and it started the partition and it says it started the formatting process, the after a bunch of crazy stuff it says could not stat /dev/mmcblk0p2 --- no such file or directory

quicksilver524 2008-07-31 20:40

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
but it didn't corrupt this sd disk this time lol

fatalsaint 2008-07-31 20:48

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
reboot and run it again without doing anything else. Just reboot, application manager, install from file, run the .deb.

quicksilver524 2008-07-31 20:59

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
i closed all the programs that i had open rebooted and went to application manager to install again. it asked if i want to install it and said it had 0 KB.
so far just taking a long time installing nothing

quicksilver524 2008-07-31 21:02

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
~ $ df -h
Filesystem Size Used Available Use% Mounted on
/dev/mtdblock4 4.0M 2.6M 1.4M 64% /mnt/initfs
none 512.0k 88.0k 424.0k 17% /mnt/initfs/tmp
/dev/mtdblock4 249.5M 172.4M 77.1M 69% /
none 512.0k 88.0k 424.0k 17% /tmp
none 1.0M 60.0k 964.0k 6% /dev
tmpfs 1.0M 0 1.0M 0% /dev/shm
/dev/mtdblock4 249.5M 172.4M 77.1M 69% /flash
/dev/mmcblk0p2 1.6G 286.6M 1.3G 18% /device
~ $

quicksilver524 2008-07-31 21:03

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
thats new i will now try a reboot

fatalsaint 2008-07-31 21:06

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
you should be good now.

/dev/mmcblk0p2 1.6G 286.6M 1.3G 18% /device

1.6G partition on your MMC.

quicksilver524 2008-07-31 21:13

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
man that was like the longest issue ever, lol.
i was able to reboot from mmc2 with no issues, i did notice the memory changed in xterm i will post it just incase it means something. but it works, your a genius, that was rather fun though, i like the challenge. thank you very much for this ordeal. what was it that made this so difficult, i'm throwing away the other 2gb card just incase thiers something wrong with it.

quicksilver524 2008-07-31 21:14

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
~ $ Df -h
-sh: Df: not found
~ $ df -h
Filesystem Size Used Available Use% Mounted on
/dev/mmcblk0p2 4.0M 2.2M 1.8M 54% /mnt/initfs
none 512.0k 92.0k 420.0k 18% /mnt/initfs/tmp
/dev/mmcblk0p2 1.6G 286.6M 1.3G 18% /
none 512.0k 92.0k 420.0k 18% /tmp
none 1.0M 60.0k 964.0k 6% /dev
tmpfs 1.0M 0 1.0M 0% /dev/shm
/dev/mmcblk0p1 120.9M 0 120.9M 0% /media/mmc2
~ $

is this bad since it changed?

fatalsaint 2008-07-31 21:18

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
As far as why it didn't work.. can't help you.. we just did the same steps in order as they were supposed to be done. No idea how you ended up with an 800mb partition the first time.

Your setup now looks perfect. 1.6G /, and a 125mb FAT on /media/mmc2. That is what you should have. You are working and ready and to do whatever you want.

Don't throw away the other card... I highly doubt there is something wrong with it.. just put it in and re-format it and use the whole 2gb as storage.

IcyAirs 2008-07-31 21:20

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Thanks for the quick reply!

Just to be extra certain of there being no external factors affecting the df -h output, I've started the process from step one again.

Format internal memory card from N810
Reflash to Diablo
Format internal memory card again for good measure
Uninstall Maps and Tutorial
Delete preloaded Images, Music, and Documents files
Download install-tools from penguinbait's website
df -h from before install tools

~ $ df -h

Filesystem Size Used Available Use% Mounted on

/dev/mtdblock4 4.0M 2.6M 1.4M 64% /mnt/initfs

none 512.0k 76.0k 436.0k 15% /mnt/initfs/tmp

/dev/mtdblock4 249.5M 100.5M 149.0M 40% /

none 512.0k 76.0k 436.0k 15% /tmp

none 1.0M 52.0k 972.0k 5% /dev

tmpfs 1.0M 0 1.0M 0% /dev/shm

/dev/mmcblk0p1 1.9G 4.0k 1.9G 0% /media/mmc2


so at this point, there is a 1.9 gig free partition on my internal slot.
I ran install tools with no problems and reboot to SD card.

the relevant df -h gets me....

/dev/mmcblk0p2 1.6G total 1.2G used 428.8M free 73%

... Wait, the SD card boot here already has some settings from the last cloning (I moved around and renamed some of the folders in the Applications List to more suit my needs and it still has a wlan connection setting setup from before formatting)

This... is really odd? o_0 the memory card is retaining information somehow...

Gonna connect the n810 to Windows and perform a full format on the internal card rather than quick format

quicksilver524 2008-07-31 21:24

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
well i can't thank you enough. your advice was greatly appreciated

fatalsaint 2008-07-31 21:36

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Looks like it worked correctly though... 1.6G partition. It may not have re-formatted the SD card which means the data was still present and just innaccessible until the partition table was fixed by the Install tools..

Shouldn't be a problem.. but you could start over if you like. That is what you want to see there.

@Quicksilver

No Problem.. just glad we eventually got it working for you.

mrgreaper 2008-07-31 21:37

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Quote:

Originally Posted by fatalsaint (Post 209104)
mrgreaper - reboot your tabled and run it again.

that worked a treat thank you

quicksilver524 2008-07-31 21:44

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
one last question.
is it safe to delete install tools from the file manager?
i assume never remove install tools from the application manager as well right?

fatalsaint 2008-07-31 21:46

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Safe to delete them from both.

ranph 2008-08-01 07:49

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Seems to got it working.
Needed to do it three times before my n810 could install the deb.
I only have tow remarks now.

1. You scared the living hell out of me with that wav. (btw are you dutch?)
2. I searched whole of google for that menu button. Could kind folks on here put a screen with that button :-)

IcyAirs 2008-08-01 09:08

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Okay, I'm just confounded now.

Windows slow format in FAT32, power down and reboot n810, clone completely clean copy of Diablo (newly flashed, nothing in documents/images/etc), and after install tool finishes, booting into SD gets me back the files i had in the clone directory from before i formatted.

Except, instead of 620 MB or so of useable space, now i have 410MB of it. Where is all this junk data coming from... do i have a bad internal memory card or something?

A strange thing i've noticed is that i haven't needed to install install-tools more than once anymore. the first few times i had to reboot it inbetween 2 "installs" (penguinbait mentioned that it has something to do with the tablet needing to correctly remount the drive after newly partitioning it), but now it is capable of installing it straight up... hmm....

so something is being retained despite flash and formatting... maybe i should pull battery, flash, format, pull battery and try again...

st5150 2008-08-01 09:12

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Quote:

Quote:

Originally Posted by st5150 (Post 208867)
Hey guys, I'd like your input and advice on this....

On my N810 I'm running chinook, cloned to the internal built-in 2gig SD card using penguinbait's deb. I'm on the fence with diablo. I'd like to install diablo on the internal flash and keep my existing chinook install on the internal 2gig, then dual boot between the two. Can I do this? What's the best way? Input and suggestions are welcomed.


Quote:

Originally Posted by fatalsaint (Post 208971)
@ST5150

If you already have it cloned to your SD.. just reflash to Diablo, then uninstall Penguinbait's Install tools.. and Install Penguinbaits Bootmenu deb (which auto-detects partitions and writes a boot menu)..

That should give you diablo on Flash, and your current chinook on the SD card..

I think :D

Thanks. I have chinook cloned to the built-in internal 2gig SD card. Since I *really* don't want to damage or risk damaging my chinook 2gig install, can someone else confirm that flashing to diablo and then installing http://penguinbait.com/bootmenu-installer.deb will reach my goal?

Just wanted to bump this up for a second opinion before I risk thrashing my setup. Can anyone else provide me some guidance?

possessedskier 2008-08-01 12:06

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Quote:

Originally Posted by IcyAirs (Post 209277)
Okay, I'm just confounded now.

Windows slow format in FAT32, power down and reboot n810, clone completely clean copy of Diablo (newly flashed, nothing in documents/images/etc), and after install tool finishes, booting into SD gets me back the files i had in the clone directory from before i formatted.

Except, instead of 620 MB or so of useable space, now i have 410MB of it. Where is all this junk data coming from... do i have a bad internal memory card or something?

...

so something is being retained despite flash and formatting... maybe i should pull battery, flash, format, pull battery and try again...

I've just noticed this same issue. I'm reflashing my N800 to try and solve a rapid battery drain problem that only happened when booted to the cloned OS on my 4gb mmc2. I removed the 4gb sd card and reformatted it to one 4gb fat32 partition using gparted on my laptop running Ubuntu Linux. I reflashed the N800 with Diablo, downloaded Install Tools, removed the external sd card and cloned OS to the newly formatted 4gb internal sd card before installing anything on the base OS. When I booted into the newly cloned OS all the programs from the old cloned OS, email accounts with downloaded email, and contacts were there. No browser bookmarks though. I had installed nothing on the newly flashed OS. I did remove the battery before flashing and I haven't put the external sd card back in since I took it out to clone the OS.

I hope the reflash and reclone fixed the battery drain problem I was having in the cloned OS, or I'll have to try the manual method of cloning the OS so that I get a clean install.

Edit #1: None of the programs that are there from my previously cloned OS are showing up in the installed applications list of the Application Manager. They are all listed, and runable!!! (did I just invent a new word - runable?), in the application menu. They are not installed in the base OS.

fatalsaint 2008-08-01 18:51

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
not so sure a quick fomat on windows is going to erase all the data. repartioning does not for sure. if you rebuild the partition to what it was before the files may still be there.

think u need to completely reformat. you can do it right from the tablet.. look back a page or two for what i told quick to do with sfdisk.. that wll make 1 large partition and reformat the whole thing into ext2... that should work. or try a full slow reformat in windows.

if they still show up use dd like suggested by someone else in this thread.

gemniii42 2008-08-01 19:02

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Quote:

Originally Posted by ranph (Post 209262)
Seems to got it working.
Needed to do it three times before my n810 could install the deb.
I only have tow remarks now.

1. You scared the living hell out of me with that wav. (btw are you dutch?)
2. I searched whole of google for that menu button. Could kind folks on here put a screen with that button :-)

http://www.internettablettalk.com/fo...ad.php?t=18512

buttons

possessedskier 2008-08-01 19:28

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Quote:

Originally Posted by fatalsaint (Post 209381)
not so sure a quick fomat on windows is going to erase all the data. repartioning does not for sure. if you rebuild the partition to what it was before the files may still be there.

think u need to completely reformat. you can do it right from the tablet.. look back a page or two for what i told quick to do with sfdisk.. that wll make 1 large partition and reformat the whole thing into ext2... that should work. or try a full slow reformat in windows.

if they still show up use dd like suggested by someone else in this thread.

I used gparted to:
1) delete all partitions
2) created one large fat32 partition
3) format the fat32 partition

Even if remnants of the old data was still on the sd card, any usable pointers to it should not be found by the new install. I could run every program that I had installed on the old OS clone.

possessedskier 2008-08-03 20:47

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Ok, so today I decided to give it one more try. I repartitioned and reformatted the 4gb SD card to one large ext2 partition. I took both SD cards out of the N800 and reflashed it with Diablo then I downloaded and installed install tools to clone the OS to the internal 4gb card. This time it's a clean install. I don't see any of the applications from the old clones.

douwen 2008-08-04 17:02

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
hi , here i have a question about bootmenu.conf,
i want to boot from internel MM Card, so i set my bootmeu.conf as following, after initfs_flash, it did boot from as i wish( from internel MM Card ,i mean , the MENU_2) , however, i found i lost the entry to boot into internel flash,
does i miss something? how can i set the bootmenu.conf, so as to make the default device is mmc card and also make me could choose to boot to internal flash? thanks!
--------------------------------------------
.........
# menu items
MENU_MIN=2 # first item index

#no need to redefine
#MENU_1_NAME="Internal flash"
#MENU_1_ID="flash"

MENU_2_NAME="Internal MMC card, partition 2, ext2"
MENU_2_ID="mmc2"
MENU_2_DEVICE="${INT_CARD}p2"
MENU_2_MODULES="mbcache ext2"
MENU_2_FSTYPE="ext2"
MENU_2_FSOPTIONS="noatime"
[ -d "/sys/block/${INT_CARD}/${MENU_2_DEVICE}" ] || MENU_2_NAME="(${MENU_2_NAME}) N/A"

MENU_3_NAME="External MMC card, partition 2, ext2"
MENU_3_ID="mmc12"
MENU_3_DEVICE="${EXT_CARD}p2"
MENU_3_MODULES="mbcache ext2"
MENU_3_FSTYPE="ext2"
MENU_3_FSOPTIONS="noatime"
[ -d "/sys/block/${EXT_CARD}/${MENU_3_DEVICE}" ] || MENU_3_NAME="(${MENU_3_NAME}) N/A"

MENU_4_NAME="Power off (when not on charger)"
MENU_4_ID="off"
....
-------------------------------------------------

penguinbait 2008-08-06 19:29

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Well I see this thread has been being used, but I was out of town. Rather than go through and answer questions that people may not need answered anymore. Please let me know if anyone still needs help with anything.


Just from briefly reading some, I have some comments.

Yes you need to run it more than one time usually on the first time. It will then work usually after that unless you alter the partitions sizes again.

Apps showing up after card has been formatted and partitioned. The only time this would happen is if your card was in a bad state when you tried to refomat/partition it. So for example, run fsck prior to reformat/partition. I have seen this personally and fsck fixed it.

Setting the default device for booting is not done in the bootmenu

As root run

chroot /mnt/initfs cal-tool --set-root-device ask:mmc2
or
chroot /mnt/initfs cal-tool --set-root-device ask:flash

Or whatever partition you want.

hope this clears up some confusion...

douwen 2008-08-08 03:53

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
hi, penguinbait ,
have you updated install-tools.deb recently?today i use it to clone diablo OS to mmc2, all procedure successfully, but when i reboot and choose to boot from mmc2, it always said "boot from mmc2 failed, boot from flash..", and boot to my internel flash Diablo,
BTW: my internel MMC card is brand new and i think there is no problem with it.

penguinbait 2008-08-08 14:22

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Quote:

Originally Posted by douwen (Post 211466)
hi, penguinbait ,
have you updated install-tools.deb recently?today i use it to clone diablo OS to mmc2, all procedure successfully, but when i reboot and choose to boot from mmc2, it always said "boot from mmc2 failed, boot from flash..", and boot to my internel flash Diablo,
BTW: my internel MMC card is brand new and i think there is no problem with it.

The deb has not been updated. Occaisionally the clone will happen and it will appear to be successful, but it was not. Boot to flash and re-install it again.

TheGogmagog 2008-08-11 18:10

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Hi, penguinbait.
Thanks for the debs. I understand the OS2008 Feature upgrade requires a modified initfs flasher for the boot menu. (Post 20, bottom of first page) Do I understand this correctly and can you notify us when you have updated the debs?

I tried fanoush's instructions, but upon #tar zxvf initfs_flasher.tgz, I got Tar: invalid gzip magic.

[Edit:] It seems the penguinbait debs have either been updated or worked fine all along. Another report of them working was enough for me to download and try again.

st5150 2008-08-11 23:37

Re: Clone OS to SD Deb!! Boot from SD made EASY!!
 
Try gunzip initfs_flasher.tgz then tar -xvf initfs_flasher.tar

jhford 2008-08-17 19:24

Help Please
 
When I go penguinbait.com and click install-tools-N810e.deb the file doesn't run or install -- it opens and I can read some of the text. Am I doing something stupid?
Thankds

bunanson 2008-08-17 20:31

Re: Help Please
 
Quote:

Originally Posted by jhford (Post 214684)
When I go penguinbait.com and click install-tools-N810e.deb the file doesn't run or install -- it opens and I can read some of the text. Am I doing something stupid?
Thankds

Let the pointer stays on the choice for a few second a menu will come up and choose save file. Or right click, something like that.

bun

jhford 2008-08-17 21:17

Re: Help Please
 
Quote:

Originally Posted by bunanson (Post 214698)
Let the pointer stays on the choice for a few second a menu will come up and choose save file. Or right click, something like that.

bun

I meant to say that I browsed to the file with my N810 rather than my desktop. Is that wrong?

Also, I took your advice, right clicked and saved the file to external memory. I then tried to install from file using Application Manager and got the error "Unable to install..."

bunanson 2008-08-17 21:52

Re: Help Please
 
Quote:

Originally Posted by jhford (Post 214705)
I meant to say that I browsed to the file with my N810 rather than my desktop. Is that wrong?

Also, I took your advice, right clicked and saved the file to external memory. I then tried to install from file using Application Manager and got the error "Unable to install..."

1) Have to dl and install from internal flash, dl to ext card will NOT work.
2) Only for N800 with ONE card in or N810 with NO card
3) check swap file, have to be OFF.

some step to step instructions here, http://www.internettablettalk.com/fo...ad.php?t=22155

Hope this helps,


bun

jhford 2008-08-17 22:03

Re: Help Please
 
Quote:

Originally Posted by bunanson (Post 214712)
1) Have to dl and install from internal flash, dl to ext card will NOT work.
2) Only for N800 with ONE card in or N810 with NO card
3) check swap file, have to be OFF.

some step to step instructions here, http://www.internettablettalk.com/fo...ad.php?t=22155

Hope this helps,


bun

Are you sure your #2 is correct? The link on Penguinbait's site is entitled "Install Tools External 810 Slot."

bunanson 2008-08-17 22:42

Re: Help Please
 
Quote:

Originally Posted by jhford (Post 214716)
Are you sure your #2 is correct? The link on Penguinbait's site is entitled "Install Tools External 810 Slot."

YUP. It is FOR ext slot does NOT mean you can do it from there.
dl or transfer to int flash and try. Remove ext card and uncheck swap file.
bun

jhford 2008-08-17 22:52

Re: Help Please
 
Quote:

Originally Posted by bunanson (Post 214722)
YUP. It is FOR ext slot does NOT mean you can do it from there.
dl or transfer to int flash and try. Remove ext card and uncheck swap file.
bun

Bun
I did everything you suggested. Same error message. "Unable to install..."

bunanson 2008-08-17 23:10

Re: Help Please
 
Quote:

Originally Posted by jhford (Post 214724)
Bun
I did everything you suggested. Same error message. "Unable to install..."

1st being 1st, check the dl file. If not possible, re dl again.

and post your system info. I think you are doing N810 and tried to install MMC boot into internal SD, right?

I do not know which one you are using, here are the byte size on a winPC

install-tools.deb 3,743
install-tools.ad.tar 5,774
install-tools-N810e.deb 3,744

And sure, you have only ONE EXTERNAL.txt or INTERNAL.txt on your system, right? I think this is not important, though

Edit: according to PB's instruction, ONLY ONE .txt is important. so throw away the other one you are NOT using.


bun


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

vBulletin® Version 3.8.8