![]() |
[HowTo][WIP] use real sdcard as home-partition and/or for android data
Updated for Salfish >= 1.0.4 If you had it running before and problems after the last Update (1.0.4), you only need to do step 6! First of all: this config is meant to be used with UNIX filesystems like ext4. There are also some suggestions for btrfs in this thread. I guess, it needs to be handled differently. Second: i'm not sure, how it affects speed with slow sdcards, but i'd recommend using a real fast (and big) sdcard Everything you do, you do at your own risk! I tried to write everything correct, but mistakes happen... So, here we go: x.a is always for using as home partition x.b is always for android data 1. create new folder for custom mountpoint Code:
devel-su Code:
mkdir /mnt/sd Code:
mount /dev/mmcblk1p1 /mnt/sd 3.a in the mounted sdcard create a hidden folder for home Code:
mkdir /mnt/sd/.home Code:
chown nemo:nemo /mnt/sd/.home 3.b in the mounted sdcard create a hidden folder for android Code:
mkdir /mnt/sd/.android Code:
chmod 777 /mnt/sd/.android 4. sync new folders with your existing data 4.a sync home folder Code:
rsync -a /home/nemo/ /mnt/sd/.home Code:
rsync -a /data/sdcard/ /mnt/sd/.android i would not recommend to delete folders in home-folder, just the big files of course you can also do this later, after some days of testing. 6. create out own bootscript 6.1. create a file mount-sd.custom.sh with this content: Code:
#!/bin/bash Code:
cp mount-sd.custom.sh /usr/sbin/mount-sd.custom.sh Code:
[Unit] Code:
cp mount-custom.service /lib/systemd/system/mount-custom.service Code:
df -h Code:
Filesystem Size Used Avail Use% Mounted on Q&A Why do you put android data in a hidden folder? Otherwise, my Gallery was full of map tiles. But if you like this, just remove the dot ;) Why do you put home data in a hidden folder? Otherwise, my Gallery showed every image twice. But if you like this, just remove the dot ;) |
Quote:
http://talk.maemo.org/showpost.php?p=1404380 it uses a hidden directory and unmounts it on reboot - writes cached data. |
Re: [HowTo] use sdcard for android apps
Thanks for the hint, i missed that!
I added the unmounting and also liked the idea of the hidden folder, because otherwise my gallery was full of map tiles :) so i moved all android stuff to /mnt/sdcard2/.android and adapted the script. also, i want my pictures and videos to be stored on the real sdcard, so i creadet the needed folder and added the mount (and unmounts). i will update the first post. |
Re: [HowTo] use sdcard for android apps
Quote:
|
Re: [HowTo] use real sdcard for camera, android data, etc
Leinad, can you update the first post for noobs please.
* full scrip,where to place (permissions etc) * create/not create folders manually, transfer/not transfer files, before/after script etc.. * how to run it (full command) Thanks |
Re: [HowTo] use real sdcard for camera, android data, etc
i've formated my sd card in btrfs, and maked subvolume, and mount with this script:
mount -o subvol=sdcard,compress /dev/mmcblk1 /data/sdcard/ mount -o subvol=Videos /dev/mmcblk1 /home/nemo/Videos/ mount -o subvol=Desktop /dev/mmcblk1 /home/nemo/Desktop/ mount -o subvol=Documents /dev/mmcblk1 /home/nemo/Documents/ mount -o subvol=Downloads /dev/mmcblk1 /home/nemo/Downloads/ mount -o subvol=Music /dev/mmcblk1 /home/nemo/Music/ mount -o subvol=Pictures /dev/mmcblk1 /home/nemo/Pictures/ mount -o subvol=Public /dev/mmcblk1 /home/nemo/Public/ mount -o subvol=Templates /dev/mmcblk1 /home/nemo/Templates/ |
Re: [HowTo] use real sdcard for camera, android data, etc
Noticed the problem with using run/ for transferring data to sdcard the hard way, tried moving my music to it via mtp (symlinked run/user/10000/media/sdcard so it showed up in mtp-mode). The transfer got stuck and I cancelled it. It stuck completely after that. Now the device complains that the memory is full -even after reboot- and there's nothing in my sd-card.
NEVER USE run/user/10000/media/sdcard TO TRANSFER DATA TO YOUR MICROSD. PS: It was a lot of music. EDIT: The problem isn't related to topic at hand |
Re: [HowTo] use real sdcard for camera, android data, etc
Quote:
|
Re: [HowTo] use real sdcard for camera, android data, etc
Quote:
when i / we found a "final" way to go, i will post a "noob-proof" receipe. for now, i think it's better, when only people, who are knowing what they do try this out. edit: please check out update in first post (mounting complete nemo-home-folder) and tell, what you think. can it be done this way without any problems? |
Re: [HowTo] use real sdcard for camera, android data, etc
Quote:
|
All times are GMT. The time now is 20:22. |
vBulletin® Version 3.8.8