If I were to create a 1.5gb fakesd.img ext2 file
done once, on computer
dd if=/dev/zero of=fakesd.img bs=1048576 count=1536
mke2fs -F fakesd.img
--------
done in rootfs-init
losetup /dev/block/loop2 /sdcard/fakesd.img
mount -t ext2 -o noatime,nodiratime /dev/block/loop2 /fakesd
change " symlink /mnt/sdcard /sdcard/ " in rootfs-init.rc
symlink /mnt/sdcard /fakesd/
probably want to avoid changing the external path from /mnt/sdcard/ to anything.. for compatibility sake..
I have my windows stuff on my card. I want android to index as little as possible yet still be able to access my sd card at /sdcard.. Will this work?
I have a feeling that someone is just going to tell me to partition card. I don't feel like it right now..
Partition the card Just kidding, but I like your thinking.
Trying to test it out post boot.. My router has more command line functionality, thanks Google.
hi
I have two 8GB class4 memory card but when I'm just a partition're doing very bad work
Android is reset
apps are broken
High and low speed is
And ...
But when a 2GB partition, I just work very well
Benchmarking partition is much better!
no more problem in android!
So I decided two partitions 2 and 6 GB and the second partition so I just do mount
Method:
1- Memory partitioning (first partition 2gb fat32)
2- copy android in first partition & run it
3- in android terminal type:
Code:
ls /dev/block/m*
or adb
Code:
adb shell ls /dev/block/m*
result like this:
Code:
/dev/block/mmcblk0
/dev/block/mmcblk0p1
/dev/block/mmcblk0p2
/dev/block/mmcblk0p3
Partition testing can be yours for the mount
1- make a folder (not in /sdcard & /mnt/sdcard)
Code:
mkdir /mnt/sd2
now test (for fat32): (just change mmcblk0p2)
Code:
mount -t vfat -o fmask=0000,dmask=0000,rw,flush,noatime,nodiratime /dev/block/mmcblk0p2 /mnt/sd2
(for ext2)
Code:
mount -t ext2 -o noatime,nodiratime /dev/block/mmcblk0p2 /mnt/sd2
Now the partition should be on the /mnt/sd2 mounted
and you can mount in boot
backup /init
open init and past mount cammand below this line :
Code:
PATH=/sbin:/system/sbin:/system/bin:/bin:/system/xbin:/system/xbin/bb:/data/local/bin
now we have auto mount partition
but we have one problem! we should link /mnt/sd2 > /mnt/sdcard
Who s the solution?
interesting idea. will try out.
Hi everyone,
I'm trying to figure out if I can get my nook to be the ultimate upgrade on a 160gb Ipod, that is to get it to work with an external battery powering a 200gb or higher 2.5" external hard drive.
and then using audio through USB.
Do you know if that is theorically possible? (power wouldnt be an issue with external power but maybe the nook just can't recognize any external storage beyond a certain capacity)
the info is probably out there somewhere but I'm sad to say I don't know enough to understand most of what I find on the board (yet)
please tell me it's possible !
cheers
I don't see why it wouldn't work.
USB mass storage should all be the same.
You'll need to mount it.
I'll have to borrow a 2.5" disk in a USB enclosure and try it today.
Hi Renate,
Great! thanks for your reply
and wow! thanks for looking into this!
I'll have to wait till next month to give it a try, the idea is to build some sort of portable dock (using the slots meant for the nook cases) with battery/USB hub/hard drive and jack audio output so I can use the nook+dock as a unit, just the dock as music library on my laptop or just the nook for reading.
I've been dreaming of an e-ink computer for some time, the three main things I needed were a keyboard, and sound output (both of which you already took care of, and mass storage) if you tell me it works I'll post a guide on how to get that done.
I have a 2.5" disk out of an old laptop in a USB.
It has 3 partitions on it.
Yes, it works fine on FAT, FAT32 & NTFS
If you use this a lot, you might want to put a mkdir for the mount point in init.rc before the root goes ro.
This is how you have to mount it if you have to do all the steps.
Code:
mount -o rw,remount rootfs /
mkdir /usb
mount -t vfat /dev/block/uba1 /usb
Change vfat to ntfs if applicable.
Thanks a lot Renate,
I don't quite understand everything yet, but I'll get there (there's plenty to read on this board) don't bother explaining, if you start you'll never see the end of it.
Now I suppose the big question is : can the nook touch take a 300gb itunes library? I'll get back to you on that
cheers
I tried this script
mount -o rw,remount rootfs /
mkdir /usbdisk
mount -o rw,iocharset=utf8 -t vfat /dev/block/uba1 /usbdisk
Click to expand...
Click to collapse
for fat32 hard disks - 500 and 1000gb and work perfect
but for ntfs
mount -o rw,remount rootfs /
mkdir /usbdisk
mount -o rw,iocharset=utf8 -t ntfs /dev/block/uba1 /usbdisk
Click to expand...
Click to collapse
script works without errors but usbdisk folder remained empty.
where I do mistake? please advice.
Try without any of the options.
It may be that with the default driver NTFS can only be mounted read-only.
Code:
mount -t ntfs /dev/block/uba1 /usbdisk
Renate NST said:
...
If you use this a lot, you might want to put a mkdir for the mount point in init.rc before the root goes ro.
This is how you have to mount it if you have to do all the steps.
Code:
mount -o rw,remount rootfs /
mkdir /usb
mount -t vfat /dev/block/uba1 /usb
Change vfat to ntfs if applicable.
Click to expand...
Click to collapse
Does this just work on top of a plain rooted 1.1.2, or do I also need some additional apk?
It should work on anything.
Renate NST said:
It should work on anything.
Click to expand...
Click to collapse
What I meant to ask was if the above process (to mount an external drive on the NST) was contingent on the prerequisite "to first get my NST to support USB Host Mode"?
Yes, to get a disk drive working you need to somehow get the Nook to be a USB host.
The straight forward way is to install verygreen & mali100's uImage and then use my UsbMode.apk to switch it into host mode.
This is all detailed in another thread: http://forum.xda-developers.com/showthread.php?t=1457971
You'll need a powered hub if you want to run a disk drive.
If you know what you are doing and you use a back-powering hub you can get the Nook to kick into USB host mode without any modifications or apps.
Oh, yeah, of course an OTG adapter is required for any of this.
Thanks for reply/pointer.
I found the usb-host-mt-pack_0.1.zip.
I assume I should replace the NullKbd-1.1.apk and UsbMode-1.2.apk in the zip file with their corresponding newer versions NullKbd-1.2.apk and UsbMode-1.6.apk?
Renate NST said:
Try without any of the options.
It may be that with the default driver NTFS can only be mounted read-only.
Code:
mount -t ntfs /dev/block/uba1 /usbdisk
Click to expand...
Click to collapse
Renate thanks for advice. I tried without any of the options, but without luck. usbdisk folder still remaining blank. Please any more suggestions.
You probably have multiple partitions on the drive.
Try:
Code:
busybox fdisk -l /dev/block/uba1
Then you'll have to do something like:
Code:
mount -t ntfs /dev/block/uba1p1 /usb
Renate NST said:
Try without any of the options.
It may be that with the default driver NTFS can only be mounted read-only.
Code:
mount -t ntfs /dev/block/uba1 /usbdisk
Click to expand...
Click to collapse
Renate NST said:
You probably have multiple partitions on the drive.
Try:
Code:
busybox fdisk -l /dev/block/uba1
Then you'll have to do something like:
Code:
mount -t ntfs /dev/block/uba1p1 /usb
Click to expand...
Click to collapse
I get this print with error:
***********************
# busybox fdisk -l /dev/block/uba1
busybox fdisk -l /dev/block/uba1
Disk /dev/block/uba1: 500.1 GB, 500104691712 bytes
255 heads, 63 sectors/track, 60800 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/block/uba1p1 ? 120528 234814 918008208 4f Unknown
Partition 1 does not end on cylinder boundary
/dev/block/uba1p2 ? 119381 153271 272218546+ 73 Unknown
Partition 2 does not end on cylinder boundary
/dev/block/uba1p3 ? 113202 147075 272087568 2b Unknown
Partition 3 does not end on cylinder boundary
/dev/block/uba1p4 ? 177064 177067 27487 61 Unknown
Partition 4 does not end on cylinder boundary
Partition table entries are not in disk order
# mount -t ntfs /dev/block/uba1p1 /usbdisk
mount -t ntfs /dev/block/uba1p1 /usbdisk
mount: No such file or directory
**********************
p.s. In Windows this disk have one ntfs partition only.
Hmm, I tried fdisk on an old 256M flash drive that I had and got similar gobble-dee-gook.
It mounted correctly though without a partition number.
Renate NST said:
Hmm, I tried fdisk on an old 256M flash drive that I had and got similar gobble-dee-gook.
It mounted correctly though without a partition number.
Click to expand...
Click to collapse
Now tried sd 256mb ntfs via card reader. In fdisk - same gibberish output. mount work w/o errors but usbdisk dir still empty (on sd were few files).
Renate NST said:
...
If you use this a lot, you might want to put a mkdir for the mount point in init.rc before the root goes ro.
This is how you have to mount it if you have to do all the steps.
Code:
mount -o rw,remount rootfs /
mkdir /usb
mount -t vfat /dev/block/uba1 /usb
Change vfat to ntfs if applicable.
Click to expand...
Click to collapse
Is there another way to auto-create a persistent mount point without fiddling with unpacking/repacking uRamdisk to apply the snippet to its init.rc copy?
digixmax said:
Is there another way to auto-create a persistent mount point ...
Click to expand...
Click to collapse
Certainly. Just do it in init.rc before the root is mounted read-only.
Code:
[b]mkdir /usb 0777 system system[/b]
mount rootfs rootfs / ro remount
(init.rc is in uRamdisk in the boot partition.
use bootutil.exe to extract and replace the init.rc)
Is there any script or mod to use the microSD as /sdcard (Internal memory)?
there is one for the S3: http://forum.xda-developers.com/showthread.php?t=1772234
Is it possible to port this to the GT-N8010 ?
this is the script for stock kernel, fat32:
Code:
#!/system/bin/sh
#extsd2internalsd is a modification that allows to switch internal sd to external sd and viceversa. With this you can use default internal sd only for app storage #and the external sd to store all apps resource and all others stuff. The resut is a very big increase of installable apps on gs3
#All credits to Mattiadj of xda forum for the idea and script and to mike1986 for the cmw zip.
#xda thread url at
sleep 10
mount -o remount,rw /
mount -t vfat -o umask=0000 /dev/block/vold/179:17 /mnt/sdcard
mount -t vfat -o umask=0000 /dev/block/vold/179:17 /storage/sdcard0
sleep 30
mount -o bind /data/media /mnt/extSdCard
mount -o bind /data/media /storage/extSdCard
chmod 777 /mnt/extSdCard
sleep 30
mkdir -p /mnt/extSdCard/external_sd/sdcard1
touch /mnt/extSdCard/external_sd/.nomedia
sleep 10
mount -o bind /storage/sdcard0 /mnt/extSdCard/external_sd/sdcard1
exit
edit: nevermind I found it.
http://forum.xda-developers.com/showthread.php?t=1857391
I'm trying to mount a USB stick with read-write permissions, so that I can access its contents without a root terminal. The problem is, Marshmallow always creates a mount point that belongs to media_rw:media_rw with 0770 permissions and there doesn't seem to be a way of changing either the permissions or the owner.
This is my mount command:
Code:
su
mount -t vfat -o umask=0777,gid=0,uid=0 /dev/block/sda1 /storage/emulated/0/usb
StickMount by Chainfire is able to do this, so maybe I'm just missing something. My device is Nexus 5, by the way.