挂载磁盘后,访问挂载目录时出现ls: can't open 'sda16': Value too large for defined data type
奋---斗 2015-12-30 11:25:23 如题,我将一块1T的磁盘分成了20个分区(GPT分区方式),每个分区50G,每个分区都成功格式化并挂载,但是在第16个分区之后的挂载目录访问都有点问题,比如用ls命令查看时会出现:ls: can't open 'sda16': Value too large for defined data type,然而可以用cd命令进入到该目录,也可以在该目录下创建或删除文件。
# cd /mnt/
# ls sda16
ls: can't open 'sda16': Value too large for defined data type
# cd /mnt/sda16
# ls
ls: can't open '.': Value too large for defined data type
# touch test.c
# ls
ls: can't open '.': Value too large for defined data type
# ls test.c
test.c
#
我在查看 /proc/partitions 文件时,发现一个奇怪的问题,从第16个分区开始,主设备号变成了259,此处不是很理解,猜想是内核配置所导致。
# cat /proc/partitions
major minor #blocks name
240 0 1024 romblock0
31 0 1024 mtdblock0
240 1 4096 romblock1
31 1 4096 mtdblock1
240 2 5120 romblock2
31 2 5120 mtdblock2
240 3 16384 romblock3
31 3 16384 mtdblock3
240 4 5632 romblock4
31 4 5632 mtdblock4
240 5 512 romblock5
31 5 512 mtdblock5
8 0 976762584 sda
8 1 249983 sda1
8 2 48828125 sda2
8 3 48828125 sda3
8 4 48828125 sda4
8 5 48828125 sda5
8 6 48828125 sda6
8 7 48828125 sda7
8 8 48828125 sda8
8 9 48828125 sda9
8 10 48828125 sda10
8 11 48828125 sda11
8 12 48828125 sda12
8 13 48828125 sda13
8 14 48828125 sda14
8 15 48828125 sda15
259 0 48828125 sda16
259 1 48828125 sda17
259 2 48828125 sda18
259 3 48828125 sda19
259 4 48828125 sda20
259 5 48778192 sda21
8 16 488386584 sdb
8 17 249983 sdb1
8 18 488136567 sdb2
#
内核版本为:
# uname -a
Linux (none) 3.4.35_hi3535 #42 SMP Tue Nov 24 19:39:05 PST 2015 armv7l GNU/Linux
#
望大神解答