maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Problem With Sfdisk (https://talk.maemo.org/showthread.php?t=76909)

nourgomaa 2011-09-17 08:27

Problem With Sfdisk
 
Hi There, :)
I faced problem during repartitioning EMMC On my N900.
In This step: sfdisk --no-reread /dev/mmcblk0 < table
on: http://wiki.maemo.org/Repartitioning..._compatible.29
The error line in X-Terminal "long or incomplete input line - quitting"
What should i do? :confused:
Please help... i am stuck!
Thanks in advance :)

michaaa62 2011-09-17 09:29

Re: Problem With Sfdisk
 
There might be an error in the file called 'table', please also post its content to examine.

Personal note: It might be easier to follow you and your proceedings if you keep it all in one thread, because there might be little things that add up to errors from step to step.

Still valid: The easiest way to achieve a custom setup of the EMMC is by installing Backup-Menu and doing it from a Linux-Live-CD like in 'Solution #8' or in the chapter 'Using Gparted' in that wiki article you linked to.

nourgomaa 2011-09-17 10:54

Re: Problem With Sfdisk
 
1 Attachment(s)
Quote:

Originally Posted by michaaa62 (Post 1090046)
There might be an error in the file called 'table', please also post its content to examine.

Personal note: It might be easier to follow you and your proceedings if you keep it all in one thread, because there might be little things that add up to errors from step to step.

Still valid: The easiest way to achieve a custom setup of the EMMC is by installing Backup-Menu and doing it from a Linux-Live-CD like in 'Solution #8' or in the chapter 'Using Gparted' in that wiki article you linked to.

Here's the file "table.txt" attached :)
Hope u help me..

nourgomaa 2011-09-17 14:45

Re: Problem With Sfdisk
 
No Solutions???? :(

michaaa62 2011-09-17 15:12

Re: Problem With Sfdisk
 
Sorry been busy all day long.
The table.txt looks good. Try
Code:

sudo gainroot
sfdisk -d --no-reread /dev/mmcblk0 < table.txt

Or try this command to create your table without any editor. There are some errors happening through editors using LF, CR or both
Code:

echo "unit: sectors
> /dev/mmcblk0p1 : start= 64, size= 4194304, Id=c
> /dev/mmcblk0p2 : start= 4194368, size= 56631296, Id=83
> /dev/mmcblk0p3 : start= 60825664, size= 1572864, Id=82
> /dev/mmcblk0p4 : start= 0, size= 0, Id= 0" > table_new
sfdisk -d --no-reread /dev/mmcblk0 < table_new



All times are GMT. The time now is 12:11.

vBulletin® Version 3.8.8