하나 구매했어요Seagate Backup Plus 5TB USB 3.0 휴대용 2.5인치드라이브, 최근에 1TB 드라이브가 부족해서 ArchLinuxARM을 실행하는 RPi2에 연결했고 집에서 음악을 들을 수 있습니다(감사합니다)스냅 사진).
저는 기본 데스크탑/서버(젠투 실행)에서 아무런 문제 없이 기본 Micro$oft 드라이브를 ext4로 포맷했습니다. "-m 0" 옵션을 사용할 때 장치의 루트 공간을 예약하기 위해 의도적으로 생략했습니다.
mkfs.ext4 -m 0 /dev/sdg1
...완료되면 rsync를 사용하여 추출된 모든 음악과 비디오를 Seagate 드라이브에 복사한 다음 RPi2에 연결합니다.
RPi2가 장치를 감지하고 이를 마운트한다고 주장하지만 장치에서 아무것도 읽을 수 없으며 df에서도 감지되지 않습니다.
dmesg | grep sdb -B5 -A5
[ 6.818812] systemd[1]: Set hostname to <alarmpi>.
[ 7.138564] uart-pl011 3f201000.serial: no DMA platform data
[ 7.314785] systemd[1]: File /usr/lib/systemd/system/systemd-journald.service:35 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling.
[ 7.340062] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.)
[ 7.437703] scsi 1:0:0:0: Direct-Access Seagate BUP SL 0304 PQ: 0 ANSI: 6
[ 7.454293] sd 1:0:0:0: [sdb] Spinning up disk...
[ 7.775111] systemd[1]: Set up automount mnt-seagate\x2d5tb.automount.
[ 7.787824] systemd[1]: Set up automount mnt-backup\x2dvideo.automount.
[ 7.798924] systemd[1]: Reached target Remote File Systems.
[ 7.809832] systemd[1]: Set up automount mnt-backup\x2dpics.automount.
[ 7.821316] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
--
[ 9.516523] .
[ 10.556508] .
[ 11.596497] .
[ 12.636494] .
[ 12.636861] ready
[ 12.641384] sd 1:0:0:0: [sdb] Very big device. Trying to use READ CAPACITY(16).
[ 12.651628] sd 1:0:0:0: [sdb] 9767541167 512-byte logical blocks: (5.00 TB/4.55 TiB)
[ 12.664365] sd 1:0:0:0: [sdb] 2048-byte physical blocks
[ 12.737473] sd 1:0:0:0: [sdb] Write Protect is off
[ 12.744906] sd 1:0:0:0: [sdb] Mode Sense: 4f 00 00 00
[ 12.745512] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 12.761056] sd 1:0:0:0: [sdb] Very big device. Trying to use READ CAPACITY(16).
[ 12.863681] sdb: sdb1
[ 12.870411] sd 1:0:0:0: [sdb] Very big device. Trying to use READ CAPACITY(16).
[ 12.881906] sd 1:0:0:0: [sdb] Attached SCSI disk
[ 13.946160] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
[ 13.957666] bcm2835-rng 3f104000.rng: hwrng registered
[ 14.022165] snd-rpi-iqaudio-dac soc:sound: ASoC: CODEC DAI pcm512x-hifi not registered - will retry
[ 14.181087] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[ 14.190832] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
--
[ 20.184910] wlan0: RX AssocResp from 00:25:9c:13:e7:12 (capab=0x431 status=0 aid=4)
[ 20.301723] wlan0: associated
[ 20.306827] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 110.045728] pcm512x 1-004c: No SCLK, using BCLK: -2
[ 111.975428] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[ 1428.731832] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
[ 9204.593083] pcm512x 1-004c: No SCLK, using BCLK: -2
[17467.143120] pcm512x 1-004c: No SCLK, using BCLK: -2
[17499.068650] pcm512x 1-004c: No SCLK, using BCLK: -2
(루트로) 설치를 시도했는데 설치라고 표시되었습니다 ...
# mount -v -t auto /dev/sdb1 /mnt/seagate-5tb
mount: /dev/sdb1 mounted on /mnt/seagate-5tb.
# dmesg | tail -n3
[17467.143120] pcm512x 1-004c: No SCLK, using BCLK: -2
[17499.068650] pcm512x 1-004c: No SCLK, using BCLK: -2
[180078.489600] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
하지만 드라이브가 df에 의해 감지되지 않아 장치를 찾을 수 없습니다...
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 15G 8.1G 5.5G 60% /
devtmpfs 464M 0 464M 0% /dev
tmpfs 469M 0 469M 0% /dev/shm
tmpfs 469M 468K 468M 1% /run
tmpfs 469M 0 469M 0% /sys/fs/cgroup
tmpfs 469M 4.0K 468M 1% /tmp
/dev/mmcblk0p1 100M 24M 77M 24% /boot
/dev/sda1 917G 867G 3.5G 100% /mnt/backup-music
tmpfs 94M 0 94M 0% /run/user/1001
# ls /mnt/seagate-5tb/
ls: cannot access '/mnt/seagate-5tb/': No such device
커널은 장치가 정상이고 ext4를 지원한다는 것을 감지한 것 같습니다./proc/filesystems
# cat /proc/filesystems
nodev sysfs
nodev rootfs
nodev ramfs
nodev bdev
nodev proc
nodev cpuset
nodev cgroup
nodev cgroup2
nodev tmpfs
nodev devtmpfs
nodev configfs
nodev debugfs
nodev tracefs
nodev securityfs
nodev sockfs
nodev bpf
nodev pipefs
nodev rpc_pipefs
nodev devpts
reiserfs
ext3
ext2
ext4
vfat
msdos
nodev nfs
nodev nfs4
nodev autofs
nodev overlay
jfs
xfs
f2fs
nodev mqueue
btrfs
...그래서 장치가 올바르게 설치되지 않는 이유가 약간 혼란스럽습니다. 무엇을 조사하거나 시도해야 하는지에 대한 조언이나 조언을 주시면 감사하겠습니다.
편집: 추가 정보/etc/fstab
# more /etc/fstab
# <file system> <dir> <type> <options> <dump> <pass>
/dev/mmcblk0p1 /boot vfat defaults 0 0
# External drives
/dev/disk/by-label/backup-music /mnt/backup-music auto auto,nofail,x-systemd.automount,users 0 0
/dev/disk/by-label/seagate-5tb /mnt/seagate-5tb auto auto,nofail,x-systemd.automount,users 0 0
장치가 존재하고 태그가 확실히 존재하며 올바른 블록 장치를 가리킵니다.
# ls -l /dev/disk/by-label/
total 0
lrwxrwxrwx 1 root root 10 Dec 21 12:31 backup-music -> ../../sda1
lrwxrwxrwx 1 root root 10 Dec 21 12:31 seagate-5tb -> ../../sdb1
편집 2: 파티션 테이블에 대한 추가 정보
파티션 테이블 fdisk
과 해당 GPT를 확인했으므로 여기서는 DOS 제약 조건이 문제가 되지 않아야 합니다.
# fdisk -l /dev/sdb
Disk /dev/sdb: 4.6 TiB, 5000981077504 bytes, 9767541167 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: EDF7F3CD-E4AF-4422-8015-31C1447BBB64
Device Start End Sectors Size Type
/dev/sdb1 2048 9767541133 9767539086 4.6T Linux filesystem