![]() |
Re: Cloning OS to SD Card: Simplified instructions
Quote:
DiskUsage, gpe-filemanager: from www.gronmayer.com/it. emelfm2, forget where it came from, try google it and dl the .deb file for installation. post back if questions, bun |
Re: Cloning OS to SD Card: Simplified instructions
mmm, I'm almost there... can anyone help, please?
n800 OS2008. Carried out all the steps with no problems. I get the bootmenu, and can boot into flash as normal. Performed an " ./nupgrade.sh wipe" on my newly partitioned external 8GB SD. Went well, ended: ... /home/user/bin/tar: .: implausibly old time stamp 1970-01-01 01:00:00 Committing updates and Unmounting filesystems Done but when I select the second partition on "External SD card, partition 2, ext3", from the bootmenu, it says: Boot from mmc12 failed, booting from flash Here's my partition table; did I get it wrong? Nokia-N800-50-2:~# sfdisk -l /dev/mmcblk1 Disk /dev/mmcblk1: 249296 cylinders, 4 heads, 16 sectors/track Units = cylinders of 32768 bytes, blocks of 1024 bytes, counting from 0 Device Boot Start End #cyls #blocks Id System /dev/mmcblk1p1 0+ 232911 232912- 7453183+ b W95 FAT32 /dev/mmcblk1p2 232912 249295 16384 524288 83 Linux /dev/mmcblk1p3 0 - 0 0 0 Empty /dev/mmcblk1p4 0 - 0 0 0 Empty Nokia-N800-50-2:~# dumpe2fs -h /dev/mmcblk1p2 dumpe2fs 1.40.3 (05-Dec-2007) Filesystem volume name: Sardine Last mounted on: <not available> Filesystem UUID: c59a9e84-b7a7-4160-8942-f7a7b9ff4d32 Filesystem magic number: 0xEF53 Filesystem revision #: 1 (dynamic) Filesystem features: resize_inode dir_index filetype sparse_super Filesystem flags: unsigned directory hash Default mount options: (none) Filesystem state: clean Errors behavior: Continue Filesystem OS type: Linux Also, perhaps oddly, I'm unable to manually mount it: Nokia-N800-50-2:~# mount -r /dev/mmcblk1p2 /mnt mount: mounting /dev/mmcblk1p2 on /mnt failed Nokia-N800-50-2:~# mount -r -t ext2 /dev/mmcblk1p2 /mnt mount: mounting /dev/mmcblk1p2 on /mnt failed any ideas, please? thanks much... |
Re: Cloning OS to SD Card: Simplified instructions
oh, and:
Nokia-N800-50-2:/home/user/bin# fsck -f /dev/mmcblk1p2 fsck 1.40.3 (05-Dec-2007) e2fsck 1.40.3 (05-Dec-2007) Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 3A: Optimizing directories Pass 4: Checking reference counts Pass 5: Checking group summary information Sardine: ***** FILE SYSTEM WAS MODIFIED ***** Sardine: 20482/131072 files (0.6% non-contiguous), 298412/524288 blocks |
Re: Cloning OS to SD Card: Simplified instructions
just realised that /mnt isn't empty, so that was a foolish attempt, but it wasn't the problem:
Nokia-N800-50-2:/home/user/bin# mkdir /mnt2 Nokia-N800-50-2:/home/user/bin# mount -r /dev/mmcblk1p2 /mnt2 mount: mounting /dev/mmcblk1p2 on /mnt2 failed Nokia-N800-50-2:/home/user/bin# mount | grep mnt2 Nokia-N800-50-2:/home/user/bin# mount -r -t ext2 /dev/mmcblk1p2 /mnt2 mount: mounting /dev/mmcblk1p2 on /mnt2 failed |
Re: Cloning OS to SD Card: Simplified instructions
ah, I am an idiot :(
all working now. the two issues were: o nupgrade.sh defaults to ext2, but bootmenu.conf defaults to ext3. I changed the latter to ext2, and it now boots fine. o I couldn't mount the (otherwise fine) partition, as the ext2 kernel module wasn't loaded at that time. thanks for all the useful posts that made this so easy (user error aside) :) |
Re: Cloning OS to SD Card: Simplified instructions
at the risk of annoying everyone with yet another post...
I'm interested to compare the amounts of space used by the two filesystems (original jffs2 versus cloned ext2): Nokia-N800-50-2:~# df -k Filesystem 1k-blocks Used Available Use% Mounted on original: /dev/mtdblock4 257536 176744 80792 69% / cloned: /dev/mmcblk1p2 507748 281846 199688 59% / so jffs2 is giving me on average a 1.6 compression factor, meaning my original free space of 79MB might have given me around 126MB of usable app space. So my double sized (1/2 GB) ext2 partition is only giving me an extra 116MB of space. Interesting. I'll shut up now. |
Re: Cloning OS to SD Card: Simplified instructions
Ok I've read all the posts...ummm How many Megs of flash ram on the N800 do I need available for a successfull install? I've only 28 Mb available am I going to have to dump a lot of appsto get to xxMB or is this only going to work work with a fresh flash of OS2008?
TIA lorez1 |
Re: Cloning OS to SD Card: Simplified instructions
Quote:
|
Re: Cloning OS to SD Card: Simplified instructions
hey,
I know this is a repost, but I still have no answer. Maybe i'll be luckier on this thread... anyways, the question is: Is there a way to copy the flash boot from mmc and reflash it on the ROM? Of course, I understand that the entire boot from mmc must be <256mb, and I have had some "hints" The idea of creating a file (.jffs2 / .ext2) and then reflashing it with nandwrite sounds OK; I would just need more concise guidelines The idea of a direct tar after mounting both /dev/mtdblock4 and /dev/mmcblk*p* (bootable) sounds less promising since I don't understand from which boot i'd have to do this. If anyone has any clue, please be concise since I am not quite familiar with the syntax. Thank you. Ilia P.S. If you are wondering, I have played TOO MUCH with the card boot, and it would take weeks to get the flash boot to the same (perfect...:D) state as is my mmc boot right now. |
Re: Cloning OS to SD Card: Simplified instructions
Is there an ideal state for the SDHC card to be in when you first start on this process (i.e., doing the steps of Post #1 on this thread)? That is, is it best when you first insert the mmc for it to be
(a) formatted by the Panasonic SD formatter and left in that state? (b) formatted on a PC using the Windows format tool to make it Fat32? or (c) formatted within the NIT with the File Manager's format option? If (d) would be something one does on a Linux machine, that's not an option for me. I've managed this cloning once before, but the system went haywire (wouldn't load MicroB and wouldn't install or uninstall anything), so now I'm doing it again. I think I may have had a corrupt file somewhere in the system. But on this round, I've tried many times, but every time I can't get past the partitioning and formatting. Often, I get the partition1 formatted to DOS, and then I reboot and when I go to partition2 for mke2fs, the Tablet tells me I have a corrupt or unformatted card (or sometimes, at this point something else goes wrong). If it matters, the card is a SanDisk Extreme III 8GB. It is not the same card that I previously used for a boot mmc. It's brand new (or was!). |
Re: Cloning OS to SD Card: Simplified instructions
All -
Many thanks for the content in this thread. However is there any chance someone is working on summarizing it for the Wiki? My problem is that I rarely get to dedicate much continuous time to the task of getting my 810 to boot from external flash (or any other task) For instance yesterday I sat down to go thru steps 1-6, and in this thread and this thread there are over 580 messages for the similar problem. I got hung up at step 6, had to download it three times. Had to repair/diagnose two external hard drives for my daughter, cook several meals, vacuum, repair the network connections for the house (a wireless usb AP went down) redo the BT keyboard connection (took over 30 minutes), take out the trash, fix a door, finish grocery shopping, and all in almost random order, oh - and charge the tablet. Then at post #288 I see new instructions for nupgrade.sh, and am wondering what else is in the other 579 posts. So - if it's going to be "wikified" soon I'll wait rather than try to keep the posts organized in my brain. Again - thanks greatly for at least letting me realize the possibilities. |
Re: Cloning OS to SD Card: Simplified instructions
what do you mean by "go to" in "when I go to partition2 for mke2fs"? If you could post exactly what you're doing, and the responses you're getting, we can probably help.
Given that you're going to re-partition and re-format the card, it ought not to matter at all what state it is in prior to starting the procedure. |
Re: Cloning OS to SD Card: Simplified instructions
Hi, trying to move my OS 2006 to the RS-MMC in 770. I made it to the installation of e2fsprogs. I can't seem to install it from the xterm or the application manager. Any tips? I tried activating red pill mode and changed the distro to Gregale. When attempting install from xterm, I get the repeated error "ldconfig: can't open configuration file /etc/ld.so.conf: no such file or directory." Any advice?
|
Re: Cloning OS to SD Card: Simplified instructions
Quote:
MMC card problem, likely partition is not good. Get emelfm2, GPE filemanager, or diskUsage to look at the card before proceed. All are from maemo.org applications. bun |
Re: Cloning OS to SD Card: Simplified instructions
Quote:
Code:
sfdisk -l -uMCode:
Device Start End MiB #blocks Id SystemEDIT: Milhouse (or other file system guru), as you can see above, my cards were factory formatted with 0B FAT32, but you suggest using 0C FAT32 LBA. Why? |
Re: Cloning OS to SD Card: Simplified instructions
Quote:
I'll edit this post if I have more troubles... For now, it is working, so I think I'll let it go and come back in the morning. EDIT: It all went well after that one problem! Thanks everyone! |
Re: Cloning OS to SD Card: Simplified instructions
I have corrupted my memory card. A reinstall shows now I have divided my flash into 2 partions instead of the memory car. I now cannot reflash my N700 to recreate the fs on the card. How do I restore the old boot menu to get into the device again?
Any help is appreciated.... |
Re: Cloning OS to SD Card: Simplified instructions
Quote:
bun |
Re: Cloning OS to SD Card: Simplified instructions
Quote:
I get a boot screen that I think is from fanoush asking - Internal Flash (Internal MMC card partition 2. ext2) N/A (External MMC card partittion 2. ext2) N/A USB Hard Drive Power Off Since MMC is Not available, it boots to flash and bypass the USB. I had the bypass with white sceen prior and cannot remember how I solved that. I have full access to the box with Putty from both Winders and Linux. :confused: |
Re: Cloning OS to SD Card: Simplified instructions
I'm having trouble following you. It sounds from your last post like you can boot from flash but your earlier post sounds like you can't. If you're trying to reflash, first question I have is: What happens when you're attached by USB to your Windows box and use the standard Nokia flashing utility?
|
Re: Cloning OS to SD Card: Simplified instructions
Quote:
|
Re: Cloning OS to SD Card: Simplified instructions
Quote:
From the best I can gather, you were booting from a bootmenu that allowed you to choose booting from your MMC. This somehow failed and you removed the MMC and now the bootmenu stayed but you were NOT allow to choose MMC boot and it defaulted to flash boot. Please confirmed the story before the house doc making diagnosis and suggestions bun |
Re: Cloning OS to SD Card: Simplified instructions
Quote:
How to best get the device to recognize USB and then allow a new flash of either 2007HE or 2008 HE is what I am asking. From an earlier tip, I found the Panasonic Utility to erase the MMC card corrupted and did so from Windows. This box I use is a Linux box. I believe by holding the HOME key down I have entered the flash mode. It is a very fast on and off of the icon. |
Re: Cloning OS to SD Card: Simplified instructions
any suggestion for partitions on 16Gb sd card?
14,500 and 0,500? |
Re: Cloning OS to SD Card: Simplified instructions
I found this by accident...
when prompted to partition answer with this: /dev/mmcblk0p1: 0,999999,6 It will reply back that 999999 exceeds the maximum and your maximum is xxxxx. You then have another try to set the first (fat) partition. Subtract the size you need/want from what you have available and replace the 999999 with that value. *Use 9999999 if you have a 1TB card:p who knows maybe someone 8 years from now looks at the thread. Now, what we really need is a good guide on setting partition sizes. Since the N800 and N810 come with 256 (i think), then 400 or 500 is plenty. If you plan on installing KDE, you will need 2300 (i think is the current suggested size). I see Open Office is installable and needs 1300 and maybe another 500 for swap file space. I think even the larger 'normal apps' like Canola and GCompri max somewhere under 100 with all the plugins. This also assumes you don't have a lot of document files or they are stored on the first/fat/accessible from PC partition. Are they assessed any faster on the linux partition? PPS. Some of the guides say to make the first partition ,0C some say ,6. It mostly doesn't matter since they get reformatted latter in the process, but which is more correct? |
Re: Cloning OS to SD Card: Simplified instructions
I would love a partitioning script that lets you partition your card with several partitions, doing all of the grunt work for you in terms of actual numbers. So far, all of the guides and scripts assume you only want two partitions. What if you're like me, and want four? Also, I never got any responses from this post. Shouldn't we be starting at the 4MB mark? And why 0C (FAT32 LBA) instead of 0B (FAT32) as the cards were originally formatted?
|
Re: Cloning OS to SD Card: Simplified instructions
Advertisement.....................Milhouse cloning script
Have NOT done this cloning for 3 months, just received my Patriot 8G miniSD for my N810, I went straight to this thread on #292 and re-familiarized myself and finished the cloning in less than 10 min. Yup, from opening the card, and physically inserted to N800 (see below) and cloning and up and running on my N810 in less than 10 min! Now, what is the point? Bunanson is a genius, Bunanson is smart, Bunanson is great....these are well known facts, :D, we do not have to keep repeating it and is not the main point of this post. The whole idea is, once you did it, the second time and the the third time etc, will be like making copies from your CD, it is totally automated as long as one has not removed/deleted files from your tablet. So, if you have to spend, say, 3 hrs to make it cloned successfully the first time, and if you count on getting at least 3 more upgrades in the future, your actual cloning time should be divided into 4 times, i.e., 45 min each. Advertisement....................Milhouse's cloning script I did this one slightly different, I would like to jog it down, in case I have to do it again and there are so many different combinations, int/ext SD, N800/N810, etc, the more versions, newbie can just pick the one fit their system and copy the whole process without any modifications This is a cloning of N800 in internal SD and use on a N810 system. I have more installed apps on the N800 than the N810, that is why. Bootmenu installation, http://examplified.net/guide/Nokia_7...ting_from_MMC/, perform steps 6,7,8,9 and then 13: __________________________________________________ When the tablet restarts, connect to the internet and download, http://fanoush.wz.cz/maemo/initfs_flasher.tgz, to the documents folder. Type sudo gainroot cd /home/user/MyDocs/.documents/ tar zxvf initfs_flasher.tgz cd initfs_flasher mv bootmenu.conf.n800.example bootmenu.conf #or choose your own one Close all applications, and disconnect from internet. Then type: ./initfs_flash This will ask you several questions, here is what I recommend (type what's in bold): backup? no remove extra stuff? yes found, do you want to add it to initfs? yes ready for flashing this image? yes Press enter to reboot device Press enter. Boot from internal flash as we haven't cloned the system yet on to the MMC. Reboot sudo gainroot chroot /mnt/initfs cal-tool --set-root-device ask:mmc2 #pick your own choice __________________________________________________ _____ A Patriot 8G miniSD card. Successful without using LLF, see here for details, http://www.internettablettalk.com/fo...ad.php?t=16067 __________________________________________________ ______ Prerequisite already satisfied, see beginning of thread, e.g., getting setup/installed becomeroot,wget,e2fsprogs,http://fanoush.wz.cz/maemo/#initfs etc done. N800 running 2.2007.51-3, a 8G Patriot miniSD/SD adpater inserted as internal card, the one one has to open the battery compartment to get to, /media/mmc2, NOT the one behind the kick stand, /media/mmc1. xterm/sudo gainroot umount /media/mmc2 sfdisk /dev/mmcblk0 -uM 0,5400,0C (This gives 2.4G for KDE; if no KDE, use 0,7200,0C) ,,, (return) (return) y reboot ______(start from here, step 7 of thread #1)_________ xterm/sudo gainroot cd ~/bin ./nupgrade.sh wipe "Using...ext2fs Continue? (YES/no) : " YES it runs for 5+ minutes and ends up with ... Committing updates and Unmounting filesystems Done /home/user/bin # No error messages. reboot, boot up from mmc2 i.e., int SD, partition 2. Now, you can then do the FAT formatting xterm/sudo gainroot mkdosfs /dev/mmcblk0p1 reboot enjoy, Edit: need to adjust partition for Debian installation, follow myself in this thread, partition/script done in 5 min. And now boot up as expected. Dont you love it? bun |
Re: Cloning OS to SD Card: Simplified instructions
I have a question. I have a 2gb card and a 16gb card. Would it not make more sense to use the 2gb card as the internal, and the 16gb as external if dual booting? That way I could hopefully just let the 2gb card alone, not bother with partitioning it and just use it for the os/apps and the 16gb for my stuff/data. What am I missing?
Has anyone written up some somewhat simpler instructions on doing it THAT way? |
Re: Cloning OS to SD Card: Simplified instructions
Quote:
On my n810 I split the internal .44gb ext2/1.5gb FAT. |
Re: Cloning OS to SD Card: Simplified instructions
Quote:
|
Re: Cloning OS to SD Card: Simplified instructions
Quote:
It's simple if you know how (1) to format and how (2) to set up the bootmenu. Those are basic things you should know to clone cards. |
Re: Cloning OS to SD Card: Simplified instructions
Quote:
My problem was that I couldn't figure out how to download the maps via the application and put them on the external drive. It keeps complaining not enough disk space. I thought I had done it pre-Diablo, but I figured they might have changed something, plus a 2gb partition was more than I needed. |
| All times are GMT. The time now is 09:20. |
vBulletin® Version 3.8.8