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)
-   -   Introducing console-tools v1 (install-tools replacemement) (https://talk.maemo.org/showthread.php?t=25714)

penguinbait 2008-12-21 23:38

Re: Introducing console-tools v1 (install-tools replacemement)
 
Quote:

Originally Posted by FRZ (Post 251592)
I have no idea what's on the disk and I only have 223mb available. I have no problem wiping it clean as soon as I find out how.

If it is an external card

run as root

cfdisk /dev/mmcblk1

or if its internal run

cfdisk /dev/mmcblk0

Create a small FAT partition and a linux partition. Note when you make a new partition it will default to Linux partition, highlight the partition, select type and change to FAT (06).

Hopefully this will fix it for you

FRZ 2008-12-21 23:45

Re: Introducing console-tools v1 (install-tools replacemement)
 
Quote:

Originally Posted by penguinbait (Post 251594)
If it is an external card

run as root

cfdisk /dev/mmcblk1

or if its internal run

cfdisk /dev/mmcblk0

Create a small FAT partition and a linux partition. Note when you make a new partition it will default to Linux partition, highlight the partition, select type and change to FAT (06).

Hopefully this will fix it for you

As root,
cfdisk /dev/mmcblk0

Fatal ERROR: Bad primary partition 0: Partition end
Press any key to exit cfdisk

penguinbait 2008-12-21 23:49

Re: Introducing console-tools v1 (install-tools replacemement)
 
Quote:

Originally Posted by FRZ (Post 251596)
As root,
cfdisk /dev/mmcblk0

Fatal ERROR: Bad primary partition 0: Partition end
Press any key to exit cfdisk


Seems like your SD card is corrupt???

pton 2008-12-22 00:29

Re: Introducing console-tools v1 (install-tools replacemement)
 
Quote:

Originally Posted by penguinbait (Post 251572)
OK, how about this pton, can you run the following

Try just running

sh <enter>
pb <enter>
...

Send me the output after clone.sh completes

It still fail. Here is the output

+ umount /SRC
+ umount /TRG
+ sclone.sh
+ cat /tmp/choice.tmp
+ export SOURCE=
Can't make sub-window at (11,3), size (1,51).
+ test -z Can't make sub-window at (11,3), size (1,51).
sh: make: unknown operand
+ tclone.sh
grep: make: No such file or directory
grep: sub-window: No such file or directory
grep: at: No such file or directory
grep: (11,3),: No such file or directory
grep: size: No such file or directory
grep: (1,51).: No such file or directory
sh: jff: unknown operand
BusyBox v1.6.1 (2008-09-18 09:43:17 EEST) multi-call binary

Usage: grep [-HhrilLnqvsoeFEABC] PATTERN [FILEs...]

sh: ext: unknown operand
+ cat /tmp/choice.tmp
+ export TARGET=
Error: Expected at least 7 tokens for --radiolist, have 4.
Use --help to list options.
+ test -z Error: Expected at least 7 tokens for --radiolist, have 4. Use --help to list options.
sh: Expected: unknown operand
+ rm -rf /tmp/choice.tmp
+ dialog --extra-button --yesno You have selected to clone all data on
Can't make sub-window at (11,3), size (1,51). to
Error: Expected at least 7 tokens for --radiolist, have 4.
Use --help to list options. \n \n Is this Correct?? \n \n Selecting yes will remove all data on
Error: Expected at least 7 tokens for --radiolist, have 4.
Use --help to list options. 15 40
+ EX=0
+ test 0 = 3
+ test 0 = 0
+ mkdir /SRC
+ mkdir /TRG
+ test Can't make sub-window at (11,3), size (1,51). = /dev/mtdblock4
sh: make: unknown operand
+ mount Can't make sub-window at (11,3), size (1,51). /SRC
BusyBox v1.6.1 (2008-09-18 09:43:17 EEST) multi-call binary

Usage: mount [flags] DEVICE NODE [-o options,more-options]

+ dialog --msgbox Mounting
Can't make sub-window at (11,3), size (1,51). FAILED, perhaps there is a problem with previous mounting? Try rebooting and running again? 11 60
+ umount /SRC
+ umount /TRG
+ pbmenu
+ exit

penguinbait 2008-12-22 00:32

Re: Introducing console-tools v1 (install-tools replacemement)
 
Quote:

Originally Posted by pton (Post 251602)
It still fail. Here is the output

+ umount /SRC
+ umount /TRG
+ sclone.sh
+ cat /tmp/choice.tmp
+ export SOURCE=
Can't make sub-window at (11,3), size (1,51).
+ test -z Can't make sub-window at (11,3), size (1,51).
sh: make: unknown operand
+ tclone.sh
grep: make: No such file or directory
grep: sub-window: No such file or directory
grep: at: No such file or directory
grep: (11,3),: No such file or directory
grep: size: No such file or directory
grep: (1,51).: No such file or directory
sh: jff: unknown operand
BusyBox v1.6.1 (2008-09-18 09:43:17 EEST) multi-call binary

Usage: grep [-HhrilLnqvsoeFEABC] PATTERN [FILEs...]

sh: ext: unknown operand
+ cat /tmp/choice.tmp
+ export TARGET=
Error: Expected at least 7 tokens for --radiolist, have 4.
Use --help to list options.
+ test -z Error: Expected at least 7 tokens for --radiolist, have 4. Use --help to list options.
sh: Expected: unknown operand
+ rm -rf /tmp/choice.tmp
+ dialog --extra-button --yesno You have selected to clone all data on
Can't make sub-window at (11,3), size (1,51). to
Error: Expected at least 7 tokens for --radiolist, have 4.
Use --help to list options. \n \n Is this Correct?? \n \n Selecting yes will remove all data on
Error: Expected at least 7 tokens for --radiolist, have 4.
Use --help to list options. 15 40
+ EX=0
+ test 0 = 3
+ test 0 = 0
+ mkdir /SRC
+ mkdir /TRG
+ test Can't make sub-window at (11,3), size (1,51). = /dev/mtdblock4
sh: make: unknown operand
+ mount Can't make sub-window at (11,3), size (1,51). /SRC
BusyBox v1.6.1 (2008-09-18 09:43:17 EEST) multi-call binary

Usage: mount [flags] DEVICE NODE [-o options,more-options]

+ dialog --msgbox Mounting
Can't make sub-window at (11,3), size (1,51). FAILED, perhaps there is a problem with previous mounting? Try rebooting and running again? 11 60
+ umount /SRC
+ umount /TRG
+ pbmenu
+ exit

OK try this

as root

export PATH=/root/.bin:$PATH
scan.sh

cat /tmp/part.tmp

Paste back /tmp/part.tmp

FRZ 2008-12-22 01:26

Re: Introducing console-tools v1 (install-tools replacemement)
 
Quote:

Originally Posted by penguinbait (Post 251598)
Seems like your SD card is corrupt???

Damn it. So I'll have to wait till I get a new micro card or I might try to use the 1gb I already have. Yeah, I think I will do that.

FRZ 2008-12-22 01:37

Re: Introducing console-tools v1 (install-tools replacemement)
 
Quote:

Originally Posted by penguinbait (Post 251594)
If it is an external card

Create a small FAT partition and a linux partition. Note when you make a new partition it will default to Linux partition, highlight the partition, select type and change to FAT (06).

Just curious. What is the small FAT partition for?

pton 2008-12-22 01:43

Re: Introducing console-tools v1 (install-tools replacemement)
 
Quote:

Originally Posted by penguinbait (Post 251603)
OK try this

as root

export PATH=/root/.bin:$PATH
scan.sh

cat /tmp/part.tmp

Paste back /tmp/part.tmp

Here is the result:
/dev/mtdblock4 "Size:256MB Used: Free:AVAIL Type:jffs2"

FRZ 2008-12-22 02:01

Re: Introducing console-tools v1 (install-tools replacemement)
 
Ok. I was able to reformat the internal memory. First I connected to my pc and formated it there then, I ran sfdisk from the device and reset the partition tables. I am going to try again from the top and see how that goes.

penguinbait 2008-12-22 02:21

Re: Introducing console-tools v1 (install-tools replacemement)
 
Quote:

Originally Posted by pton (Post 251611)
Here is the result:
/dev/mtdblock4 "Size:256MB Used: Free:AVAIL Type:jffs2"

Can you run the following and paste back the output? For some reason its not finding your ext2 partition..


export PATH=/root/.bin:$PATH

sh -x partition-finder.sh 2> output


All times are GMT. The time now is 16:25.

vBulletin® Version 3.8.8