Strona 1 z 1

update-grub zawiesza się debian 8 i windows 7

: 31 stycznia 2015, 18:18
autor: kob22
Cześć,

Kod: Zaznacz cały

@debian:~$ sudo fdisk -l

Disk /dev/sda: 128.0 GB, 128035676160 bytes
255 heads, 63 sectors/track, 15566 cylinders, total 250069680 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0006385a


   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      206847      102400    7  HPFS/NTFS/exFAT
/dev/sda2          206848   199288831    99540992    7  HPFS/NTFS/exFAT
/dev/sda3       199288832   224679935    12695552   83  Linux
/dev/sda4       224681982   250068991    12693505    5  Extended
/dev/sda5       224681984   250068991    12693504   83  Linux


Disk /dev/sdb: 750.2 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x18921d14


   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048   850745343   425371648    7  HPFS/NTFS/exFAT
/dev/sdb2       850745344  1465143295   307198976    7  HPFS/NTFS/exFAT

Kod: Zaznacz cały

Konfigurowanie pakietu grub-pc (2.02~beta2-20) ...Installing for i386-pc platform.
Instalacja zakończona. Nie zgłoszono błędów.
Generating grub configuration file ...
Znaleziono obraz Linuksa: /boot/vmlinuz-3.2.0-3-amd64
Znaleziono obraz initrd: /boot/initrd.img-3.2.0-3-amd64
^Cdpkg: błąd przetwarzania pakietu grub-pc (--configure):
 podproces zainstalowany skrypt post-installation został przerwany


Parę msc temu padł mi grub, przyszła aktualizacja i zawieszał się w momencie aktualizacji gruba.
dzisiaj usunąłem wszystkie pakiety i pliki konfiguracyjne.
Zainstalowałem od nowa, ale dalej wysypuje się po znalezieniu 2 obrazów. Po prostu nie odpowiada i przerywam.
A jak uruchomię ponownie to wchodzi w grub rescue.
Dodam, że dopóki nie wywaliłem dzisiaj gruba to debian i windows ładował się normalnie, tylko po każdym apt-get miałem problem konfiugracji gruba, dlatego zdecydowałem się wywalić.

Na sda1 i 2 mam windows, na sd3 jest linux, to jest na dysku ssd. Na drugim hdd nie mam systemu.
Zależy mi, żeby chociaż debian ładował się, a za jakiś czas przeczyszczę całość.

Dzięki za pomoc.

: 31 stycznia 2015, 21:02
autor: marcin1982
Podaj wynik poleceń:

Kod: Zaznacz cały

ls -afull /boot/grub

Kod: Zaznacz cały

dpkg -l | grep linux-image

Kod: Zaznacz cały

su -c 'os-prober'
Dobrze by było podać wynik skryptu bootinfoscript - z dowolnego livecd go uruchomisz:
http://sourceforge.net/projects/bootinfoscript/ .

: 31 stycznia 2015, 22:32
autor: kob22

Kod: Zaznacz cały

razem 2388
-rw-r--r-- 1 root root    1024 sty 31 17:21 grubenv
-rw-r--r-- 1 root root       0 sty 31 17:55 grub.cfg
drwxr-xr-x 3 root root    4096 lip  6  2013 ..
drwxr-xr-x 2 root root    4096 sty 31 17:21 locale
-rw------- 1 root root    5229 sty 31 17:55 grub.cfg.new
drwxr-xr-x 2 root root   12288 sty 31 17:21 i386-pc
-rw-r--r-- 1 root root 2400500 sty 31 17:21 unicode.pf2
drwxr-xr-x 2 root root    4096 sty 31 17:21 fonts
drwxr-xr-x 5 root root    4096 sty 31 17:20 .

Kod: Zaznacz cały

ii  linux-image-3.2.0-3-amd64                         3.2.23-1                          amd64        Linux 3.2 for 64-bit PCs
ii  linux-image-amd64                                 3.2+45                            amd64        Linux for 64-bit PCs (meta-package)

Kod: Zaznacz cały

su -c 'os-prober'
Hasło: 
/dev/sda1:Windows 7 (loader):Windows:chain

Kod: Zaznacz cały

                  Boot Info Script 0.61      [1 April 2012]




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


 => Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 1 of 
    the same hard drive for core.img. core.img is at this location and looks 
    in partition 135 for .
 => Grub2 (v1.99) is installed in the MBR of /dev/sdb and looks at sector 1 of 
    the same hard drive for core.img. core.img is at this location and looks 
    in partition 135 for .


sda1: __________________________________________________________________________


    File system:       ntfs
    Boot sector type:  Windows Vista/7: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /bootmgr /BOOTMGR /boot/bcd /BOOT/bcd /Boot/bcd 
                       /boot/BCD /BOOT/BCD /Boot/BCD


sda2: __________________________________________________________________________


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


sda3: __________________________________________________________________________


    File system:       ext4
    Boot sector type:  Grub2 (v1.99)
    Boot sector info:  Grub2 (v1.99) is installed in the boot sector of sda3 
                       and looks at sector 199696512 of the same hard drive 
                       for core.img, but core.img can not be found at this 
                       location.
    Operating System:  Debian GNU/Linux 8
    Boot files:        /etc/fstab


sda4: __________________________________________________________________________


    File system:       Extended Partition
    Boot sector type:  -
    Boot sector info: 


sda5: __________________________________________________________________________


    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        


sdb1: __________________________________________________________________________


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


sdb2: __________________________________________________________________________


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


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


Drive: sda _____________________________________________________________________


Disk /dev/sda: 128.0 GB, 128035676160 bytes
255 heads, 63 sectors/track, 15566 cylinders, total 250069680 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes


Partition  Boot  Start Sector    End Sector  # of Sectors  Id System


/dev/sda1    *          2,048       206,847       204,800   7 NTFS / exFAT / HPFS
/dev/sda2             206,848   199,288,831   199,081,984   7 NTFS / exFAT / HPFS
/dev/sda3         199,288,832   224,679,935    25,391,104  83 Linux
/dev/sda4         224,681,982   250,068,991    25,387,010   5 Extended
/dev/sda5         224,681,984   250,068,991    25,387,008  83 Linux




Drive: sdb _____________________________________________________________________


Disk /dev/sdb: 750.2 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes


Partition  Boot  Start Sector    End Sector  # of Sectors  Id System


/dev/sdb1               2,048   850,745,343   850,743,296   7 NTFS / exFAT / HPFS
/dev/sdb2         850,745,344 1,465,143,295   614,397,952   7 NTFS / exFAT / HPFS




"blkid" output: ________________________________________________________________


Device           UUID                                   TYPE       LABEL


/dev/sda1        8C32B31032B2FDF0                       ntfs       Zastrzeżone przez system
/dev/sda2        C4DCECDCDCECCA2E                       ntfs       
/dev/sda3        b1fe6ecd-d6ab-4bd7-89b3-50d7994baf3e   ext4       
/dev/sda5        ac1bfebf-b177-4b47-91a7-4593666d9e03   ext4       
/dev/sdb1        D8306B53306B3820                       ntfs       
/dev/sdb2        DC6676A466767F58                       ntfs       


================================ Mount points: =================================


Device           Mount_Point              Type       Options


/dev/sda3        /                        ext4       (rw,noatime,errors=remount-ro,user_xattr,barrier=1,data=ordered,discard)
/dev/sda5        /home                    ext4       (rw,noatime,user_xattr,barrier=1,data=ordered,discard)




=============================== sda3/etc/fstab: ================================


--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' 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>
# / was on /dev/sda3 during installation
UUID=b1fe6ecd-d6ab-4bd7-89b3-50d7994baf3e /               ext4    noatime,discard,errors=remount-ro 0       1
# /home was on /dev/sda5 during installation
UUID=ac1bfebf-b177-4b47-91a7-4593666d9e03 /home           ext4    noatime,discard,defaults        0       2
/dev/sdc1       /media/usb0     auto    rw,user,noauto  0       0
--------------------------------------------------------------------------------


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


           GiB - GB             File                                 Fragment(s)




=============================== StdErr Messages: ===============================


cat: /tmp/BootInfo-4nKmLnwf/Tmp_Log: Nie ma takiego pliku ani katalogu

Proszę.
Przy tym su -c os prober zawiesza się, musiałem zakończyć ctrl+c

Do debiana wchodzę przez tryb rescue w grubie.

Wydaje mi się, że musiał się to zrobić podczas jakiejś aktualizacji. Z tego co pamiętam to instalowałem debiana 7, przez jakiś czas nie używałem, potem zrobiłem apt-get upgrade i wtedy wysypał się.
A teraz widzę, że jest 8 jessie.