Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
Strony: 1
Użytkownik

Czesc wszystkim!
Mam taki problem, ze system Debian nie widzi ani perdrive'a 32GB ani dysku zewnetrzengo SSD 256GB obie rzeczy sa nowo kupione i nie byly wczesniej niesformatowane.
Polecenie lsusb zwraca mi informacje na temat tych dyskow ze sa podlaczone:
Bus 001 Device 007: ID 9129:1583 General USB Flash Disk Bus 002 Device 003: ID 152d:0583 JMicron Technology Corp. / JMicron USA Technology Corp. JMS583Gen 2 to PCIe Gen3x2 Bridge
dmesg -w
[ 2003.813165] usb 1-2: new high-speed USB device number 7 using xhci_hcd [ 2003.961848] usb 1-2: New USB device found, idVendor=9129, idProduct=1583, bcdDevice= 1.00 [ 2003.961862] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 2003.961868] usb 1-2: Product: USB Flash Disk [ 2003.961873] usb 1-2: Manufacturer: General [ 2003.961876] usb 1-2: SerialNumber: 0408530000000A7A [ 2075.843087] usb 2-4: new SuperSpeed USB device number 3 using xhci_hcd [ 2075.863730] usb 2-4: New USB device found, idVendor=152d, idProduct=0583, bcdDevice= 2.09 [ 2075.863746] usb 2-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 2075.863752] usb 2-4: Product: SSD 256GB [ 2075.863756] usb 2-4: Manufacturer: SSD 256GB [ 2075.863760] usb 2-4: SerialNumber: 00NHSR4456ED
lsblk (widzi dysk tylko na ktorym jest system)
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS nvme0n1 259:0 0 238.5G 0 disk ├─nvme0n1p1 259:1 0 512M 0 part /boot/efi ├─nvme0n1p2 259:2 0 4.7G 0 part /boot ├─nvme0n1p3 259:3 0 163G 0 part / └─nvme0n1p4 259:4 0 70.3G 0 part /home
blkid
/dev/nvme0n1p3: UUID="30cbe9c2-dad3-463c-96ad-2340961a5958" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="/" PARTUUID="c6e386bd-04bf-47dd-bf54-9069883cffdb" /dev/nvme0n1p1: UUID="EE5A-D1DF" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="3515b172-fb79-4109-a41a-cce84f5d9fb6" /dev/nvme0n1p4: UUID="ddf332d5-4d7b-4e6d-a211-cbedb9b0b4b1" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="/home" PARTUUID="aae95eba-0768-4a00-af58-6aacaa378445" /dev/nvme0n1p2: UUID="fd3fec33-f86b-4045-bc00-736ce321c621" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="/boot" PARTUUID="da8c1bae-8680-410f-859f-903ccc3e8c7b"
wpis w fstab
# <file system> <mount point> <type> <options> <dump> <pass> # / was on /dev/nvme0n1p3 during installation UUID=30cbe9c2-dad3-463c-96ad-2340961a5958 / ext4 errors=remount-ro 0 1 # /boot was on /dev/nvme0n1p2 during installation UUID=fd3fec33-f86b-4045-bc00-736ce321c621 /boot ext4 defaults 0 2 # /boot/efi was on /dev/nvme0n1p1 during installation UUID=EE5A-D1DF /boot/efi vfat umask=0077 0 1 # /home was on /dev/nvme0n1p4 during installation UUID=ddf332d5-4d7b-4e6d-a211-cbedb9b0b4b1 /home ext4 defaults 0 2
i za bardzo nie wiem jak ugrysc ten temat - GParted / fdisk / cfdisk tez mi nie widza urzadzen.
Macie moze jakies pomysly ?!
Pozdrawiam
Offline


Użytkownik



No to podłącz je do portów USB i daj wynik polecenia
fdisk -l
Offline





Cenzor wirtualnego świata
Użytkownik

Hej, generalnie nic nie pokazuje , nie widzi urzadzenia
fdisk -l
sudo fdisk -l Disk /dev/nvme0n1: 238.47 GiB, 256060514304 bytes, 500118192 sectors Disk model: PM981a NVMe Samsung 256GB Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt Disk identifier: 5824216D-DB63-4A01-BC62-B2BE58A7589F Device Start End Sectors Size Type /dev/nvme0n1p1 2048 1050623 1048576 512M EFI System /dev/nvme0n1p2 1050624 10815487 9764864 4.7G Linux filesystem /dev/nvme0n1p3 10815488 352612351 341796864 163G Linux filesystem /dev/nvme0n1p4 352612352 500117503 147505152 70.3G Linux filesystem
cat /var/log/user.log
Oct 9 12:06:05 aerith mtp-probe: checking bus 1, device 11: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2" Oct 9 12:06:05 aerith mtp-probe: bus: 1, device: 11 was not an MTP device Oct 9 12:06:05 aerith mtp-probe: checking bus 1, device 11: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2" Oct 9 12:06:05 aerith mtp-probe: bus: 1, device: 11 was not an MTP device Oct 9 12:06:08 aerith mtp-probe: checking bus 2, device 3: "/sys/devices/pci0000:00/0000:00:14.0/usb2/2-4" Oct 9 12:06:08 aerith mtp-probe: bus: 2, device: 3 was not an MTP device Oct 9 12:06:08 aerith mtp-probe: checking bus 2, device 3: "/sys/devices/pci0000:00/0000:00:14.0/usb2/2-4" Oct 9 12:06:08 aerith mtp-probe: bus: 2, device: 3 was not an MTP device
Offline





Cenzor wirtualnego świata
Użytkownik

pendrive'a
Oct 09 21:18:12 aerith kernel: usb 1-2: new high-speed USB device number 7 using xhci_hcd Oct 09 21:18:12 aerith kernel: usb 1-2: New USB device found, idVendor=9129, idProduct=1583, bcdDevice= 1.00 Oct 09 21:18:12 aerith kernel: usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 Oct 09 21:18:12 aerith kernel: usb 1-2: Product: USB Flash Disk Oct 09 21:18:12 aerith kernel: usb 1-2: Manufacturer: General Oct 09 21:18:12 aerith kernel: usb 1-2: SerialNumber: 0408530000000A7A Oct 09 21:18:12 aerith mtp-probe[7037]: checking bus 1, device 7: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2" Oct 09 21:18:12 aerith mtp-probe[7037]: bus: 1, device: 7 was not an MTP device Oct 09 21:18:12 aerith systemd[1]: Starting USB_ModeSwitch_1-2... Oct 09 21:18:12 aerith mtp-probe[7062]: checking bus 1, device 7: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2" Oct 09 21:18:12 aerith mtp-probe[7062]: bus: 1, device: 7 was not an MTP device Oct 09 21:18:12 aerith systemd[1]: usb_modeswitch@1-2.service: Deactivated successfully. Oct 09 21:18:12 aerith systemd[1]: Finished USB_ModeSwitch_1-2
dysk ssd
Oct 09 21:20:02 aerith kernel: usb 2-4: new SuperSpeed USB device number 3 using xhci_hcd Oct 09 21:20:02 aerith kernel: usb 2-4: New USB device found, idVendor=152d, idProduct=0583, bcdDevice= 2.09 Oct 09 21:20:02 aerith kernel: usb 2-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 Oct 09 21:20:02 aerith kernel: usb 2-4: Product: SSD 256GB Oct 09 21:20:02 aerith kernel: usb 2-4: Manufacturer: SSD 256GB Oct 09 21:20:02 aerith kernel: usb 2-4: SerialNumber: 00NHSR4456ED Oct 09 21:20:02 aerith mtp-probe[7091]: checking bus 2, device 3: "/sys/devices/pci0000:00/0000:00:14.0/usb2/2-4" Oct 09 21:20:02 aerith mtp-probe[7091]: bus: 2, device: 3 was not an MTP device Oct 09 21:20:02 aerith mtp-probe[7104]: checking bus 2, device 3: "/sys/devices/pci0000:00/0000:00:14.0/usb2/2-4" Oct 09 21:20:02 aerith mtp-probe[7104]: bus: 2, device: 3 was not an MTP device
Offline





Cenzor wirtualnego świata

Użytkownik


Urządzenia podpinasz pod ten sam port? Proponuję najpierw wykluczyć problemy sprzętowe, sprawdzić urządzenia na innym sprzęcie, czy występują problemy z innymi urządzeniami ?proponuję też sprawdzić czy urządzenia są prawidłowo wykrywane przez kontroler płyty głównej.
Offline
Użytkownik

Bus 001 Device 007: ID 9129:1583 General USB Flash Disk
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x9129
idProduct 0x1583
bcdDevice 1.00
iManufacturer 1 General
iProduct 2 USB Flash Disk
iSerial 3 0408530000000A7A
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x0020
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 100mA
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 0x02 EP 2 OUT
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 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 1
can't get debug descriptor: Resource temporarily unavailable
Device Status: 0x0000
(Bus Powered)Bus 002 Device 003: ID 152d:0583 JMicron Technology Corp. / JMicron USA Technology Corp. JMS583Gen 2 to PCIe Gen3x2 Bridge
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 3.20
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 9
idVendor 0x152d JMicron Technology Corp. / JMicron USA Technology Corp.
idProduct 0x0583 JMS583Gen 2 to PCIe Gen3x2 Bridge
bcdDevice 2.09
iManufacturer 1 SSD 256GB
iProduct 2 SSD 256GB
iSerial 3 00NHSR4456ED
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x0079
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 896mA
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 15
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 15
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 1
bNumEndpoints 4
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 98
iInterface 10 MSC USB Attached SCSI
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0400 1x 1024 bytes
bInterval 0
bMaxBurst 0
Command pipe (0x01)
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0400 1x 1024 bytes
bInterval 0
bMaxBurst 0
MaxStreams 32
Status pipe (0x02)
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0400 1x 1024 bytes
bInterval 0
bMaxBurst 3
MaxStreams 32
Data-in pipe (0x03)
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x04 EP 4 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0400 1x 1024 bytes
bInterval 0
bMaxBurst 15
MaxStreams 32
Data-out pipe (0x04)
Binary Object Store Descriptor:
bLength 5
bDescriptorType 15
wTotalLength 0x002a
bNumDeviceCaps 3
USB 2.0 Extension Device Capability:
bLength 7
bDescriptorType 16
bDevCapabilityType 2
bmAttributes 0x00000f0e
BESL Link Power Management (LPM) Supported
BESL value 3840 us
SuperSpeed USB Device Capability:
bLength 10
bDescriptorType 16
bDevCapabilityType 3
bmAttributes 0x00
wSpeedsSupported 0x000e
Device can operate at Full Speed (12Mbps)
Device can operate at High Speed (480Mbps)
Device can operate at SuperSpeed (5Gbps)
bFunctionalitySupport 1
Lowest fully-functional device speed is Full Speed (12Mbps)
bU1DevExitLat 10 micro seconds
bU2DevExitLat 32 micro seconds
SuperSpeedPlus USB Device Capability:
bLength 20
bDescriptorType 16
bDevCapabilityType 10
bmAttributes 0x00000001
Sublink Speed Attribute count 1
Sublink Speed ID count 0
wFunctionalitySupport 0x1100
bmSublinkSpeedAttr[0] 0x000a4030
Speed Attribute ID: 0 10Gb/s Symmetric RX SuperSpeedPlus
bmSublinkSpeedAttr[1] 0x000a40b0
Speed Attribute ID: 0 10Gb/s Symmetric TX SuperSpeedPlus
can't get debug descriptor: Resource temporarily unavailable
Device Status: 0x000c
(Bus Powered)
U1 Enabled
U2 EnabledDobra, dodam ze tak to wyglada pod Debianem (powyzej), pod RedHat'em jak sprawdzam nie ma problemu ( dyski moze nie sa sformatowane ale widac je)
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 1 28.9G 1 disk
└─sda1 8:1 1 28.9G 1 part
sdb 8:16 0 238.5G 1 disk
├─sdb1 8:17 0 16M 1 part
└─sdb2 8:18 0 238.5G 1 part
nvme0n1 259:0 0 238.5G 0 disk
├─nvme0n1p1 259:1 0 524M 0 part /boot/efi
├─nvme0n1p2 259:2 0 954M 0 part /boot
└─nvme0n1p3 259:3 0 237G 0 part
└─luks-2c4be024-3c71-46c3-8611-6d07aad64325
253:0 0 237G 0 crypt
├─vg_li2520577517-lv_swap 253:1 0 15.3G 0 lvm [SWAP]
└─vg_li2520577517-lv_root 253:2 0 221.7G 0 lvm /Ostatnio edytowany przez gopher (2022-10-10 10:07:02)
Offline





Cenzor wirtualnego świata


Użytkownik



Wywal obsługę protokółu MTP (jak nie jest potrzebny), lub zrób reguły dla udev-a, jak tu, by te dwa urządzenia były rozpoznawane jako "normalne" pamięci.
Offline





Cenzor wirtualnego świata


Użytkownik



No właśnie, ale chciało. A przy tych pamięciach masowych podłączonych pod ten kontroler nie powinno, powinno użyć MSD (Mass Storage Devices), a nie MTP, tak jak przy podłączaniu do wbudowanego USB pendrive-a i trzeba to wymusić. To tu po prostu, przypomina sytuacje z pamięcią USB, już po odmontowaniu, fizycznie dalej jest, a dla systemu już jej nie ma i dlatego ich nie widać z systemu. Sprawdziłbym, jak to jest z tym kontrolerem na nowszym kernelu, no i jak działa "normalnie" w RedHat-e, to porównać, co tam jest innego.
Offline





Cenzor wirtualnego świata
No tak działa mtp-probe -- jak sama nazwa wskazuje, próbkuje sprzęt pod kątem urządzeń MTP, ale tutaj nie zostało takie znalezione, o czym jest informacja w logu. Każde urządzenie USB jest tak próbkowane i tylko te, które zostaną rozpoznane jako MTP są odpowiednio konfigurowane. Jeśli urządzenie nie zostanie wykryte jako MTP to nic z nim nie jest robione i tutaj też nic nie zostało zrobione.
Offline


Użytkownik



morfik napisał(-a):
...Każde urządzenie USB jest tak próbkowane i tylko te, które zostaną rozpoznane jako MTP są odpowiednio konfigurowane...
No właśnie jest tak, że nie każde jest przepuszczane przez mtp-probe, może jest jakiś błąd z prawidłowym wykrywaniem i obsługą tego kontrolera, a obsługa protokółu MTP przez system wcale nie jest obowiązkowa.
Tak jak już pisałem, napisać te reguły dla udev-a, lub pozbyć się (chociaż dla testu) mtp-probe, jest w pakiecie libmtp-runtime, można też sprawdzić na najnowszym kernelu. Odinstalować/lub napisać i restartować komputer. Można sprawdzić, na wszelki wypadek, czy są załadowane moduły usbcore i usb_storage.
Ani prawidłowo napisane reguły, ani odinstalowanie tego pakietu, nic nie zepsuje w systemie. Dlaczego tego nie sprawdzić, a może pomoże, dlaczego nie poczekać na zainteresowanego.
Offline
Strony: 1