guardianproject / lildebi

UNMAINTAINED please adopt! we can no longer maintain this
https://guardianproject.info/code
GNU General Public License v3.0
229 stars 55 forks source link

installed OK but "Debian not mounted" #141

Open shadowing opened 9 years ago

shadowing commented 9 years ago

I just installed latest lildebi from play store and the debian installation went without problem(except that I had to install a SuperUser alongside SuperSU). After I "Start Debian", it shows "Debian not mounted" and there is nothing under /debian and /data/debian, but the sshd started fine.

    Connected to android-e8c85a7db2fe6d34.lan.
    Escape character is '^]'.
    SSH-2.0-OpenSSH_6.0p1 Debian-4+deb7u2
    ^]
    telnet> Connection closed.

the installation summary is like the following, please let me know if you need the full or part of the installation log.

    manufacturer: OnePlus
    model: A0001
    product: bacon
    brand: oneplus
    device: A0001
    board: MSM8974
    ID: KTU84Q
    CPU ABI: armeabi-v7a
    release: 4.4.4
    incremental: 5fa8c79c0b
    codename: REL
    SDK: 19

PS. I am not sure whether it's related but my phone has 64G internal storage and the directory /sdcard is properly mounted to the real device. I noticed that there is an option Install on Internal Storage in lildebi's settings but I didn't check that since it's still Beta.

eighthave commented 9 years ago

In about Android 4.2, they added some crazy mount magic to support multiple users. It means that mounts can be hidden or visible depending on the user, even if that user is root. I'm guessing that is what you are seeing in action here. There is some documentation of this issue here #103 It seems that people have found ways around this, like SuperSU's --mount-master option, as mentioned in #85 , but I don't know about those in detail.

shadowing commented 9 years ago

Thanks. On my device it was not detected mounted either but there was no "permission denied" sort of errors happening when debian started. Though it looks like the --mount-master option should do the trick but I really don't quite understand how could I apply the option specifically, so I searched for more then found this comment on play store.

Anyone having problems using SuperSU with Lil' Debi needs to install CWM's superuser as a placebo. Uncheck "mount namespace separation" on SuperSU's settings and reboot. Run lil' debi and allow root access with SuperSU. Freeze (disable) superuser app then.

now I can start /debian/shell and run apt-get from a local shell!

But it seems /sbin is not in the default PATH and there is no any text editor by default so I cannot install any package via apt-get until I add that to the current shell.

jfmcbrayer commented 9 years ago

Yes, unchecking 'mount namespace separation' is the same as always using --mount-master for everything.