Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: I accidentally messed up USB drive in Linux Ubuntu 22.04 LTS!

  1. #11
    Join Date
    Mar 2023
    Beans
    7

    Re: I accidentally messed up USB drive in Linux Ubuntu 22.04 LTS!

    Quote Originally Posted by Holger_Gehrke View Post
    The first step should be finding out if it's found on the USB when connected. Use the 'lsusb' command for that, once before connecting the drive and a second time a few seconds after connecting it. 'lsusb' shows all the connected devices, so comparing the output of the two runs should tell you whether the drive is seen. If the drive is visible in 'lsusb' but isn't mounted automatically and can't be seen in Gnome disk or gparted or 'sudo parted -l' / 'sudo fdisk -l' or 'lsblk', then running 'journalctl -b 0' or 'sudo dmesg' and looking at the contents of the file /var/log/syslog might tell you something about the problem.

    Holger

    https://paste.ubuntu.com/p/6mJp3ZTdkS/

  2. #12
    Join Date
    Dec 2014
    Beans
    2,695

    Re: I accidentally messed up USB drive in Linux Ubuntu 22.04 LTS!

    Hm, ... So lsusb sees it as a Kingston Platinum USB drive mini (does PNY buy from Kingston ?) ; fdisk and parted both don't see it, but lsblk sees a drive of size 0.

    'journalctl', not 'journal' ... the former shows a human-readable representation of the binary journal the system keeps, the latter is for people who want to keep a diary .

    The dmesg output gets interesting from line 1928 onward: the device is recognized, the idVendor and idProduct are for a Kingston Platinum USB drive mini (so that's where lsusb pulled that name from; there's a list of vendor and product ids in /usr/share/misc/usb.ids) but then it gets treated as something with removable media with either no media inserted or with the media removed.

    This doesn't look good; might be the end of the line for this stick. I'd follow sudodus' tutorial - especially the part on installing and using mkusb - but I wouldn't get my hopes up. Flash-drives have a limited write count and at some point they just break.

    Holger
    Last edited by Holger_Gehrke; March 26th, 2023 at 03:33 PM.

  3. #13
    Join Date
    Mar 2023
    Beans
    7

    Re: I accidentally messed up USB drive in Linux Ubuntu 22.04 LTS!

    Ok, thanks for your help Holger_Gehrke, appreciate it.
    I will paste this just in case:
    Code:
    journalctl -b 0
    https://paste.ubuntu.com/p/SVjW2yQZKQ/


    Before I start doing complete steps from sudodus' tutorial (https://askubuntu.com/questions/1448.../933035#933035)
    I will paste output of this command
    Code:
    lsusb -v
    Code:
    computer99@computer99-virtual-machine:~$ lsusb -v
    
    Bus 001 Device 004: ID 13fe:4200 Kingston Technology Company Inc. Platinum USB drive mini
    Couldn't open device, some information will be missing
    Device Descriptor:
      bLength                18
      bDescriptorType         1
      bcdUSB               2.00
      bDeviceClass            0 
      bDeviceSubClass         0 
      bDeviceProtocol         0 
      bMaxPacketSize0        64
      idVendor           0x13fe Kingston Technology Company Inc.
      idProduct          0x4200 Platinum USB drive mini
      bcdDevice            1.00
      iManufacturer           1         
      iProduct                2 USB DISK 2.0
      iSerial                 3 90005BA465155916
      bNumConfigurations      1
      Configuration Descriptor:
        bLength                 9
        bDescriptorType         2
        wTotalLength       0x0020
        bNumInterfaces          1
        bConfigurationValue     1
        iConfiguration          0 
        bmAttributes         0x80
          (Bus Powered)
        MaxPower              200mA
        Interface Descriptor:
          bLength                 9
          bDescriptorType         4
          bInterfaceNumber        0
          bAlternateSetting       0
          bNumEndpoints           2
          bInterfaceClass         8 Mass Storage
          bInterfaceSubClass      6 SCSI
          bInterfaceProtocol     80 Bulk-Only
          iInterface              0 
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x81  EP 1 IN
            bmAttributes            2
              Transfer Type            Bulk
              Synch Type               None
              Usage Type               Data
            wMaxPacketSize     0x0200  1x 512 bytes
            bInterval               0
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x02  EP 2 OUT
            bmAttributes            2
              Transfer Type            Bulk
              Synch Type               None
              Usage Type               Data
            wMaxPacketSize     0x0200  1x 512 bytes
            bInterval               0

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •