LINUX.ORG.RU

No root device found Boot has failed, sleeping forever (Fedora 13)


0

1

Перестала грузиться система

No root device found Boot has failed, sleeping forever

Загрузился с LiveCD, запустил BootInfoScript

 Boot Info Script 0.55    dated February 15th, 2010
 
============================= Boot Info Summary: ==============================
 
 => Grub 0.97 is installed in the MBR of /dev/sda and looks at sector 543282
    on boot drive #1 for the stage2 file. A stage2 file is at this location on
    /dev/sda. Stage2 looks on partition #1 for /grub/grub.conf.
 
sda1: _________________________________________________________________________
 
    File system:       ext4
    Boot sector type:  -
    Boot sector info:
    Operating System:
    Boot files/dirs:   /grub/menu.lst /grub/grub.conf
 
sda2: _________________________________________________________________________
 
    File system:
    Boot sector type:  Unknown
    Boot sector info:
    Mounting failed:
mount: unknown filesystem type ''

Полный вывод здесь: http://webcodes.ru/publ/1-1-0-4187

Для получения доступа к файлам раздела, делаю:

mount -t ext3 /dev/sda2 /mnt
mount: wrong fs type, bad option, bad superblock on /dev/sda2,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
[root@localhost ~]#  dmesg | tail
[  149.884156] atl1c 0000:01:00.0: irq 45 for MSI/MSI-X
[  149.884273] atl1c 0000:01:00.0: atl1c: eth0 NIC Link is Up<100 Mbps Full Duplex>
[  149.930341] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  160.339017] eth0: no IPv6 routers present
[  262.479324] fuse init (API version 7.14)
[  262.505389] SELinux: initialized (dev fusectl, type fusectl), uses genfs_contexts
[  262.766201] SELinux: initialized (dev fuse, type fuse), uses genfs_contexts
[ 1014.605627] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[ 1014.608741] SELinux: initialized (dev sda1, type ext4), uses xattr
[ 1671.298263] EXT3-fs (sda2): error: can't find ext3 filesystem on dev sda2.

Что посоветуете?


Ответ на: комментарий от GotF
[root@localhost ~]# fsck -y /dev/sda
fsck from util-linux-ng 2.18
e2fsck 1.41.12 (17-May-2010)
fsck.ext2: Superblock invalid, trying backup blocks...
fsck.ext2: Bad magic number in super-block while trying to open /dev/sda

The superblock could not be read or does not describe a correct ext2
filesystem.  If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>

kmua
() автор топика
Ответ на: комментарий от dumal

testdisk

Select a media (use Arrow keys, then press Enter):
Disk /dev/sda - 250 GB / 232 GiB - ATA Hitachi HTS54502
Disk /dev/mapper/live-osimg-min - 3221 MB / 3072 MiB (RO)
Disk /dev/mapper/live-rw - 3221 MB / 3072 MiB
Disk /dev/sr0 - 719 MB / 686 MiB (RO) - MATSHITA DVD-RAM UJ862AS
Disk /dev/dm-0 - 3221 MB / 3072 MiB
Disk /dev/dm-1 - 3221 MB / 3072 MiB (RO)

Выбрал Disk /dev/sda ->>>>>>>> [Proceed ] 


->>>>>>>> [Intel  ]  Intel/PC partition

->>>>>>>> [Analize]

Disk /dev/sda - 250 GB / 232 GiB - CHS 30401 255 63
Current partition structure:
     Partition                  Start        End    Size in sectors

 1 * Linux                    0  32 33    63 221 30    1024000
 2 P Linux LVM               63 221 31 30401  75 10  487370752
 2 P Linux LVM               63 221 31 30401  75 10  487370752

kmua
() автор топика
Ответ на: комментарий от dumal
Disk /dev/sda - 250 GB / 232 GiB - CHS 30402 255 63
     Partition               Start        End    Size in sectors
* Linux                    0  32 33    63 221 30    1024000
P Linux                 3217   1  1  9744  22 22  104857600
P Linux                13513  91 19 26485 238 57  208404480

Structure: Ok.  Use Up/Down Arrow keys to select partition.
Use Left/Right Arrow keys to CHANGE partition characteristics:
*=Primary bootable  P=Primary  L=Logical  E=Extended  D=Deleted
Keys A: add partition, L: load backup, T: change type, P: list files,
     Enter: to continue
EXT4 Sparse superblock, 524 MB / 500 MiB

Мне сейчас нужно выбрать L: load backup ?

kmua
() автор топика
Ответ на: комментарий от dumal

Now using the value given by TestDisk, you can use fsck to repair your ext2/ext3 filesystem. I.E. if TestDisk has found a superblock at block number 24577 and a blocksize of 1024 bytes, run

/sbin/fsck.ext3 -b 24577 -B 1024 /dev/hda1

У меня так:

Disk /dev/sda - 250 GB / 232 GiB - CHS 30401 255 63

     Partition                  Start        End    Size in sectors

  Linux                    0  32 33    63 221 30    1024000
superblock 0, blocksize=1024 []
superblock 8193, blocksize=1024 []
superblock 24577, blocksize=1024 []
superblock 40961, blocksize=1024 []
superblock 57345, blocksize=1024 []

На всякий случай уточню, какой из этих вариантов будет правильным?

1./sbin/fsck.ext3 -b 57345 -B 1024 /dev/sda2
2. /sbin/fsck.ext3 -b 57345 -B 1024 /dev/sda2
3. /sbin/fsck.ext3 -b 24577 -B 1024 /dev/sda1
4./sbin/fsck.ext3 -b 24577 -B 1024 /dev/sda1

Спасибо.

kmua
() автор топика
Ответ на: комментарий от dumal
[root@localhost liveuser]# /sbin/fsck.ext3 -y -b 24577 -B 1024 /dev/sda1
............
............

Fix? yes

Free inodes count wrong for group #0 (2021, counted=2009).
Fix? yes

Free inodes count wrong for group #32 (2032, counted=2011).
Fix? yes

Directories count wrong for group #32 (0, counted=4).
Fix? yes

Free inodes count wrong (128005, counted=127972).
Fix? yes

/dev/sda1: ***** FILE SYSTEM WAS MODIFIED *****
/dev/sda1: 44/128016 files (4.5% non-contiguous), 80294/512000 blocks

Перезагрузился, безрезультатно.

А если так:

1. # /sbin/fsck.ext3 -y -b 24577 -B 1024 /dev/sda2
e2fsck 1.41.12 (17-May-2010)
/sbin/fsck.ext3: Bad magic number in super-block while trying to open /dev/sda2

The superblock could not be read or does not describe a correct ext2
filesystem.  If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>

Или так

2. # /sbin/fsck.ext3 -y -b 24577 -B 1024 /dev/sda
e2fsck 1.41.12 (17-May-2010)
/sbin/fsck.ext3: Bad magic number in super-block while trying to open /dev/sda

The superblock could not be read or does not describe a correct ext2
filesystem.  If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>




kmua
() автор топика
Ответ на: комментарий от dumal
# e2fsck -b 8193 /dev/sda2 
e2fsck 1.41.12 (17-May-2010)
e2fsck: Bad magic number in super-block while trying to open /dev/sda2

The superblock could not be read or does not describe a correct ext2
filesystem.  If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>
kmua
() автор топика
Ответ на: комментарий от kmua

Знакомый так написал:


mount -t ext3 /dev/sda2 /mnt
mount: wrong fs type, bad option, bad superblock on /dev/sda2,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

У тебя LVM а не ext3
так что ливсд не поможет в данном случае. точнее не так надо
kmua
() автор топика
Ответ на: комментарий от Zenithar

31 декабря выключил, а 1 утром уже не грузилось. Критические обновления устанавливаются автоматически, было в тот день или нет не помню :).

Ноут Acer Aspire 4810TZ

kmua
() автор топика
Ответ на: комментарий от dumal

Только лучше сначала с помощью dd снять образ раздела и работать с ним

dumal ★★
()
Ответ на: комментарий от dumal

В упор не вижу

Отсюда наверное:

http://webcodes.ru/publ/1-1-0-4187

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
 
Partition  Boot         Start           End          Size  Id System
 
/dev/sda1    *          2,048     1,026,047     1,024,000  83 Linux
/dev/sda2           1,026,048   488,396,799   487,370,752  8e Linux LVM

kmua
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.