It started when I found all the folders in my usb drive with their contents locked and unable to delete. I formatted the drive and after that it stopped showing up. It is showing in 'Disks' where I have formatted it twice more. No help.
lsusb
output:
Bus 003 Device 005: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 003 Device 006: ID 0cf3:0036 Atheros Communications, Inc.
Bus 003 Device 003: ID 0bda:5756 Realtek Semiconductor Corp.
Bus 003 Device 014: ID 03f0:4940 Hewlett-Packard
Bus 003 Device 002: ID 8087:8000 Intel Corp.
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub`
The USB is the Hewlett-Packard device.
sudo fdisk -l
gave this output:
Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x00025dcc
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 1945331711 1945329664 927.6G 83 Linux
/dev/sda2 1945333758 1953523711 8189954 3.9G 5 Extended
/dev/sda5 1945333760 1953523711 8189952 3.9G 82 Linux swap / Solaris
Partition 3 does not start on physical sector boundary.
Disk /dev/sdb: 14.5 GiB, 15514730496 bytes, 30302208 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes` (no device identifier or any other info after this!)
The fdisk output shows that there is no partition on your usb device. your usb stick is the 14 GB one right? if it is follow this instruction:
These instruction will destroy all files on the device
Open the device with fdisk:
sudo fdisk /dev/sdb
First to create a new partition table: Press o then press the enter.
To create a new partition: press n then press enter 4 times or set your desired value then enter.
Now we should create a file system for the partition that we just create, to create a NTFS file system:
sudo mkfs.ntfs /dev/sdb1
Pay attention to the sdb1
Now your usb stick is ready to use again, you can use mount command to mount it or nautilus (or any other file manager which you are using will mount it automatically).
Also you can use ntfslable command to put a label on your usb device too.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다