Hi,
i have a new (factory default) microSDHC card preformatted with FAT32 and want to check the block size of the FAT32 format. For ext3/4 there is 'tune2fs -l' but that doesn't work with vfat. Is there any similar tool that extracts/views some detailed informations of vfat partitions (windows or linux tool doesn't matter)?
Related
This is a merged thread, from the two previous posts I created, both questions I awnserd myself. here is the awnser you really want multiple partitions for your phone
First you must run gparted from command promp on your computer, so connect your phone to your computer and run in the terminal:
Code:
adb shell
parted /dev/block/mmcblk0
print
remove any partitions
Code:
rm1
rm2
rm3
rm4
rm5
now create new partitions these partitions should be as so, for sense or 2.1, or gingerbread roms fat32 ext2 swap file is the order, for froyo I believe it is swap ext2 fat32, but I have not tried a froyo rom yet.
Code:
mkpartfs primary fat32 0 14500MB
mkpartfs primary ext2 14500MB 15500MB
mkpartfs primary linux-swap 15500MB 15900MB
now push swap.zip file from below to your phone, and flash swap.zip
now reboot
now open terminal emulator and type:
Code:
ls /dev/block/
this should print something like this:
mmcblk0p1
mmcblk0p2
mmcblk0p3
mntblock1
mntblock2
loop1
loop2
the mmcblk0p'# are the sdcard partitions
to mount the fat32 partition type:
Code:
mount -o rw -t vfat /dev/block/mmcblk0p1 /mnt/sdcard/
now use one of SwapScriptv2.1.1 thanks to cyanogen
type in terminal:
Code:
[B]swapscriptv2[/B]
Follow the prompts and you should see your new swap partition in use, by typing:
Code:
[B]free[/B]
in your terminal now if you woud like to have the swap started at boot time type
Code:
[B]bootswapv2[/B]
rd
and follow the prompts after this you should have a new 3 partitioned sdcard fat32 ext2 and swap and using and mounted on fat32 on sdcard and swap running
using the ext2 will be for either cach2cach appsor maybe linux, I have not decied yet
http://forum.cyanogenmod.com/topic/208-swap-enabledisable/
Flash from Recovery
Compatible with 2 and 3 partition layouts (ext(fat+ext+swap) and no ext(fat+swap))
http://www.mediafire...qdvxh7sos5svcvc
or
http://www.sendspace.com/file/h66oap
This script adds commands to terminal:
Code:
swapscriptv2
bootswapv2
swap-off
bootswap-off
vmtweaks
vmtweaks-boot
swapscriptv2 - you will be asked what partition layout you are using as well as swappiness, optional vm settings prompted
bootswapv2 - you will be asked what partition layout you are using as well as swappiness, and an init script will be placed for swap at boot time, optional boot time vm settings prompted
swap-off turns off active swap partition (error for parition not in use is normal)
bootswap-off removes bootswap init file.
vmtweaks allows changing settings for vfs_cache_pressure and page-cluster, some people have reported success in reducing these values.
vmtweaks-boot allows changing settings for vfs_cache_pressure and page-cluster and applying them at boot.
Let me know if there are any problems with the new script.
the following commands in the terminal
SwapScript: (v1)
Flash from Recovery
fat32+ext+swap or swap on /dev/block/mmcblk0p3
http://www.mediafire...bnc79k6pkespzbj
fat32+swap no ext or swap on /dev/block/mmcblk0p2
http://www.mediafire...b3ykdk3r21js96q
This script adds several commands to terminal:
swapon10
swapon20
swapon30
swapon40
swapon50
swapon60
swapon70
swapon80
swapon90
bootswap10
bootswap20
bootswap30
bootswap40
bootswap50
bootswap60
bootswap70
bootswap80
bootswap90
swap-off
bootswap-off
Instructions
swaponXX (20,30,40,50,60) - will result in swap being turned on with a swappiness of XX
bootswapXX (20,30,40,50,60) - will enable swap at boot time with a swappiness of XX (no usuerinit.sh needed)
swap-off - Turns running swap off.
bootswap-off - removes init swap script from boot. (see above notes for removal if you used the newer script)
SWAPFILE CREATOR:
http://www.mediafire...yr7w2yd5sfobyte
For anyone interested in testing different swap sizes and swappiness or those with no partition other than the standard fat, I threw together a swapfile script allowing for several common configurations. Similar to my swapscript after flashing from recovery a number of new commands will become available in terminal:
Instructions
First create a swap file on your sdcard or sd-ext partition:
swapfileXX (size 12,24,36,64,96,128 on sdcard fat partition)
extswapXX (size 12,24,36,64,96,128 on sdcard ext partition)
Then set swappiness:
swpXX (XX is swappiness in increments of 10 up to 90)
errors in script are normal, script references both fat and ext locations, will fix this next update
swapfile-off (stop swap file in use)
errors in script are normal, script references both fat and ext locations, will fix this next update
clearswapfile (stops swap file and removes all swap files created)
errors in script are normal, script references both fat and ext locations, will fix this next update
Swapfile at boot ONLY SUPPORTED FOR SWAPFILE ON EXT:
bootswapfileXX (XX is swappiness in increments of 10 up to 90)
bootswapfil-off - removes bootswap
SwapFileScript:
http://www.mediafire...yr7w2yd5sfobyte
How to tell if swap is currently in use:
in terminal emulator or adb shell type 'free' with no 's and press enter
if there is a number in the space that says swap you have swap enabled
I just rooted my archos 70h with the urukdroid's easy installer.
Seems like everything went fine, except that my data partition appears to be fat32 and not ext4 like I expected.
Code:
fdisk -l
Disk /dev/sdd: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdd1 2988090 488392064 242701987+ c W95 FAT32 (LBA)
/dev/sdd2 63 1012094 506016 83 Linux
/dev/sdd3 1012095 2988089 987997+ 83 Linux
The storage settings in the archos tell me that the partition is ext3, but it is definately fat32 since I wasn't able to copy a 4gb+ file to the archos.
Did I do something wrong?
Or did I maby misunderstand? Was the ext4 only supposed to be for the apps partition?
Sorry for not posting this in the urukdroids thread, but I cannot post there because I haven't made enough posts.
You missunderstood it wrong..
See : Storage have to be fat32 otherwise you wouldnt be able to mount it on windows
The system partition of urukdroid is ext4 formatted you can mount the system partition on linux
If the storage partition would be ext4 it wont be so much performance boost.
Greets
Lenn
Is it possible to mount the ext4 partition in Linux running in virtual machine (VMware) running on Windows?
Instead of asking, why don't you try it?
Lenn said:
You missunderstood it wrong..
See : Storage have to be fat32 otherwise you wouldnt be able to mount it on windows
The system partition of urukdroid is ext4 formatted you can mount the system partition on linux
If the storage partition would be ext4 it wont be so much performance boost.
Greets
Lenn
Click to expand...
Click to collapse
Well I have been a linux user since 2004 so I have no need for the long-outdated fat32 filesystem.
My storage partition was ext3 formatted with the stock archos/android firmware, but now when I select ext3 from the menu the device just reboots and nothing happens to the partition.
Is there any way of getting ext4 or even ext3 for the storage partition? Would it be safe to format it just like any other partition or is there something special that needs to be done?
lordofazeroth said:
Is it possible to mount the ext4 partition in Linux running in virtual machine (VMware) running on Windows?
Click to expand...
Click to collapse
I am not familiar with proprietary virtual machines like vmware but as long as the virtual machine can talk directly to the hardware it can mount the drive without needing windows drivers.
For software emulated virtual machines you would need a windows driver to be able to mount the drive.
Of course you can format the data partition with ext3/4 yourself, just keep in mind
that the android ext4 implementation doesn't allow hugefile.
And fat32 will "never" be outdated as it is very easy to implement for device vendors, so it will allways be there for cameras and stuff.
fzelle said:
Of course you can format the data partition with ext3/4 yourself, just keep in mind
that the android ext4 implementation doesn't allow hugefile.
And fat32 will "never" be outdated as it is very easy to implement for device vendors, so it will allways be there for cameras and stuff.
Click to expand...
Click to collapse
I'll try and format it to ext4 then... Hope it doesn't get screwed up.
Yes you are right, fat32 will be continued to use, but as for features it's long outdated compared to superior filesystems like ext, xfs, etc.
gardar said:
I'll try and format it to ext4 then... Hope it doesn't get screwed up.
Yes you are right, fat32 will be continued to use, but as for features it's long outdated compared to superior filesystems like ext, xfs, etc.
Click to expand...
Click to collapse
You should format it with angstrom (SDE on Archos)
just a tip
Lenn said:
You should format it with angstrom (SDE on Archos)
just a tip
Click to expand...
Click to collapse
Might be worth a shot
I'm going to take a clonezilla image of the current setup, just in case the archos doesn't like me formatting the partition
Seems like android does not like the storage partition to be ext4
Damaged internal storage
Internal storage damaged. You may have to reformat it.
Click to expand...
Click to collapse
I tried both with urukdroid and stock archos firmware.
But I was able to format back to ext3, so that will have to do for now
gardar said:
Seems like android does not like the storage partition to be ext4
Click to expand...
Click to collapse
That was i thought, because of the mounting on windows
Lenn said:
That was i thought, because of the mounting on windows
Click to expand...
Click to collapse
Well ext3 works fine so your theory is invalid
Sent from my Archos 70 using Tapatalk
Hello! I have a China tablet based on GP330XX SoC, but I don't have an SDK, and firmware has .bin format which I can't extract/reassemble yet. I'd like to change partitions sizes or make two FAT32 partitions from one. I have partitioned one FAT32 partition to two FAT32 partitions, but vold don't work as expected. By default it mounts /dev/block/nanda1 as /mnt/sdcard:
Code:
dev_mount sdcard /mnt/sdcard auto /devices/virtual/block/nanda /devices/virtual/block/nanda/nanda1 /devices/virtual/block/nanda/nanda2 /devices/virtual/block/nanda/nanda3 /devices/virtual/block/nanda/nanda4
When I removing any of nanda* strings vold stop mounting. I do not understand logic of vold. Please could you explain or offer a fix?
I wanted to have the fast SD Card, just to make the overall performance of my phone just a little better, and since my phone model (LG Optimus F7 everything has to be linked to SD card because the "external sd card" is a partition of the built in internal giving 1.27 gig of space - On a current gen phone! Jellybean!)
So I have a SanDisk Ultra 32 gig chip - active chip - partioned into 2 partitions - 1 Fat 32 and 1 ext4
The new card is a Micro Center Circle(10) HC 32 gig chip - partitioned into 2 partitions - 1 fat 32, and 1 ext 4
I have a multi-card reader for my laptop, when I try my main chip the fat32 partition can only have the files copied off, and the ext4 partition won't mount. So I can't just copy the files because any files on second mount are inaccessable. (I just thought while typing this I could makesure partition 1 is bigger than 2, use built in file manager copy all of partition 2 onto 1 on sd card, copy onto computer).
Anyway, I'll try that, but I was wondering if I transfered as much material, then made a back up of my rom, factory reset, re-installed backed up rom but with other sd card in, wouldn't the rom put the files on the sd card where they were? It won't know I switched?
Running Ubuntu Linux -
Errors I get from Terminal, etc below
Code:
####ERROR######
Error mounting /dev/sdb2 at /media/xieon/71937e1e-588a-4e44-a435-9c6485d066c3: Command-line `mount -t "ext4" -o "uhelper=udisks2,nodev,nosuid" "/dev/sdb2" "/media/xieon/71937e1e-588a-4e44-a435-9c6485d066c3"' exited with non-zero exit status 32: mount: block device /dev/sdb2 is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/sdb2,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
#####ERROR#####
Hello, all.
I have a Moto E with a 32GB External Memory card.
I've formatted the card to have a 12G FAT32 partition for the phone to use as intended, and the other 20GB I've formatted into a EXT4 filesystem that I plan to use for various stuff.
I can mount and write to the partition without any problem:
Code:
mount -t ext4 -o rw /dev/block/mmcblk1p2 /sdcard/sdext4/
The issue lies in that I have no idea where I should place this so that it automatically does it on boot (I cannot find any init.d directory, for example).
Could someone let me know what scripts are read at boot and where the best location for putting said command would be?
----
EDIT: Come to think of it, I'll need it for the following command so I can rsync as well without a hassle:
Code:
ln -s /data/data/eu.kowalczuk.rsync4android/files/rsync rsync