linux下superblock的计数方法

 原文地址

http://groups.google.com/group/comp.os.linux.misc/browse_thread/thread/3b8d2276d0be9f81

原文内容:

=================================================================================================

Dan Niles  
View profile  
 More options Mar 31 1998, 3:00 am

Newsgroups: comp.os.linux.misc
From: d...@more.net (Dan Niles)
Date: 1998/03/31
Subject: Q: Repairing ext2fs with bad superblock
Print | Individual message | Show original | Report this message | Find messages by this author

I need help repairing an ext2fs with a bad superblock.

In Solaris it is easy to fix a file system with a corrupted
superblock, simply:

        solairs> newfs -N <block device>
        solairs> fsck -o b=<superblock>

Linux ext2fs has:

        linux> e2fsck -b <superblock>

I can't find any way to get a list of superblocks in Linux.  Is there
any way to do this in Linux?

In Solaris, 32 is always a backup superblock. Are there any backup
superblocks that can be counted on in Linux ext2fs?

Dan

----------------------------------------------------------------------------------------

Frank Sweetser  
View profile  
 More options Mar 31 1998, 3:00 am

Newsgroups: comp.os.linux.misc
From: Frank Sweetser <rasmu...@WPI.EDU>
Date: 1998/03/31
Subject: Re: Q: Repairing ext2fs with bad superblock
Print | Individual message | Show original | Report this message | Find messages by this author

d ...@more.net (Dan Niles) writes:
> I can't find any way to get a list of superblocks in Linux.  Is there
> any way to do this in Linux?

backup superblocks are stored every ((n*8192)+1) blocks.  so, the first one
is stored at block 8193.

--
Frank Sweetser rasmusin at wpi.edu fsweetser at blee.net | PGP key available
paramount.res.wpi.net RH 5.0 kernel 2.0.33/2.1.92p2 i586 | at public servers
Running Windows on a Pentium is like having a brand new Porsche but only
be able to drive backwards with the handbrake on.
(Unknown source)


===================================================================================================

全文摘录仅是为方便以后查看。如有版权问题请随时联系:)

从这里得到linux下如何计算superblock的存储的技术方法:

backup superblocks are stored every ((n*8192)+1) blocks

 

ps:目前在Vista下安装了slackware13.37。用grub4dos引导,但是报错。很是纠结哭

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值