Компьютерный форум OSzone.net  

Компьютерный форум OSzone.net (http://forum.oszone.net/index.php)
-   Общий по Linux (http://forum.oszone.net/forumdisplay.php?f=9)
-   -   [решено] bin/sh: can't access tty : job control turned off (initramfs) (http://forum.oszone.net/showthread.php?t=249579)

morla 20-12-2012 11:33 2049546

bin/sh: can't access tty : job control turned off (initramfs)
 
здравствуйте!

появилась такая проблема: загружаю ноутбук, начинают появляться сообщения об ошибках (см. ниже).
первым делом загружаюсь с Life-USB; попытался примонтировать разделы - не получилось. вот какие ошибки выдает dmesg:
Код:

[  631.861783] ata1.00: status: { DRDY ERR }
[  631.861786] ata1.00: error: { UNC }
[  631.884649] ata1.00: configured for UDMA/133
[  631.884659] ata1: EH complete
[  634.853117] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
[  634.853122] ata1.00: BMDMA stat 0x24
[  634.853127] ata1.00: failed command: READ DMA
[  634.853135] ata1.00: cmd c8/00:f0:b0:ab:46/00:00:00:00:00/e3 tag 0 dma 122880 in
[  634.853136]          res 51/40:00:81:ac:46/00:00:00:00:00/e3 Emask 0x9 (media error)
[  634.853141] ata1.00: status: { DRDY ERR }
[  634.853144] ata1.00: error: { UNC }
[  634.877005] ata1.00: configured for UDMA/133
[  634.877029] sd 0:0:0:0: [sda] Unhandled sense code
[  634.877032] sd 0:0:0:0: [sda]  Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[  634.877037] sd 0:0:0:0: [sda]  Sense Key : Medium Error [current] [descriptor]
[  634.877043] Descriptor sense data with sense descriptors (in hex):
[  634.877046]        72 03 11 04 00 00 00 0c 00 0a 80 00 00 00 00 00
[  634.877058]        03 46 ac 81
[  634.877064] sd 0:0:0:0: [sda]  Add. Sense: Unrecovered read error - auto reallocate failed
[  634.877072] sd 0:0:0:0: [sda] CDB: Read(10): 28 00 03 46 ab b0 00 00 f0 00
[  634.877089] end_request: I/O error, dev sda, sector 54963329
[  634.877102] JBD2: Failed to read block at offset 21648
[  634.877104] ata1: EH complete
[  634.877110] JBD2: recovery failed
[  634.877114] EXT4-fs (sda1): error loading journal

если запустить ноутбук, то он в конце выдает вот такое сообщение:
Код:

/bin/sh: can't access tty : job control turned off
(initramfs)

поиск по ошибке привел меня вот сюда - http://forums.debian.net/viewtopic.php?f=17&t=50734
как я понял, у меня аналогичная ситуация. но что то не получается:
Код:

# fdisk -l

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x7ab852fc

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1  *          1        7295    58592256  83  Linux
/dev/sda2            7295      25531  146483201    5  Extended
/dev/sda5            7295      25531  146483200  83  Linux

Disk /dev/sdb: 16.0 GB, 16011542528 bytes
255 heads, 63 sectors/track, 1946 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x6faf5a8e

  Device Boot      Start        End      Blocks  Id  System
/dev/sdb1  *          1        1946    15631213+  c  W95 FAT32 (LBA)

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

root@bt:~# dmesg | tail
[ 1756.001319] Descriptor sense data with sense descriptors (in hex):
[ 1756.001321]        72 03 11 04 00 00 00 0c 00 0a 80 00 00 00 00 00
[ 1756.001334]        03 46 ac 81
[ 1756.001339] sd 0:0:0:0: [sda]  Add. Sense: Unrecovered read error - auto reallocate failed
[ 1756.001347] sd 0:0:0:0: [sda] CDB: Read(10): 28 00 03 46 ab b0 00 00 f0 00
[ 1756.001359] end_request: I/O error, dev sda, sector 54963329
[ 1756.001378] ata1: EH complete
[ 1756.001381] JBD2: Failed to read block at offset 21648
[ 1756.001387] JBD2: recovery failed
[ 1756.001390] EXT4-fs (sda1): error loading journal

собственно вопрос заключается в решении этой проблемы.
заранее спасибо.

собственно sda5(home) раздел монтируется нормально. можно просматривать файлы и всякое такое. но вот раздел sda1(boot) не получается примонтировать. может быть просто переустановить систему? но не хочется просто так сдаваться.

torauma 20-12-2012 12:21 2049577

Цитата:

Цитата morla
mount -t ext4 /dev/sda1 /media/disk/ mount: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so »

А файловую систему проверить пробовали?
Код:

fsck -t ext4 /dev/sda1

morla 20-12-2012 12:27 2049582

сделал вот что и все заработало:
Код:

e2fsck -f /dev/sda1
взято вот здесь - http://www.cyberciti.biz/tips/surviv...-failures.html

получается это просто были баги?
Код:

* Mistakes by Linux/UNIX Sys admin
* Buggy device driver or utilities (especially third party utilities)
* Power outage (very rarer on production system) due to UPS failure
* Kernel bugs (that is why you don't run latest kernel on production Linux/UNIX system, most of time you need to use stable kernel release)

если так, то тема закрыта. или можно дальше копать?

torauma 20-12-2012 13:27 2049618

Видимо просто повредилась файловая система. Если это произошло только один раз, то беспокоиться не стоит. А вот если будет часто повторяться без видимых причин, то проблема очень серьезная и может закончиться потерей данных.

Посмотрите не угодили ли какие нибудь важные файлы в /lost+found/.
Цитата:

Цитата morla
если так, то тема закрыта. »

Пометьте как решенную (кнопка над первым вашим сообщением).

morla 20-12-2012 13:46 2049636

torauma, посмотрел /lost+found/. ничего нет. значит все ОК. тема закрыта.


Время: 08:38.

Время: 08:38.
© OSzone.net 2001-