내 USB 드라이브의 /etc/fstab이 부팅되지 않습니다

내 USB 드라이브의 /etc/fstab이 부팅되지 않습니다

fstab을 사용하여 sudo blkid다음과 같이 드라이브를 마운트 했습니다 /etc/fstab.

UUID=1169dd89-29fe-436c-9aef-fa78ea7ee138 /media/hd ext4 defaults,auto,umask=000,users,rw 0 0

나도 시도했다

PARTUUID=df63cda7-01  /media/hd ext4 defaults,auto,umask=000,users,rw 0 0

하지만 내 라즈베리 파이가 부팅되지 않습니다. 또한 uuid를 얻기 전에 시스템을 ext4로 포맷했습니다. 시작 시 비상 모드로 전환되고 입력을 요청합니다.journalctl -xb

이제 옵션 을 추가했으므로 nofail최소한 부트스트랩이 가능하고 SD 카드를 계속 편집할 필요가 없습니다.

PARTUUID=df63cda7-01  /media/hd ext4 defaults,auto,nofail,umask=000,users,rw 0 0

무엇이 잘못되었나요?

부팅할 때 표시되지 않지만 /dev/sda1나타 df -h납니다.sudo blkid

pi@raspberrypi:~ $ sudo file -sL /dev/sda1
/dev/sda1: Linux rev 1.0 ext4 filesystem data, UUID=1169dd89-29fe-436c-9aef-fa78ea7ee138 (extents) (64bit) (large files) (huge files)

드라이브를 다시 연결하면 dmesg -w입니다.

[ 1156.384704] usb 1-1.2: USB disconnect, device number 5
[ 1156.399483] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[ 1156.399843] sd 0:0:0:0: [sda] Synchronize Cache(10) failed: Result: hostbyte=0x01 driverbyte=0x00
[ 1165.388431] usb 1-1.2: new high-speed USB device number 6 using dwc_otg
[ 1165.600753] usb 1-1.2: New USB device found, idVendor=0bc2, idProduct=231a
[ 1165.600776] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1165.600787] usb 1-1.2: Product: Expansion
[ 1165.600796] usb 1-1.2: Manufacturer: Seagate
[ 1165.600806] usb 1-1.2: SerialNumber: NA8Z9LSP
[ 1165.606573] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[ 1165.629063] scsi host0: usb-storage 1-1.2:1.0
[ 1166.650056] scsi 0:0:0:0: Direct-Access     Seagate  Expansion        0708 PQ: 0 ANSI: 6
[ 1166.657494] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 1167.877041] sd 0:0:0:0: [sda] 1953525167 512-byte logical blocks: (1.00 TB/932 GiB)
[ 1167.877944] sd 0:0:0:0: [sda] Write Protect is off
[ 1167.877969] sd 0:0:0:0: [sda] Mode Sense: 47 00 00 08
[ 1167.889766] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 1167.936469]  sda: sda1
[ 1167.944243] sd 0:0:0:0: [sda] Attached SCSI disk
[ 1168.710434] EXT4-fs (sda1): Unrecognized mount option "umask=000" or missing value

이 내 꺼야 lsusb:

pi@raspberrypi:~ $ lsusb
Bus 001 Device 004: ID 148f:7601 Ralink Technology, Corp. MT7601U Wireless Adapter
Bus 001 Device 006: ID 0bc2:231a Seagate RSS LLC 
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

답변1

관련 정보