Fórum Ubuntu CZ/SK

Ubuntu pro osobní počítače => Instalace, aktualizace a spouštění => Téma založeno: karlitos 04 Října 2010, 17:34:28

Název: [definitivne uzavreno] nedari se mi obnovit Grub2 podle navodu
Přispěvatel: karlitos 04 Října 2010, 17:34:28
Zdravim

Mel sem uzasny napad vymontovat disk z pocitace a kopirovat na nej  pomoci USB prevodniku, po opetovne montazi > Read Error a odmita bootovat. Tak sem nabeh do Live CD a zkusil obnovit Grub 2 podle navodu na Wiki>
Kód: [Vybrat]
ubuntu@ubuntu:~$ sudo fdisk -l

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 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: 0xc09253ab

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        2611    20972826   83  Linux
/dev/sda2            2612        5222    20972857+   7  HPFS/NTFS
/dev/sda3           29880       30401     4192965   82  Linux swap / Solaris
/dev/sda4            5223       29879   198057352+   7  HPFS/NTFS

Partition table entries are not in disk order

ubuntu@ubuntu:~$ sudo fdisk -l

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 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: 0xc09253ab

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        2611    20972826   83  Linux
/dev/sda2            2612        5222    20972857+   7  HPFS/NTFS
/dev/sda3           29880       30401     4192965   82  Linux swap / Solaris
/dev/sda4            5223       29879   198057352+   7  HPFS/NTFS

Partition table entries are not in disk order

ubuntu@ubuntu:~$ sudo mount /dev/sda1 /mnt
ubuntu@ubuntu:~$ sudo mkdir /mnt/dev
mkdir: cannot create directory `/mnt/dev': File exists
ubuntu@ubuntu:~$ sudo mount --bind /dev /mnt/dev
ubuntu@ubuntu:~$ sudo chroot /mnt
ubuntu / #  update-grub
Generating grub.cfg ...
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
Is device-mapper driver missing from kernel?
/proc/devices: fopen failed: No such file or directory
Failed to set up list of device-mapper major numbers
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
Is device-mapper driver missing from kernel?
/proc/devices: fopen failed: No such file or directory
Failed to set up list of device-mapper major numbers
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
Found Debian background: linuxmint.png
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
Is device-mapper driver missing from kernel?
/proc/devices: fopen failed: No such file or directory
Failed to set up list of device-mapper major numbers
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
Found linux image: /boot/vmlinuz-2.6.32-24-generic-phc
Found initrd image: /boot/initrd.img-2.6.32-24-generic-phc
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
Is device-mapper driver missing from kernel?
/proc/devices: fopen failed: No such file or directory
Failed to set up list of device-mapper major numbers
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
Found linux image: /boot/vmlinuz-2.6.32-24-generic
Found initrd image: /boot/initrd.img-2.6.32-24-generic
Found memtest86+ image: /boot/memtest86+.bin
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
Is device-mapper driver missing from kernel?
/proc/devices: fopen failed: No such file or directory
Failed to set up list of device-mapper major numbers
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
grep: /proc/mounts: No such file or directory
Cannot find list of partitions!
done
ubuntu / # grub-install /dev/sda
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
Is device-mapper driver missing from kernel?
/proc/devices: fopen failed: No such file or directory
Failed to set up list of device-mapper major numbers
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
Is device-mapper driver missing from kernel?
/proc/devices: fopen failed: No such file or directory
Failed to set up list of device-mapper major numbers
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
Is device-mapper driver missing from kernel?
/proc/devices: fopen failed: No such file or directory
Failed to set up list of device-mapper major numbers
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
Installation finished. No error reported.

ubuntu / # grub-install --recheck /dev/sda
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
Is device-mapper driver missing from kernel?
/proc/devices: fopen failed: No such file or directory
Failed to set up list of device-mapper major numbers
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
Is device-mapper driver missing from kernel?
/proc/devices: fopen failed: No such file or directory
Failed to set up list of device-mapper major numbers
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
Is device-mapper driver missing from kernel?
/proc/devices: fopen failed: No such file or directory
Failed to set up list of device-mapper major numbers
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
Installation finished. No error reported.

Reset .... a zase  Read Error, to same kdyz dam v menu LiveCD nabootovat z prvniho harddisku. Disk je v pocitaci jen jeden, jsou na nem 4 oddily, prvni je s Linuxem Mint 9 (buntu 10.04)

Moc prosim o radu, uz jsem zkousel asi treti navod a zkousel googlit chybove hlasky ale opet se ukazuje jak o tom vsem zase vim ho....  :-[
Diky K
Název: Re: nedari se mi obnovit Grub2 podle navodu
Přispěvatel: arrange 04 Října 2010, 18:45:56
Zkoušel jsi "nechrootový návod"?
http://forum.ubuntu.cz/index.php?topic=42267.0

Je disk v pořádku a správně připojený?
wiki - problémy při bootování (http://wiki.ubuntu.cz/%C5%98e%C5%A1en%C3%AD%20probl%C3%A9m%C5%AF/Bootov%C3%A1n%C3%AD)

Příp. připoj boot_info_script (http://wiki.ubuntu.cz/boot_info_script).
Název: Re: nedari se mi obnovit Grub2 podle navodu
Přispěvatel: Rover623 04 Října 2010, 18:56:09
Zkoušel jsi přes recovery mode prostě jen obnovit zavaděč,klasicky příkazem update-grub
Název: Re: nedari se mi obnovit Grub2 podle navodu
Přispěvatel: karlitos 04 Října 2010, 19:48:16
Diky vsem

Zkousel jsem i ten navod bez chroot - je uvedeny na nemecke ubuntu-Wiki - ale nepomohlo to.

Dival jsem se na ty rady pri chybach bootovani :
Kód: [Vybrat]
ubuntu@ubuntu:~$ sudo fsck -fv /dev/sda1
fsck z util-linux-ng 2.17.2
e2fsck 1.41.11 (14-Mar-2010)
Průchod 1: Kontroluji iuzly, bloky a velikosti
Průchod 2: Kontroluji strukturu adresářů
Průchod 3: Kontroluji dosažitelnost adresářů
Průchod 4: Kontroluji počty odkazů
Průchod 5: Kontroluji souhrnné informace skupin

  349497 inodes used (26.61%)
     435 non-contiguous files (0.1%)
     582 non-contiguous directories (0.2%)
         Počet iuzlů s ind/dind/tind bloky: 0/0/0
         Histogram hloubky rozsahu: 257149/129/1
 3506799 blocks used (66.89%)
       0 bad blocks
       1 large file

  228183 regular files
   24619 directories
      61 character device files
      26 block device files
       2 fifos
     536 links
   96566 symbolic links (92088 fast symbolic links)
      31 sockets
--------
  350024 files
ubuntu@ubuntu:~$ sudo fsck -fv /dev/sda2
fsck z util-linux-ng 2.17.2
fsck: fsck.ntfs: nenalezeno
fsck: Chyba 2 při provádění fsck.ntfs nad /dev/sda2
ubuntu@ubuntu:~$ sudo fsck -fv /dev/sda3
fsck z util-linux-ng 2.17.2
fsck: fsck.swap: nenalezeno
fsck: Chyba 2 při provádění fsck.swap nad /dev/sda3
ubuntu@ubuntu:~$ sudo fsck -fv /dev/sda4
fsck z util-linux-ng 2.17.2
fsck: fsck.ntfs: nenalezeno
fsck: Chyba 2 při provádění fsck.ntfs nad /dev/sda4

Zkusim se jeste podivat na stav disku. Jestli odesel tak mame vyresene tema protoze se pudu utopit.

Jinak tady je vysledek toho co nasel ten skirpt (sdb je usb cudl co jsem pripojil) :
Kód: [Vybrat]
               Boot Info Script 0.55    dated February 15th, 2010                    

============================= Boot Info Summary: ==============================

 => Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
    partition #1 for /boot/grub.
 => Syslinux is installed in the MBR of /dev/sdb

sda1: _________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info:  
    Operating System:  Linux Mint 9 Isadora
    Boot files/dirs:   /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda2: _________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files/dirs:  

sda3: _________________________________________________________________________

    File system:       swap
    Boot sector type:  -
    Boot sector info:  

sda4: _________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files/dirs:  

sdb1: _________________________________________________________________________

    File system:       vfat
    Boot sector type:  Fat32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files/dirs:  

sdb2: _________________________________________________________________________

    File system:       vfat
    Boot sector type:  Fat16
    Boot sector info:  According to the info in the boot sector, sdb2 starts
                       at sector 0. But according to the info from fdisk,
                       sdb2 starts at sector 8369865.
    Operating System:  
    Boot files/dirs:  

=========================== Drive/Partition Info: =============================

Drive: sda ___________________ _____________________________________________________

Disk /dev/sda: 250,1 GB, 250 059 350 016 bajtů
hlav: 255, sektorů na stopu: 63, cylindrů: 30 401, celkem 488 397 168 sektorů
Jednotky = sektory po 1 * 512 = 512 bajtech
Velikost sektoru (logického/fyzického): 512 bajtů / 512 bajtů

Partition  Boot         Start           End          Size  Id System

/dev/sda1    *             63    41,945,714    41,945,652  83 Linux
/dev/sda2          41,945,715    83,891,429    41,945,715   7 HPFS/NTFS
/dev/sda3         480,006,135   488,392,064     8,385,930  82 Linux swap / Solaris
/dev/sda4          83,891,430   480,006,134   396,114,705   7 HPFS/NTFS


Drive: sdb ___________________ _____________________________________________________

Disk /dev/sdb: 8 086 MB, 8 086 618 112 bajtů
hlav: 255, sektorů na stopu: 63, cylindrů: 983, celkem 15 794 176 sektorů
Jednotky = sektory po 1 * 512 = 512 bajtech
Velikost sektoru (logického/fyzického): 512 bajtů / 512 bajtů

Partition  Boot         Start           End          Size  Id System

/dev/sdb1    *             63     8,369,864     8,369,802   6 FAT16
/dev/sdb2           8,369,865    15,791,894     7,422,030   6 FAT16


blkid -c /dev/null: ____________________________________________________________

Device           UUID                                   TYPE       LABEL                        

/dev/loop0                                              squashfs                                
/dev/sda: PTTYPE="dos"
/dev/sda1        1d2dbcb3-12de-4372-9b51-ec81820da60f   ext4                                    
/dev/sda2        54F82EF737095AF8                       ntfs       windows                      
/dev/sda3        9e0ec5f1-445b-4b9c-9eb4-8cebe4562a68   swap                                    
/dev/sda4        7A336D433F77A416                       ntfs       data                          
/dev/sdb: PTTYPE="dos"
/dev/sdb1        49B1-8C7D                              vfat                                    
/dev/sdb2        BCEC-0F12                              vfat       corsair2                      

============================ "mount | grep ^/dev  output: ===========================

Device           Mount_Point              Type       Options

aufs             /                        aufs       (rw)
/dev/sr0         /cdrom                   iso9660    (ro,noatime)
/dev/loop0       /rofs                    squashfs   (ro,noatime)
/dev/sdb2        /media/corsair2          vfat       (rw,nosuid,nodev,uhelper=udisks,uid=999,gid=999,shortname=mixed,dmask=0077,utf8=1,flush)
/dev/sdb1        /media/49B1-8C7D         vfat       (rw,nosuid,nodev,uhelper=udisks,uid=999,gid=999,shortname=mixed,dmask=0077,utf8=1,flush)


=========================== sda1/boot/grub/grub.cfg: ===========================

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
  set saved_entry=${prev_saved_entry}
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z ${boot_once} ]; then
    saved_entry=${chosen}
    save_env saved_entry
  fi
}

function recordfail {
  set recordfail=1
  if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
}
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 1d2dbcb3-12de-4372-9b51-ec81820da60f
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=1024x768
  #set gfxpayload=keep
  insmod gfxterm
  insmod vbe
  if terminal_output gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
fi
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 1d2dbcb3-12de-4372-9b51-ec81820da60f
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
if [ ${recordfail} = 1 ]; then
  set timeout=-1
else
  set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/06_mint_theme ###
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 1d2dbcb3-12de-4372-9b51-ec81820da60f
insmod png
if background_image /boot/grub/linuxmint.png ; then
  set color_normal=white/black
  set color_highlight=white/light-gray
else
  set menu_color_normal=white/black
  set menu_color_highlight=white/light-gray
fi
### END /etc/grub.d/06_mint_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Linux Mint 9, 2.6.32-24-generic-phc (/dev/sda1)" --class linuxmint --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 1d2dbcb3-12de-4372-9b51-ec81820da60f
linux /boot/vmlinuz-2.6.32-24-generic-phc root=UUID=1d2dbcb3-12de-4372-9b51-ec81820da60f ro   quiet splash
initrd /boot/initrd.img-2.6.32-24-generic-phc
}
menuentry "Linux Mint 9, 2.6.32-24-generic-phc (/dev/sda1) -- recovery mode" --class linuxmint --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 1d2dbcb3-12de-4372-9b51-ec81820da60f
echo 'Loading Linux 2.6.32-24-generic-phc ...'
linux /boot/vmlinuz-2.6.32-24-generic-phc root=UUID=1d2dbcb3-12de-4372-9b51-ec81820da60f ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-24-generic-phc
}
menuentry "Linux Mint 9, 2.6.32-24-generic (/dev/sda1)" --class linuxmint --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 1d2dbcb3-12de-4372-9b51-ec81820da60f
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=1d2dbcb3-12de-4372-9b51-ec81820da60f ro   quiet splash
initrd /boot/initrd.img-2.6.32-24-generic
}
menuentry "Linux Mint 9, 2.6.32-24-generic (/dev/sda1) -- recovery mode" --class linuxmint --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 1d2dbcb3-12de-4372-9b51-ec81820da60f
echo 'Loading Linux 2.6.32-24-generic ...'
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=1d2dbcb3-12de-4372-9b51-ec81820da60f ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-24-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/10_lupin ###
### END /etc/grub.d/10_lupin ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 1d2dbcb3-12de-4372-9b51-ec81820da60f
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 1d2dbcb3-12de-4372-9b51-ec81820da60f
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
if [ ${timeout} != -1 ]; then
  if keystatus; then
    if keystatus --shift; then
      set timeout=-1
    else
      set timeout=0
    fi
  else
    if sleep --interruptible 3 ; then
      set timeout=0
    fi
  fi
fi
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

=============================== sda1/etc/fstab: ===============================

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sda1 during installation
UUID=1d2dbcb3-12de-4372-9b51-ec81820da60f /               ext4    errors=remount-ro 0       1
# /media/data was on /dev/sda4 during installation
UUID=7A336D433F77A416 /media/data     ntfs    defaults,nls=utf8,umask=007,gid=46 0       0
# /media/windows was on /dev/sda2 during installation
UUID=54F82EF737095AF8 /media/windows  ntfs    defaults,nls=utf8,umask=007,gid=46 0       0
# swap was on /dev/sda3 during installation
UUID=9e0ec5f1-445b-4b9c-9eb4-8cebe4562a68 none            swap    sw              0       0

=================== sda1: Location of files loaded by Grub: ===================


   8.7GB: boot/grub/core.img
   9.0GB: boot/grub/grub.cfg
  10.3GB: boot/initrd.img-2.6.32-24-generic
   6.9GB: boot/initrd.img-2.6.32-24-generic-phc
   9.5GB: boot/vmlinuz-2.6.32-24-generic
   9.2GB: boot/vmlinuz-2.6.32-24-generic-phc
   6.9GB: initrd.img
  10.3GB: initrd.img.old
   9.2GB: vmlinuz
   9.5GB: vmlinuz.old

Zkoušel jsi přes recovery mode prostě jen obnovit zavaděč,klasicky příkazem update-grub
Ja se nedostanu ani do Grub menu  :-\

Prikladam jeste co jsem nasel v dmesg :
Kód: [Vybrat]
[    0.923611] ata1: SATA max UDMA/133 abar m1024@0xf9fff800 port 0xf9fff900 irq 22
[    0.923615] ata2: SATA max UDMA/133 abar m1024@0xf9fff800 port 0xf9fff980 irq 22
[    0.923619] ata3: SATA max UDMA/133 abar m1024@0xf9fff800 port 0xf9fffa00 irq 22
[    0.923622] ata4: SATA max UDMA/133 abar m1024@0xf9fff800 port 0xf9fffa80 irq 22
[    0.923948] scsi4 : pata_atiixp
[    0.924037] scsi5 : pata_atiixp
[    0.925112] ata5: PATA max UDMA/100 cmd 0x1f0 ctl 0x3f6 bmdma 0xff00 irq 14
[    0.925115] ata6: PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0xff08 irq 15
[    0.952498] usb 1-2: configuration #1 chosen from 1 choice
[    0.952701] hub 1-2:1.0: USB hub found
[    0.952773] hub 1-2:1.0: 4 ports detected
[    0.976557] ohci1394: fw-host0: OHCI-1394 1.1 (PCI): IRQ=[22]  MMIO=[febff800-febfffff]  Max Packet=[2048]  IR/IT contexts=[4/8]
[    1.019575] [drm] Initialized drm 1.1.0 20060810
[    1.088731] ata5.01: ATAPI: BENQ    DVD DD DW1625, BBIA, max UDMA/33
[    1.104685] ata5.01: configured for UDMA/33
[    1.240050] ata4: SATA link down (SStatus 0 SControl 300)
[    1.240092] ata2: SATA link down (SStatus 0 SControl 300)
[    1.328014] usb 2-1: new low speed USB device using ohci_hcd and address 2
[    1.404026] ata1: softreset failed (device not ready)
[    1.404029] ata3: softreset failed (device not ready)
[    1.404033] ata3: applying SB600 PMP SRST workaround and retrying
[    1.404035] ata1: applying SB600 PMP SRST workaround and retrying
[    1.500634] usb 2-1: configuration #1 chosen from 1 choice
[    1.520198] usbcore: registered new interface driver hiddev
[    1.526781] input: Fujitsu Siemens Computers GmbH FSC KB USB as /devices/pci0000:00/0000:00:13.0/usb2/2-1/2-1:1.0/input/input3
[    1.526859] generic-usb 0003:0BF8:1004.0001: input,hidraw0: USB HID v1.10 Keyboard [Fujitsu Siemens Computers GmbH FSC KB USB] on usb-0000:00:13.0-1/input0
[    1.540584] input: Fujitsu Siemens Computers GmbH FSC KB USB as /devices/pci0000:00/0000:00:13.0/usb2/2-1/2-1:1.1/input/input4
[    1.540634] generic-usb 0003:0BF8:1004.0002: input,hidraw1: USB HID v1.10 Device [Fujitsu Siemens Computers GmbH FSC KB USB] on usb-0000:00:13.0-1/input1
[    1.540659] usbcore: registered new interface driver usbhid
[    1.540662] usbhid: v2.6:USB HID core driver
[    1.568033] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    1.568058] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[    1.569080] ata1.00: ATA-7: Hitachi HDT725025VLA380, V5DOA7DA, max UDMA/100
[    1.569083] ata1.00: 488397168 sectors, multi 16: LBA48 NCQ (depth 31/32), AA
[    1.569100] ata1.00: SB600 AHCI: limiting to 255 sectors per cmd
[    1.570315] ata1.00: SB600 AHCI: limiting to 255 sectors per cmd
[    1.570317] ata1.00: configured for UDMA/100
[    1.571208] ata3.00: ATAPI: HL-DT-STDVD-RAM GSA-H60N, CX04, max UDMA/100
[    1.571224] ata3.00: SB600 AHCI: limiting to 255 sectors per cmd
[    1.575649] ata3.00: SB600 AHCI: limiting to 255 sectors per cmd
[    1.575651] ata3.00: configured for UDMA/100
[    1.584128] scsi 0:0:0:0: Direct-Access     ATA      Hitachi HDT72502 V5DO PQ: 0 ANSI: 5
[    1.584270] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    1.584385] sd 0:0:0:0: [sda] 488397168 512-byte logical blocks: (250 GB/232 GiB)
[    1.584423] sd 0:0:0:0: [sda] Write Protect is off
[    1.584426] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    1.584445] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    1.584589]  sda:
[    1.599268] scsi 2:0:0:0: CD-ROM            HL-DT-ST DVD-RAM GSA-H60N CX04 PQ: 0 ANSI: 5
[    1.603446] sr0: scsi3-mmc drive: 40x/40x writer dvd-ram cd/rw xa/form2 cdda tray
[    1.603450] Uniform CD-ROM driver Revision: 3.20
[    1.603538] sr 2:0:0:0: Attached scsi CD-ROM sr0
[    1.603579] sr 2:0:0:0: Attached scsi generic sg1 type 5
[    1.605665] scsi 4:0:1:0: CD-ROM            BENQ     DVD DD DW1625    BBIA PQ: 0 ANSI: 5
[    1.612375] ata1.00: exception Emask 0x50 SAct 0x1 SErr 0x680900 action 0x6 frozen
[    1.612378] ata1.00: irq_stat 0x08000000, interface fatal error
[    1.612382] ata1: SError: { UnrecovData HostInt 10B8B BadCRC Handshk }
[    1.612385] ata1.00: failed command: READ FPDMA QUEUED
[    1.612391] ata1.00: cmd 60/08:00:00:00:00/00:00:00:00:00/40 tag 0 ncq 4096 in
[    1.612393]          res 50/00:08:00:00:00/00:00:00:00:00/40 Emask 0x50 (ATA bus error)
[    1.612396] ata1.00: status: { DRDY }
[    1.612400] ata1: hard resetting link
[    1.613190] sr1: scsi3-mmc drive: 40x/40x writer cd/rw xa/form2 cdda tray
[    1.613263] sr 4:0:1:0: Attached scsi CD-ROM sr1
[    1.613310] sr 4:0:1:0: Attached scsi generic sg2 type 5
[    1.772015] usb 3-2: new full speed USB device using ohci_hcd and address 2
[    1.938951] usb 3-2: configuration #1 chosen from 1 choice
[    2.028176] usb 1-2.2: new low speed USB device using ehci_hcd and address 5
[    2.096019] ata1: softreset failed (device not ready)
[    2.096022] ata1: applying SB600 PMP SRST workaround and retrying
[    2.142761] usb 1-2.2: configuration #1 chosen from 1 choice
[    2.153432] input: Logitech USB Receiver as /devices/pci0000:00/0000:00:13.5/usb1/1-2/1-2.2/1-2.2:1.0/input/input5
[    2.153650] generic-usb 0003:046D:C518.0003: input,hidraw2: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-0000:00:13.5-2.2/input0
[    2.159678] input: Logitech USB Receiver as /devices/pci0000:00/0000:00:13.5/usb1/1-2/1-2.2/1-2.2:1.1/input/input6
[    2.160194] generic-usb 0003:046D:C518.0004: input,hiddev96,hidraw3: USB HID v1.11 Device [Logitech USB Receiver] on usb-0000:00:13.5-2.2/input1
[    2.248266] ieee1394: Host added: ID:BUS[0-00:1023]  GUID[00023c015113b2a2]
[    2.260033] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    2.261102] ata1.00: SB600 AHCI: limiting to 255 sectors per cmd
[    2.262005] ata1.00: failed to IDENTIFY (I/O error, err_mask=0x100)
[    2.262008] ata1.00: revalidation failed (errno=-5)
[    7.260014] ata1: hard resetting link
[    7.744016] ata1: softreset failed (device not ready)
[    7.744019] ata1: applying SB600 PMP SRST workaround and retrying
[    7.908023] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    7.909066] ata1.00: SB600 AHCI: limiting to 255 sectors per cmd
[    7.910274] ata1.00: SB600 AHCI: limiting to 255 sectors per cmd
[    7.910276] ata1.00: configured for UDMA/100
[    7.910286] ata1: EH complete
[    7.936774]  sda1 sda2 sda3 sda4
[    7.968111] ata1.00: exception Emask 0x50 SAct 0x1 SErr 0x680900 action 0x6 frozen
[    7.968113] ata1.00: irq_stat 0x08000000, interface fatal error
[    7.968117] ata1: SError: { UnrecovData HostInt 10B8B BadCRC Handshk }
[    7.968120] ata1.00: failed command: READ FPDMA QUEUED
[    7.968125] ata1.00: cmd 60/08:00:f8:4f:9c/00:00:1c:00:00/40 tag 0 ncq 4096 in
[    7.968126]          res 50/00:08:f8:4f:9c/00:00:1c:00:00/40 Emask 0x50 (ATA bus error)
[    7.968129] ata1.00: status: { DRDY }
[    7.968132] ata1: hard resetting link
[    8.452014] ata1: softreset failed (device not ready)
[    8.452017] ata1: applying SB600 PMP SRST workaround and retrying
[    8.616030] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    8.617075] ata1.00: SB600 AHCI: limiting to 255 sectors per cmd
[    8.618293] ata1.00: SB600 AHCI: limiting to 255 sectors per cmd
[    8.618295] ata1.00: configured for UDMA/100
[    8.618300] ata1: EH complete
[    8.634703] ata1.00: exception Emask 0x50 SAct 0x1 SErr 0x680900 action 0x6 frozen
[    8.634706] ata1.00: irq_stat 0x08000000, interface fatal error
[    8.634709] ata1: SError: { UnrecovData HostInt 10B8B BadCRC Handshk }
[    8.634712] ata1.00: failed command: READ FPDMA QUEUED
[    8.634718] ata1.00: cmd 60/08:00:f8:4f:9c/00:00:1c:00:00/40 tag 0 ncq 4096 in
[    8.634719]          res 50/00:08:f8:4f:9c/00:00:1c:00:00/40 Emask 0x50 (ATA bus error)
[    8.634722] ata1.00: status: { DRDY }
[    8.634725] ata1: hard resetting link
[    9.116021] ata1: softreset failed (device not ready)
[    9.116023] ata1: applying SB600 PMP SRST workaround and retrying
[    9.280027] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    9.281084] ata1.00: SB600 AHCI: limiting to 255 sectors per cmd
[    9.282307] ata1.00: SB600 AHCI: limiting to 255 sectors per cmd
[    9.282309] ata1.00: configured for UDMA/100
[    9.282314] ata1: EH complete
[    9.301304] ata1: limiting SATA link speed to 1.5 Gbps
[    9.301307] ata1.00: exception Emask 0x50 SAct 0x1 SErr 0x680900 action 0x6 frozen
[    9.301310] ata1.00: irq_stat 0x08000000, interface fatal error
[    9.301313] ata1: SError: { UnrecovData HostInt 10B8B BadCRC Handshk }
[    9.301316] ata1.00: failed command: READ FPDMA QUEUED
[    9.301322] ata1.00: cmd 60/08:00:f8:4f:9c/00:00:1c:00:00/40 tag 0 ncq 4096 in
[    9.301324]          res 50/00:08:f8:4f:9c/00:00:1c:00:00/40 Emask 0x50 (ATA bus error)
[    9.301327] ata1.00: status: { DRDY }
[    9.301329] ata1: hard resetting link
[    9.784017] ata1: softreset failed (device not ready)
[    9.784020] ata1: applying SB600 PMP SRST workaround and retrying
[    9.948026] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    9.949087] ata1.00: SB600 AHCI: limiting to 255 sectors per cmd
[    9.950316] ata1.00: SB600 AHCI: limiting to 255 sectors per cmd
[    9.950319] ata1.00: configured for UDMA/100
[    9.950323] ata1: EH complete
[    9.968245] sda: detected capacity change from 0 to 250059350016
Název: Re: nedari se mi obnovit Grub2 podle navodu
Přispěvatel: arrange 04 Října 2010, 19:58:15
V LiveCD připojíš sda1 normálně? Jsi schopen procházet soubory na oddíle?
Název: Re: nedari se mi obnovit Grub2 podle navodu
Přispěvatel: karlitos 04 Října 2010, 20:07:24
Jo normalne pripojim
Kód: [Vybrat]
ubuntu@ubuntu:~$ sudo mount /dev/sda1 /mnt
ubuntu@ubuntu:~$ ls /mnt
bin   etc         initrd.img.old  media  proc  selinux  tmp  vmlinuz
boot  home        lib             mnt    root  srv      usr  vmlinuz.old
dev   initrd.img  lost+found      opt    sbin  sys      var
ubuntu@ubuntu:~$ ls /mnt/etc
acpi                    gshadow-              pam.d
adduser.conf            gtk-2.0               pango
aliases                 hal                   papersize
alternatives            hddtemp.db            passwd
anacrontab              hdparm.conf           passwd-
apm                     host.conf             pcmcia
apparmor                hostname              perl
apparmor.d              hosts                 pm
apport                  hosts.allow           pnm2ppa.conf
apt                     hosts.deny            polkit-1
at.deny                 hp                    popularity-contest.conf
avahi                   chatscripts           ppp
avrdude.conf            chromium-browser      printcap
bash.bashrc             ifplugd               profile
bash.bashrc.save        init                  profile.d
bash_completion         init.d                protocols
bash_completion.d       initramfs-tools       pulse
bindresvport.blacklist  inputrc               purple
blkid.conf              insserv               python
blkid.tab               insserv.conf          python2.6
bluetooth               insserv.conf.d        qt3
bogofilter.cf           iproute2              rarfiles.lst
bonobo-activation       issue                 rc.local
brlapi.key              issue.dpkg-old        rcS.d
brltty                  issue.net             rc0.d
byobu                   issue.net.dpkg-old    rc1.d
ca-certificates         java                  rc2.d
ca-certificates.conf    java-6-openjdk        rc3.d
calendar                java-6-sun            rc4.d
compizconfig            kbd                   rc5.d
ConsoleKit              kernel                rc6.d
console-setup           kernel-img.conf       request-key.conf
couchdb                 kerneloops.conf       resolvconf
cron.d                  ldap                  resolv.conf
cron.daily              ld.so.cache           rmt
cron.hourly             ld.so.conf            rpc
cron.monthly            ld.so.conf.d          rsyslog.conf
crontab                 legal                 rsyslog.d
cron.weekly             lftp.conf             samba
crypttab                libao.conf            sane.d
cups                    libpaper.d            scanbuttond
cvs-cron.conf           linuxmint             screenrc
cvs-pserver.conf        locale.alias          securetty
dbus-1                  localtime             security
debconf.conf            logcheck              sensors.d
debian_version          login.defs            sensors3.conf
default                 logrotate.conf        services
defoma                  logrotate.d           sgml
deluser.conf            lsb-base              shadow
depmod.d                lsb-base-logging.sh   shadow-
dhcp3                   lsb-release           shells
dictionaries-common     lsb-release.dpkg-old  skel
dkms                    ltrace.conf           smartd.conf
doc-base                magic                 smartmontools
dpkg                    magic.mime            sound
eclipse.ini             mailcap               speech-dispatcher
emacs                   mailcap.order         spring
environment             mail.rc               ssh
esmska                  manpath.config        ssl
esound                  mc                    sudoers
fancontrol              menu                  sudoers.d
fancontrol_safe         menu-methods          su-to-rootrc
ffserver.conf           mime.types            sysctl.conf
firefox                 mke2fs.conf           sysctl.d
firefox-3.0             modprobe.d            terminfo
firefox-3.5             modules               thunderbird
fonts                   mono                  timezone
foomatic                motd                  ts.conf
fstab                   mplayer               ucf.conf
fuse.conf               mtab                  udev
gai.conf                mtab.fuselock         ufw
gamin                   mtools.conf           updatedb.conf
gconf                   mysql                 update-manager
gdb                     nanorc                update-motd.d
gdm                     ndiswrapper           update-notifier
ggi                     netscsid.conf         vga
gimp                    network               vim
gnome                   NetworkManager        wgetrc
gnomenu                 networks              wildmidi
gnome-system-tools      nsswitch.conf         wodim.conf
gnome-vfs-mime-magic    obex-data-server      wpa_supplicant
gnome-vfs-2.0           ODBCDataSources       w3m
gre.d                   odbc.ini              xdg
groff                   openal                xml
group                   OpenCL                xulrunner-1.9.2
group-                  openoffice            X11
grub.d                  opt                   zsh_command_not_found
gshadow                 pam.conf
ubuntu@ubuntu:~$ sudo cp -r /mnt/etc/apt ./Desktop/
ubuntu@ubuntu:~$ ls ./Desktop/
apt  boot_info_script055.sh  RESULTS.txt  ubiquity-gtkui.desktop
Pisu z Lubuntu LiveCD 10.04
Název: Re: nedari se mi obnovit Grub2 podle navodu
Přispěvatel: arrange 04 Října 2010, 20:34:57
Read Error
To je Grub hláška, nebo jiná? Je to přesné a úplné znění?

Pokud použiješ návod
http://forum.ubuntu.cz/index.php/topic,42267.0.html
píše to nějaké chyby?
Název: Re: nedari se mi obnovit Grub2 podle navodu
Přispěvatel: karlitos 04 Října 2010, 20:39:48
No jak to rict : cerna obrazovka a bile Read error, zkusim udelat reset a poradne si to prohlidnout ale nevypada to na hlasku Grubu.
No sda1 jsem do mnt pripojil, takze kdyz budu pokracovat :
Kód: [Vybrat]
ubuntu@ubuntu:~$ sudo grub-install --root-directory=/mnt/ /dev/sda
// pocitac vrni skrka pocita ...
...//
Installation finished. No error reported.
ubuntu@ubuntu:~$
Tak ja pro klid duse udelam reset a napisu jak sem dopad, ale stejny postup uz jsem provadel.
--------------
Takze beze zmeny. Je to stoprocentne systemova hlaska - nedostanu se ani do Grubu. Vypaluju  ted nejaky drive fitness test (http://www.hitachigst.com/support/downloads/#DFT), uvidime
Název: Re: nedari se mi obnovit Grub2 podle navodu
Přispěvatel: karlitos 04 Října 2010, 23:49:51
Tak ta utilita je sama o sobe dost podivna a, ale kazdopadne mi nahlasila ze disk je vadny. Tak sem zase nabootoval do Lubuntu a spustil GSmartControl a tam spustil Extenden self test a ten probehl uspesne ! Tady je vypis z logu :
Kód: [Vybrat]
smartctl version 5.38 [i686-pc-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF INFORMATION SECTION ===
Model Family:     Hitachi Deskstar T7K500
Device Model:     Hitachi HDT725025VLA380
Serial Number:    VFL161RK017EDF
Firmware Version: V5DOA7DA
User Capacity:    250,059,350,016 bytes
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   7
ATA Standard is:  ATA/ATAPI-7 T13 1532D revision 1
Local Time is:    Mon Oct  4 21:39:27 2010 UTC
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x80) Offline data collection activity
was never started.
Auto Offline Data Collection: Enabled.
Self-test execution status:      (   0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: (4949) seconds.
Offline data collection
capabilities: (0x5b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
No Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability:        (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: (   1) minutes.
Extended self-test routine
recommended polling time: (  83) minutes.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000b   098   098   016    Pre-fail  Always       -       131075
  2 Throughput_Performance  0x0005   161   161   050    Pre-fail  Offline      -       195
  3 Spin_Up_Time            0x0007   119   119   024    Pre-fail  Always       -       278 (Average 348)
  4 Start_Stop_Count        0x0012   100   100   000    Old_age   Always       -       678
  5 Reallocated_Sector_Ct   0x0033   100   100   005    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000b   100   100   067    Pre-fail  Always       -       0
  8 Seek_Time_Performance   0x0005   134   134   020    Pre-fail  Offline      -       32
  9 Power_On_Hours          0x0012   100   100   000    Old_age   Always       -       853
 10 Spin_Retry_Count        0x0013   100   100   060    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       675
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       680
193 Load_Cycle_Count        0x0012   100   100   000    Old_age   Always       -       680
194 Temperature_Celsius     0x0002   181   181   000    Old_age   Always       -       33 (Lifetime Min/Max 17/55)
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0022   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0008   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x000a   200   253   000    Old_age   Always       -       78

SMART Error Log Version: 1
ATA Error Count: 68 (device log contains only the most recent five errors)
CR = Command Register [HEX]
FR = Features Register [HEX]
SC = Sector Count Register [HEX]
SN = Sector Number Register [HEX]
CL = Cylinder Low Register [HEX]
CH = Cylinder High Register [HEX]
DH = Device/Head Register [HEX]
DC = Device Command Register [HEX]
ER = Error register [HEX]
ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.

Error 68 occurred at disk power-on lifetime: 851 hours (35 days + 11 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  84 51 00 01 00 00 a0

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  ec 00 01 01 00 00 a0 00      05:35:19.600  IDENTIFY DEVICE
  25 20 01 01 00 00 00 04      05:35:19.000  READ DMA EXT
  25 20 00 00 00 00 e0 ff      05:35:07.000  READ DMA EXT
  25 20 01 00 00 00 e0 00      05:33:31.100  READ DMA EXT
  25 20 01 00 00 00 e0 00      05:33:31.000  READ DMA EXT

Error 67 occurred at disk power-on lifetime: 851 hours (35 days + 11 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  84 51 00 6f 59 1c e0  Error: ICRC, ABRT at LBA = 0x001c596f = 1857903

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  25 20 01 6f 59 1c e0 00      05:33:28.600  READ DMA EXT
  25 20 01 6f 59 1c e0 00      05:33:28.600  READ DMA EXT
  37 20 00 6f 59 1c ed 00      05:33:28.600  SET MAX ADDRESS EXT
  27 20 01 6f 59 1c e0 00      05:33:28.600  READ NATIVE MAX ADDRESS EXT
  ec 20 00 6f 59 1c e0 00      05:33:28.600  IDENTIFY DEVICE

Error 66 occurred at disk power-on lifetime: 851 hours (35 days + 11 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  00 51 00 34 21 28 e0  Error:  at LBA = 0x00282134 = 2629940

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  24 00 01 34 21 28 e0 00      05:32:28.100  READ SECTOR(S) EXT
  24 00 01 34 21 28 e0 00      05:32:28.100  READ SECTOR(S) EXT
  24 00 01 33 21 28 e0 00      05:32:28.100  READ SECTOR(S) EXT
  24 00 01 32 21 28 e0 00      05:32:28.100  READ SECTOR(S) EXT
  24 00 01 31 21 28 e0 00      05:32:28.100  READ SECTOR(S) EXT

Error 65 occurred at disk power-on lifetime: 851 hours (35 days + 11 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  00 51 00 cf d9 e8 e0  Error:  at LBA = 0x00e8d9cf = 15260111

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  24 00 01 cf d9 e8 e0 00      05:32:28.100  READ SECTOR(S) EXT
  24 00 01 cf d9 e8 e0 00      05:32:28.100  READ SECTOR(S) EXT
  24 00 01 ce d9 e8 e0 00      05:32:28.100  READ SECTOR(S) EXT
  24 00 01 cd d9 e8 e0 00      05:32:28.100  READ SECTOR(S) EXT
  24 00 01 cc d9 e8 e0 00      05:32:28.100  READ SECTOR(S) EXT

Error 64 occurred at disk power-on lifetime: 851 hours (35 days + 11 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  84 51 0d c2 d9 e8 e9  Error: ABRT at LBA = 0x09e8d9c2 = 166255042

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  24 00 10 c0 d9 e8 e0 00      05:32:28.000  READ SECTOR(S) EXT
  24 00 01 5f 43 33 e0 00      05:32:28.000  READ SECTOR(S) EXT
  24 00 01 5e 43 33 e0 00      05:32:28.000  READ SECTOR(S) EXT
  24 00 01 5d 43 33 e0 00      05:32:28.000  READ SECTOR(S) EXT
  24 00 01 5c 43 33 e0 00      05:32:28.000  READ SECTOR(S) EXT

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Extended offline    Completed without error       00%       853         -
# 2  Short offline       Completed without error       00%         0         -

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

Jdu spustit badblocks a uvidime dal - vysledky budou az zitra.
Název: Re: nedari se mi obnovit Grub2 podle navodu
Přispěvatel: compaq 05 Října 2010, 08:22:05
Já vymontoval disk (IDE ext3) a kopíroval pomocí USB převodníku několikrát a nikdy mi to GRUB nepoškodilo.
Název: Re: nedari se mi obnovit Grub2 podle navodu
Přispěvatel: karlitos 05 Října 2010, 10:03:19
Kód: [Vybrat]
ubuntu@ubuntu:~$ sudo badblocks -vsn /dev/sda1
Hledám špatné bloky v nedestruktivním režimu čtení i zápis
Od bloku 0 do 20972825
Hledám špatné bloky (nedestruktivní test čtení i zápisu)
hotovo                                lolololololololololo
Průchod dokončen, nalezeno 0 špatných bloků.
ubuntu@ubuntu:~$ sudo badblocks -vsn /dev/sda2
Hledám špatné bloky v nedestruktivním režimu čtení i zápis
Od bloku 0 do 20972856
Hledám špatné bloky (nedestruktivní test čtení i zápisu)
hotovo                                lolololololololololo
Průchod dokončen, nalezeno 0 špatných bloků.
Je nejaka moznost otestovat MBR na spatne bloky ? Ja proste nmechapu proc to nechce bootovat.
Název: Re: nedari se mi obnovit Grub2 podle navodu
Přispěvatel: arrange 05 Října 2010, 11:14:26
To vypadá na nějaký HW problém, zkus ten HDD vypojit/zapojit znovu apod.

Je nejaka moznost otestovat MBR na spatne bloky ?
Mrkni se třeba na výpis (z LiveCD (http://wiki.ubuntu.cz/LiveCD))
Kód: [Vybrat]
sudo dd if=/dev/sda bs=512 count=1 | hdjestli to píše nějaké chyby.

Případně vyfoť tu obrazovku s Read error hláškou.
Název: Re: nedari se mi obnovit Grub2 podle navodu
Přispěvatel: karlitos 05 Října 2010, 11:29:34
Kód: [Vybrat]
ubuntu@ubuntu:~$ sudo dd if=/dev/sda bs=512 count=1 | hd
00000000  eb 63 90 05 02 00 a3 02  00 00 00 00 00 00 4e 50  |.c............NP|
00000010  fa 33 c0 bc 00 66 8e d0  50 07 50 1f fb fc bf 00  |.3...f..P.P.....|
00000020  08 be 00 7c b9 00 02 f3  a5 50 bf 2f 08 57 cb bb  |...|.....P./.W..|
00000030  00 06 be 02 08 0f b6 0c  b8 01 02 ba 80 00 cd 13  |................|
00000040  b9 05 00 bb 00 12 be 00  06 03 f1 e8 09 01 eb 0a  |................|
00000050  b3 01 be 41 13 88 1c e9  80 00 00 80 01 00 00 00  |...A............|
00000060  00 00 00 00 ff fa 90 90  f6 c2 80 75 02 b2 80 ea  |...........u....|
00000070  74 7c 00 00 31 c0 8e d8  8e d0 bc 00 20 fb a0 64  |t|..1....... ..d|
00000080  7c 3c ff 74 02 88 c2 52  bb 17 04 80 27 03 74 06  ||<.t...R....'.t.|
00000090  be 88 7d e8 1c 01 be 05  7c f6 c2 80 74 48 b4 41  |..}.....|...tH.A|
000000a0  bb aa 55 cd 13 5a 52 72  3d 81 fb 55 aa 75 37 83  |..U..ZRr=..U.u7.|
000000b0  e1 01 74 32 31 c0 89 44  04 40 88 44 ff 89 44 02  |..t21..D.@.D..D.|
000000c0  c7 04 10 00 66 8b 1e 5c  7c 66 89 5c 08 66 8b 1e  |....f..\|f.\.f..|
000000d0  60 7c 66 89 5c 0c c7 44  06 00 70 b4 42 cd 13 72  |`|f.\..D..p.B..r|
000000e0  05 bb 00 70 eb 76 b4 08  cd 13 73 0d f6 c2 80 0f  |...p.v....s.....|
000000f0  84 d0 00 be 93 7d e9 82  00 66 0f b6 c6 88 64 ff  |.....}...f....d.|
00000100  40 66 89 44 04 0f b6 d1  c1 e2 02 88 e8 88 f4 40  |@f.D...........@|
00000110  89 44 08 0f b6 c2 c0 e8  02 66 89 04 66 a1 60 7c  |.D.......f..f.`||
00000120  66 09 c0 75 4e 66 a1 5c  7c 66 31 d2 66 f7 34 88  |f..uNf.\|f1.f.4.|
00000130  d1 31 d2 66 f7 74 04 3b  44 08 7d 37 fe c1 88 c5  |.1.f.t.;D.}7....|
00000140  30 c0 c1 e8 02 08 c1 88  d0 5a 88 c6 bb 00 70 8e  |0........Z....p.|
00000150  c3 31 db b8 01 02 cd 13  72 1e 8c c3 60 1e b9 00  |.1......r...`...|
00000160  01 8e db 31 f6 bf 00 80  8e c6 fc f3 a5 1f 61 ff  |...1..........a.|
00000170  26 5a 7c be 8e 7d eb 03  be 9d 7d e8 34 00 be a2  |&Z|..}....}.4...|
00000180  7d e8 2e 00 cd 18 eb fe  47 52 55 42 20 00 47 65  |}.......GRUB .Ge|
00000190  6f 6d 00 48 61 72 64 20  44 69 73 6b 00 52 65 61  |om.Hard Disk.Rea|
000001a0  64 00 20 45 72 72 6f 72  0d 0a 00 bb 01 00 b4 0e  |d. Error........|
000001b0  cd 10 ac 3c 00 75 f4 c3  ab 53 92 c0 00 00 80 01  |...<.u...S......|
000001c0  01 00 83 fe ff ff 3f 00  00 00 34 0a 80 02 00 fe  |......?...4.....|
000001d0  ff ff 07 fe ff ff 73 0a  80 02 73 0a 80 02 00 fe  |......s...s.....|
000001e0  ff ff 82 fe ff ff f7 4f  9c 1c 8a f5 7f 00 00 fe  |.......O........|
000001f0  ff ff 07 fe ff ff e6 14  00 05 11 3b 9c 17 55 aa  |...........;..U.|
00000200
1+0 vstoupivších záznamů
1+0 vystoupivších záznamů
512 bajtů (512 B) zkopírováno, 0,00141923 s, 361 kB/s

Na tom neni nic k foceni, cerna obrazovka a klasickym dosackym pismem Read Error - vlevo nahore, nic vic , nic min. Pokud necham bootovat z disku nebo pokud dam v menu LIveCD nabootovat z prvniho disku. Zkusim nejdriv pomoci DD udelat klon disku a pak zkusim disk vypojit a zapojit, púroc by ale jinak sel bez potizi pripojit, proc by z nej slo cist, testy vsechny probehly v poradku .... ja to nechapu.
Název: Re: nedari se mi obnovit Grub2 podle navodu
Přispěvatel: karlitos 05 Října 2010, 12:15:21
Zas'')§)§*{}&\ pode@!#$%%^^ LENOVO

Tak resetuju a najednou mi to napise tohle - ihned na zacatku pri post procedure kde se detekujou disky :
Citace
harddisk locked, enter user pawword
press ESC to switch to master password

...

continue booting with this drive being locked may cause system to hang

...

3rd master harddisk SMART command failed, F2 continue,F1 setup
Toto se mi stalo pote, co jsem pripojil jiny sata disk prez usb redukci a udelal reset, takze tezko rict NA KTERY disk se to vztahuje. Problem je ze kdyz pripojim novy 500GB SATA disk prez USB redukci a pripojim ji , tak dmesg napise :
Kód: [Vybrat]
[  773.777130] scsi 7:0:0:0: Direct-Access                                    PQ: 0 ANSI: 2 CCS
[  773.778654] sd 7:0:0:0: Attached scsi generic sg3 type 0
[  773.790745] sd 7:0:0:0: [sdb] Attached SCSI disk
ale disk nemuzu najit:
Kód: [Vybrat]
ubuntu@ubuntu:~$ sudo fdisk -l

Disk /dev/sda: 250,1 GB, 250 059 350 016 bajtů
hlav: 255, sektorů na stopu: 63, cylindrů: 30 401
Jednotky = cylindry po 16065 * 512 = 8 225 280 bajtech
Velikost sektoru (logického/fyzického): 512 bajtů / 512 bajtů
Velikost I/O (minimální/optimální): 512 bajtů / 512 bajtů
Identifikátor disku: 0xc09253ab

Zařízení Zavádět   Začátek       Konec    Bloky    Id  Systém
/dev/sda1   *           1        2611    20972826   83  Linux
/dev/sda2            2612        5222    20972857+   7  HPFS/NTFS
/dev/sda3           29880       30401     4192965   82  Linux swap/Solaris
/dev/sda4            5223       29879   198057352+   7  HPFS/NTFS

Diskové oddíly jsou chybně seřazeny
Parted ani gparted nic nevidi a stejnak nemuzu pouzit dd, pricemz ale :
Kód: [Vybrat]
ubuntu@ubuntu:~$ ls /dev
admmidi          kmsg                ram2        stdout  tty34  tty8
adsp             log                 ram3        tty     tty35  tty9
amidi            loop0               ram4        ttyS0   tty36  urandom
audio            loop1               ram5        ttyS1   tty37  usb
block            loop2               ram6        ttyS2   tty38  usbmon0
bsg              loop3               ram7        ttyS3   tty39  usbmon1
bus              loop4               ram8        tty0    tty4   usbmon2
cdrom            loop5               ram9        tty1    tty40  usbmon3
cdrom1           loop6               random      tty10   tty41  usbmon4
cdrw             loop7               rfkill      tty11   tty42  usbmon5
cdrw1            mapper              rtc         tty12   tty43  usbmon6
console          mcelog              rtc0        tty13   tty44  vcs
core             mem                 scd0        tty14   tty45  vcsa
cpu_dma_latency  midi                scd1        tty15   tty46  vcsa1
disk             mixer               sda         tty16   tty47  vcsa2
dmmidi           net                 sda1        tty17   tty48  vcsa3
dri              network_latency     sda2        tty18   tty49  vcsa4
dsp              network_throughput  sda3        tty19   tty5   vcsa5
dvd              null                sda4        tty2    tty50  vcsa6
dvdrw            oldmem              sdb         tty20   tty51  vcsa7
dvdrw1           pktcdvd             sequencer   tty21   tty52  vcs1
dvd1             port                sequencer2  tty22   tty53  vcs2
ecryptfs         ppp                 sg0         tty23   tty54  vcs3
fb0              psaux               sg1         tty24   tty55  vcs4
fd               ptmx                sg2         tty25   tty56  vcs5
full             pts                 sg3         tty26   tty57  vcs6
fuse             ram0                shm         tty27   tty58  vcs7
hidraw0          ram1                snapshot    tty28   tty59  vga_arbiter
hidraw1          ram10               snd         tty29   tty6   zero
hidraw2          ram11               sndstat     tty3    tty60
hidraw3          ram12               sr0         tty30   tty61
hpet             ram13               sr1         tty31   tty62
char             ram14               stderr      tty32   tty63
input            ram15               stdin       tty33   tty7
Jdu studovat tu hlasku - v BIOSU jsem mel vsechny security featury vypnuty, ani bios neni pod heslem, bios se nedavno resetil po vymnene baterky ... ja uz vazne nevim.
Název: Re: nedari se mi obnovit Grub2 podle navodu
Přispěvatel: karlitos 05 Října 2010, 17:35:23
Znacim jako vyreseno - i kdyz vyreseno to neni.
Pomoci dd sem prehodil cely disk na jiny a ten okamzite nabootoval. Spis nez HW chyba disku se jedna o to ze se nejakym zpusobem zaktivovalo zaheslovani disku podle ATA standartu nebo co ... nechapu a hlavne co s tim ted. Navic je to Hitachi disk na ktery ruzne unlock-programky nestaci.Problem je ze delam na Thinkcenter masine kterou Lenovo vybavilo spoustou opicaren vhodnych do firemniho prostredi ale jinak to ma BIOS k nicemu, poradne si tam nc nenastavite. V biosu je kolonka na zmenu hesla HDD ale je neaktivni - seda a na internetu najdete prispevky do Lenovo fora kde to lide resili tim ze poslali MB na vymenu v ramci reklamace ... na palici
 Takze budu zkouset prehrat firmware harddisku, parada  :-\ No nic diky vsem za pomoc K
Název: Re: [(ne)vyreseno] nedari se mi obnovit Grub2 podle navodu
Přispěvatel: Martin Kiklhorn 05 Října 2010, 23:27:59
pokud si dobře pamatuju tak se to řešilo - downgrade biosu, změna a odinstalace hesla, upgrade biosu

//edit: pamatuju: http://www-307.ibm.com/pc/support/site.wss/document.do?sitestyle=lenovo&lndocid=SF10-D0121 (http://www-307.ibm.com/pc/support/site.wss/document.do?sitestyle=lenovo&lndocid=SF10-D0121)
Název: Re: [(ne)vyreseno] nedari se mi obnovit Grub2 podle navodu
Přispěvatel: karlitos 07 Října 2010, 12:12:44
D I KY ! Jestli to bude fungovat napiste adresu a poslu cukrovinky !  ;D
Název: Re: [stale aktualni] nedari se mi obnovit Grub2 podle navodu
Přispěvatel: karlitos 11 Října 2010, 22:37:07
Tak ja nevim jestli to bylo tim zaheslovanim, pro jistotu jsem dal starou verzi BIOSU, dal prazdne heslo jednotky - napsalo mi to heslo deaktivovani - a nahraj BIOS aktualni.
Parada az sem dobre.

Pred tim jsem pomoci dd zklopil ten disk na jiny a z neho mohl bootovat tak jak jsem byl zvykly, tak jsem to ted zkousel obracene a bez uspechu. Nainstaloval jsem na ten problemovy disk pro jistotu ciste Ubuntu 10.04  a nabootovalo to krasne !!!  ???
Tak jsem pomoci aktualni Clonezilly preklopil ten zalozni disk zase na ten problemovy a vypsalo mi to :
Kód: [Vybrat]
error hd0,1 out of disk
ale aspon uz na me ted blika
Kód: [Vybrat]
grub Rescue>
Zkousel jsem tento navod (http://superuser.com/questions/89307/grub2-error-out-of-disk) a u radku :
Kód: [Vybrat]
insmod /boot/grub/linux.mod mi to zase vypsalo : out of disk hd0,1
ACHJOOOO co ja komu proved !!! Tak sem tam vrazil LiveCD a dal nabootovat z prvniho disku - a system se opravdu zavedl !!!
Takze jsem zkusil
Kód: [Vybrat]
sudo grub-install
sudo update-grub2
Nevypsalo mi to zadne hcybove hlasky a po resetu ...
Kód: [Vybrat]
error hd0,1 out of disk
 :'( :-\ :'( ??? UAAAAAAAAA !!!!!!!

SOS spaste moji dusi
Název: Re: [stale aktualni] nedari se mi obnovit Grub2 podle navodu
Přispěvatel: arrange 11 Října 2010, 22:40:34
Dej tady výpis z boot_info_script (http://wiki.ubuntu.cz/boot_info_script).
Název: Re: [stale aktualni] nedari se mi obnovit Grub2 podle navodu
Přispěvatel: karlitos 12 Října 2010, 09:31:58
-Vcera jsem zkousel opravit Grub pomoci Rescatuxu - byvaleho supergrubdisku - ted mi to hazi uz jen
Kód: [Vybrat]
out of diskbez udani hd0,1
Pomoci LiveCD ale aspon zavedu system. Tady je vypis toho skriptu :
Kód: [Vybrat]
               Boot Info Script 0.55    dated February 15th, 2010                    

============================= Boot Info Summary: ==============================

 => Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
    partition #1 for /boot/grub.
 => Syslinux is installed in the MBR of /dev/sdb

sda1: _________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info:  
    Operating System:  Linux Mint 9 Isadora
    Boot files/dirs:   /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda2: _________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files/dirs:  

sda3: _________________________________________________________________________

    File system:       swap
    Boot sector type:  -
    Boot sector info:  

sda4: _________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files/dirs:  

sdb1: _________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files/dirs:  

=========================== Drive/Partition Info: =============================

Drive: sda ___________________ _____________________________________________________

Platte /dev/sda: 250.1 GByte, 250059350016 Byte
255 Köpfe, 63 Sektoren/Spur, 30401 Zylinder, zusammen 488397168 Sektoren
Einheiten = Sektoren von 1 × 512 = 512 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot         Start           End          Size  Id System

/dev/sda1    *             63    41,945,714    41,945,652  83 Linux
/dev/sda2          41,945,715    83,891,429    41,945,715   7 HPFS/NTFS
/dev/sda3         480,006,135   488,392,064     8,385,930  82 Linux swap / Solaris
/dev/sda4          83,891,430   480,006,134   396,114,705   7 HPFS/NTFS


Drive: sdb ___________________ _____________________________________________________

Platte /dev/sdb: 8086 MByte, 8086618112 Byte
255 Köpfe, 63 Sektoren/Spur, 983 Zylinder, zusammen 15794176 Sektoren
Einheiten = Sektoren von 1 × 512 = 512 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot         Start           End          Size  Id System

/dev/sdb1                  63    15,791,894    15,791,832   7 HPFS/NTFS


blkid -c /dev/null: ____________________________________________________________

Device           UUID                                   TYPE       LABEL                        

/dev/ramzswap0                                          swap                                    
/dev/sda1        1d2dbcb3-12de-4372-9b51-ec81820da60f   ext4                                    
/dev/sda2        54F82EF737095AF8                       ntfs       windows                      
/dev/sda3        9e0ec5f1-445b-4b9c-9eb4-8cebe4562a68   swap                                    
/dev/sda4        7A336D433F77A416                       ntfs       data                          
/dev/sda: PTTYPE="dos"
/dev/sdb1        3BBCE43050BE53D5                       ntfs       Corsair Survivor              
/dev/sdb: PTTYPE="dos"

============================ "mount | grep ^/dev  output: ===========================

Device           Mount_Point              Type       Options

/dev/sda1        /                        ext4       (rw,errors=remount-ro)
/dev/sda4        /media/data              fuseblk    (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
/dev/sda2        /media/windows           fuseblk    (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
/dev/sr0         /media/disk              iso9660    (ro,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,iocharset=utf8,mode=0400,dmode=0500)
/dev/sdb1        /media/Corsair Survivor  fuseblk    (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)


=========================== sda1/boot/grub/grub.cfg: ===========================

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
  set saved_entry=${prev_saved_entry}
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z ${boot_once} ]; then
    saved_entry=${chosen}
    save_env saved_entry
  fi
}

function recordfail {
  set recordfail=1
  if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi
}
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 1d2dbcb3-12de-4372-9b51-ec81820da60f
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=1024x768
  #set gfxpayload=keep
  insmod gfxterm
  insmod vbe
  if terminal_output gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
fi
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 1d2dbcb3-12de-4372-9b51-ec81820da60f
set locale_dir=($root)/boot/grub/locale
set lang=de
insmod gettext
if [ ${recordfail} = 1 ]; then
  set timeout=-1
else
  set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/06_mint_theme ###
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 1d2dbcb3-12de-4372-9b51-ec81820da60f
insmod png
if background_image /boot/grub/linuxmint.png ; then
  set color_normal=white/black
  set color_highlight=white/light-gray
else
  set menu_color_normal=white/black
  set menu_color_highlight=white/light-gray
fi
### END /etc/grub.d/06_mint_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Linux Mint 9, 2.6.32-25-generic-phc (/dev/sda1)" --class linuxmint --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 1d2dbcb3-12de-4372-9b51-ec81820da60f
linux /boot/vmlinuz-2.6.32-25-generic-phc root=UUID=1d2dbcb3-12de-4372-9b51-ec81820da60f ro   quiet splash
initrd /boot/initrd.img-2.6.32-25-generic-phc
}
menuentry "Linux Mint 9, 2.6.32-25-generic-phc (/dev/sda1) -- recovery mode" --class linuxmint --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 1d2dbcb3-12de-4372-9b51-ec81820da60f
echo 'Linux 2.6.32-25-generic-phc wird geladen …'
linux /boot/vmlinuz-2.6.32-25-generic-phc root=UUID=1d2dbcb3-12de-4372-9b51-ec81820da60f ro single
echo 'Initiale Ramdisk wird geladen …'
initrd /boot/initrd.img-2.6.32-25-generic-phc
}
menuentry "Linux Mint 9, 2.6.32-25-generic (/dev/sda1)" --class linuxmint --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 1d2dbcb3-12de-4372-9b51-ec81820da60f
linux /boot/vmlinuz-2.6.32-25-generic root=UUID=1d2dbcb3-12de-4372-9b51-ec81820da60f ro   quiet splash
initrd /boot/initrd.img-2.6.32-25-generic
}
menuentry "Linux Mint 9, 2.6.32-25-generic (/dev/sda1) -- recovery mode" --class linuxmint --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 1d2dbcb3-12de-4372-9b51-ec81820da60f
echo 'Linux 2.6.32-25-generic wird geladen …'
linux /boot/vmlinuz-2.6.32-25-generic root=UUID=1d2dbcb3-12de-4372-9b51-ec81820da60f ro single
echo 'Initiale Ramdisk wird geladen …'
initrd /boot/initrd.img-2.6.32-25-generic
}
menuentry "Linux Mint 9, 2.6.32-24-generic-phc (/dev/sda1)" --class linuxmint --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 1d2dbcb3-12de-4372-9b51-ec81820da60f
linux /boot/vmlinuz-2.6.32-24-generic-phc root=UUID=1d2dbcb3-12de-4372-9b51-ec81820da60f ro   quiet splash
initrd /boot/initrd.img-2.6.32-24-generic-phc
}
menuentry "Linux Mint 9, 2.6.32-24-generic-phc (/dev/sda1) -- recovery mode" --class linuxmint --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 1d2dbcb3-12de-4372-9b51-ec81820da60f
echo 'Linux 2.6.32-24-generic-phc wird geladen …'
linux /boot/vmlinuz-2.6.32-24-generic-phc root=UUID=1d2dbcb3-12de-4372-9b51-ec81820da60f ro single
echo 'Initiale Ramdisk wird geladen …'
initrd /boot/initrd.img-2.6.32-24-generic-phc
}
menuentry "Linux Mint 9, 2.6.32-24-generic (/dev/sda1)" --class linuxmint --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 1d2dbcb3-12de-4372-9b51-ec81820da60f
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=1d2dbcb3-12de-4372-9b51-ec81820da60f ro   quiet splash
initrd /boot/initrd.img-2.6.32-24-generic
}
menuentry "Linux Mint 9, 2.6.32-24-generic (/dev/sda1) -- recovery mode" --class linuxmint --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 1d2dbcb3-12de-4372-9b51-ec81820da60f
echo 'Linux 2.6.32-24-generic wird geladen …'
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=1d2dbcb3-12de-4372-9b51-ec81820da60f ro single
echo 'Initiale Ramdisk wird geladen …'
initrd /boot/initrd.img-2.6.32-24-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/10_lupin ###
### END /etc/grub.d/10_lupin ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 1d2dbcb3-12de-4372-9b51-ec81820da60f
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 1d2dbcb3-12de-4372-9b51-ec81820da60f
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
if [ ${timeout} != -1 ]; then
  if keystatus; then
    if keystatus --shift; then
      set timeout=-1
    else
      set timeout=0
    fi
  else
    if sleep --interruptible 3 ; then
      set timeout=0
    fi
  fi
fi
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

=============================== sda1/etc/fstab: ===============================

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sda1 during installation
UUID=1d2dbcb3-12de-4372-9b51-ec81820da60f /               ext4    errors=remount-ro 0       1
# /media/data was on /dev/sda4 during installation
UUID=7A336D433F77A416 /media/data     ntfs    defaults,nls=utf8,umask=007,gid=46 0       0
# /media/windows was on /dev/sda2 during installation
UUID=54F82EF737095AF8 /media/windows  ntfs    defaults,nls=utf8,umask=007,gid=46 0       0
# swap was on /dev/sda3 during installation
UUID=9e0ec5f1-445b-4b9c-9eb4-8cebe4562a68 none            swap    sw              0       0

=================== sda1: Location of files loaded by Grub: ===================


   8.7GB: boot/grub/core.img
    .5GB: boot/grub/grub.cfg
  10.3GB: boot/initrd.img-2.6.32-24-generic
   6.9GB: boot/initrd.img-2.6.32-24-generic-phc
   7.3GB: boot/initrd.img-2.6.32-25-generic
   5.6GB: boot/initrd.img-2.6.32-25-generic-phc
   9.5GB: boot/vmlinuz-2.6.32-24-generic
   9.2GB: boot/vmlinuz-2.6.32-24-generic-phc
  10.8GB: boot/vmlinuz-2.6.32-25-generic
   5.2GB: boot/vmlinuz-2.6.32-25-generic-phc
   5.6GB: initrd.img
   7.3GB: initrd.img.old
   5.2GB: vmlinuz
  10.8GB: vmlinuz.old
Zatim tam mam jen na /sda1 Mint 9, Win7 jsem jeste ani nestacil nahrat, to bude asi jeste legrace ...  :-\
Jdu ted zkusit jeste nejaky navod na obnovu GRubu z beziciho systemu

---------

EDIT :
 ;D ;D ;D ;D ;D ;D ;D ;D ;D
JOOOOO !!!!
Moje trapeni ukoncilo :
Kód: [Vybrat]
sudo apt-get install grub-common grub-pc os-prober --reinstall
Probuh CO BYLO SPATNE ? Tak nejsem uz uplna lama lama dalajlama ale ... nejdriv "jen vyndam disk", po vlozeni disk nechce bootovat ani je li mucen, po ruznem X-tem prehrani puvodnich dat a nahrani ciste instalace najednou bootuje, pak zase Grub dela divy ze zrak prechazi ..  ???

No nevadi alespon muzu uklidit vsechny rozhazeny CDcka, pridelat bocnici,dat pocitac zase na misto ... Ten disk tam asi privarim at uz se nikdy nepohne.

Ale stejnak vsem moc dekuju za rady
Název: Re: [konecne vyreseno ... uff] nedari se mi obnovit Grub2 podle navodu
Přispěvatel: karlitos 12 Října 2010, 10:01:45
Abych se neradoval predcasne ...
Zmenil jsem si jen rozliseni pri bootu : Menu -> Administrace - Startup-Manager dam reset ...
Kód: [Vybrat]
Error: hd0,1 out of disk
Error: hd0,1 out of disk
VGA=792 is deprecated, ude GFXpayload ...
Kernel panic - not Syncing : VFS unable to mount root fs on uknown block(0,0)
Takze reset (1) - boot prez LiveCD - bez uspechu
Znovu, reset (2) liveCD - system bootuje
reset (3) bez Live CD - system bootuje
reset (4) bez Live CD - system bootuje se spravnym rozlisneim !
reset (5)
Kód: [Vybrat]
error: hd0,1 out of disk
...
VGA=792 is  ...
zasek
reset (6) - skoncim v Grub rescue >
reset (7) - SYSTEM BOOTUJE

OMG WTF .... buuu beee (brek,zoufalstvi...)

Co jsem nasel v dmesg :
Kód: [Vybrat]
[    4.759715] ata1.00: exception Emask 0x50 SAct 0x1 SErr 0x680900 action 0x6 frozen
[    4.759719] ata1.00: irq_stat 0x08000000, interface fatal error
[    4.759724] ata1: SError: { UnrecovData HostInt 10B8B BadCRC Handshk }
[    4.759727] ata1.00: failed command: READ FPDMA QUEUED
[    4.759733] ata1.00: cmd 60/08:00:68:59:1c/00:00:1d:00:00/40 tag 0 ncq 4096 in
[    4.759734]          res 50/00:08:68:59:1c/00:00:1d:00:00/40 Emask 0x50 (ATA bus error)
[    4.759737] ata1.00: status: { DRDY }
[    4.759741] ata1: hard resetting link
[    5.240017] ata1: softreset failed (device not ready)
[    5.240020] ata1: applying SB600 PMP SRST workaround and retrying
[    5.404056] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    5.405123] ata1.00: SB600 AHCI: limiting to 255 sectors per cmd
[    5.406358] ata1.00: SB600 AHCI: limiting to 255 sectors per cmd
[    5.406361] ata1.00: configured for UDMA/100
[    5.406369] ata1: EH complete
[    5.432131] ata1: limiting SATA link speed to 1.5 Gbps
[    5.432135] ata1.00: exception Emask 0x50 SAct 0x1 SErr 0x680900 action 0x6 frozen
[    5.432137] ata1.00: irq_stat 0x08000000, interface fatal error
[    5.432140] ata1: SError: { UnrecovData HostInt 10B8B BadCRC Handshk }
[    5.432143] ata1.00: failed command: READ FPDMA QUEUED
[    5.432148] ata1.00: cmd 60/08:00:b8:55:1c/00:00:1d:00:00/40 tag 0 ncq 4096 in
[    5.432149]          res 50/00:08:b8:55:1c/00:00:1d:00:00/40 Emask 0x50 (ATA bus error)
[    5.432152] ata1.00: status: { DRDY }
[    5.432156] ata1: hard resetting link
[    5.916019] ata1: softreset failed (device not ready)
[    5.916023] ata1: applying SB600 PMP SRST workaround and retrying
[    6.080027] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    6.081098] ata1.00: SB600 AHCI: limiting to 255 sectors per cmd
[    6.082341] ata1.00: SB600 AHCI: limiting to 255 sectors per cmd
[    6.082343] ata1.00: configured for UDMA/100
[    6.082351] ata1: EH complete
[    6.223174] EXT4-fs (sda1): mounted filesystem with ordered data mode

A tady jeste jednou sudo dd if=/dev/sda bs=512 count=1 | hd
Kód: [Vybrat]
00000000  eb 63 90 05 02 00 a3 02  00 00 00 00 00 00 4e 50  |.c............NP|
00000010  fa 33 c0 bc 00 66 8e d0  50 07 50 1f fb fc bf 00  |.3...f..P.P.....|
00000020  08 be 00 7c b9 00 02 f3  a5 50 bf 2f 08 57 cb bb  |...|.....P./.W..|
00000030  00 06 be 02 08 0f b6 0c  b8 01 02 ba 80 00 cd 13  |................|
00000040  b9 05 00 bb 00 12 be 00  06 03 f1 e8 09 01 eb 0a  |................|
00000050  b3 01 be 41 13 88 1c e9  80 00 00 80 01 00 00 00  |...A............|
00000060  00 00 00 00 ff fa 90 90  f6 c2 80 75 02 b2 80 ea  |...........u....|
00000070  74 7c 00 00 31 c0 8e d8  8e d0 bc 00 20 fb a0 64  |t|..1....... ..d|
00000080  7c 3c ff 74 02 88 c2 52  bb 17 04 80 27 03 74 06  ||<.t...R....'.t.|
00000090  be 88 7d e8 1c 01 be 05  7c f6 c2 80 74 48 b4 41  |..}.....|...tH.A|
000000a0  bb aa 55 cd 13 5a 52 72  3d 81 fb 55 aa 75 37 83  |..U..ZRr=..U.u7.|
000000b0  e1 01 74 32 31 c0 89 44  04 40 88 44 ff 89 44 02  |..t21..D.@.D..D.|
000000c0  c7 04 10 00 66 8b 1e 5c  7c 66 89 5c 08 66 8b 1e  |....f..\|f.\.f..|
000000d0  60 7c 66 89 5c 0c c7 44  06 00 70 b4 42 cd 13 72  |`|f.\..D..p.B..r|
000000e0  05 bb 00 70 eb 76 b4 08  cd 13 73 0d f6 c2 80 0f  |...p.v....s.....|
000000f0  84 d0 00 be 93 7d e9 82  00 66 0f b6 c6 88 64 ff  |.....}...f....d.|
00000100  40 66 89 44 04 0f b6 d1  c1 e2 02 88 e8 88 f4 40  |@f.D...........@|
00000110  89 44 08 0f b6 c2 c0 e8  02 66 89 04 66 a1 60 7c  |.D.......f..f.`||
00000120  66 09 c0 75 4e 66 a1 5c  7c 66 31 d2 66 f7 34 88  |f..uNf.\|f1.f.4.|
00000130  d1 31 d2 66 f7 74 04 3b  44 08 7d 37 fe c1 88 c5  |.1.f.t.;D.}7....|
00000140  30 c0 c1 e8 02 08 c1 88  d0 5a 88 c6 bb 00 70 8e  |0........Z....p.|
00000150  c3 31 db b8 01 02 cd 13  72 1e 8c c3 60 1e b9 00  |.1......r...`...|
00000160  01 8e db 31 f6 bf 00 80  8e c6 fc f3 a5 1f 61 ff  |...1..........a.|
00000170  26 5a 7c be 8e 7d eb 03  be 9d 7d e8 34 00 be a2  |&Z|..}....}.4...|
00000180  7d e8 2e 00 cd 18 eb fe  47 52 55 42 20 00 47 65  |}.......GRUB .Ge|
00000190  6f 6d 00 48 61 72 64 20  44 69 73 6b 00 52 65 61  |om.Hard Disk.Rea|
1+0 Datensätze ein
1+0 Datensätze aus
000001a0  64 00 20 45 72 72 6f 72  0d 0a 00 bb 01 00 b4 0e  |d. Error........|
000001b0  cd 10 ac 3c 00 75 f4 c3  ab 53 92 c0 00 00 80 01  |...<.u...S......|
512 Bytes (512 B) kopiert000001c0  01 00 83 fe ff ff 3f 00  00 00 34 0a 80 02 00 fe  |......?...4.....|
000001d0  ff ff 07 fe ff ff 73 0a  80 02 73 0a 80 02 00 fe  |......s...s.....|
, 7,92e-05 s, 6,5 MB/s
000001e0  ff ff 82 fe ff ff f7 4f  9c 1c 8a f5 7f 00 00 fe  |.......O........|
000001f0  ff ff 07 fe ff ff e6 14  00 05 11 3b 9c 17 55 aa  |...........;..U.|
00000200
Název: Re: [jeste ne zcela vyreseno] nedari se mi obnovit Grub2 podle navodu
Přispěvatel: karlitos 12 Října 2010, 12:49:56
Zkusmo jsem vymnenil SATA kablik a problemy ustaly.

Jdu se nekam vybrecet do kouta  :'(
Název: Re: [jeste ne zcela vyreseno] nedari se mi obnovit Grub2 podle navodu
Přispěvatel: Rover623 12 Října 2010, 13:13:28
Tak poškozený SATA kabel mi tohle taky dělal,jenom na mechanice,vždycky jednou za čas mi prostě přestala načítat media,taky jsem z toho skoro skončil v blázinci než jsem na to přišel
Název: Re: [jeste ne zcela vyreseno] nedari se mi obnovit Grub2 podle navodu
Přispěvatel: karlitos 12 Října 2010, 16:54:02
No ono je to ted  takovy ruzny nekdy ano nekdy ne ... uz sem se i dival na ten disk jeslti tam neni vaklkontakt u tech SATA konektoru, pak jsem to pripojil k externi USB redukci - ta s tim nechtela mic NIC spolecnyho, proste seani neinicializovalo zarizeni, pak jsem ten disk strcil do externiho USB boxu tam se chyt, pak v pocitaci hned na prvni pokus ...
Podle me je mozna elektronika v pekle - vadny sektory zadny, SMART test taky OK jen se ten disk po vypnuti nekdy vubec nechyti nebo nechce bootovat ale kdyz se chyti tak pracuje spravne. Jenze jak tohle testovat zejo ....
Název: Re: [jeste ne zcela vyreseno] nedari se mi obnovit Grub2 podle navodu
Přispěvatel: Rover623 13 Října 2010, 00:00:11
To nejde,taky tu mám jeden notebookový disk od Hitachi,testem na vadné sektory projde v pohodě,smartem i tím dlouhým taky,ale jakmile na něj začnu kopírovat větší množství dat,tak se prostě zasekne a přestane zapisovat (ovšem testem zápisu taky projde).Filesystem jsem na něm taky několikrát změnil,asi bude ta elektronika chycená,ale testama prostě projde
Název: Re: [jeste ne zcela vyreseno] nedari se mi obnovit Grub2 podle navodu
Přispěvatel: karlitos 13 Října 2010, 08:00:57
Tak diky vsem uz to tu uzaviram ... to je v pr...  :(