[Q] Swap problem/Kernel - Please Help - LG Optimus 4X HD

Hi all,
i hope i'm right here with my question .
it try do get "Swap" on my phone but it doesn't work.
I have root rights, busybox, cwm , and cm including the werewolf kernel.
I've partitioned my micro sd into 3 partitions.
1. fat32, primary => for my stuff like music etc.
2. ext3, primary => for outsourcing over link2sd and mountfolder
3. linux swap, primary => my "swap" file
if i enter in the terminal emulator:
su
fdisk -l dev/block/mmcblk1
swapon /dev/block/mmcblk1p3
he shows:
swapon: /dev/block/mmcblk1p3: Function not implemented
I tried the way over the app "swapper2" but same result.
I think this could be a swap support problem of the kernel. Does anyone know which kernel (for lg optimus 4x hd) supports swap.
Or have anyone other ideas, how to reach my target?
Kind regards
Daniel

Related

[Script][A2SD]Darktremor 2.7.5.3 Beta 04 [Tattoo] (01/29/2011)

Introducing...
Darktremor Apps2SD 2.7.5.3 Beta 04
Date of Release: January 29, 2011
Download Current Version
Instructions - Change Log - Commands - ROM List - Developer's Guide
Darktremor Apps2SD Fan Page ----
Darktremor Apps2SD Development Group
Are you installing Darktremor Apps2SD on your phone? Here are the instructions to help you: Facebook
Are you a developer wanting to include Darktremor Apps2SD in your latest ROM? Here is the Developer Guide: Facebook
Click to expand...
Click to collapse
Update on Beta 4
It seems I'm getting mixed results with these betas. I'm not sure why this is occurring, some people have been able to get this working right while others have had a hard time with it.
Currently, I'm rebuilding the entire program. This takes a while because I have to figure out how to pack all these options into the program but make it small enough to where it will run correctly.
I will say that some of the beta features are coming back out...one of them is the search for a partition code. I suspect that code may be leading me into issues with certain platforms, so I'm going back to the 2.7.5.2 method of mounting (mmcblk0p2 or mmcblk1p2).
Also, parts of the code will use Busybox Ash (the only code that won't will be starta2sd, which will still use Bash for the time being). The startup code will definitely use Busybox Ash.
Until then, here are the links to the the last two betas and the last official release:
Version 2.7.5.3 Beta 04 - http://www.darktremor.info/files/a2sd/dtapps2sd-2.7.5.3-beta04-signed.zip
Version 2.7.5.3 Beta 03 - http://www.darktremor.info/files/a2sd/dtapps2sd-2.7.5.3-beta03-signed.zip
Version 2.7.5.2-1 - http://www.darktremor.info/files/a2sd/dtapps2sd-2.7.5.2-1-signed.zip
And, if you want past versions, you can view the repository: ftp://dtuser:[email protected] (ignore the smiley face...that's XDA doing that.)
Click to expand...
Click to collapse
Beta 04 took longer than I expected to release. I have done major changes to the code:
1. New commands: convert-ext4 - This will convert your EXT3 partition into EXT4. Just a friendly reminder on this command: Not every rom supports EXT4, so it is possible to go into a boot loop if you switch roms. Use with caution.
2. Reworked convert-ext3 (convert-ext4 gets similar code)...now a flag file is set before the reboot (no conversion is done before the reboot). At load time, the conversion is performed. This takes longer in the reboot process and you may think your phone has locked up...wait about five minutes before doing anything with the phone.
3. Repair is rebuilt...now it uses existing commands to repair the setup (reinstall, remove, cachesd, cachepart, nocache, datasd, nodata). Definitely shrinks the code.
4. Added fix_permissions program to the package. This may help with Superuser issues when using the datasd feature. It is used in reinstall, remove, datasd and nodata.
5. a2sd install is back!!! Both a2sd install and a2sd reinstall do the exact same thing.
6. Dalvik heap code has been shrunk and now creates a file called dalvikheap. Actually, the code has been doing this all along (since about 2.7.5.2, I think), but I never put the code in to use the file.
7. Low Memory Killer code has also been shrunk and uses a file caled dtset_lowmem to set the low memory killer parameter.
8. Replaced Busybox PS function with Toolbox PS. The issue with Busybox PS is that it gives a false reading when I look for android.process.acore (which is the main program when the GUI starts up). If that is present, the program thinks you are trying to run Darktremor without any command line parameters. This was because Busybox would report the process was there when, in reality, it wasn't (validated this when my phone was boot looping.) Toolbox's PS reports the correct setting. This should fix the bootlooping issues some people are experiencing.
9. New commands: usedtbusybox and usedefaultbusybox - these commands may help in diagnosing issues that is may be related to the native Busybox on your rom. a2sd usedtbusybox will use the Busybox that is packaged with Darktremor. a2sd usedefaultbusybox will turn back on the scan behavior of the program introduced in Beta 03.
10. Support for Darktremor Apps2SD version 2.7 and earlier has been discontinued. To upgrade correctly from one of those versions, use version 2.7.5.3 Beta 03b or earlier.
11. Finally fixed stalled boot issues (or at least my tests with several roms says so.)
See the change log for additional details.
You will notice that if the program runs repair and finds a problem, it will correct the issue and reboot. You will see a second reboot when the dalvik-cache clears (this is to fix timing issues with CyanogenMod...I can't control that startup as well as I can other roms). This only happens if repair is ran or you flash a new rom (as repair will realign all data). If you are upgrading from a previous version of Darktremor, you should not see the reboots.
Click to expand...
Click to collapse
This is Darktremor Apps2SD, a multipurpose program that primarily allows a user to execute applications created for the Android OS on their Secure Digital card (with the proper setup...more on that later). But, Darktremor Apps2SD is all about stability. The goal is to be able for all users of the Android OS to be able to take advantage of a method to run their applications from a secure digital card.
But just because the Darktremor Apps2SD is all about stability, doesn't mean it isn't packed with features:
- Move applications (both free and paid) to the Secure Digital card.
- Move Dalvik Cache to run either from your Secure Digital card or from your cache partition and clears the cache on demand.
- Boot Loop Protection: prevents the phone from boot looping in the event the SD card could not be mounted.
- Dalvik JIT for faster performance on Roms which support it.
- User selectable sizes for the Dalvik heap sizes, allowing a user to freely optimize their system.
- Activate a swap partition on your SD card and sets how often the swap partition is utilized.
- Automatically fixes configuration issues.
- Users can check the free space on their SD card and check the installation to make sure all is setup correctly.
- Runs ZipAlign on demand...this makes your programs load faster.
- Built in help system for easy reference of commands.
- All features can also be reversed without repartitioning your Secure Digital card.
- New logging features assists in troubleshooting issues.
- Commands to set the Low Memory Killer feature at boot time. Great for those people who are the "set it and forget it" type.
- And more...
Darktremor Apps2SD is not the same as Froyo Apps2SD. Froyo Apps2SD creates a secure folder on the FAT32 section of your SD card (this is the section that you see when you mount your phone to your computer) and stores the programs there. This is nice as you don't have to do anything special with the phone, but it isn't backwards compatible with older versions of Android (Cupcake, Donut, Eclair) and, because of the way Froyo works, older programs not designed for Froyo will automatically stay on your internal storage (unless you install a program that forces the move to your SD card).
Darktremor Apps2SD takes a different approach. Based on the original CyanogenMod works, Darktremor Apps2SD uses symbolic linking to force Android into moving your applications to the SD card. Because Android will not allow anything to be ran from the FAT32 partition on your SD card (and, in Froyo, it will only allow you to run programs from a special folder), Darktremor utilizes filesystems called EXT2, EXT3 and EXT4. Each one of these filesystems is native to Linux (the operating system running Android), which allows you to run programs from them (same as, say, a computer running Ubuntu). This method is completely compatible with all versions of Android, including Froyo. In fact, you can run both the Darktremor Apps2SD and Froyo Apps2SD at the same time.
Check out the list of Roms that either have Darktremor Apps2SD installed or are compatible with Darktremor Apps2SD. Click on the link labeled ROM List at the top of this message.
Reserved...created because a Tattoo rom has it as part of its build.
I just tried to flash Apps2SD 2.7.5 RC1, but installation fails:
------------------------------------------------
E: Failure at line 48:
set_perm 0 0 0777 SYSTEM:xbin/a2sd
Installation aborted.
-----------------------------------------------
Is there something that I can do?
I love this script. I think I'm going to be using it in the next version of my ROM. Thanks for making it, it's great
It shouldn't do that.
Try the RC3 (about to release it): http://www.darktremor.info/files/a2sd/dtapps2sd-2.7.5-rc3-signed.zip
If that doesn't work, let me know and we go from there. There's a recovery log file that is created...I just have to remember where it is at (was looking at it just this morning).
dancer_69 said:
I just tried to flash Apps2SD 2.7.5 RC1, but installation fails:
------------------------------------------------
E: Failure at line 48:
set_perm 0 0 0777 SYSTEM:xbin/a2sd
Installation aborted.
-----------------------------------------------
Is there something that I can do?
Click to expand...
Click to collapse
alredy running rc3 in our rom hehe
Which rom is that?
danne_jo said:
alredy running rc3 in our rom hehe
Click to expand...
Click to collapse
PuzzleROM
Sent from my Tattoo using XDA App
tkirton said:
Which rom is that?
Click to expand...
Click to collapse
As said before, PuzzleROM
http://forum.xda-developers.com/showthread.php?t=749932&page=10
I saw that during my sweeps of the forums...added into my list.
danne_jo said:
As said before, PuzzleROM
http://forum.xda-developers.com/showthread.php?t=749932&page=10
Click to expand...
Click to collapse
i have installed your APPS2SD on a Tattoo with a shipped non modified rom (I rooted my phone and have ARMON 1.6 recovery though) fine however after the reboot I didn't notice any difference so i checked the with apps2sd check command. here is the output
# a2sd check
a2sd check
[ ] Apps2SD is launching...
[ ] Starting Apps2SD Check Program.
[ ] Searching for Mount Point...
[Ô£ö] Mount point /data/sd located.
[ ] Checking for ext partition
[Ô£û] Ext partition found, but not mounted.
Your rom may not be setup to run Apps2SD.
Check with your rom developer if the boot image
is programmed to run Apps2SD.
Your partition may be using an EXT4 partition,
but your rom may not support EXT4. Repartition
your SD card to use EXT2 or EXT3.
please note i have formatted my sd and have done a ext2->ext3 already.
what should i do now ?
pardol said:
i have installed your APPS2SD on a Tattoo with a shipped non modified rom (I rooted my phone and have ARMON 1.6 recovery though) fine however after the reboot I didn't notice any difference so i checked the with apps2sd check command. here is the output
# a2sd check
a2sd check
[ ] Apps2SD is launching...
[ ] Starting Apps2SD Check Program.
[ ] Searching for Mount Point...
[Ô£ö] Mount point /data/sd located.
[ ] Checking for ext partition
[Ô£û] Ext partition found, but not mounted.
Your rom may not be setup to run Apps2SD.
Check with your rom developer if the boot image
is programmed to run Apps2SD.
Your partition may be using an EXT4 partition,
but your rom may not support EXT4. Repartition
your SD card to use EXT2 or EXT3.
please note i have formatted my sd and have done a ext2->ext3 already.
what should i do now ?
Click to expand...
Click to collapse
Stock ROM doesn't support A2SD as it has no means to execute the script.
Try HCDR.ROM or PuzzleROM
Ahh. Makes more sense now.
Sent from my HTC Tattoo using XDA App
pardol said:
Ahh. Makes more sense now.
Sent from my HTC Tattoo using XDA App
Click to expand...
Click to collapse
Further to your last message i have accidentally found this link where it shows how to move the apps to /system/sd and then all should work.
i have not done anything as such because i am not too familiar with shell scripting and want to avoid to brick the phone.
I know you said APPS2SD does not work with stock roms (not sure why but you are the master here :> ). can this help or there is no way to get it to work ?
actually i noted i am missing a kin d of pre-requisite to complete the script: there is no system/sd entry when using this command so i guess no hope
busybox df -h
busybox df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 93.0M 0 93.0M 0% /dev
tmpfs 4.0M 0 4.0M 0% /sqlite_stmt_journals
/dev/block/mtdblock3 150.0M 139.9M 10.1M 93% /system
/dev/block/mtdblock5 165.1M 142.1M 23.0M 86% /data
/dev/block/mtdblock4 150.0M 3.1M 146.9M 2% /cache
/dev/block//vold/179:1
5.8G 1.8G 4.0G 31% /sdcard
It doesn't work with Stock roms because there's no command in init.rc to launch Apps2SD (which is part of the boot.img). Now, you can modify the boot.img (or get an already modified boot.img) to add support. It will retain the stock rom feel but has a modified boot image.
pardol said:
Further to your last message i have accidentally found this link where it shows how to move the apps to /system/sd and then all should work.
i have not done anything as such because i am not too familiar with shell scripting and want to avoid to brick the phone.
I know you said APPS2SD does not work with stock roms (not sure why but you are the master here :> ). can this help or there is no way to get it to work ?
Click to expand...
Click to collapse
That is because the EXT partition isn't mounted, so Linux (the OS behind Android) doesn't see an EXT partition on the SD card (needs a mount command to be executed, which Apps2SD does, but the rom doesn't launch the program).
pardol said:
actually i noted i am missing a kin d of pre-requisite to complete the script: there is no system/sd entry when using this command so i guess no hope
busybox df -h
busybox df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 93.0M 0 93.0M 0% /dev
tmpfs 4.0M 0 4.0M 0% /sqlite_stmt_journals
/dev/block/mtdblock3 150.0M 139.9M 10.1M 93% /system
/dev/block/mtdblock5 165.1M 142.1M 23.0M 86% /data
/dev/block/mtdblock4 150.0M 3.1M 146.9M 2% /cache
/dev/block//vold/179:1
5.8G 1.8G 4.0G 31% /sdcard
Click to expand...
Click to collapse
i have the same problem and in order to run A2SD i have to mount the EXT3 Partition manually ; anyone knows how to auto mount the ext3 partition at system startup ?!!
ok. i have been able to install a2sd correctly and have it running since a ferw weeks now. The only flipside is i need a PC to be able to reboot the phone since the Ext3 partition does not start.
Is there a command i can put in the init.rc file to autorun a2sd in place of doing a
adb shell a2sd
every time i reboot the phone ?
Hi, how about if after start up , manually mount the ext3 partition and manually run apps2sd app ? As I rarely reboot the system so I think this can be an alternative solution. but could someone let me know the command ? thx

[GUIDE] NTFS READ/WRITE for SDCARD and USB OTG ! UPDATED 21-JAN-2012 !!!

Dear Friends,
angelom said:
I tried now with a USB stick format ntfs
1) I inserted the file ntfs-3g for GS2 in /system/bin with the proper permissions
2) Reboot
3)Then I inserted the usb stick with the otg cable into the phone, so I typed from the terminal emulator:
su
insmod /lib/modules/fuse.ko
ntfs-3g /dev/block/sda1 /mnt/usb
And now the usb stick can be read and written
Click to expand...
Click to collapse
AbyssNote Kernel developer " angelom " pointed us solution for read/write ntfs for formatted usb stick and i apply it for sdcard and both works flawlessly !!!! Thanks angelom...
Some Tests:
** After mounting sdcard as read/write ntfs, camera app also can be able to record photos and videos to ntfs...
** Watching movies over 4 gb size is not a problem anymore. 1080p Mkvs with no lag at all...
** Most of the 3rd Party apps recognize ntfs formatted sdcard like it is fat32...
** Stock Video Player dont see NTFS so i use BSPLAYER LITE ( best for mkv on note ) OR MX VIDEO PLAYER !!! ( U can use ES file explorer to play videos with stock video player )
** Stock app like gallery dont see the files in ntfs sdcard... Quickpic app also doesnt work with ntfs formatted sd card...
PERFECT VIEWER CAN DISPLAY IMAGES AVAILABLE FROM NTFS SDCARD.... ( THANKS BROTBUEXE)
** You can use free apps like MyMusicOn or MixZing Basic to play music files which are in ntfs formatted sdcard...
** We have to repeat steps 4 and 5 after every reboot. Gscript lite app helps here so much with its shortcuts...
** We have to repeat steps 4 and 5 after using usb mass storage mode...
** Ntfs formatted sdcard also is recognized by windows when Gnote is using usb mass storage mode...
** I am getting very low transfer speed for small files in windows when Gnote is using usb mass storage mode... for big files it is as fast as Fat32...
My config:
MySAM ed.1 Rom
Abyss V2.5 Kernel
32 gb class4 SDCard
How to: READ/WRITE NTFS
1- Flash Abyssnote Kernel - Latest Version : http://forum.xda-developers.com/showthread.php?t=1362424
2- Format sdcard to ntfs in windows and plug it to phone.
3- Power on phone and GNote will recognize ntfs formatted sdcard as blank sd.
4- Download ntfs-3g.zip from attachment...
4- Extract zip and copy " ntfs-3g " to /system/bin/
5- Reboot
6- Install Terminal Emulator from market.
7- Enter these lines in terminal emulator. ( insmod commands are optional for abyssnote kernel since they are loaded automatically but for other kernels u have to use insmod commands )
a- To mount ntfs formatted sdcard
su
chmod 755 /system/bin/ntfs-3g
insmod /lib/modules/fuse.ko
ntfs-3g /dev/block/mmcblk1p1 /mnt/sdcard/external_sd
vold
b- To mount ntfs formatted usb hdd or usb stick
su
chmod 755 /system/bin/ntfs-3g
insmod /lib/modules/fuse.ko
ntfs-3g /dev/block/sda1 /mnt/usb
vold
or create a newfolder named usb in internal sdcard
su
chmod 755 /system/bin/ntfs-3g
insmod /lib/modules/fuse.ko
ntfs-3g /dev/block/sda1 /mnt/sdcard/usb
vold
5- now goto settings-storage and select mount sdcard ( only for sdcard not usb stick )
6- now your ntfs formatted sdcard or usb memory stick should be recognized by system as read/write
7- After every reboot u have to repeat steps 4 and 5 !!!
8- To unmount usb hdd:
a- Run Terminal Emulator
b- Enter This line:
su
umount -l -f /mnt/usb
umount -l -f /mnt/sdcard/usb
c- now your usb hdd is unmounted.
d- You can safely remove it from otg cable.
** You can download "Gscript Lite" from market and create these scripts as shortcuts in your home screen so u dont have to enter line every time after reboot... ( Market - Free )
** Use "Autostart" app or "script manager" app to run script on boot... ( Market - Free )
** Use "elixir 2 widgets" app or " any cut " app to create a shortcut directly on home screen to settings-storage... ( Market - Free )
*** UPDATE 10-JAN-2012
I realized that after executing ntfs-3g , our ntfs formatted card is automatically mounted by the system even it says Blank SD in notification page... No need to go to settings-storage-mount sd card...
So if the blank sd message in noti. doesnt bother us, then no need to look for how to mount ntfs sd automatically... It is already mounted...
I use script manager to load the ntfs-3g script during boot and thats it... After boot i use my ntfs formatted card...
*** UPDATE 21-JAN-2012
While trying to get rid of blank sd noti, after running vold command, noti has gone, surprisingly...
No more " Blank SDCARD " or " Blank Usb Storage " in the notification bar.
Simply add " vold " command to end of script
...
After reboot "blank sd" noti will gone...
vold command remounts all storage.
Dont bother even settings-storage shows sdcard as unavailable since it is already mounted and recognized by the system...
Hope this helps,
THANKS GOES TO angelom, The_Steph, brotbuexe and to all who i forgot to mention....
Kind Regards,
ONLY AMIGA MAKES IT POSSIBLE !!!
Dear Friends,
Here is some info for read/write ntfs by fuse.ko module and ntfs-3g driver for GalaxyS2 but they failed to run in G-note when i try in terminal emulator...
http://forum.xda-developers.com/showpost.php?p=15001824&postcount=23
I hope someone may recompile fuse.ko for G-Note so we can use ntfs as read/write ... I dont know whether kernels has to be patched for fuse.ko support or not...
********** OLD INFO for READONLY NTFS as REFERANCE - OUTDATED !!!
I have managed to read ntfs for both ex.sdcard ( tested ) and usb otg devices ( not tested )... Needs ROOT ! Ntfs Read Only !
I wish some devs recompile ntfs.ko module as read/write so we can use all time ntfs formatted ex.sdcards...
Sdcard method is tested by me and i have watched 10 gb " last samurai " 1080P mkv movie with mx player flawlessly...
I dont have a usb otg cable so i couldnt test usb hdd or usb stick but i guess they will work, too. ( your feedback is needed here )
All Info is collected from xda forums. Combined and tested by me for G-Note...
My config:
MySAM ed.1 Rom
Abyss V2.5 Kernel
32 gb SDCard
How to: READONLY NTFS
1- Format sdcard to ntfs in windows and plug it to phone.
2- Power on phone and GNote will recognize ntfs formatted sdcard as blank sd.
3- Install Terminal Emulator from market.
4- Enter these lines in terminal emulator.
a- To mount ntfs formatted sdcard
su
insmod /lib/modules/ntfs.ko
mount -o umask=000 -t ntfs /dev/block/mmcblk1p1 /mnt/sdcard/external_sd
b- To mount ntfs formatted usb hdd or usb stick
su
insmod /lib/modules/ntfs.ko
mount -o umask=000 -t ntfs /dev/block/sda1 /mnt/usb
5- now goto settings-storage and select mount sdcard
6- now your ntfs formatted sdcard should be recognized by system as external_sd but READONLY. You can play full size mkv movies...
To unmount usb hdd:
1- Run Terminal Emulator
2- Enter This line:
su
umount -l -f /mnt/usb
3- now your usb hdd is unmounted.
4- You can safely remove it from otg cable.
** You can download "Gscript Lite" from market and create these scripts as shortcuts in your home screen...
Kind Regards,
PROTOCHIP,
I carefully read your posts but I don't understand where ntfs.ko comes from. I used MySam Ed and AbyssNote kernel (I am on KL7 now) and I did not manage to understand where that ntfs.ko modules is. I saw your posts with angelom on AbyssNote thread but the question still remains.
Can you explain where it is from and if, for instance I could use it with another kernels ?
As I have ordered a 64 micro SDXC card for my toy, I really expect to be able to see films in HD with being bothered by file size. And if it is possible to have a read/write access to the card, it would be really amazing.
Thanks in advance for the upcoming info on the subject.
Dear The_Steph,
Actually i dont know where the file comes from but after flashing MySAM rom to phone, ntfs.ko is located in /lib/modules/ ... In case it is needed, i have enclosed the file here ... You can copy it to /lib/modules/ and try with other kernels... I tested it by Abyss but for ChainFire kernel and FM Kernel, i didnt test it...
My sdcard is class4 32 gb and watching Last Samurai as 1080p mkv from ntfs formatted sdcard is amazing... The mkv file is around 10.2 gb...
For ntfs read/write ; there is another module called fuse.ko and driver called ntfs-3g but as far as i know these modules have to be recompiled for our kernels...
Hope this helps,
Kind Regards,
PROTOCHIP,
It is not in stock KL7 ROM and does not seems to be in MySam too. I read the post you linked. I understand now a bit more.
As I am planning to move to XtraLiteRom from Cassie today, I will try to do some tests tomorrow using the ntfs.ko and above 4GB files. I'll reports afterwards.
As you stated, maybe read/write library can be recompiled for the SGN.
It it is possible it would be awesome. Hopefully, a master in modules compilation will see this thread
Edit: I hope I helped a bit posting reference to this thread in RiverSource kernel thread.
Really looking forward to development on this matter.
I tried now with a USB stick format ntfs
1) I inserted the file ntfs-3g for GS2 in /system/bin with the proper permissions
2) Reboot
3)Then I inserted the usb stick with the otg cable into the phone, so I typed from the terminal emulator:
su
insmod /lib/modules/fuse.ko
ntfs-3g /dev/block/sda1 /mnt/usb
And now the usb stick can be read and written
angelom said:
I tried now with a USB stick format ntfs
1) I inserted the file ntfs-3g for GS2 in /system/bin with the proper permissions
2) Reboot
3)Then I inserted the usb stick with the otg cable into the phone, so I typed from the terminal emulator:
su
insmod /lib/modules/fuse.ko
ntfs-3g /dev/block/sda1 /mnt/usb
And now the usb stick can be read and written
Click to expand...
Click to collapse
Dear angelom,
Thats great... Gonna try it again... Thanks...
EDIT : It is working... THANKS... GUIDE AND TOPIC UPDATED !!!
Kind regards,
Sent from my GT-N7000 using xda premium
As planned, I did some tests this morning with my Cassie's XtraLiteROM v5 (stock KL7 kernel) as I have a spare 16GB micro SDHC card.
I formatted my card in NTFS and put it in the slot. Rebooted my SGN and got the message as my SD Card is empty. So i plugged my SGN to my PC to see what was wrong with libraires.
First point, as I use Multimount SDCard, my internal memory and external SD card are automatically mounted when my SGN is connected via USB. Which make me realised that even if librairies were not working, the NTFS formatted card can be read/written by Windows even if the SGN is not able to read it.
Once that seen, I tried to do your step by step tutorial (which was not working because I initially forgot fuse.ko in /lib/modules) and got the following error message:
insmod: init_module '/lib/modules/fuse.ko' failed (Exec format error).
So I created a /sdcard/ntfs-3g/ folder and put fuse.ko in it as I saw on another thread but it did not work. I rebooted my SGN and found that what was working the first time (automatic mount of SD cards) did not work anymore. Strange.
Looking for clues on Google, it seems that fuse.ko needs to be compiled for the kernel magic number to properly start (CL823206 for XXKL7). So, two cases: we are lucky that the kernel magic number was the same as angelom base (what a luck), or angelom compiled the fuse.ko for his kernel magic number (likely).
So my question is now, did angelom compiled the fuse.ko file for his kernel?
Next steps for me are to move my KL7 kernel to angelom's and to automate the SDCard mounting process (I'm pretty sure a script in init.d could do the trick).
Dear The_Steph,
Pls Follow the steps in the updated first post and the right files are also enclosed in the post. I guess u have to flash Abyss kernel... My Sdcard is now ntfs and even the camera app can read and write to it... Just woow... Now Watching 1080p Avatar movie... show off time !!!
Kind Regards,
Other than the ability to use bigger size files, is there any advantage of using ntfs ?
THere are the new 64gb cards . was wondering if there would be any benefit in using them in ntfs
drgopoos said:
Other than the ability to use bigger size files, is there any advantage of using ntfs ?
THere are the new 64gb cards . was wondering if there would be any benefit in using them in ntfs
Click to expand...
Click to collapse
Dear drgopoos,
Main purpose is to be able to use larger files than 4 gb, other then i didnt realize any speed improvements regarding to my short time tests... Forum User " The_Steph " got a new 64 gb SDXC card and he is starting to test it with ntfs i guess... He will kindly report back soon...
Kind Regards,
My 64 card has been ordered at Amazon and it is planned to be delivered to my house the 4th of January.
As the SGN does have a big enough internal memory to store all daily files such as applications, pictures and data, my only aim using this modules is to be able to store HD movies on it (always bigger than 4GB) as I mainly use my SGN as an HD PMP during my daily commuting. I don't really care about the rest since as I said eearlier, it cans be hosted in the internal memory.
I am currently doing some tests with an old 16GB SD Card before my big jump to the 64GB world
I have now tests to do with AbyssNote 2.5 kernel then
An aditional question, is you fuse.ko removed from /lib/modules each time you restart your SGN?
The_Steph said:
An aditional question, is you fuse.ko removed from /lib/modules each time you restart your SGN?
Click to expand...
Click to collapse
Dear The_Steph,
No, It is always in /lib/modules... I have several times restarted my Gnote and never copied fuse.ko... Weird...
Kind Regards,
PROTOCHIP,
I think this then because of angelom that kindly added fuse.ko and ntfs.ko in the /lib/modules
Moved to angelom's AbyssNote 2.6 kernel and did your step by step procedure. Everything is now working perfectly
Next point is now how to automate it to automatically mount the card at Android startup and unmount it when shutting it down.
Dear The_Steph,
Yeah these files must be related with the kernel itself... By the way, is abyss v2.6 released? I cant find it...
Kind Regards,
PROTOCHIP,
Did not look for AbyssNote 2.6 yet as I was working on automation.
BTW, I succeded in automation of launching script with autostart https://market.android.com/details?id=nk.bla.android.autostart.
Last point to do is finding the settings > mount SD card script line to finalise a complete NTFS formatted card mount script at start
Once done, I will create a CWM flashable file to ease the process.
I have voted this thread 5-star that it deserves. CHEERS.
Here's my experience so far using stock KL7 deodexed ROM with Abyss kernel 2.5:
0. Firstly, I have a 32GB MicroSD card and I have successfully copied a 10gig 1080p MKV video file to it and played it without any issues on my Note thanks to this thread. THANK YOU heaps.
1. Using 'Script Manager' app, I can auto-run the script at bootup. But I still need to manually go to settings - storage and mount SD for it to be actually mounted. Is there a command to do this also at boot up via the same script? or is there no other way to mount it?
2. I noticed that all the video files in the \sdcard\external_sd are not seen by the media scanner. So the videos do not show up in Videos app and my favorite video player which is Act 1 Video player. (it just goes by the media scanner indexing and has no option to specify folders manually) Is there a way around this? or is this a limitation that is unavoidable?
3. I have no issues with connecting it as mass storage to my PC using USB cable and can copy files without any issues or speed loss to my MicroSD card. Awesome. (I get 11MB/sec consistent write to my Lexar 32GB class 10 card)
Anyways, overall, I'm super duper happy. =)
But yeah, solutions for #1 and #2 would make it perfect.
Dear jakiman,
Thanks for the feedback...
1- We are all looking for a solution to mount automatically... At least in new abyss kernel V2.6, fuse.ko will be automatically loaded during startup so there will be no need to use it in scripts i guess...
Use Autostart app or script manager to run script on boot...
Use elixir 2 widgets app to create a shortcut directly to settings-storage...
2- Stock apps has problems recognizing ntfs files... We have to use 3rd party alternatives...
For videos i use mxplayer and bsplayer.. Bsplayer is much more smooth that make me shocked...
For photos neither stock nor 3rd party apps i tried could read ntfs files... So viewing photos from ntfs is still problem... i select the file with es file explorer and then choose gallery to show photo file from ntfs.... I copied all photo files to internal memory for a temporary solution...
3- My card is 32 gb class4 and that may be the problem for copying small files... For big files like movies i get 7 mb/s transfer rate with usb mass storage mode on windows7...
Kind Regards,
Sent from my GT-N7000

[Q] SWAP PArtition

1st question :I have created a swap partition according to one of the tutorials here. But when i do the swapon command it says No such device or adress any solutions ?
http://forum.xda-developers.com/showthread.php?p=21718735
2nd question: After i rebooted the phone i use alfs kernel and gingerdx25 , the telephone is stuck jsut after i input my pin it enters the gingerdx amd thamn its stuck it becoems really laggy and than i reboots... this happens every time i boot it since my last restart it cant boot sometimes it stucks at infinity boot loop even if i delete the cache . Like there is 100% cpu usage so much lag... i cant even open the menu and than i t reboots
Hi there, it seem like you activate Comp-cache with swap right?
if you do that, you'll likely need to remove the swap partition OR Wipe your data & disable comp-cache
one more question mate . I reisntalled the android but due to some reason when i try to instlal an application the phone restarts any ideas ? :S
it mean that the app you tried to install is existed but only the data....
so, when u try to install it again, it will lead to reboot...
try clear out the data or do full-wipe
CKKnot said:
it mean that the app you tried to install is existed but only the data....
so, when u try to install it again, it will lead to reboot...
try clear out the data or do full-wipe
Click to expand...
Click to collapse
once again i hit the thanks button really thank you. But something now screwed up. When i inert my 8gb sd card it doesnt recognise taht i have even put in a card.Nothing happens like there is no sdcard.I tried to format it but it says taht there is nosd card and when i put my opther one which i do not use 2gb card it recognises it i think my 8gb card is bugged :S
nah, if you had't partition it well, it will buggy. Try copy all ur data to pc & wipe disk & copy back. Hope that solve ur problem
CKKnot said:
nah, if you had't partition it well, it will buggy. Try copy all ur data to pc & wipe disk & copy back. Hope that solve ur problem
Click to expand...
Click to collapse
i think my 8gbSanDisc is bricked forever. Its not recognised either on pc or on the telephone.Like there is no card i cant format it ....
if at partition wizard display it as a bad disk, i afraid that your sdcard is utterly damaged
be sure to own a lifetime warranty sdcard if using swap.(well, lifetime doesn't mean it last forever also.) you can instead use comp-cache as substitute method
CKKnot said:
if at partition wizard display it as a bad disk, i afraid that your sdcard is utterly damaged
be sure to own a lifetime warranty sdcard if using swap.(well, lifetime doesn't mean it last forever also.) you can instead use comp-cache as substitute method
Click to expand...
Click to collapse
Tried several partition wizards and they dont regognise the card like there is no card...
it is damaged
CKKnot said:
if at partition wizard display it as a bad disk, i afraid that your sdcard is utterly damaged
be sure to own a lifetime warranty sdcard if using swap.(well, lifetime doesn't mean it last forever also.) you can instead use comp-cache as substitute method
Click to expand...
Click to collapse
1st question :I have created a swap partition according to one of the tutorials here. But when i do the swapon command it says No such device or adress any solutions ?
have you tried:
swapon /dev/mmcblk0p3
mmcblk0p3
blk0 mean block 0
p3 mean partition 3
Edited ----- My Bad
CKKnot said:
have you tried:
swapon /dev/mmcblock0p3
mmcblock0p3
block0 mean block 0
p3 mean partition 3
Click to expand...
Click to collapse
new problem now sd cardi s accessed and formatted by the phone but when i put hte usb cable it says it must be formatted (windwos says this) and if i format it in fat32 its unreadable by the phone anymore...And yes the problem was mispartitioning the sd card wasnt fried
okay first of all, most user wanna configure his sdcard partition in this way.
[FAT32][EXT2][SWAP] - (This is what i configured now.)
[FAT32] is for normal sdcard file system which you can access it from your pc also
[EXT2] is where the partition of sdcard store your app (.apk) and dalvik-cache (Depend on the rom.)
[SWAP] is where the partition is assigned as swap memory.
all of those partition must be primary and in order. [FAT32] can have a drive letter where other's can't have it.
CKKnot said:
okay first of all, most user wanna configure his sdcard partition in this way.
[FAT32][EXT2][SWAP] - (This is what i configured now.)
[FAT32] is for normal sdcard file system which you can access it from your pc also
[EXT2] is where the partition of sdcard store your app (.apk) and dalvik-cache (Depend on the rom.)
[SWAP] is where the partition is assigned as swap memory.
all of those partition must be primary and in order. [FAT32] can have a drive letter where other's can't have it.
Click to expand...
Click to collapse
cant i make swap memory by making swap file because it doesnt work with swap partition
can, but it will reduce it's performance.
C:\Program Files (x86)\Android\android-sdk\platform-tools>adb shell
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
~ # fdisk -l dev/block/mmcblk0
fdisk -l dev/block/mmcblk0
Disk dev/block/mmcblk0: 7948 MB, 7948206080 bytes
255 heads, 63 sectors/track, 966 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
dev/block/mmcblk0p1 * 1 777 6240228+ c Win95 FAT32 (
)
dev/block/mmcblk0p2 778 833 449820 82 Linux swap
dev/block/mmcblk0p3 834 966 1068322+ 83 Linux
~ # swapon /dev/block/mmcblk0p2
swapon /dev/block/mmcblk0p2
swapon: /dev/block/mmcblk0p2: No such device or address
~ # swapon /dev/mmcblk0p2
swapon /dev/mmcblk0p2
swapon: can't stat '/dev/mmcblk0p2': No such file or directory
Click to expand...
Click to collapse
here is my output
recreate your partition into
[FAT32] [EXT2] [SWAP]
most rom will search the third partition as their swap partition. i recommend you to use partition wizard to do it
CKKnot said:
recreate your partition into
[FAT32] [EXT2] [SWAP]
most rom will search the third partition as their swap partition. i recommend you to use partition wizard to do it
Click to expand...
Click to collapse
i did it i have 3 partitions fat , ext2,swap
You need to mount the partition before using swapon.If you add this line to system/etc/fstab the rom will mount it for you at boot.
Code:
/dev/block/mmcblk0p3 /swap swap rw

[Re-OPEN] SanDisk 64BG EXT4/exFAT N.E.A.K. Kernel

Hello,
I re-open this thread because I have new information about the compatibility of N.E.A.K. kernel with my card formatted in exFAT.
N.E.A.K. Kernel don't support this file system!!! That's the reason why my card doesn't work with...
I restart to "0" because I think the alone solution is to use EXT4 with auto-mount at boot.
@ scote (or other):
Can I use your manual mount cmd on init.d or other way?
Hello,
With n7100 international + Omega v10 (Android 4.1.2 based) + N.E.A.K. kernel v1.4x
With various µSD card (but especially with my new Sandisk UHS 64Go) I would know how to use ext4 filesystem.
After computer formatting in ext4 the card can't be really usable by phone:
- Storage menu don't see him.
- Recovery can't do anything with (mount / format)
- Some apps can see him. (like empty 64GB / or 0Gb card capacity !)
- ES Files explorer work with but by the /mnt/extsd/card directory and if no SD card in slot work to !!!
thus I expect doesn't work really
If you have any information about what work, can or can't work, or anything about filesystems, software...
Thank you
Click to expand...
Click to collapse
I had the same thing happen. I plugged it not my computers sd card reader and the computer acted as if nothing was there. I tried to force a format through DOS but it failed. Ultimately I had to buy a new MicroSD card.... Now it works.
Update: Card doesn't work with my reader/computer
What file system are you using?
Why not just use exFat? It useable on Note 2 and readable by Windows. Just make sure to use the latest TWRP for system bqckup
Re: SD Card file system usable by OS apps
You can mount ext4 file system manually if you are rooted, from a terminal or adb shell
mount -t ext4 /dev/block/mmcblk1p1 <some directory>
substitute <some directory> with the path without the <> I used /sdcard/mnt
of course if you wont be able to read the card with windows pcs
I think there might be an app to do this for you, usb mounter
Android won't mount ext4 by default.
Also, windows can't mount ext4 drives but you can use something like minitool partition wizard to reformat it to ExFAT or NTFS if you're on samsung ROMs, or Fat32 if you're using CM/AOSP ROMs.
Pongster said he'd be making a test kernel to see if he can get ext4 to auto-mount in the HyperDroid JBX thread, but that's not released yet.
You aren't using TWRP 2.4.0.0 or 2.4.0.1 by chance?
!!! Sorry, XDA doesn't mail me for new answer.
Thanks your help men
Why not just use exFat? It useable on Note 2 and readable by Windows. Just make sure to use the latest TWRP for system bqckup
Click to expand...
Click to collapse
I don't like Microsoft. If I have a Linux device like Android N7100 I want to use it the more possible with Linux environment.
I useCWM Touch v6.0.1.4-jb moded by Xiaolu. Good?
You can mount ext4 file system manually if you are rooted, from a terminal or adb shell
mount -t ext4 /dev/block/mmcblk1p1 <some directory>
substitute <some directory> with the path without the <> I used /sdcard/mnt
Click to expand...
Click to collapse
Thus can't be used like a FAT SD Card? By Samy explorer and others softs? Can't be see by system like an external card, not possible to manage it very good (capacities disponnible by exemple) ?
You aren't using TWRP 2.4.0.0 or 2.4.0.1 by chance?
Click to expand...
Click to collapse
No; why?
Re: SD Card file system usable by OS apps
Once its mounted any explorer or app dont care or know what the filesystem is
Yes, but can I will see the SD like a "normal" FAT formatted card?
I want to say, in menu/storage like a external SD?
If the card like this, have all the same functionality of FAT card, can you help to auto-mount at boot?
My card is actually broken: phone or PC won't see anything when connected
'll try with a new 64GB in few hours.
Re: SD Card file system usable by OS apps
StreamingMT said:
!!! Sorry, XDA doesn't mail me for new answer.
I don't like Microsoft. If I have a Linux device like Android N7100 I want to use it the more possible with Linux environment.
I useCWM Touch v6.0.1.4-jb moded
Click to expand...
Click to collapse
I don't see how it related. Both fat and exfat are MS. And exFat is the only option works across Note 2 Android, TWRP,Windows, and can be mounted as thumb drive (with the benefit working with > 4gb files). It's up to you if you want to get yourself into troubles by using other format.
Sent from my GT-N7100 using XDA Premium App
jackleung
I like more ext4, but apparently this is a little bit difficult to do what I want (And I think it's what broke my firts SD). Thus I'll use extFAT for my new one.
That's work perferctly! Just funny to see my new card in packging pre-formatted in extFAT...
All is good for me now, thanks you every body for your help ;p
Hello,
I re-open this thread because I have new information about the compatibility of N.E.A.K. kernel with my card formatted in exFAT.
N.E.A.K. Kernel don't support this file system!!! That's the reason why my card doesn't work with...
I restart to "0" because I think the alone solution is to use EXT4 with auto-mount at boot.
@ scote (or other):
Can I use your manual mount cmd on init.d or other way?

[Q] Help can't get ntfs to mount!

Hi there ok so I have my Samsung S5 active I rooted it with towelroot.
So now I am trying to get my ntfs formatted 64Gb sd-card to mount on my phone.
So I write 0 to the full sd-card to allow me to format my sd-card to ntfs on windows without error.
I install 'Paragon NTFS & HFS+ / Tools' on my phone to mount the sd-card it did not work.
So I let and am trying to mount my sd-card using the Terminal, so I use adb shell to access my phone Terminal.
so from what I have found out is that /dev/block/mmcblk1p1 should be my sd-card device, like /dev/sdb1 in linux,
and I am trying to mount it to /storage/extSdCard so I am running the command,
Code:
su
ntfs-3g /dev/block/mmcblk1p1 /storage/extSdCard
and I am getting this error
ntfs-3g-mount: mount failed: Permission denied
I let as far as remounting everything in /proc/mounts to read/write mode and I still got the error and even doing
Code:
chmod 777 /dev/block/mmcblk1p1
chmod 777 /storage
chmod 777 /storage/extSdCard
and I still am get the error
ntfs-3g-mount: mount failed: Permission denied
anyone know what I am doing wrong I ran all the above command as root, and no luck anyone help please.
ps. I really don't what to use exfat every time I mount it in linux it end up getting corrupted and I use linux a lot, and I don't what to use fat32 just in case I ever end up make a file that larger 4G on my phone
Thank You!
I have no issues with the format tool from the phone under storage settings, I too use linux on my main PC and I can browse the card fine just by plugging my phone in with the ad card in it. You really shouldn't be trying to use ntfs with linux anyway, and in case you didnt know android is linux based, so that may be part of your problem. If your phone can read the card correctly then it sounds like an issue with your computer so i would look there possibly.
Rakuu said:
I have no issues with the format tool from the phone under storage settings, I too use linux on my main PC and I can browse the card fine just by plugging my phone in with the ad card in it. You really shouldn't be trying to use ntfs with linux anyway, and in case you didnt know android is linux based, so that may be part of your problem. If your phone can read the card correctly then it sounds like an issue with your computer so i would look there possibly.
Click to expand...
Click to collapse
yea I know I should not use ntfs with linux, and I know android is linux based.
I think it the fact that I am using 64bit linux which is causing the problem with me being able to use exfat with linux
so I thought about trying to get ntfs to work on my phone because I have a ntfs storage partition on my main computer so I reboot into my windows partition and I never have a problem with that.
but anyway I just gave up with trying to use ntfs on my sd-card and format it to ext2 and got it working first try on my phone, now I just hope that next time I'm in windows and I need to move files to my sd-card it will not give me to many problem I know there are way to make it work.
But thank for the help anyway.

Categories

Resources