WSA-Community / WSAGAScript

Scripts to install Google Apps into a WSA image. Plus optional root
The Unlicense
3.57k stars 3.51k forks source link

mount failed: operation not permitted. #88

Open Xavior43 opened 2 years ago

Xavior43 commented 2 years ago

root@Xavior043:/mnt/c/GAppsWSA# ./extend_and_mount_images.sh chk product.img e2fsck 1.45.5 (07-Jan-2020) Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information product: 122/128 files (0.0% non-contiguous), 56046/56215 blocks Resizing product.img resize2fs 1.45.5 (07-Jan-2020) Resizing the filesystem on /mnt/c/GAppsWSA/#IMAGES/product.img to 262144 (4k) blocks. The filesystem on /mnt/c/GAppsWSA/#IMAGES/product.img is now 262144 (4k) blocks long.

chk system.img e2fsck 1.45.5 (07-Jan-2020) Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 3A: Optimizing directories Pass 4: Checking reference counts Pass 5: Checking group summary information

/: FILE SYSTEM WAS MODIFIED /: 3542/3584 files (0.3% non-contiguous), 223120/239487 blocks Resizing system.img resize2fs 1.45.5 (07-Jan-2020) Resizing the filesystem on /mnt/c/GAppsWSA/#IMAGES/system.img to 327680 (4k) blocks. The filesystem on /mnt/c/GAppsWSA/#IMAGES/system.img is now 327680 (4k) blocks long.

chk system_ext.img e2fsck 1.45.5 (07-Jan-2020) Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information system_ext: 87/96 files (0.0% non-contiguous), 22678/22747 blocks Resizing system_ext.img resize2fs 1.45.5 (07-Jan-2020) Resizing the filesystem on /mnt/c/GAppsWSA/#IMAGES/system_ext.img to 27648 (4k) blocks. The filesystem on /mnt/c/GAppsWSA/#IMAGES/system_ext.img is now 27648 (4k) blocks long.

chk vendor.img e2fsck 1.45.5 (07-Jan-2020) Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 3A: Optimizing directories Pass 4: Checking reference counts Pass 5: Checking group summary information

vendor: FILE SYSTEM WAS MODIFIED vendor: 1140/1152 files (0.7% non-contiguous), 72506/72725 blocks Resizing vendor.img resize2fs 1.45.5 (07-Jan-2020) Resizing the filesystem on /mnt/c/GAppsWSA/#IMAGES/vendor.img to 76800 (4k) blocks. The filesystem on /mnt/c/GAppsWSA/#IMAGES/vendor.img is now 76800 (4k) blocks long.

Creating mount point for product Creating mount point for system_ext Creating mount point for system Creating mount point for vendor Mounting product mount: /mnt/product: mount failed: Operation not permitted. Mounting system_ext mount: /mnt/system_ext: mount failed: Operation not permitted. Mounting system mount: /mnt/system: mount failed: Operation not permitted. Mounting vendor mount: /mnt/vendor: mount failed: Operation not permitted. !! Images mounted !! root@Xavior043:/mnt/c/GAppsWSA#

cliveyn commented 2 years ago

Check if you are using WSL2 (not WSL1) Check https://codefellows.github.io/setup-guide/windows/

EionRobb commented 2 years ago

For me, those steps didn't help much. wsl -l -v would only ever say that it was running wsl1 even when running wsl --set-version Ubuntu 2. In the end, I had to run wsl --update and wsl --shutdown before wsl --set-version Ubuntu 2 would convert from wsl1 to 2