Afisare toate partitiile:
> lsblk
Sa spunem ca /dev/sdc reprezinta flash-ul.
Stergere totala:
> dd if=/dev/zero of=/dev/sdc bs=512 count=1
Refacere structura unui flash drive:
> fdisk /dev/sdc
> m (toate comenzile)
> n (partitie noua)
> p (primary partition)
> 1 (index, adica sdc1)
(o singura partitie care sa ocupe tot discul)
> t (change partition type)
> L (list all, perhaps choose option #4 FAT16 <32M)
> p (print current config)
> w (write)
Daca apare eroare dupa write:
> sudo partprobe /dev/sdc
> lsblk
Sa spunem ca /dev/sdc reprezinta flash-ul.
Stergere totala:
> dd if=/dev/zero of=/dev/sdc bs=512 count=1
Refacere structura unui flash drive:
> fdisk /dev/sdc
> m (toate comenzile)
> n (partitie noua)
> p (primary partition)
> 1 (index, adica sdc1)
(o singura partitie care sa ocupe tot discul)
> t (change partition type)
> L (list all, perhaps choose option #4 FAT16 <32M)
> p (print current config)
> w (write)
Daca apare eroare dupa write:
> sudo partprobe /dev/sdc
Niciun comentariu:
Trimiteți un comentariu