maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   How to restore partitioned n900 emmc??!! (https://talk.maemo.org/showthread.php?t=67108)

michaaa62 2010-12-21 20:31

Re: How to restore partitioned n900 emmc??!!
 
Before removing any of those partitions please make sure you will not need them.
Code:

mount
It is quite irritating that your first partition contains a linux filesystem, while it should be fat32. Please before deleting save the content to some external disk - just to be sure.
Please don't just tell us where you are stumbling, please give the complete error message. Just two guesses: Is there a directory /home/user/bin at all? Make /home/user/bin/fdisk executable.
Code:

ls /home/user/
chmod +x /home/user/bin/fdisk


Radicalz38 2010-12-21 21:49

Re: How to restore partitioned n900 emmc??!!
 
Given /dev/mmcblk0p1 is linux I'm sure genfstab.awk generated code on fstab couldn't mount it. Good thing you aren't on a reboot loop?

zohal 2010-12-22 12:35

Re: How to restore partitioned n900 emmc??!!
 
Quote:

Originally Posted by Radicalz38 (Post 901568)
So if your on step 12 of that site means you already installed fdisk?
So just fire up fdisk again and do the step by step procedure I listed and it should return your phone back to normal.
The step was just to delete the extended partition, delete MyDocs, merge the unknown partition and MyDocs and recreate it.

Hmm though th link I suppose we download and install fdisk right..if so then why when I

root
fdisk

in terminal..I get the message fdisk not found?
this is the first thing I wanna do step by step..but now fdisk is the problem..can I do it on the ubuntu live cd..I mean there must be someway usong gparted ??

Quote:

Originally Posted by michaaa62 (Post 901589)
Before removing any of those partitions please make sure you will not need them.
Code:

mount
It is quite irritating that your first partition contains a linux filesystem, while it should be fat32. Please before deleting save the content to some external disk - just to be sure.
Please don't just tell us where you are stumbling, please give the complete error message. Just two guesses: Is there a directory /home/user/bin at all? Make /home/user/bin/fdisk executable.
Code:

ls /home/user/
chmod +x /home/user/bin/fdisk


I tried simply the directory /home/user/bin I get the message "Permision denied" may be what I did is wrong.
and using the code
ls /home/user/
RESULT:
Downloads
Instinctive
MyDocs
Xorg.0.log
apmonitord.log
applet1.png
applet2.png
applet3.png
applications
apps
bin
book1.png
bookmask1.png
hildon-desktop_kinetic_2.2.138-1+0m5_armel.deb
hildon-desktop_kinetic_2.2.138-1+0m5_armel.deb.l
int_kb_layout
mcd001.mcr
mcd002.mcr
pcsx0002.txt
pcsx0002.txt
pcsx0004.bmp
pcsx0004.txt
spbtv
util-linux
webos
Nokia-N900:~#

and for chmod +x /home/user/bin/fdisk
Nokia-N900:~#

I go through that :s

Quote:

Originally Posted by Radicalz38 (Post 901638)
Given /dev/mmcblk0p1 is linux I'm sure genfstab.awk generated code on fstab couldn't mount it. Good thing you aren't on a reboot loop?

Nah Im not on a reboot loop :s

michaaa62 2010-12-22 12:51

Re: How to restore partitioned n900 emmc??!!
 
Quote:

and for chmod +x /home/user/bin/fdisk
Nokia-N900:~#

I go through that :s
Meaning you did that? Sorry for asking again. If there is no output at all, the command was applied properlyand you can go on.
For analysing your partitioning setup the output is necessary of
Code:

mount
Quote:

can I do it on the ubuntu live cd..I mean there must be someway usong gparted ??
At least on my laptop the internal card=EMMC is not recognized correctly, you better do not try it that way.

zohal 2010-12-22 13:06

Re: How to restore partitioned n900 emmc??!!
 
Quote:

Originally Posted by michaaa62 (Post 902007)
Meaning you did that? Sorry for asking again. If there is no output at all, the command was applied properlyand you can go on.
For analysing your partitioning setup the output is necessary of
Code:

mount
At least on my laptop the internal card=EMMC is not recognized correctly, you better do not try it that way.

ohk for the mount I get

~ $ root


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

Nokia-N900:~# mount
rootfs on / type rootfs (rw)
ubi0:rootfs on / type ubifs (rw,bulk_read,no_chk_data_crc)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /tmp type tmpfs (rw,noatime,size=1024k)
tmpfs on /var/run type tmpfs (rw,nosuid,noatime,size=256k,mode=755)
none on /dev type tmpfs (rw,noatime,size=10240k,mode=755)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,noatime,size=65536k)
/dev/mmcblk0p1 on /home type ext3 (rw,noatime,errors=continue,commit=1,data=writebac k)
/home/opt on /opt type none (bind)
nodev on /sys/kernel/debug type debugfs (0)
Nokia-N900:~#

For ls /home/user/
I get

Nokia-N900:~# ls /home/user/
Downloads
Instinctiv
MyDocs
Xorg.0.log
apmonitord.log
applet1.png
applet2.png
applet3.png
applications
apps
bin
book1.png
bookmask1.png
hildon-desktop_kinetic_2.2.138-1+0m5_armel.deb
hildon-desktop_kinetic_2.2.138-1+0m5_armel.deb.1
int_kb_layout
mcd001.mcr
mcd002.mcr
pcsx0002.txt
pcsx0003.txt
pcsx0004.bmp
pcsx0004.txt
spbtv
util-linux
webos
Nokia-N900:~#

n for the final one chmod +x /home/user/bin/fdisk
I get

Nokia-N900:~# chmod +x /home/user/bin/fdisk
Nokia-N900:~#

:s

Radicalz38 2010-12-22 13:09

Re: How to restore partitioned n900 emmc??!!
 
@zohal
I recommend you do this step by step in order to install fdisk. Don't skip even 1 step or even a letter :p

Quote:

mkdir -p /home/user/util-linux /home/user/bin
Quote:

cd /home/user/util-linux
Quote:

apt-get install wget
Quote:

dpkg-deb -x util-linux_2.13.1.1-1_armel.deb root
Quote:

cp root/sbin/fdisk /home/user/bin/
Quote:

cd ..
Quote:

rm -rf util-linux
Or the easy way is... Download this from the link below and move it to /usr/sbin then redo the chmod and then the steps I made on the previous page

http://www.plunder.com/fdisk-download-244e0e688f.htm

zohal 2010-12-22 13:27

Re: How to restore partitioned n900 emmc??!!
 
Quote:

Originally Posted by Radicalz38 (Post 902019)
@zohal
I recommend you do this step by step in order to install fdisk. Don't skip even 1 step or even a letter :p










Or the easy way is... Download this from the link below and move it to /usr/sbin then redo the chmod and then the steps I made on the previous page

http://www.plunder.com/fdisk-download-244e0e688f.htm

thnks alot for the alternative!
but could u temme how do I move it /usr/sbin ??
sry :o

ahh winscp ayt? sry..

zohal 2010-12-22 13:53

Re: How to restore partitioned n900 emmc??!!
 
Quote:

Originally Posted by Radicalz38 (Post 902019)
@zohal
I recommend you do this step by step in order to install fdisk. Don't skip even 1 step or even a letter :p










Or the easy way is... Download this from the link below and move it to /usr/sbin then redo the chmod and then the steps I made on the previous page

http://www.plunder.com/fdisk-download-244e0e688f.htm

ohk I did that via winscp
but when I do
(root)
chmod +x /home/user/bin/fdisk

I get chmod: /home/user/bin/fdisk: Operation not permitted
~ $

:s ??? I did that as you directed :(

ohk I tried it again..n I went through the chmod step..but after that when I typed fdisk (enter) I get:
Permission denied :s

Radicalz38 2010-12-22 14:27

Re: How to restore partitioned n900 emmc??!!
 
Uhm not sure if that should work but I said you should
Quote:

chmod 777 /usr/sbin/fdisk
it... also try
Quote:

chown root /usr/sbin/fdisk
although I think it's not necessary.

zohal 2010-12-22 14:50

Re: How to restore partitioned n900 emmc??!!
 
Quote:

Originally Posted by Radicalz38 (Post 902070)
Uhm not sure if that should work but I said you should it... also try although I think it's not necessary.

for a sec I was so happy when fdsik command resulted with somethin different, but then when I type d I get this:

~ $ root


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

Nokia-N900:~# chmod 777 /usr/sbin/fdisk
Nokia-N900:~# fdisk

Usage: fdisk [-l] [-b SSZ] [-u] device
E.g.: fdisk /dev/hda (for the first IDE disk)
or: fdisk /dev/sdc (for the third SCSI disk)
or: fdisk /dev/eda (for the first PS/2 ESDI drive)
or: fdisk /dev/rd/c0d0 or: fdisk /dev/ida/c0d0 (for RAID devices)
...
Nokia-N900:~# d
-sh: d: not found
Nokia-N900:~#

hmm :s
do you think this problem has a solution? :(


All times are GMT. The time now is 04:10.

vBulletin® Version 3.8.8