Difference between revisions of "Parted"
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
sudo parted -s /dev/sdb mklabel gpt | sudo parted -s /dev/sdb mklabel gpt | ||
sudo parted -s /dev/sdb mkpart primary ext4 0% 100% | sudo parted -s /dev/sdb mkpart primary ext4 0% 100% | ||
+ | sudo mkfs.ext4 /dev/sdb1 | ||
+ | sudo mkdir /mnt/usb1 | ||
+ | sudo mount /dev/sdb1 /mnt/usb1/ | ||
``` | ``` |
Revision as of 17:47, 24 June 2023
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 sudo mkdir /mnt/usb1 sudo mount /dev/sdb1 /mnt/usb1/