I have to start all over from scratch. right now I have one partition fat 32 and the other unallocated. I just need ONE partition.
How?
Just use a formatting-utility and format the whole card with one partition... That's it.
All those partitions have to be deleted first. I have been trying for 2 hours.
Reboot and enter recovery
Enter console
#parted /dev/block/mmcblk0
rm 1
rm 2
rm 3
#print (this is to find out the size of your card)
mkpartfs primary fat32 0 #### (replace #### with the info from print above)
ha forgot to mention...
after all of that then format it with your computer.
I formatted my sd card through my pc and ever since I keep getting a message "unrecognized disk label" when trying to set up partitions in recovery ( "parted /dev/block/mmcblk0"). What am I missing?
Does its still put you in interactive mode? If it does you can use "print" to see what it sees.
Otherwise you could try a command line operation:
Code:
parted /dev/block/mmcblk0 print
You can try and create a new partition table with:
Code:
parted /dev/block/mmcblk0 mklabel msdos
You may need to tell it "msdos" again.
That would wipe all your data of course.
Thank you for the suggestion; I believe I get the same "unrecognized disk label" message when I type print. I'm going to try msdos and see if that helps.
I have a 1gb sd card formatted to fat32 with the 1.4 recovery image. every time i try to partition the sd i get an invalid token error, can anyone help by telling me the commands i need to use to format my card for a hero rom
Try this. I have recommended it to lots of people.
What partitions are you trying to make?
in the recovery console:
Code:
parted
rm 1
mkpartfs primary fat32 0 xxxx
mkpartfs primary ext2 xxxx yyyy
mkpartfs primary linux-swap yyyy zzzz
quit
upgrade_fs
I would recommend at least a 2gb SD for multiple partitions
reboot
Please, i need really need ur help, somebody, why do i keep losing my swap partition???
Please somebody, help me
i have problem with swap and ext3 partition with alfs kernel too, that's why i change the kernel..i don't know why alfs kernel have bug with partitions, because he don't mount the partitions. i want to see this problem solved too
sorry my bad english
akaSk8krew said:
i have problem with swap and ext3 partition with alfs kernel too, that's why i change the kernel..i don't know why alfs kernel have bug with partitions, because he don't mount the partitions. i want to see this problem solved too
sorry my bad english
Click to expand...
Click to collapse
Thanks for ur help, right now i had it solved by restored sd ext partition and wipe dalvik cache before reboot. for now it works but i cant sure that i wont lost my swap partition again. thanks for ur help
phoenix883 said:
Thanks for ur help, right now i had it solved by restored sd ext partition and wipe dalvik cache before reboot. for now it works but i cant sure that i wont lost my swap partition again. thanks for ur help
Click to expand...
Click to collapse
yes, if i clean dalvik cache and boot, the device recognize again the ext partition..but for me if i boot again, i loose again the partition. and swap don't work..i need boot million times to make swap work, but if i reboot again i loose the swap too..the solution for me is don't use ext partition, (but have problems with swap too) but i use much apps, then i have less memory.
alfs kernel in performance it's the best..alfs could fix the partition bug, i don't know..
sorry my bad english
akaSk8krew said:
yes, if i clean dalvik cache and boot, the device recognize again the ext partition..but for me if i boot again, i loose again the partition. and swap don't work..i need boot million times to make swap work, but if i reboot again i loose the swap too..the solution for me is don't use ext partition, (but have problems with swap too) but i use much apps, then i have less memory.
alfs kernel in performance it's the best..alfs could fix the partition bug, i don't know..
sorry my bad english
Click to expand...
Click to collapse
same hope for me also...its not that i dont want to use nAa kernel but the fps uncap make gaming in x8 much more better...thats why i choose alfs kernel...and because of this kernel i can use mdpi theme much more smoother....let's wait patiently for his new update....i believe this will be fix by alfs soon...by the way, thanks for helping me akaSk8krew
with versio 6 of alfs the problem persists..anybody helps?? anybody knows why this kernel dont mount the partitions? because in alfs thread, in first post, alfsamsung said that ext2\3\4 works..but for me and for much people don't work too
I want to help you guys,but I don't have this problem and I can't reproduce your errors....
Try this:
1 format sd card with fat32,ext*,swap if you not allready have done this
2 remove system/etc/init.d/10app2sd Remove swapper and use link2sd to move apps
3 edit system/etc/fstab to look like this
Code:
/dev/block/mtdblock3 /system yaffs2 rw
/dev/block/mtdblock4 /cache yaffs2 rw
/dev/block/mtdblock5 /data yaffs2 rw
/dev/block/mmcblk0p1 /sdcard vfat rw
/dev/block/mmcblk0p2 /sd-ext auto rw
[B]/dev/block/mmcblk0p3 /swap swap rw[/B]
now all 3 partitions will be mounted at boot
4 add this to system/etc/hw_config.sh
This will turn on swap on swap partition
Code:
#enable swap
swapon /dev/block/mmcblk0p3 #turn on swapp
echo "60" > /proc/sys/vm/swappiness #swap amount
To turn off swap do this and reboot
Code:
#enable swap
#swapon /dev/block/mmcblk0p3 #turn on swapp
#echo "60" > /proc/sys/vm/swappiness #swap amount
check on terminal if swap is working using #free
If you used app2sd before,then try and put it back to see if app2sd is the problem
@alfsamsung
thanks for your reply..the swap partition is mounted with app2sd or without thanks..the ext partition dont work..i test app2sd link2sd and nothing..a few days ago, i test without swap and link2sd and ext work..but also 1 or two days passed and stopped working..this only happens to me with your kernel..in stock or nAa works always..but your kernel is the best. the problem is in kernel..please: can you fix this? it's just a request
same here the ext wont work for me
Can you test this.I patched mmc with fixes.
Please post output from adb shell or terminal if it's not working
Code:
dmesg | grep mmc
alfsamsung said:
Can you test this.I patched mmc with fixes.
Please post output from adb shell or terminal if it's not working
Code:
dmesg | grep mmc
Click to expand...
Click to collapse
don't work i flah your kernel 07 wipe device, flash gingerDx v22, flash vold patch, wipe device again and boot..with root explorer go to \sd-ext and nothing..reboot, go again with root explorer and nothing..i put your code in terminal, but how i post it here, or better, how i make a txt file with output? can you put the code for this? i'm sorry. and thanks for your work
edit: i attached the files..is this what you want??
Tis is my output
Code:
<6>mmc0: Qualcomm MSM SDCC at 0x00000000a0400000 irq 24,113 dma 8
<6>mmc0: 8 bit data mode disabled
<6>mmc0: 4 bit data mode enabled
<6>mmc0: polling status mode disabled
<6>mmc0: MMC clock 144000 -> 49152000 Hz, PCLK 100000000 Hz
<6>mmc0: Slot eject status = 0
<6>mmc0: Power save feature enable = 1
<6>mmc0: DM non-cached buffer at ffc21000, dma_addr 0x0cdca000
<6>mmc0: DM cmd busaddr 0x0cdca000, cmdptr busaddr 0x0cdca300
<4>mmc0: host does not support reading read-only switch. assuming write-enable.
<6>mmc0: new high speed SDHC card at address b368
<6>mmcblk0: mmc0:b368 USD 7.46 GiB
<6> mmcblk0: p1 p2 p3
<6>EXT4 FS on mmcblk0p2, no journal
<6>EXT4-fs: mounted filesystem mmcblk0p2 without journal
and everything is working fine here.I use link2sd and my sd-ext is empty to,because link2sd is using data/sdext2.
why do you have this output: mmcblk0: p1 p2 p3 < p5 >
This is my output from parted in adb shell or terminall.Run the comands in bold
Code:
# [B]parted /dev/block/mmcblk0[/B]
parted /dev/block/mmcblk0
GNU Parted 1.8.8.1.179-aef3
Using /dev/block/mmcblk0
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted)[B] print[/B]
print
print
Model: SD USD (sd/mmc)
Disk /dev/block/mmcblk0: 8018MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 4194kB 7600MB 7596MB primary fat32
2 7600MB 7921MB 321MB primary ext2
3 7921MB 7987MB 65.8MB primary linux-swap(v1)
(parted)
alfsamsung said:
Tis is my output
Code:
<6>mmc0: Qualcomm MSM SDCC at 0x00000000a0400000 irq 24,113 dma 8
<6>mmc0: 8 bit data mode disabled
<6>mmc0: 4 bit data mode enabled
<6>mmc0: polling status mode disabled
<6>mmc0: MMC clock 144000 -> 49152000 Hz, PCLK 100000000 Hz
<6>mmc0: Slot eject status = 0
<6>mmc0: Power save feature enable = 1
<6>mmc0: DM non-cached buffer at ffc21000, dma_addr 0x0cdca000
<6>mmc0: DM cmd busaddr 0x0cdca000, cmdptr busaddr 0x0cdca300
<4>mmc0: host does not support reading read-only switch. assuming write-enable.
<6>mmc0: new high speed SDHC card at address b368
<6>mmcblk0: mmc0:b368 USD 7.46 GiB
<6> mmcblk0: p1 p2 p3
<6>EXT4 FS on mmcblk0p2, no journal
<6>EXT4-fs: mounted filesystem mmcblk0p2 without journal
and everything is working fine here.I use link2sd and my sd-ext is empty to,because link2sd is using data/sdext2.
why do you have this output: mmcblk0: p1 p2 p3 < p5 >
Click to expand...
Click to collapse
i don't know why i have this <p5> lol..you don't have.
and the parted output, mine is different..how i can make the output to a txt file?? lol i'm sorry but i don't know..can you help me?
If you are on win7 you have Windows Powershell.Use this instead of cmd.
Just mark the text and right click on it and now you can paste the text anywhere
Code:
# parted /dev/block/mmcblk0 print
parted /dev/block/mmcblk0 print
Model: SD SD08G (sd/mmc)
Disk /dev/block/mmcblk0: 7969MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 6597MB 6596MB primary fat32 boot, lba
2 6597MB 7666MB 1069MB primary ext3
3 7666MB 7937MB 271MB extended lba
5 7666MB 7937MB 271MB logical ntfs
#
with mini tool partition wizard i put a 1gb ext3, 256 mb of swap and the rest is fat 32...
the "p5" is ntfs????? why??? look at the atachment pls:/
try to remove the 2 partitions that is wrong.and make a new swap partition.Remember all partitions must be primary.
You can try this guide which you can run from recovery with card inside phone
And you need an external card reader if you use mini tool partition.Are you using this?
alfsamsung said:
try to remove the 2 partitions that is wrong.and make a new swap partition.Remember all partitions must be primary.
You can try this guide which you can run from recovery with card inside phone
And you need an external card reader if you use mini tool partition.Are you using this?
Click to expand...
Click to collapse
no. always when i partition my sdcard, i only connect the usb cable to the pc and click on "select to copy files to sdcard" and next use mini tool partition manager..using your link to tutorial, if i use the command to reboot recovery, the phone only boot, don´t go to recovery..if i manually put in recovery mode and proceed with the tutorial, the command give me this:
parted /dev/block/mmcblk0
/sbin/sh: parted: not found
i don´t have an external reader. laptop have but is for sd..i have a pen vodafone internet in home that have a reader too.will it work well with this?
i'm sorry something alfsamsung..i am limited at 8 thanks per day, so tomorrow i click thanks to you and again, thanks for this.thanks.
After you entered recovery, mount system, then continue with parted
don't work..always give me the same error:
parted /dev/block/mmcblk0
/sbin/sh: parted: not found
i don't know why
Are you on gingerdx?
(sorry for my bad english and i still cant post link now)
According to http:// forum.xda-developers.com/showpost.php?p=20976390&postcount=294 ,
I think it may work to redirect partition into SD card, so that safestrap will work on non-VZW-phones.
Safestrap uses /preinstall as a new /system partition to install 2nd ROM on it,
We can make a new partition on SD card to replace "/preinstall".
Here is my steps:
backup your SD card and make partitions
boot to safestrap recovery with usb connected to your PC
plug to PC first, then boot to safestrap recovery mode,
now you can use adb shell to control your system.
1.1 make partitions on your SD Card (ref: http:// forum.xda-developers.com/showthread.php?t=534714)
SD card is /dev/block/mmcblk0 so use parted to modify it
Code:
~ # [B]parted /dev/block/mmcblk0[/B]
GNU Parted 1.8.8.1.179-aef3
Using /dev/block/mmcblk0
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) [B]print[/B]
Model: SD SU08G (sd/mmc)
Disk /dev/block/mmcblk0: 7948MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 32.3kB 7946MB 7946MB primary fat32 lba
(parted)
as you can see i have a 8G SD card, fullly used as fat32 partition,
we use rm and mkpartfs to modify our SD card partition, make sure you have backuped your SD card.
for compatibility i choose to make fat32 partition first,
(512mb/1G for new system size is enough, but i want my 2nd system partiton bigger)
Code:
rm 1
mkpartfs primay fat32 0 6G
mkpartfs primay ext2 6G 100%
after done all the things you can see your partition by print,
e.g.
Code:
(parted) [B]print[/B]
Model: SD SU08G (sd/mmc)
Disk /dev/block/mmcblk0: 7948MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 32.3kB 5996MB 5996MB primary fat32 lba
2 5996MB 7946MB 1949MB primary ext2
(parted) [B]quit[/B]
1.2 format fat32 partitions
Code:
busybox mkdosfs /dev/block/mmcblk0p1
1.3 make ext2 -> ext3
sometimes you have to mount /dev/block/mmcblk0p2 first, depends on the tune2fs version
Code:
tune2fs -j /dev/block/mmcblk0p2
or you can do ext3 -> ext4 by typing (i never tried, dont know if safestrap support ext4 ??)
Code:
tune2fs -O extents,uninit_bg,dir_index /dev/block/mmcblk0p2
e2fsck -fpDC0 /dev/block/mmcblk0p2
Modify safestrap to use our new partition as 2nd system partition
after you install safetrap 1.08, you have some files in your original system,
we have to modify the /preinstall partition (/dev/block/mmcblk1p23) to our new partition (/dev/block/mmcblk0p2 as example here):
2.1 modify /system/bin/logwrapper
find /dev/block/mmcblk1p23, replace to your new partition
Code:
# mount preinstall and move /preinstall/etc/rootfs/* to /
/sbin/busybox mount -t ext3 [B]/dev/block/mmcblk0p2[/B] /preinstall
2.2 modify fixboot.sh in /system/etc/safestrap/2nd-init.zip
find /dev/block/mmcblk1p23, replace to your new partition
Code:
/sbin/busybox ln -s [B]/dev/block/mmcblk0p2[/B] system
2.3 modify etc/recovery.fstab in /system/etc/safestrap/recovery.zip
find /dev/block/mmcblk1p23, replace to your new partition
Code:
/system ext3 [B]/dev/block/mmcblk0p2[/B]
reboot for reloading settings
safestrap need to reload settings, we need reboot.
modify your 2nd ROM to make sure everything works
safestrap loads etc/rootfs from your new partition,
we need to modify /dev/block/mmcblk1p23 to our partition.
you can modify the ROM (.zip) file directly or edit them after installing ROM
just find /dev/block/mmcblk1p23 and replace them to your new partition (e.g. /dev/block/mmcblk0p2 here)
Special thanks to hashcode.
Enjoy safestrap on non-VZW-phones !