UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. j.mackay93
    3. Topics
    J
    Offline
    • Profile
    • Following 0
    • Followers 1
    • Topics 2
    • Posts 10
    • Groups 0

    Topics

    • J

      Redmi Note 9s Update Error

      Watching Ignoring Scheduled Pinned Locked Moved Unsolved Support
      7
      0 Votes
      7 Posts
      477 Views
      J
      @nitanmarcel Cheers everyone, I'll give this a crack tonight and try to retain userdata, let you know how it goes!
    • J

      SD Card Redmi Note 9S not detected

      Watching Ignoring Scheduled Pinned Locked Moved Unsolved Support
      3
      0 Votes
      3 Posts
      354 Views
      J
      @lakotaubp its 128 GB, formatted as fat32 (vfat). I haven't gotten the external drives manager to detect the card yet which is a shame. I made two little scripts and placed them in the home directory to mount and unmount the card under /media/phablet/<sdcardlabel>, then run them as needed in terminal (I don't know how to execute bash scripts by touch from file explorer). I also am unsure how to automatically run scripts as root at startup, but oh well. The sd card now shows up under file explorer (once the program is closed and opened again). The first: mount_sd.sh #!/bin/bash # run as superuser # Create mount location variable mntloc=/media/${SUDO_USER:-$(whoami)}/$(lsblk -I 179 -o LABEL | tail -n 1) # Make a mount folder, hopefully MAJOR id stays 179 mkdir -p $mntloc # Mount the sdcard! mount /dev/mmcblk0p1 $mntloc -o uid=32011 And the second: umount_sd.sh #!/bin/bash # run as superuser # Create mount location variable mntloc=/media/${SUDO_USER:-$(whoami)}/$(lsblk -I 179 -o LABEL | tail -n 1) # Unmount the sdcard! umount $mntloc Note that I'm assuming there is only one inserted sd card which is why I can use tail to get the label. Also, I assumed the MAJOR id is 179...I don't know if this will be static across other phones or even over time, but I found it with lsblk | grep mmc and copied the MAJ column.