Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1302699
  • 博文数量: 268
  • 博客积分: 10698
  • 博客等级: 上将
  • 技术积分: 2867
  • 用 户 组: 普通用户
  • 注册时间: 2007-07-14 22:21
文章分类

全部博文(268)

文章存档

2012年(19)

2011年(13)

2010年(29)

2009年(26)

2008年(99)

2007年(82)

我的朋友

分类: BSD

2009-01-22 13:43:44

硬盘中的操作系统格局如下:
主盘分区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
阅读(1767) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~