Edited on 2024-05-25
- detecting the pendrive:
sudo fdisk -l
- unmounting pendrive
sudo umount /dev/sdf1
- formatting the pendrive
sudo mkfs.vfat -n ‘Nome Pendrive’ -I /dev/sdf1
where:
- ‘-n’ = Volume Name
- ‘mkfs’ = command responsible for format the file system
- ‘vfat’ = formats in the file system FAT. Others avaible: mkfs.bfs, mkfs.ext2, mkfs.ext3, mkfs.ext4, mkfs.minix, mkfs.msdos, mkfs.vfat, mkfs.xfs, mkfs.xiafs.
- ‘-I’ = pen drive’s partition
- copy the ISO to the device. Adapt the ISA/architecture as needed.
dd bs=4M if=path/to/linux-version-x86_64.iso of=/dev/disk/by-id/usb-My_flash_drive conv=fsync oflag=direct status=progress