내가 착용하는 의료기기에 기록된 데이터에 접근할 수 있도록 ATMEL 대용량 저장장치(USB)를 설치하고 싶습니다.
다음은 내가 실행한 명령과 해당 출력입니다.
raspberrypi:~$ sudo tail -f /var/log/messages
Nov 7 13:37:40 raspberrypi kernel: [ 17.802765] Bluetooth: HCI socket layer initialized
Nov 7 13:37:40 raspberrypi kernel: [ 17.802784] Bluetooth: L2CAP socket layer initialized
Nov 7 13:37:40 raspberrypi kernel: [ 17.802850] Bluetooth: SCO socket layer initialized
Nov 7 13:37:40 raspberrypi kernel: [ 17.820587] Bluetooth: HCI UART driver ver 2.3
Nov 7 13:37:40 raspberrypi kernel: [ 17.820606] Bluetooth: HCI UART protocol H4 registered
Nov 7 13:37:40 raspberrypi kernel: [ 17.820613] Bluetooth: HCI UART protocol Three-wire (H5) registered
Nov 7 13:37:40 raspberrypi kernel: [ 17.820891] Bluetooth: HCI UART protocol Broadcom registered
Nov 7 13:37:40 raspberrypi kernel: [ 18.177844] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Nov 7 13:37:40 raspberrypi kernel: [ 18.177858] Bluetooth: BNEP filters: protocol multicast
Nov 7 13:37:40 raspberrypi kernel: [ 18.177892] Bluetooth: BNEP socket layer initialized
Nov 7 13:39:18 raspberrypi kernel: [ 105.079798] Indeed it is in host mode hprt0 = 00021d01
Nov 7 13:39:18 raspberrypi kernel: [ 105.279732] usb 1-1: new full-speed USB device number 2 using dwc_otg
Nov 7 13:39:23 raspberrypi kernel: [ 110.319777] Indeed it is in host mode hprt0 = 00021d01
Nov 7 13:39:39 raspberrypi kernel: [ 126.329904] Indeed it is in host mode hprt0 = 00021501
Nov 7 13:39:39 raspberrypi kernel: [ 126.529832] usb 1-1: new high-speed USB device number 3 using dwc_otg
Nov 7 13:39:39 raspberrypi kernel: [ 126.530038] Indeed it is in host mode hprt0 = 00001101
Nov 7 13:39:39 raspberrypi kernel: [ 126.760386] usb 1-1: config 1 interface 1 altsetting 0 bulk endpoint 0x1 has invalid maxpacket 128
Nov 7 13:39:39 raspberrypi kernel: [ 126.760411] usb 1-1: config 1 interface 1 altsetting 0 bulk endpoint 0x82 has invalid maxpacket 128
Nov 7 13:39:39 raspberrypi kernel: [ 126.760429] usb 1-1: config 1 interface 2 altsetting 0 bulk endpoint 0x4 has invalid maxpacket 64
Nov 7 13:39:39 raspberrypi kernel: [ 126.760720] usb 1-1: New USB device found, idVendor=03eb, idProduct=6132
Nov 7 13:39:39 raspberrypi kernel: [ 126.760756] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
Nov 7 13:39:39 raspberrypi kernel: [ 126.760766] usb 1-1: Product: Atmel
Nov 7 13:39:39 raspberrypi kernel: [ 126.783258] usb-storage 1-1:1.2: USB Mass Storage device detected
Nov 7 13:39:39 raspberrypi kernel: [ 126.796442] scsi host0: usb-storage 1-1:1.2
Nov 7 13:39:39 raspberrypi kernel: [ 126.885081] cdc_acm 1-1:1.0: ttyACM0: USB ACM device
Nov 7 13:39:39 raspberrypi kernel: [ 126.897924] usbcore: registered new interface driver cdc_acm
Nov 7 13:39:39 raspberrypi kernel: [ 126.897939] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
Nov 7 13:39:40 raspberrypi kernel: [ 127.227046] random: crng init done
Nov 7 13:39:40 raspberrypi kernel: [ 127.841156] scsi 0:0:0:0: Direct-Access ATMEL Mass Storage MSD 0.01 PQ: 0 ANSI: 6
Nov 7 13:39:40 raspberrypi kernel: [ 127.847971] sd 0:0:0:0: [sda] 728832 512-byte logical blocks: (373 MB/356 MiB)
Nov 7 13:39:40 raspberrypi kernel: [ 127.848837] sd 0:0:0:0: [sda] Write Protect is off
Nov 7 13:39:40 raspberrypi kernel: [ 127.873403] sd 0:0:0:0: [sda] Attached SCSI removable disk
Nov 7 13:39:40 raspberrypi kernel: [ 127.895118] sd 0:0:0:0: Attached scsi generic sg0 type 0
이 출력에서 디스크가 /dev/sda에 있다고 확신하지만 유효하지 않은 maxpacket 줄이 무엇을 의미하는지 잘 모르겠습니다.
설치하려고 하면:
raspberrypi:~$ sudo mount /dev/sda /media/usb-drive/
mount: wrong fs type, bad option, bad superblock on /dev/sda, missing codepage or helper program, or other error
In some cases useful info is found in syslog - try dmesg | tail or so.
그래서 dmesg를 실행합니다:
raspberrypi:~$ dmesg | tail
[1034.801104] F2FS-fs (sda): Magic Mismatch, valid(0xf2f52010) - read(0xffffffff)
[1034.801108] F2FS-fs (sda): Can't find valid F2FS filesystem in 2th superblock
[1108.115588] F2FS-fs (sda): Magic Mismatch, valid(0xf2f52010) - read(0xffffffff)
[1108.115606] F2FS-fs (sda): Can't find valid F2FS filesystem in 1th superblock
그런 다음 다른 문제 해결 게시물에서 제안한 대로 일련의 명령을 실행했습니다.
raspberrypi:~$ sudo parted /dev/sda -l
Error: /dev/sda: unrecognised disk label
Model: ATMEL Mass Storage MSD (scsi)
Disk /dev/sda: 373MB
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags:
인식할 수 없는 디스크 레이블이 무엇을 의미하는지 잘 모르겠습니다.
raspberrypi:~$ sudo file -sL /dev/sda
/dev/sda: ISO-8859 text, with very long lines, with no line terminators
이는 dd를 사용하여 전체 디스크를 파일에 복사한 다음 Python 스크립트로 구문 분석할 수 있다는 의미입니까?
raspberrypi:~$ sudo fdisk /dev/sda -l
Disk /dev/sda: 355.9 MiB, 373161984 bytes, 728832 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
추가 정보...
raspberrypi:~$ sudo lsblk -f
NAME FSTYPE LABEL UUID MOUNTPOINT
sda
mmcblk0
|-mmcblk0p2 ext4 673b8ab6-6426-474b-87d3-71bff0fcebc3 /
`-mmcblk0p1 vfat boot 109A-9113 /boot
...
raspberrypi:~$ sudo strings -a /dev/sda | head -n 40
<ZioPatch>
<Device SerialNumber="NNNNNNNNNN" FW="0005" HW="0004"></Device>
<Layout PageSize="2048" ControlBlockSize="128" Endian="Little" BitOrder="LS">
</Layout>
<PatientData SampleRateHz="199.805" ADCmin="-1.50" ADCmax="1.50" SampleBits="10" PacketSizeBytes="5" ButtonPressResolutionMS="320" LeadOffResolutionMS="640"></PatientData>
<Control>
<!-- every page -->
<DiagsArea Size="20"></DiagsArea>
<AGCGainArea Size="1"></AGCGainArea>
<AccelerometerArea Size="32"></AccelerometerArea>
<ExtraArea Size="19"></ExtraArea>
<FWversionArea Size="4"></FWversionArea>
<ECCArea Size="2"></ECCArea>
<!--impedance values array of int16-->
<ImpedanceLevelArea Size="30"></ImpedanceLevelArea>
<RealTimeClockArea Size="6"></RealTimeClockArea><!--24 hour clock-->
<BatteryLevelArea Size="2"></BatteryLevelArea>
<!--least significant bit corresponds to the last sample-->
<DigitalGainArea Size="4"></DigitalGainArea>
<ButtonPressBitsArea Size="4"></ButtonPressBitsArea>
<PageSeqNumberArea Size="4"></PageSeqNumberArea>
</Control>
</ZioPatch>
17091870B27FB400000027
Rec Length--
&irQ
fm^7
aXj
`XF!
E=KS
6uT< q
`h"
%I:E
v]'1
f%!2
ein^
r\w%
t]7U
u]GM
u]WU
마지막 것은 유망해 보이지만 내 탐색의 다음 단계가 무엇인지 확실하지 않습니다.