Via Cà Matta 2 - Peschiera Borromeo (MI)
+39 02 00704272
info@synaptica.info

Ubuntu Tips #1 – Format / Mount a new media Stick

Digital Innovation Partner

Ubuntu Tips #1 – Format / Mount a new media Stick

When you connect a USB Stick, SD Card or external HDD and you need to mount it by shell command
by command prompt you can view alla media connected to your pc by

sudo fdisk -l

and the result :

 Disco /dev/sda: 320.0 GB, 320072933376 byte
255 testine, 63 settori/tracce, 38913 cilindri
Unità  = cilindri di 16065 * 512 = 8225280 byte
Identificativo disco: 0xce46c7a1

Dispositivo Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1       37446   300784963+  83  Linux
/dev/sda2           37447       38913    11783677+   5  Esteso
/dev/sda5           37447       38913    11783646   82  Linux swap / Solaris

Disco /dev/sdb: 16.1 GB, 16131293184 byte
102 testine, 38 settori/tracce, 8128 cilindri
Unità  = cilindri di 3876 * 512 = 1984512 byte
Identificativo disco: 0x04030201

Dispositivo Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1        8129    15752192    c  W95 FAT32 (LBA)

now i found my device the “/dev/sdb1” , to format it on fat 32 :

sudo umount /dev/sdb1
sudo mkfs -t vfat /dev/sdb1
sudo eject /dev/sdb1

so we have formatted the usb stick

Tags: , , , , , , ,

Lascia un commento