Hello!

I have a LG K10. My phone is always running out (few MB left) and I wanted to make a backup. So I activated the MTP option as well as the developer tools and the ‘allow debuging via usb’.

But when I scan the disk it appears it is only 1 GB used. While the settings are telling me that 15.5 GB over 16GB are used.

Soon after making a few backup attempts using the tool ncdu on Linux. I successfully freed a few hundred MB.

Then soon after I got a notification popup by Google Drive to tell me that my files are automatically backed up onto drive so I could free up to 1GB! I didn’t liked the fact that Google never told me before that all my photos were uploaded on my Drive automatically but I freed all these files.

Can you tell me how I would be able to access to these files that didn’t appears in my file system when I plug my phone via USB?

Some folders like the screenshots and other image folders (who taken 2GB of my drive!) wasn’t displaying in the file system of my computer (neither in the file system of my phone I think). I have no idea where those files were stored, but they took a lot of space.

Can you help me?

Thanks in advance!

Edit:

Thanks to u/ajz this problem is solved!

If you have the same issue and you want to free the space on your Android device follow the following steps:

  1. Go into your device’settings > Storage > Cache > Clear cache.
  2. Install ADB on your computer
  3. Go into about > Software info. Then spam the Build number.
  4. Go into the developer options and tick the box ‘USB Debugging’
  5. Install the app DiskUsage from F-Droid. This app will list all the biggest folders and apps on your whole device.
  6. Plug your device and press ALLOW for USB debugging on the popup on your phone.
  7. When you spotted a directory you want to backup and remove, run the following commands:
# For example, you want to remove the dir /sdcard/media/Music
adb pull /sdcard/Music .
adb rm /sdcard/Music
adb shell
cd /sdcard/Music
rm *
exit
  • @ajzM
    link
    2
    edit-2
    2 years ago

    deleted by creator

    • SnowCodeOP
      link
      24 years ago

      Thanks you for this suggestion! I just wanted to know: Can I use third party tools as ncdu to scan my device when I am in adb shell?

      • @ajzM
        link
        1
        edit-2
        2 years ago

        deleted by creator

  • @ajzM
    link
    2
    edit-2
    2 years ago

    deleted by creator

    • SnowCodeOP
      link
      14 years ago

      I just installed it and it is awesome! But how can I backup things from the adb shell to my computer?

      • @ajzM
        link
        2
        edit-2
        2 years ago

        deleted by creator

        • SnowCodeOP
          link
          1
          edit-2
          4 years ago

          Thanks you so much!!! You helped me to free 4GB of my device! It’s amazing!

          1. I freed the cache
          2. I used the app DiskUsage to scan the sdcard to find the biggest folders
          3. I ran the following commands for each folders.
          adb pull /sdcard/Music .
          adb rm /sdcard/Music
          adb sh
          cd /sdcard/Music
          rm *
          exit
          
          • @ajzM
            link
            2
            edit-2
            2 years ago

            deleted by creator