View Single Post
Old 09-20-2013, 02:33 PM   #32
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Quote:
Originally Posted by nasser View Post
was able to make it work by running the mkdir and cp commands by hand in kterm..
those 3 tiny buttons now have unclipped characters..

but something weird happening..

i had earlier followed some post here to change home from /tmp/root to /home/root

now running
Code:
echo $HOME
or
Code:
echo ~
still gives
Code:
/tmp/root
as the output..

but.. doing a
Code:
mntroot ro
or a
Code:
mntroot rw
is not affecting /tmp/root.. it's affecting /home/root..

so.. i did:
  1. Code:
    mntroot rw
  2. Code:
    mkdir -p /home/root/.config/galculator
  3. Code:
    cp /mnt/us/extensions/galculator/.config/galculator/galculator.conf /home/root/.config/galculator/galculator.conf

which works.. but should i leave root fs in rw mode..

would like our experts' explanation for above behaviour..
Code:
[root@kindle root]# ls -la / | grep tmp
lrwxrwxrwx    1 root     root             8 Jan  2  1970 tmp -> /var/tmp
[root@kindle root]# mount
rootfs on / type rootfs (rw)
/dev/root on / type ext3 (ro,noatime,nodiratime,data=writeback)
none on /proc type proc (rw,nosuid,nodev,noexec,relatime)
none on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev type tmpfs (rw,relatime,mode=755)
tmpfs on /dev/shm type tmpfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620)
tmpfs on /var type tmpfs (rw,relatime,size=32768k)
/dev/loop/2 on /lib/firmware/cyttsp type cramfs (ro,noatime,nodiratime)
/dev/loop/3 on /usr/share/X11/xkb type cramfs (ro,noatime,nodiratime)
/dev/loop/4 on /usr/java/lib/fonts type cramfs (ro,noatime,nodiratime)
/dev/loop/5 on /etc/kdb.src type cramfs (ro,noatime,nodiratime)
/dev/loop/6 on /usr/lib/locale type cramfs (ro,noatime,nodiratime)
/dev/loop/7 on /usr/share/keyboard type cramfs (ro,noatime,nodiratime)
/dev/mmcblk0p3 on /var/local type ext3 (rw,relatime,errors=continue,data=writeback)
/dev/loop/0 on /mnt/base-us type vfat (rw,noexec,noatime,nodiratime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
fsp on /mnt/us type fuse.fsp (rw,nosuid,nodev,noatime,user_id=0,group_id=0)
The answer to all your questions lies above, namely in what is mounted where. /tmp is just a symlink to /var/tmp, and /var is a tmpfs, so it will disappear after shutdown.

/home would be on the root partition, and thus read-only in normal use. And yes, I agree that it's a bad idea to leave root mounted rw for normal use.

You have two options here: use a home directory on the USB partition (/mnt/us), or in /var/local. The advantage of the former is that you can edit files via USB, the advantage of the latter is that it's a real filesystem, not FAT32. I suggest to go for /var/local/home/root, or /var/local/root, or whatever you please.
ixtab is offline   Reply With Quote