[Q] swap on, sdcard or file - HTC Wildfire S

I've already tried my class 10 sdcard ext3 + swap partitioned but it was not accepted by formerly unrooted htc genuine firmware.
Other threads say partition order and a vfat 1. partition is mandatory?
http://forum.xda-developers.com/showthread.php?t=1229030&highlight=swap+file
http://forum.xda-developers.com/showthread.php?t=699776
I would prefer the swapfile way before repartition the sdcard.
Swap could be enabled, but in which config file /.rc are fstab and mount cmds?
I need to remount /system rw to access system configs and make changes permanent?
Code:
# free
total used free shared buffers
Mem: 428420 418192 10228 0 32
-/+ buffers: 418160 10260
Swap: 0 0 0
#
# ./ls -ltrh /system/etc
...
-rw-r--r-- 1 0 0 613 Mar 26 02:45 vold.fstab
# ./cat /etc/vold.fstab
## Vold 2.0 fstab for HTC Passion
#
## - San Mehat ([email protected])
##
#######################
## Regular device mount
##
## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...>
## label - Label for the volume
## mount_point - Where the volume will be mounted
## part - Partition # (1 based), or 'auto' for first usable partition.
## <sysfs_path> - List of sysfs paths to source devices
######################
# Mounts the first usable partition of the specified device
dev_mount sdcard /mnt/sdcard auto /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
# ./cat /proc/filesystems
nodev sysfs
nodev rootfs
nodev bdev
nodev proc
nodev cgroup
nodev tmpfs
nodev debugfs
nodev sockfs
nodev pipefs
nodev anon_inodefs
nodev devpts
ext3
ext2
nodev ramfs
vfat
nodev fuse
fuseblk
nodev fusectl
yaffs
yaffs2

Related

[HELP] Can you swap external sdcard for internal

Hi I have have the Archos 80 g9 8GB Turbo ics I'd like to no if you can switch the internal sdcard for the external sdcard
Iv done it but it stops the internal sdcard being mounted at /sdcard /storage but its still mounted at /data/media
Code:
## Vold 2.0 Generic fstab
## - San Mehat ([email protected])
##
#######################
## Regular device mount
##
## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...>
## label - Label for the volume
## mount_point - Where the volume will be mounted
## part - Partition # (1 based), or 'auto' for first usable partition.
## <sysfs_path> - List of sysfs paths to source devices
######################
## Example of a standard sdcard mount for the emulator / Dream
# Mounts the first usable partition of the specified device
#dev_mount sdcard /mnt/sdcard auto /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
## Example of a dual card setup
# dev_mount left_sdcard /sdcard1 auto /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
# dev_mount right_sdcard /sdcard2 auto /devices/platform/goldfish_mmc.1 /devices/platform/msm_sdcc.3/mmc_host/mmc1
## Example of specifying a specific partition for mounts
# dev_mount sdcard /sdcard 2 /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
dev_mount volume_sdcard /mnt/data auto /devices/platform/omap/omap_hsmmc.0/mmc_host/mmc1
dev_mount volume_external /mnt/ext_storage auto /devices/platform/omap/musb-omap2430/musb-hdrc/usb2/2-1/2-1:1.0 /devices/platform/omap/usbhs_omap/ehci-omap.0/usb1/1-1/1-1:1.0

[Q] [REQUEST] S2E Scripts or App2Sd+Dalvik-Cache Working

I'm using the MerrukTechnology Kernel 2.0 PRE-FINAL (2.6.35.7 [email protected]), Android Version: 2.3.6, Base Version: S5360BUTLC1, ext4 partitions, tried Darktremor app2sd, custom made (http://forum.xda-developers.com/showthread.php?t=832799), and etc.
Nothing works right, i used this custom on my G5 and works Just fine.
But on SGY not works well, sometimes works, sometimes not, sometime works and on next reboot stop, even can mount ok but apps not works.
Sometimes works perfect, but when i restore my Titanium backups, on next restart stop working.
This is the Script i'm trying:
/system/etc/init.d/02app2sd:
PHP:
#!/system/bin/sh
LOG=/data/app2sd.log
echo "$(date) mounting..." > $LOG
mount -o rw -t ext4 /dev/block/vold/179:2 /sd-ext 1>>$LOG 2>>$LOG
mount -o rw -t ext4 /dev/block/mmcblk0p2 /sd-ext 1>>$LOG 2>>$LOG
mount -o bind /sd-ext/app /data/app 1>>$LOG 2>>$LOG
mount -o bind /sd-ext/dalvik-cache /data/dalvik-cache 1>>$LOG 2>>$LOG
mount >> $LOG
echo "$(date) mount finished" >> $LOG
I already tried almost everything, somebody know some working script?
and what your log said?
irfanbagus said:
and what your log said?
Click to expand...
Click to collapse
pastebin.com/bih8vtiU
I wipe, i put script, restore backup and next restart stop all stop work even logcat said waiting device!
And app2sd.log:
# cat /data/app2sd.log
cat /data/app2sd.log
Tue May 15 15:40:26 BRT 2012 mounting...
mount: Device or resource busy
rootfs / rootfs rw,relatime 0 0
tmpfs /dev tmpfs rw,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0
/dev/stl9 /system rfs rw,relatime,vfat,llw,check=no,gid/uid/rwx,iocharset=cp437
0 0
/dev/block/stl11 /data ext4 rw,nosuid,nodev,noatime,nodiratime,barrier=1,data=or
dered,noauto_da_alloc 0 0
/dev/block/stl10 /cache ext4 rw,nosuid,nodev,noatime,nodiratime,barrier=1,data=o
rdered,noauto_da_alloc 0 0
/dev/stl6 /mnt/.lfs j4fs rw,relatime 0 0
tmpfs /merruk tmpfs rw,relatime,size=32k 0 0
/dev/block/vold/179:2 /sd-ext ext4 rw,relatime,barrier=1,data=ordered 0 0
/dev/block/vold/179:2 /data/app ext4 rw,relatime,barrier=1,data=ordered 0 0
/dev/block/vold/179:2 /data/dalvik-cache ext4 rw,relatime,barrier=1,data=ordered
0 0
Tue May 15 15:40:29 BRT 2012 mount finished
Click to expand...
Click to collapse
you can try repencis. it has a2sd support but you'll need to change your partition into ext2.
kurotsugi said:
you can try repencis. it has a2sd support but you'll need to change your partition into ext2.
Click to expand...
Click to collapse
I don't like custom themes
I tried the DarkTremor too, but stops working too.
you can replace the theme with stock one. the one you need is the a2sd script in /system/bin and /system/xbin. everything else could be replaced with stock rom.
Not works anyway, even i tried the ChobitsDigitalis and i wipe, flash and when reboot it show the stock room not the custom rom
nexbr said:
I don't like custom themes
Click to expand...
Click to collapse
Try terma kernel but make sure a2sd script install 1st b4 the kernel.
Actually u can custmz ur stok kernel so can run a2sd.

how to swap internal and external memory on archos gamepad 2

## Vold 2.0 Generic fstab
## - San Mehat ([email protected])
##
#######################
## Regular device mount
##
## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...>
## label - Label for the volume
## mount_point - Where the volume will be mounted
## part - Partition # (1 based), or 'auto' for first usable partition.
## <sysfs_path> - List of sysfs paths to source devices
######################
## Example of a standard sdcard mount for the emulator / Dream
# Mounts the first usable partition of the specified device
#dev_mount sdcard /mnt/sdcard auto /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
#dev_mount flash /mnt/sdcard auto /devices/virtual/mtd/mtd9/mtdblock9
dev_mount flash /mnt/internal_sd auto /devices/virtual/mtd/mtd9/mtdblock9
#dev_mount flash /mnt/sdcard auto /devices/virtual/mtd/mtd9/mtdblock9
dev_mount sdcard /mnt/external_sd auto /devices/platform/rk29_sdmmc.0/mmc_host/mmc0
dev_mount udisk /mnt/usb_storage auto /devices/platform/usb20_host/usb /devices/platform/usb20_otg/usb
## Example of a dual card setup
# dev_mount left_sdcard /sdcard1 auto /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1
# dev_mount right_sdcard /sdcard2 auto /devices/platform/goldfish_mmc.1 /devices/platform/msm_sdcc.3/mmc_host/mmc1
## Example of specifying a specific partition for mounts
# dev_mount sdcard /sdcard 2 /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1

Init.rk30board.bootmode.unknown.rc (Android)

on fs
insmod /rk30xxnand_ko.ko
# mount mtd partitions
mount ext4 [email protected] /system wait ro noatime nodiratime noauto_da_alloc discard
start readahead
mount ext4 [email protected] /data wait noatime nodiratime nosuid nodev noauto_da_alloc discard
mount ext4 [email protected] /cache wait noatime nodiratime nosuid nodev noauto_da_alloc discard
(Can this the be edited with super user access and how?)

Invalid argument error when mounting /dev/block/sda1

I'm trying to follow this post: https://forum.xda-developers.com/showpost.php?p=59166089&postcount=124 to try to get link2sd up and running, I've followed the instructions until I encountered an issue:
mount -t ext4 /dev/block/sda1 /storage/usb
mount: '/dev/block/sda1'->'/storage/usb': Invalid argument
Click to expand...
Click to collapse
The device's name is valid, I've even tried umounting the usb drive in /storage, but it still gives me that error. Have I missed something? The post is quite old and some things might have changed since then.
/system/bin/mount -t ext4 /dev/block/sda1 /storage/usb
Child's Play said:
/system/bin/mount -t ext4 /dev/block/sda1 /storage/usb
Click to expand...
Click to collapse
same thing. I've run fsck on the usb drive, just to be sure, but it seems to work perfectly well.
dictorclef said:
same thing. I've run fsck on the usb drive, just to be sure, but it seems to work perfectly well.
Click to expand...
Click to collapse
Do
ls -l /dev/block/sda1
ls -l /storage/usb
to make sure both exist.
dcarvil said:
Do
ls -l /dev/block/sda1
ls -l /storage/usb
to make sure both exist.
Click to expand...
Click to collapse
they do
ls -l /dev/block/sda1
brw------- 1 root root 8, 1 1969-12-31 19:00 /dev/block/sda1
ls -l /storage/usb
total 0
Click to expand...
Click to collapse
Should have tried this already:
/system/bin/mount -vt ext4 /dev/block/sda1 /storage/usb
mount: '/dev/block/sda1'->'/storage/usb': Invalid argument
try '/dev/block/sda1' type 'ext4' on '/storage/usb'
Click to expand...
Click to collapse
It's as if it doesn't see ext4 in the command. I wonder if it could be a bug with this magisk module? https://forum.xda-developers.com/fire-tv/development/magisk-amazon-firetv4k-ntfs-f2fs-ext4-t3991981
dictorclef said:
Should have tried this already:
It's as if it doesn't see ext4 in the command. I wonder if it could be a bug with this magisk module? https://forum.xda-developers.com/fire-tv/development/magisk-amazon-firetv4k-ntfs-f2fs-ext4-t3991981
Click to expand...
Click to collapse
Did you read note 3 at that link?
"Note 3: Some EXT4 drives may fail to mount,most likely this is because e2fsck it's failing to check for errors. In the next version i will try to add a newer version of e2fsck.However, formatting to EXT4 directly on the device will fix the issue."
You can do "cat /proc/filesystems" to make sure you have ext4 support (should NOT have "nodev" before ext4), but you still may need to format the USB drive on your firestick.
dcarvil said:
Did you read note 3 at that link?
"Note 3: Some EXT4 drives may fail to mount,most likely this is because e2fsck it's failing to check for errors. In the next version i will try to add a newer version of e2fsck.However, formatting to EXT4 directly on the device will fix the issue."
You can do "cat /proc/filesystems" to make sure you have ext4 support (should NOT have "nodev" before ext4), but you still may need to format the USB drive on your firestick.
Click to expand...
Click to collapse
Device does have ext4 support:
cat /proc/filesystems
nodev sysfs
nodev rootfs
nodev ramfs
nodev bdev
nodev proc
nodev cgroup
nodev tmpfs
nodev configfs
nodev debugfs
nodev tracefs
nodev sockfs
nodev pipefs
nodev devpts
ext3
ext2
ext4
vfat
msdos
iso9660
fuseblk
nodev fuse
nodev fusectl
nodev selinuxfs
nodev functionfs
Click to expand...
Click to collapse
And I did try to format the drive using aparted on my firestick, still no luck.
I think I might actually be an idiot, /dev/block/sda1 was already mounted to /mnt/media_rw/[a bunch of numbers and letters]. Unmounted it and it will now mount where I want. Link2sd detects the partition just fine.

Categories

Resources