Reply
Thread Tools
pichlo's Avatar
Posts: 6,447 | Thanked: 20,981 times | Joined on Sep 2012 @ UK
#2971
"Something like this" is not good enough

Without hacking boot scripts, Maemo expect 3 partitions in this specific order:
1. MyDocs (fat32)
2. OptFS (ext3)
3. Swap (swap)

These three can be of any size, but the order matters. Well, to some extent. The location of the swap partition does not really matter as long as it is not 1 or 2.

It sounds like you've created a new extended partition between MyDocs and OptFS. I have not tried that but I would expect this to not work because your Optfs would move to position #3 and the partition would be something like #5, thus effectively losing #2 where Maemo expects OptFS.

There should be an easy way out. You do not need to flash again. All you need to do is boot again, press W in BackupMenu and connect to GParted as before. Then,
1. Delete your new extended partition
2. MOVE your OptFS partition down, immediately after MyDocs (just use drag'n'drop in GParted)
3. Create a new PRIMARY partition in the empty space and format it as ext3
4. Reboot and enjoy.

NOTE: You really do not need extended partitions. You can create up to 4 primary partitions and that is all you need. Extended partition is merely a way to circumvent the magic limit of 4, in case you want more partitions. This is not Linux, this is how any computer works
 

The Following 2 Users Say Thank You to pichlo For This Useful Post:
Alecsandru's Avatar
Posts: 439 | Thanked: 282 times | Joined on Oct 2012
#2972
the egl driver and hwa is working now?
__________________
N900 Beast featuring :
8GB OPTFS@ext4(*performance mount options)
overclock: cpu[125 - 1,150(*VDD1)+Dsp overclock
CSSU-T latest version
 
fw190's Avatar
Posts: 584 | Thanked: 700 times | Joined on Jan 2010
#2973
pichlo

You wont belive it - moving a partition with drag and drop doesn't work on GParted on my Lubuntu Damn. Everything I do ends with a blocker. I have serached how to mowe partitions in GPared, read the documentation on sourceforge and nothing - I can not drag the thing to the end.

Edit - to move a partition I had to remove the swap and then I could move the opt and then create new swap behind opt and ED as the last one!

Edit 2

Now I have everything set up but maemo doesn't see that partition. Is this good or bad?

If this is good is there a way to copy the files which I previously extracted to my sd card to that partition? Will ED see that partition if I do like posted here http://talk.maemo.org/showpost.php?p...ostcount=2807?
__________________
per ardua ad astra

Last edited by fw190; 2013-07-03 at 15:15.
 
pichlo's Avatar
Posts: 6,447 | Thanked: 20,981 times | Joined on Sep 2012 @ UK
#2974
Err, sorry if I did not make myself clear. Perhaps some mutual misunderstanding.
This is what I thought you had:

Code:
+-----------------------+-----+---+----+
|         MyDocs        | New |Opt|Swap|
+-----------------------+-----+---+----+
This is what I wanted you to do:

First, delete your new partition:
Code:
+-----------------------+-----+---+----+
|         MyDocs        |     |Opt|Swap|
+-----------------------+-----+---+----+
Next, move Optfs down:
Code:
+-----------------------+---+-----+----+
|         MyDocs        |Opt|     |Swap|
+-----------------------+---+-----+----+
And lastly, create a new partition in the vacated space:
Code:
+-----------------------+---+-----+----+
|         MyDocs        |Opt| New |Swap|
+-----------------------+---+-----+----+
Note: It does not matter if your swap and new partition have swapped places.

Edit: If your setup looks like the above and Maemo does not see the new partition, then perhaps you've forgotten to format it? Try formatting it as ext3, followed by a reboot.

Edit 2: You can now copy your ED content to the new partition. It will be /dev/mmcblk0p3 or /dev/mmcblk0p4, depending on your specific arrangement. You can use dd as in the post you've linked but that will only work if the new partition size exactly matches the size of the image. A better approach is to use cp -a like here, adjusting for source and destination (/dev/mmcblk1p1 and /dev/mmcblk0p3 or 4, respectively). Finally, edit your .chroot accordingly and you are set.

Last edited by pichlo; 2013-07-03 at 15:27.
 

The Following 4 Users Say Thank You to pichlo For This Useful Post:
fw190's Avatar
Posts: 584 | Thanked: 700 times | Joined on Jan 2010
#2975
Well I had it like this:
MyDocs -opt-swap-My new partition in EXT3
and maemo didn't see it.

Now I changed it and did as in the attachemnt so it looks like you posted.

Previously I laso had it in ext3. To be on the safe side I formated the new partition twice to ext3.

Maemo doesn't see it. I rebooted twice just to be 100%.

When I plug the phone to PC with Backupmenu my Lubuntu does see the new partition.

I think that I did something wrong bu do not know what.
Attached Images
 
__________________
per ardua ad astra
 
pichlo's Avatar
Posts: 6,447 | Thanked: 20,981 times | Joined on Sep 2012 @ UK
#2976
Looks alright to me. What exactly do you mean by "Maemo does not see it"?
If you mean File Manager does not show it, that would not surprise me. I do not have it though so I cannot check.

Please post the output of the following (in the terminal as root):

sfdisk -l (that's lovercase 'ell', not number one)
mount /dev/mmcblk0p3 /mnt
ls /mnt
 
fw190's Avatar
Posts: 584 | Thanked: 700 times | Joined on Jan 2010
#2977
Code:
Nokia-N900:~# sfdisk -l

Disk /dev/mmcblk0: 977024 cylinders, 4 heads, 16 sectors/track
Warning: The partition table looks like it was made
  for C/H/S=*/64/32 (instead of 977024/4/16).
For this listing I'll assume that geometry.
Units = cylinders of 1048576 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/mmcblk0p1          0+  22652   22653-  23196640    c  W95 FAT32 (LBA)
		start: (c,h,s) expected (0,2,1) found (1,0,1)
/dev/mmcblk0p2      22653   24700    2048    2097152   83  Linux
/dev/mmcblk0p3      29763   30531     769     787456   82  Linux swap / Solaris
/dev/mmcblk0p4      24701   29762    5062    5183488   83  Linux

Disk /dev/mmcblk1: 122112 cylinders, 4 heads, 16 sectors/track
Warning: The partition table looks like it was made
  for C/H/S=*/121/18 (instead of 122112/4/16).
For this listing I'll assume that geometry.
Units = cylinders of 1115136 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/mmcblk1p1          0+   3588-   3588-   3906560   83  Linux
		start: (c,h,s) expected (0,113,15) found (0,32,33)
		end: (c,h,s) expected (1023,120,18) found (486,120,18)
/dev/mmcblk1p2          0       -       0          0    0  Empty
/dev/mmcblk1p3          0       -       0          0    0  Empty
/dev/mmcblk1p4          0       -       0          0    0  Empty
Nokia-N900:~#
Code:
Nokia-N900:~# mount /dev/mmcblk0p3 /mnt
mount: mounting /dev/mmcblk0p3 on /mnt failed: Device or resource busy
The last one showed nothing.
__________________
per ardua ad astra
 
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#2978
Originally Posted by Estel View Post
When somebody at mainstream will care to fix critical bugs we have reported ages ago :[ I have quite polished wheezy ED image, but it's no joy, if glibc is borked (so no gparted and friends), GIMP is borked, Chromium is borked...

/Estel
Maybe try pinning glibc to squeeze version and check whether it'll work. And maybe it's been updated.

/edit: or try the version from jessie/sid/whatever. We might have a broked mix like with squeeze/lenny but it'll work at least.
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here

Last edited by marmistrz; 2013-07-03 at 16:52.
 
pichlo's Avatar
Posts: 6,447 | Thanked: 20,981 times | Joined on Sep 2012 @ UK
#2979
Originally Posted by fw190 View Post
[CODE]
Code:
Nokia-N900:~# mount /dev/mmcblk0p3 /mnt
mount: mounting /dev/mmcblk0p3 on /mnt failed: Device or resource busy
The last one showed nothing.
Sorry, my bad. Should have noticed, but did not see it in your screenshot. Your partitions are out of order so your new partition is mmcblk0p4, not p3.

Oh and before you ask, out of order is not a problem
 

The Following 2 Users Say Thank You to pichlo For This Useful Post:
fw190's Avatar
Posts: 584 | Thanked: 700 times | Joined on Jan 2010
#2980
Now the situation changed rapidly. My sd card is out of order and I can not copy the previously extracted files to my new and shiny partition...

So here I go again. I have downloaded estels image from qole, extracted it on my PC and transfered it to MyDocs.

To sum up the state of my mess:

the partition for ED is at:
Code:
/dev/mmcblk0p4
using the command:
Code:
mount /dev/mmcblk0p4 /mnt
works ok - no errors
ls /mnt shows:
Code:
lost+found
As I understand I have to again extract the files from the image but now change the destination from sd card to my emmc partition
Code:
mmcblk0p4
so I do something like this:
Code:
mount -t ext3 /home/user/MyDocs/your-easy-debian-image-file.ext3 /mnt
then I have to mount the created partition so I do:
Code:
mount -t ext3 /dev/mmcblk0p4 /.debian
Then I have to copy the files so I do:
Code:
cp -a /mnt/* /.debian
And finally I do:
Code:
umount /.debian
umount /mnt
Is this correct? And where to add that parameter which will help to avoid reboots on my not so tough N900?
__________________
per ardua ad astra

Last edited by fw190; 2013-07-03 at 19:28.
 

The Following User Says Thank You to fw190 For This Useful Post:
Reply

Tags
beta, debian, easy debian, extras-devel, fremantle, i <3 qole, squeeze

Thread Tools

 
Forum Jump


All times are GMT. The time now is 18:37.