meefik / linuxdeploy

Install and run GNU/Linux on Android
https://meefik.github.io/linuxdeploy
GNU General Public License v3.0
5.1k stars 680 forks source link

Making filesystem fail when change image size #760

Open PhatthanhtuHN opened 7 years ago

PhatthanhtuHN commented 7 years ago

When I use Kali Linux and install kali-linux-full metapackage (because I don't know how to install Broadcom 4330 Wireless driver for use aircrack-ng for pentesting), it have error "You don't have enough free space in /var/cache/apt/archives/.", so I create a new image file by change the "image size" to 4095 MB. But when I press install, it have error "Making file system ... fail" after making new disk image. My device is Sony Xperia LT28h, and I set the installation path in sdcard, which free 11GB. I installed BusyBox, set the "PATH variable" is /system/xbin and update ENV, but I still have above error. Can you teach me how to fix it? Thanks! I'm just a beginner, so sorry for my bad English and my bad experience.

Anan5a commented 7 years ago

You've to mount an sdcard manually!

Create 2partition in your sdcard 2.5GB FAT32 rest ext4 then install the kali linux in a image on FAT32 system. start it. then find the partition of ext4 storage and run this command in terminal emulator( in Android) ``` mount /dev/block/mmcblk1pX /data/local/mnt #mnt is default mount point


This should work!
PhatthanhtuHN commented 7 years ago

Many thanks, can you show me how to do it step by step (with picture, or video)? Sorry for inconvenient, but I'm just a beginner :( Sorry for my bad English and my bad experience.

Anan5a commented 7 years ago

use the default 2GB img or do a partition installation

PhatthanhtuHN commented 7 years ago

That mean I cannot extend the "image size" to 4095 MB?

Anan5a commented 7 years ago

You can if you have pc ;) Make a 2GB image. then connect sd card in pc then use a disk image resizer software. Done :)

PhatthanhtuHN commented 7 years ago

Thanks for your help! I will try it :D