cfdisk maxmize 操作分区后就出现问题了。bad magic number while trying to

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
回复
132811
帖子: 194
注册时间: 2010-04-20 21:19
系统: ArchLinux
来自: My gtalk:a132811@
送出感谢: 3 次
接收感谢: 1 次
联系:

cfdisk maxmize 操作分区后就出现问题了。bad magic number while trying to

#1

帖子 132811 » 2010-12-12 14:36

代码: 全选

/dev/sda1              63    18446399     9223168+   7  HPFS/NTFS

Partition 1 does not end on cylinder boundary.

/dev/sda2        18446522   270809087   126181283    f  W95 Ext'd (LBA)

fedora13:sda5~sda11
/dev/sda5        18446524    28949129     5251303   83  Linux /

/dev/sda6        28949193    31069709     1060258+  82  Linux swap / Solaris

/dev/sda7        31069773    52050599    10490413+  83  Linux /home

/dev/sda8        52050663    73031489    10490413+  83  Linux /usr

/dev/sda9        73031553    74075714      522081   83  Linux /tmp

/dev/sda10       74075778    78284744     2104483+  83  Linux /var

/dev/sda11       78284808    94221224     7968208+  83  Linux /其它

/dev/sda12       94227878   136457999    21115061    7  HPFS/NTFS

/dev/sda13      136458063   179549279    21545608+   7  HPFS/NTFS

/dev/sda14      179550208   201170943    10810368    b  W95 FAT32

/dev/sda15      201171007   224909999    11869496+   7  HPFS/NTFS

ubuntu分区:sda16~sda20+sda6
/dev/sda16      224911360   228816895     1952768   83  Linux /

/dev/sda17      228818944   244441087     7811072   83  Linux /home

/dev/sda18      244443136   263972863     9764864   83  Linux /usr

/dev/sda19      263974912   269832191     2928640   83  Linux /var

/dev/sda20      269834240   270809087      487424   83  Linux /tmp

这个是我备份好的分区表。fedora分区:sda5~sda11,ubuntu分区:sda16~sda20,sda6被ubuntu/fedora共享。
今天好像吃错药似的,想试下cfdisk 中的maxmize,扩大一点0。几M
我仅对sda5~sda11进行了maxmize,好家伙,重启后就出问题了:

代码: 全选

1、fdora/ubuntu都无法进入
2、除了sda7~sda11不能被挂载外,其它的都能载。sda8~sda11被mount时会出现错误:bad magic number.
3、启动ubuntu时,分区报错:
sda18: init:mounted-tmp main process (683) terminated with status 4
mountall:event failed

sda17:mountall:fsck /home [373] terminated with status 1

sda6: fsck.ext4:bad magic nomber while trying to open /dev/sda6 
the superblock couldn't be read or doesn't describle a correct ext2;
If the device is vvalid and it  really contains an ext2 file system ,then the  superblock is corrupt,and u might try to runing e2fsck with an alternate superblock:   e2fsck -b 8193 <device>

4、启动fedora时,大多数分区都会报这个错误:
fsck.ext4:bad magic nomber while trying to open /dev/sda6 
the superblock couldn't be read or doesn't describle a correct ext2;
If the device is vvalid and it  really contains an ext2 file system ,then the  superblock is corrupt,and u might try to runing e2fsck with an alternate superblock:   e2fsck -b 8193 <device>
====================================================================================
问题已经解决了.我尝试了以下几个命令都无法解决:

代码: 全选

(用e2fsck/resize2fs都无法解决含有bad magic nomber 这一错误的分区)
因为,操作过程,我不小心使用mkfs.ext4 对sda16/sda17格式化了,我不知道为何ubuntu也无法启动(我并没有动这个ubuntu分区,其分区也可以正常mount).
既然ubuntu没有了,我就重建分区表吧(只需要使用fdisk)

代码: 全选

通过光盘进入livecd 系统.
#fdisk /dev/sda
Command (m for help): u                     //change display units to sectors (command 'u')
Command (m for help): d                      //把sda7~sda20删除,sda7~sda11被cfdisk改变的分区表。
...................
Command (m for help): n                      //重建分区表(sda7~sda15),按照上面的我备份的分区表重建
.............................................
#reboot
#注意,千万不能再格式化了! :em06
http://hilojack.sinaapp.com
i3 M370(2.4G)/500G/8G/OpenGL:Gallium 0.4 on nvidia 3100M
头像
我就是我2
帖子: 1215
注册时间: 2008-12-13 10:55
来自: the Earth
送出感谢: 1 次
接收感谢: 3 次
联系:

Re: cfdisk maxmize 操作分区后就出现问题了。bad magic number while trying

#2

帖子 我就是我2 » 2010-12-14 0:54

:em04 想起一个调查中一个高人说的一句话,
如果不是手贱,都不用重新安装系统
苏东坡问佛印道:“人人皆念观世音菩萨,观世音菩萨念谁?”
佛印答道:“念观世音菩萨。”
苏东坡诧异:“为何亦念观世音菩萨?”
曰:“求人不如求己。”


dropbox 誰好奇,誰來點
勞碌一生又如何,虛度一生又如何,你過得開心嗎?人活著就要開心嘛!
回复

回到 “启动和引导”