GNU/Linux >> Linux Esercitazione >  >> Ubuntu

Ubuntu non legge la scheda SD dopo il risveglio?

Ho collegato una scheda SD al mio notebook e la sto usando come partizione di casa. Quando accendo il computer non ho problemi a raggiungere la cartella home e le sottodirectory, ma quando lo sospendo e lo riprendo, il sistema non legge la scheda SD. Quindi potrebbe bloccarsi, costringendomi a riavviare la macchina per far funzionare di nuovo tutto.

Alcune informazioni utili sono:

  • MacBook Air 2016
  • macOS Sierra e Ubuntu 17.04 Dual boot
  • (Lo stesso problema si è verificato anche il 16.10)

Qualche informazione in più:

$ sudo LC_MESSAGES=POSIX lshw -c storage
*-usb                     
   description: Mass storage device
   product: Card Reader
   vendor: Apple
   physical id: 3
   bus info: [email protected]:3
   logical name: scsi1
   version: 8.20
   serial: 000000000820
   capabilities: usb-3.00 scsi emulated scsi-host
   configuration: driver=usb-storage maxpower=896mA speed=5000Mbit/s

$ lsusb -vd 05ac:8406 is:
    Bus 002 Device 002: ID 05ac:8406 Apple, Inc. 
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               3.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         9
  idVendor           0x05ac Apple, Inc.
  idProduct          0x8406 
  bcdDevice            8.20
  iManufacturer           3 
  iProduct                4 
  iSerial                 5 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           44
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              224mA
    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     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst               4
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0400  1x 1024 bytes
        bInterval               0
        bMaxBurst               4

Inoltre la differenza principale è che prima di sospendere lsblk mostra il mio sdb1 dispositivo (che è la mia scheda SD montata come /home ). Dopo il risveglio lsblk il comando non mostra la mia scheda SD e non riesco a raggiungere i miei file su /home cartella. Inoltre non riesco a ricollegare la mia scheda SD; non viene riconosciuto.

  • syslog:la sospensione più recente avviene da "9 maggio 22:56:01" alla riga 45263.

    Le parti interessanti sembrano essere:

    May  9 22:56:25 MacBookAir kernel: [ 5883.035573] PM: Finishing wakeup.
    May  9 22:56:25 MacBookAir kernel: [ 5883.035575] Restarting tasks ... 
    May  9 22:56:25 MacBookAir kernel: [ 5883.035795] usb 2-3: USB disconnect, device number 2
    [...snip...]
    May  9 22:56:26 MacBookAir kernel: [ 5884.869838] usb usb2-port3: cannot disable (err = -32)
    May  9 22:56:26 MacBookAir kernel: [ 5884.869942] xhci_hcd 0000:00:14.0: Cannot set link state.
    May  9 22:56:26 MacBookAir kernel: [ 5884.869969] usb usb2-port3: cannot disable (err = -32)
    

Risposta accettata:

Alcuni HDD USB hanno un firmware che li costringe a dormire dopo periodi di inutilizzo. Forse questo è anche il tuo problema.

Correlati:un buon backend predefinito per matplotlib?

Automounter è in grado di riattivare i dispositivi (https://help.ubuntu.com/community/Autofs).

Spero che questo ti aiuterà.


Ubuntu
  1. Risolto il problema con il lettore di schede SD che non funzionava dopo l'aggiornamento di Ubuntu 16.04

  2. 10 cose da fare dopo aver installato Ubuntu Desktop

  3. Ubuntu 18.04 non si riattiva dopo il blocco dello schermo e lo spegnimento / sospensione / sospensione?

  4. Ritardo del mouse dopo l'aggiornamento a Ubuntu 14.04?

  5. Ubuntu non si avvia dopo l'aggiornamento del kernel?

Quale distribuzione Linux da usare dopo Ubuntu?

20 cose da fare dopo una nuova installazione di Ubuntu 18.04 LTS

Cose da fare dopo aver installato Ubuntu Desktop

Come formattare un'unità USB o una scheda SD su Ubuntu

Fix Laptop non si sospende dopo la chiusura del coperchio su Ubuntu Linux

Il PC non si sveglia dopo la modalità di sospensione?