硬盘中的操作系统格局如下:
主盘分区2 --- Ubuntu,ext3; 主盘分区3 --- FreeBSD
从盘分区2 --- Gentoo,ext3; 从盘分区3 --- XP
# mount_ext2fs /dev/ad0s2 /mnt,挂载主盘中的Linux分区完全正常,但是挂从盘的时候:
# mount_ext2fs /dev/ad1s2 /mnt2
# ls /mnt2
ls: /mnt2: Bad file descriptor
搜索了一下,有人提出是Inode size不一致,
# tune2fs -l /dev/sda2|grep -i inode
Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery sparse_super large_file
Inode count: 652800
Free inodes: 583034
Inodes per group: 8160
Inode blocks per group: 255
First inode: 11
Inode size: 128
Journal inode: 8
Journal backup: inode blocks
# tune2fs -l /dev/sdb2|grep -i inode
Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery sparse_super large_file
Inode count: 1107584
Free inodes: 846485
Inodes per group: 8144
Inode blocks per group: 509
First inode: 11
Inode size: 256
Journal inode: 8
Journal backup: inode blocks
果然一个128,一个256,按网上资料所说,应该改源码重新编译内核。
------------------------
FreeBSD 7.1-RELEASE
阅读(1812) | 评论(0) | 转发(0) |