我购买了一个Seagate Backup Plus 5 TB USB 3.0 便携式 2.5 英寸驱动器,因为我最近用完了 1TB 驱动器,我已连接到运行 ArchLinuxARM 的 RPi2,并在家里提供音乐(感谢快照)。
我已经在我的主桌面/服务器(运行 Gentoo)上用 ext4 格式化了默认 Micro$oft 的驱动器,没有任何问题。使用“-m 0”选项时,我故意省略了为设备上的 root 保留空间...
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
我尝试安装它(作为 root),它声称要安装...
# 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 未检测到驱动器,我也无法 ls 该设备...
# 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