Parted
Jump to navigation
Jump to search
https://computingforgeeks.com/format-sdcard-usb-flash-drive-on-linux-terminal/
lsblk sudo parted -s /dev/sdb mklabel gpt sudo parted -s /dev/sdb mkpart primary ext4 0% 100% sudo mkfs.ext4 /dev/sdb1 mkdir usb1 sudo mount /dev/sdb1 usb1 echo test >> usb1/test.txt ls -lhat usb1/ sudo chown $USER usb1 sudo mkdir /mnt/usb1 sudo mount /dev/sdb1 /mnt/usb1/ echo test | sudo tee -a /mnt/usb1/test.txt sudo umount /mnt/usb1
https://linuxnewbieguide.org/how-to-mount-a-usb-stick-as-a-non-root-user-with-write-permission/