I want to do two partitions for my SD card with FAT and EXT4 using Ubuntu.
For this, I found two commands:
mkdosfs /dev/sda1 -n
mke2fs /dev/sda1 -L
But how should I specify the size, for FAT I need 200MB and rest with EXT4.
When tried to give mkdosfs /dev/sda1 -n I got an error.
sudo mkdosfs /dev/sda
mkfs.fat 3.0.28 (2015-05-16)
mkdosfs: unable to open /dev/sda: Device or resource busy
/dev/sda1I'm thinking that you try to edit a partition on the drive, that your system is booted from. You should boot from one drive and edit partitions on another drive. If you boot from a live USB drive with Ubuntu, you can usegparted, which has a graphical user interface. It is quite easy to use in order to edit partitions and create file systems. – sudodus Mar 04 '19 at 09:21gpartedis already there in Ubuntu live, but in an installed system, you must install it,sudo apt install gparted. You must also unmount all partitions on the SD card before you start editing the partitions. – sudodus Mar 04 '19 at 09:28lsblkcommand. – Melebius Mar 04 '19 at 11:56lsblkoutput I requested earlier). – Melebius Mar 05 '19 at 06:54