maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   It's possible format the internal memory from ubuntu gparted? (https://talk.maemo.org/showthread.php?t=68620)

sub7 2011-01-19 14:50

It's possible format the internal memory from ubuntu gparted?
 
Hi guys, my problem is this, wanted to know if using gparted in ubuntu I can format the ext3 and fat32 in the phone's internal memory. If I do this then you can reinstall the firmware, maemo flasher?

What happens is that I have a corrupted file system long ago and I can not repair it from ubuntu, or using power kernel, or using fsck backupmenu.

So I think the only solution would be to remove those partitions and then reinstall everything.

It would be possible to do so? there another way?

stlpaul 2011-01-19 14:55

Re: It's possible format the internal memory from ubuntu gparted?
 
Reflashing it along with the emmc image should re-do all of the partitions anyway. So I don't think that gparted step is necessary if that's all you're doing.

sub7 2011-01-19 15:05

Re: It's possible format the internal memory from ubuntu gparted?
 
I tried that, but after reinstalling backupmenu do a file check fsck of backupmenu and I keep getting the same error, when analyzing the optfs.

Code:

errors may have been encountered: code:8
e2fsck: Only one of the options -p/-a, -n or -y may be specified.


retsaw 2011-01-19 15:47

Re: It's possible format the internal memory from ubuntu gparted?
 
That error means don't use more than one of those options when running fsck.

lemmyslender 2011-01-19 15:51

Re: It's possible format the internal memory from ubuntu gparted?
 
You can flash the N900 (as a one time only) with an emergency boot kernel. Directions here.

Just make sure to have a full battery and backups handy. Once you have rebooted into the rescue kernel, you can mount all the partitions on the emmc in ubuntu and check / remove / resize to your hearts content using gparted.

sub7 2011-01-19 19:43

Re: It's possible format the internal memory from ubuntu gparted?
 
o man thanks, i was reading about this. But i have to install meego for use this??

then i have to install meego first???

mattbutsko 2011-01-19 21:23

Re: It's possible format the internal memory from ubuntu gparted?
 
Quote:

Originally Posted by sub7 (Post 924068)
o man thanks, i was reading about this. But i have to install meego for use this??

then i have to install meego first???

Shouldn't have to. You just flash the rescue kernel which will allow you to repartition the internal memory.

RobbieThe1st 2011-01-20 04:17

Re: It's possible format the internal memory from ubuntu gparted?
 
Wait a minute here:
Just boot into backupmenu, hit w to run read/write USB Mass Storage mode, then mess with it from Ubuntu.
Backupmenu's mass storage mode exposes the whole eMMC to outside access, so it should work nicely.

sub7 2011-01-20 14:42

Re: It's possible format the internal memory from ubuntu gparted?
 
:O i would try this

sub7 2011-01-20 15:15

Re: It's possible format the internal memory from ubuntu gparted?
 
Quote:

Originally Posted by RobbieThe1st (Post 924352)
Wait a minute here:
Just boot into backupmenu, hit w to run read/write USB Mass Storage mode, then mess with it from Ubuntu.
Backupmenu's mass storage mode exposes the whole eMMC to outside access, so it should work nicely.

well i try this but gparted dont repair nothing but and if i do fsck to test, give one error.

Code:

sudo e2fsck -n /dev/sdb1
the error sorry it's on spanish, i got this on ubuntu
Code:

e2fsck 1.41.12 (17-May-2010)
e2fsck: Superbloque es inválido, intentando los bloques de respaldo...
e2fsck: Bad magic number in super-block mientras se intentaba abrir /dev/sdb1

El superbloque podría no ser leido o no describe un sistema de ficheros ext2 correcto.
Si el dispositivo es válido y en verdad contiene un sistema de ficheros ext2 (y no uno
de intercambio, ufs o algo más), entonces el superbloque está corrompido
y podría intentarse ejecutar el e2fsck con un superbloque alternativo:
  e2fsck -b 8193 <dispositivo>

EDIT: it seems i only got this error when i do e2fsck on fat32 partitions, because i try to do it on the sdcard where i have nitdroid and i get the same.

And when i do fsck on backupmenu still giving me the above error

Code:

errors may have been encountered: code:8
e2fsck: Only one of the options -p/-a, -n or -y may be specified.


sub7 2011-01-20 15:47

Re: It's possible format the internal memory from ubuntu gparted?
 
Seems something related with the superblock
http://ska0.wordpress.com/2007/04/05...oque-corrupto/

an screenshot of my internal memory phone.
http://img153.imageshack.us/img153/4...ntallazo2z.jpg

any idea¿?

J4ZZ 2011-01-20 21:46

Re: It's possible format the internal memory from ubuntu gparted?
 
I repartitioned my internal memory, too using Ubuntu and gparted.

Maybe you should just backup /dev/sdb2 (its the /home partition) and /dev/sdb1 (MyDocs) just in case and then wipe the whole table.
Code:

dd if=/dev/sdbX of=/path/to/image/on/computer
I recreated everything from scratch, resized /home/user from 2 GB to 5 GB, made two extra partitions for nitroid and meego to play with and increased my swap partition by a few megs. ;)
Finally restored /home
Code:

dd if=/path/to/image of=/dev/sdbX
And btw. there is no reason not to use the unallocated space, seen in your screenshot. ;)

FYI: That's how I get into R&D mode Solution #6

Greetz,

..::J4ZZ::..

retsaw 2011-01-20 21:56

Re: It's possible format the internal memory from ubuntu gparted?
 
Quote:

Originally Posted by sub7 (Post 924658)
well i try this but gparted dont repair nothing but and if i do fsck to test, give one error.

Code:

sudo e2fsck -n /dev/sdb1
the error sorry it's on spanish, i got this on ubuntu
Code:

e2fsck 1.41.12 (17-May-2010)
e2fsck: Superbloque es inválido, intentando los bloques de respaldo...
e2fsck: Bad magic number in super-block mientras se intentaba abrir /dev/sdb1

El superbloque podría no ser leido o no describe un sistema de ficheros ext2 correcto.
Si el dispositivo es válido y en verdad contiene un sistema de ficheros ext2 (y no uno
de intercambio, ufs o algo más), entonces el superbloque está corrompido
y podría intentarse ejecutar el e2fsck con un superbloque alternativo:
  e2fsck -b 8193 <dispositivo>

EDIT: it seems i only got this error when i do e2fsck on fat32 partitions, because i try to do it on the sdcard where i have nitdroid and i get the same.

That's because e2fsck is for ext2/ext3/ext4 partitions. You want to use dosfsck for FAT partitions. Or you could try the generic fsck, which should work out which fsck program is needed for the filesystem you want to check.

sub7 2011-01-20 22:19

Re: It's possible format the internal memory from ubuntu gparted?
 
thanks guys :D i am very new on linux i am still learning.

one1002 2011-01-26 11:56

Re: It's possible format the internal memory from ubuntu gparted?
 
here's my guide in partitioning the internal memory..with pictures..

http://forum.lowyat.net/topic/1652293/+1587

read the end of the first post..


All times are GMT. The time now is 07:00.

vBulletin® Version 3.8.8