master-hax / pixel-backup-gang

backup tools for OG pixel & pixel XL
42 stars 6 forks source link

Issue in mounting usb stick (ext4) #11

Closed shadww closed 3 weeks ago

shadww commented 1 month ago

Hi.

When trying to run the /mount_ext4.sh, I get an invalid argument error.

image

The drive is formatted and detected on /dev/block/sdg1

image

All commands run on termux with root granted by Magisik. Using pixel XL (marlin).

edit: I formated using gparted on linux.

edit2: It works now. I used the minitool partition software on windows and the stick was recognized this time.

I am wondering what is the correct way to format the USB on linux to ext4

master-hax commented 1 month ago

We can format the drive from a linux computer with root access. Identify the block device with lsblk then run

mkfs -t ext4 <block device>

(obviously, this will wipe everything on the drive)

shadww commented 1 month ago

I tried formatting in Linux using the mkfs command, which now gives me the previous invalid error. Formatting with the Windows tool still works.

Edit: I formatted the drive in termux itself using "mkfs -t ext4 ", and it works. I think I might be having a permission issue when formating on my linux desktop, still trying to figure out the cause.

master-hax commented 4 weeks ago

Just checking, you used "sudo" when running the "mkfs" command right?

shadww commented 4 weeks ago

Yes I used sudo.

Edit: for now I cannot test any further due to battery of phone died, hopefully when I get new batch of pixel xl I will give it another try, For now, in windows and termux formatting it works.

master-hax commented 3 weeks ago

i'll mark this as closed since you got it to work and the issue was the formatting step, thanks