![]() |
Re: Cloning OS to SD Card: Simplified instructions
Quote:
Code:
dd if=/dev/mmcblk0 of=MyCardMBR.bin bs=512 count=1 Point is that it looks like both partition table and FAT layout is tuned to be aligned with physical flash blocks. By creating random partition table, speed (and maybe even reliability and durability) may go down. See this article for details http://www.hjreggel.net/cardspeed/cs_calign.html So maybe, if nupgrade.sh does the partition layout, it would be nice if it left at least the beginning of first FAT partition alone. It is hard to know how important it is, maybe not much. YMMV When I got my 8GB SDHC card I found that first 4MB of the card is 'wasted' and partition begins on block 8192. This is confirmed in the document mentioned above. There is perhaps some reason for this. I think this may be related to erase blocks and grouping of blocks for internal wear level logic. Maybe they try to prevent wearing off the beginning of the card (as it may contain some critical low level data). Thisis a bit of black magic. If you are interested, start reading from page 66 of http://www.sdcard.org/about/memory_c...Layer_Spec.pdf Looks like the size of Allocation Unit (AU) is 4MB for big cards. so it may make sense to aling beginning of partition at 4MB and data blocks after FAT table at 8MB. |
Re: Cloning OS to SD Card: Simplified instructions
Quote:
Step by step, for my own record, in case I have to do it again. Prerequisite already satisfied, see beginning of thread, e.g., getting setup/installed becomeroot,wget,e2fsprogs,http://fanoush.wz.cz/maemo/#initfs etc done. N810 running 2007.50-2, a 4G Adata micro/mini adapter inserted. xterm/sudo gainroot umount /media/mmc1 sfdisk /dev/mmcblk1 -uM 0,2100,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., ext SD, partition 2. bun |
Re: Cloning OS to SD Card: Simplified instructions
ok...guys
I have a problem (N800 OS2008) after bricking the thing a few times I have finally got the cloned OS working from the internal card It's a 2Gb t-flash when trying un-tar the KDE358v2 it ran out of space* and I checked details for the nokiaN800 (top of the file browser) and it tells me I only have 680Mb , so I guess I did something wrong with size I used this setting Code:
2GB Card (~1.8GB real size - partition 1: 1.3GB, partition 2: ~0.5GB): (wouldn't be the first time) I had previously tried this setting: Code:
# sfdisk /dev/mmcblk0 this setting worked on another SD card http://www.thisweekinnuclear.com/KDEonN800.html found at this site^ sorry for posting in the wrong section |
Re: Cloning OS to SD Card: Simplified instructions
I dont like the previous partition. I followed my OWN instructions (see thread above), took about 30s to type in the commands, and left the tablet alone to get a cup of coffee.... BAM! Its done. Handsoff, totally automated. I am 100% sure I would NOT have attempt another clone just for the purpose of minor adjusting the disk space. I would NOT. I still remember the dark age of 770, dls were not there, typos on step 108c, this TAR, not that TAR, cloned but wont boot, error exits, you named it. Only people that were there would understand what I am saying...... a clone process took at least a half day for me, the Linux no clue. Now, with this fabulous nupgrade.........do I have to say more? Thank you Milhouse.
bun |
Re: Cloning OS to SD Card: Simplified instructions
@multi
/dev/mmcblk0p1: 0,1300,06 /dev/mmcblk0p2: ,,, /dev/mmcblk0p3: /dev/mmcblk0p4: With this you spare 1300 MB to fat partition and rest of it, 680 MB in your case, is left for ext2 which is not enough to install KDE so try; /dev/mmcblk0p1: 0,480,06 /dev/mmcblk0p2: ,,, /dev/mmcblk0p3: /dev/mmcblk0p4: this should work for 2gb sd |
Re: Cloning OS to SD Card: Simplified instructions
Thanks sahinem!
that helped sort out my space problem nicely Big Thanks also to Milhouse for this wonderful script. |
Re: Cloning OS to SD Card: Simplified instructions
Hi,
Thanks for the script which simplified by much the job of installing a dual-boot. I want to add a quick note that the first part of the instructions were REALLY UNCLEAR, so I want to warn that if anyone with little experience reads it (me, for example) they will not understand much. http://thisweekinnuclear.com/KDEonN800.html was the instructions I used (along with your script) to install a dual-boot. next, before I destroy everything already accomplished by a bad move, is placing a swap file on partition 1 (the FAT - 16 in my case) and booting from flash at the same time OK or is it worse than drinking and deriving? thanks. Ilia |
Re: Cloning OS to SD Card: Simplified instructions
I'm a Linux newbie, so very detailed instructions would be helpful.
I have downloaded the initfs_flasher utility, but I having the hardest time unzipping it with tar. I download it to my MMC card, but I DO NOT extract it there. I move it to /home/user and then attempt to extract it with (tar zxvf initfs_flasher.tgz) but it tells me: "tar: invalid gzip magic" - I have looked up the meaning, but I know that the message is incorrect. I have previously been able to unzip with the same command on my external card, but I read the README which instructed not to do so. I've deleted and re-downloaded several times.. help! |
Re: Cloning OS to SD Card: Simplified instructions
tar comes with may versions. sorry about that! make sure you have the one supporting long file names.
Also maybe your downloaded file was not completed/corrupted. Try to download it again. |
Re: Cloning OS to SD Card: Simplified instructions
Quote:
And what version of tar should I be looking for? I'm on S2008. |
All times are GMT. The time now is 02:36. |
vBulletin® Version 3.8.8