Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1653 connectés 

  FORUM HardWare.fr
  Linux et OS Alternatifs
  Installation

  Grub Error après install Debian (crypto-LUKS)

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Grub Error après install Debian (crypto-LUKS)

n°1343852
bobjambon
UBUNTU can divide by zero
Posté le 27-08-2013 à 23:30:04  profilanswer
 

Salut les alternatifs !  
 
Mon PC a tourné toute la journée pour l'installation d'une debian avec cryptage LUKS
Vous imaginez mon désarroi quand au reboot ce cher grub m'indique un charmant  
 

Code :
  1. GRUB loading
  2. Welcome to GRUB !
  3. error: file not found.
  4. Entering rescue mode


 
Suivie d'un pompt de secours apparemment inutilisable (même "help" lui est inconnu)  
 
Sachant que j'ai installer grub de façon très automatique avec l'installeur.
 
J'ai essayé de résoudre le souci (faute de le comprendre) avec boot-repair-disk
Mais sans succès  :ouch:  
 
Je vous copie son rapport ici :  
 

Spoiler :


Boot Info Script e7fc706 + Boot-Repair extra info      [Boot-Info 31Jan2013]
 
 
============================= 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  
    for (,msdos1)/grub on this drive.
 => Syslinux MBR (4.04 and higher) is installed in the MBR of /dev/sdb.
 
sda1: __________________________________________________________________________
 
    File system:       ext2
    Boot sector type:  -
    Boot sector info:  
    Operating System:  
    Boot files:        
 
sda2: __________________________________________________________________________
 
    File system:       Extended Partition
    Boot sector type:  Unknown
    Boot sector info:  
 
sda5: __________________________________________________________________________
 
    File system:       crypto_LUKS
    Boot sector type:  Unknown
    Boot sector info:  
 
sdb1: __________________________________________________________________________
 
    File system:       vfat
    Boot sector type:  SYSLINUX 4.05 20121210
    Boot sector info:  Syslinux looks at sector 1144680 of /dev/sdb1 for its  
                       second stage. SYSLINUX is installed in the  directory.  
                       According to the info in the boot sector, sdb1 starts  
                       at sector 0. But according to the info from fdisk,  
                       sdb1 starts at sector 2048.
    Operating System:  
    Boot files:        /boot/grub/grub.cfg /syslinux.cfg  
                       /EFI/BOOT/grubx64.efi /ldlinux.sys
 
============================ Drive/Partition Info: =============================
 
Drive: sda _____________________________________________________________________
 
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 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       499,711       497,664  83 Linux
/dev/sda2             501,758   625,141,759   624,640,002   5 Extended
/dev/sda5             501,760   625,141,759   624,640,000  83 Linux
 
 
Drive: sdb _____________________________________________________________________
 
Disk /dev/sdb: 8178 MB, 8178892800 bytes
92 heads, 57 sectors/track, 3046 cylinders, total 15974400 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/sdb1    *          2,048    15,974,399    15,972,352   b W95 FAT32
 
 
"blkid" output: ________________________________________________________________
 
Device           UUID                                   TYPE       LABEL
 
/dev/loop0                                              squashfs    
/dev/sda1        f643ea46-2447-47f2-8f7f-ab95aa3d0831   ext2        
/dev/sda5        8efa5d95-8235-4d5d-ad20-9b7bf1235006   crypto_LUKS  
/dev/sdb1        5E5D-79A0                              vfat        
 
================================ Mount points: =================================
 
Device           Mount_Point              Type       Options
 
/dev/loop0       /rofs                    squashfs   (ro,noatime)
/dev/sdb1        /cdrom                   vfat       (ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
 
 
=========================== sdb1/boot/grub/grub.cfg: ===========================
 
--------------------------------------------------------------------------------
 
if loadfont /boot/grub/font.pf2 ; then
 set gfxmode=auto
 insmod efi_gop
 insmod efi_uga
 insmod gfxterm
 terminal_output gfxterm
fi
 
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
 
menuentry "Boot-Repair-Disk session" {
 set gfxpayload=keep
 linux /casper/vmlinuz  file=/cdrom/preseed/lubuntu.seed boot=casper quiet splash --
 initrd /casper/initrd.lz
}
--------------------------------------------------------------------------------
 
============================== sdb1/syslinux.cfg: ==============================
 
--------------------------------------------------------------------------------
default menu.c32
prompt 0
menu title UNetbootin
timeout 100
 
label unetbootindefault
menu label Default
kernel /ubnkern
append initrd=/ubninit file=/cdrom/preseed/lubuntu.seed boot=casper quiet splash --
 
label ubnentry0
menu label ^Help
kernel /ubnkern
append initrd=/ubninit  
 
label ubnentry1
menu label ^64bit session
kernel /casper/vmlinuz
append initrd=/casper/initrd.lz file=/cdrom/preseed/lubuntu.seed boot=casper  quiet splash --
 
label ubnentry2
menu label ^64bit session (failsafe)
kernel /casper/vmlinuz
append initrd=/casper/initrd.lz file=/cdrom/preseed/lubuntu.seed boot=casper  noapic noapm nodma nomce nolapic nomodeset nosmp vga=normal --
 
label ubnentry3
menu label Boot-Repair-Disk session
kernel /casper/vmlinuz
append initrd=/casper/initrd.lz file=/cdrom/preseed/lubuntu.seed boot=casper quiet splash --
 
--------------------------------------------------------------------------------
 
=================== sdb1: Location of files loaded by Grub: ====================
 
           GiB - GB             File                                 Fragment(s)
 
            ?? = ??             boot/grub/grub.cfg                             1
 
================= sdb1: Location of files loaded by Syslinux: ==================
 
           GiB - GB             File                                 Fragment(s)
 
            ?? = ??             syslinux.cfg                                   1
            ?? = ??             ldlinux.sys                                    1
            ?? = ??             menu.c32                                       1
 
============== sdb1: Version of COM32(R) files used by Syslinux: ===============
 
 menu.c32                           :  COM32R module (v4.xx)
 
======================== Unknown MBRs/Boot Sectors/etc: ========================
 
Unknown BootLoader on sda2
 
00000000  00 00 00 8b 45 00 e9 e6  fe ff ff b8 04 00 00 00  |....E...........|
00000010  c7 44 24 20 00 00 00 00  e9 b1 fd ff ff c7 44 24  |.D$ ..........D$|
00000020  08 68 3a 93 08 c7 44 24  04 16 01 00 00 c7 04 24  |.h:...D$.......$|
00000030  0c 3a 93 08 e8 47 97 44  00 8d b4 26 00 00 00 00  |.:...G.D...&....|
00000040  83 ec 2c 89 5c 24 20 8b  5c 24 34 89 74 24 24 8b  |..,.\$ .\$4.t$$.|
00000050  74 24 30 89 7c 24 28 8b  43 20 85 c0 74 62 8b 50  |t$0.|$(.C ..tb.P|
00000060  04 85 d2 74 5b 8b 42 04  85 c0 74 4c 8b 08 85 c9  |...t[.B...tL....|
00000070  74 46 8b 49 10 89 44 24  14 8d 44 24 14 89 74 24  |tF.I..D$..D$..t$|
00000080  04 89 04 24 c7 44 24 08  00 00 00 00 89 54 24 18  |...$.D$......T$.|
00000090  89 4c 24 1c e8 b7 10 e7  ff 89 5c 24 04 89 34 24  |.L$.......\$..4$|
000000a0  e8 1b be e6 ff 8b 5c 24  20 8b 74 24 24 8b 7c 24  |......\$ .t$$.|$|
000000b0  28 83 c4 2c c3 8d 76 00  31 c9 eb b9 8d 74 26 00  |(..,..v.1....t&.|
000000c0  e8 3b b0 e6 ff 8b 53 20  85 c0 89 42 04 74 30 8b  |.;....S ...B.t0.|
000000d0  38 85 ff 74 2a 8d 76 00  89 5c 24 04 8b 07 89 04  |8..t*.v..\$.....|
000000e0  24 e8 da bd e6 ff 8b 7f  08 85 ff 75 eb 8b 53 20  |$..........u..S |
000000f0  85 d2 75 0b 31 c0 31 d2  31 c9 e9 76 ff ff ff 8b  |..u.1.1.1..v....|
00000100  52 04 85 d2 0f 85 5b ff  ff ff eb e8 8d 74 26 00  |R.....[......t&.|
00000110  55 57 56 53 83 ec 2c 8b  54 24 44 8b 02 85 c0 0f  |UWVS..,.T$D.....|
00000120  84 43 01 00 00 8b 38 8d  14 7f 89 f8 8d 14 d5 24  |.C....8........$|
00000130  00 00 00 89 54 24 1c e8  94 fa ff ff 89 c6 8d 04  |....T$..........|
00000140  40 8d 0c c5 24 00 00 00  a1 60 2d cc 08 85 c0 74  |@...$....`-....t|
00000150  0f 8d 5e fe 83 fb 07 0f  86 b7 00 00 00 8d 76 00  |..^...........v.|
00000160  89 0c 24 e8 38 f3 d2 ff  89 c5 8b 54 24 1c c7 44  |..$.8......T$..D|
00000170  24 04 00 00 00 00 89 2c  24 89 54 24 08 e8 5e e5  |$......,$.T$..^.|
00000180  c9 ff 8b 54 24 40 c6 45  00 12 89 7d 1c 89 75 18  |...T$@.E...}..u.|
00000190  66 81 3a 8d 00 0f 84 c5  00 00 00 8b 54 24 40 a1  |f.:.........T$@.|
000001a0  dc de bc 08 89 6c 24 08  89 54 24 04 89 04 24 e8  |.....l$..T$...$.|
000001b0  4c 18 0b 00 89 45 20 31  c0 85 f6 7e 2f 8d 00 3b  |L....E 1...~/..;|
000001c0  1d 1f 83 fe ff ff 02 00  00 00 00 40 3b 25 00 00  |...........@;%..|
000001d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
00000200
 
Unknown BootLoader on sda5
 
00000000  4c 55 4b 53 ba be 00 01  61 65 73 00 00 00 00 00  |LUKS....aes.....|
00000010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000020  00 00 00 00 00 00 00 00  78 74 73 2d 70 6c 61 69  |........xts-plai|
00000030  6e 36 34 00 00 00 00 00  00 00 00 00 00 00 00 00  |n64.............|
00000040  00 00 00 00 00 00 00 00  73 68 61 31 00 00 00 00  |........sha1....|
00000050  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000060  00 00 00 00 00 00 00 00  00 00 10 00 00 00 00 40  |...............@|
00000070  45 8c c3 0d 5e dd 21 91  26 6b 01 af b4 53 b6 72  |E...^.!.&k...S.r|
00000080  7c ad c1 f2 17 67 f2 d9  7d fb c8 61 75 ba dc b9  ||....g..}..au...|
00000090  7d 49 65 10 ff e0 08 b1  30 48 15 06 51 7f 12 02  |}Ie.....0H..Q...|
000000a0  e4 dc ce 6c 00 00 b5 27  38 65 66 61 35 64 39 35  |...l...'8efa5d95|
000000b0  2d 38 32 33 35 2d 34 64  35 64 2d 61 64 32 30 2d  |-8235-4d5d-ad20-|
000000c0  39 62 37 62 66 31 32 33  35 30 30 36 00 00 00 00  |9b7bf1235006....|
000000d0  00 ac 71 f3 00 02 d5 ae  cd c8 31 5b a7 c0 c9 af  |..q.......1[....|
000000e0  b8 b2 bf 31 ba ed 1b ff  89 6a d7 95 f1 5b e3 ff  |...1.....j...[..|
000000f0  d8 70 b2 9b 15 68 c2 05  00 00 00 08 00 00 0f a0  |.p...h..........|
00000100  00 00 de ad 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000110  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000120  00 00 00 00 00 00 00 00  00 00 02 00 00 00 0f a0  |................|
00000130  00 00 de ad 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000140  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000150  00 00 00 00 00 00 00 00  00 00 03 f8 00 00 0f a0  |................|
00000160  00 00 de ad 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000170  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000180  00 00 00 00 00 00 00 00  00 00 05 f0 00 00 0f a0  |................|
00000190  00 00 de ad 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001a0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001b0  00 00 00 00 00 00 00 00  00 00 07 e8 00 00 0f a0  |................|
000001c0  00 00 de ad 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000001e0  00 00 00 00 00 00 00 00  00 00 09 e0 00 00 0f a0  |................|
000001f0  00 00 de ad 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000200
 
 
========= Devices which don't seem to have a corresponding hard drive: =========
 
sdc  
 
=============================== StdErr Messages: ===============================
 
ls: reading directory /mnt/BootInfo/sda1/: Input/output error
File descriptor 8 (/proc/2914/mounts) leaked on lvscan invocation. Parent PID 8596: bash
  No volume groups found
 
ADDITIONAL INFORMATION :
=================== log of boot-repair 2013-08-27__21h14 ===================
boot-repair version : 3.198~ppa16~raring
boot-sav version : 3.198~ppa16~raring
glade2script version : 3.2.2~ppa45~raring
boot-sav-extra version : 3.198~ppa16~raring
File descriptor 8 (/proc/2914/mounts) leaked on lvs invocation. Parent PID 4516: /bin/sh
No volume groups found
boot-repair is executed in live-session (Boot-Repair-Disk 64bit 24avr2013, raring, Ubuntu, x86_64)
ls: cannot access /home/usr/.config: No such file or directory
CPU op-mode(s):        32-bit, 64-bit
initrd=/casper/initrd.lz file=/cdrom/preseed/lubuntu.seed boot=casper  quiet splash -- BOOT_IMAGE=/casper/vmlinuz
mount: unknown filesystem type 'crypto_LUKS'
mount /dev/sda5 -> Error code 32
 
=================== os-prober:
 
 
=================== blkid:
/dev/loop0: TYPE="squashfs"
/dev/sda1: UUID="f643ea46-2447-47f2-8f7f-ab95aa3d0831" TYPE="ext2"
/dev/sda5: UUID="8efa5d95-8235-4d5d-ad20-9b7bf1235006" TYPE="crypto_LUKS"
/dev/sdb1: UUID="5E5D-79A0" TYPE="vfat"
 
mount: unknown filesystem type 'crypto_LUKS'
mount /dev/sda5 -> Error code 32
ls: reading directory /mnt/boot-sav/sda1/: Input/output error
ls: reading directory /mnt/boot-sav/sda1/: Input/output error
ls: reading directory /mnt/boot-sav/sda1/: Input/output error
ls: reading directory /mnt/boot-sav/sda1/: Input/output error
ls: reading directory /mnt/boot-sav/sda1/: Input/output error
ls: reading directory /mnt/boot-sav/sda1/: Input/output error
ls: reading directory /mnt/boot-sav/sda1/: Input/output error
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
ls: reading directory /mnt/boot-sav/sda1/: Input/output error
ls: reading directory /mnt/boot-sav/sda1/: Input/output error
=================== UEFI/Legacy mode:
This live-session is not in EFI-mode.
SecureBoot maybe enabled.
 
 
=================== PARTITIONS & DISKS:
sda1 : sda, maybesepboot, no-grubenv nogrub, no-docgrub, no-update-grub, 32, no-boot, no-os, not--efi--part, part-has-no-fstab, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot, nopakmgr, nogrubinstall, no---usr, part-has-no-fstab, not-sep-usr, standard, not-far, /mnt/boot-sav/sda1.
sda5 : sda, maybesepboot, no-grubenv nogrub, no-docgrub, no-update-grub, 32, no-boot, no-os, not--efi--part, part-has-no-fstab, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot, nopakmgr, nogrubinstall, no---usr, part-has-no-fstab, not-sep-usr, standard, farbios, /mnt/boot-sav/sda5.
 
sda : not-GPT, BIOSboot-not-needed, has-no-EFIpart,  not-usb, no-os, 2048 sectors * 512 bytes
 
 
=================== parted -l:
 
Model: ATA WDC WD3200BEKT-6 (scsi)
Disk /dev/sda: 320GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
 
Number  Start   End    Size   Type      File system  Flags
1      1049kB  256MB  255MB  primary   ext2         boot
2      257MB   320GB  320GB  extended
5      257MB   320GB  320GB  logical
 
 
Model: DDUSB AP721 (scsi)
Disk /dev/sdb: 8179MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
 
Number  Start   End     Size    Type     File system  Flags
1      1049kB  8179MB  8178MB  primary  fat32        boot
 
=================== parted -lm:
 
BYT;
/dev/sda:320GB:scsi:512:512:msdos:ATA WDC WD3200BEKT-6;
1:1049kB:256MB:255MB:ext2::boot;
2:257MB:320GB:320GB:::;
5:257MB:320GB:320GB:::;
 
BYT;
/dev/sdb:8179MB:scsi:512:512:msdos:DDUSB AP721;
1:1049kB:8179MB:8178MB:fat32::boot;
 
 
=================== mount:
/cow on / type overlayfs (rw)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
/dev/sdb1 on /cdrom type vfat (ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/loop0 on /rofs type squashfs (ro,noatime)
none on /sys/fs/cgroup type tmpfs (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
gvfsd-fuse on /run/user/lubuntu/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=lubuntu)
/dev/sda1 on /mnt/boot-sav/sda1 type ext2 (rw)
 
 
=================== ls:
/sys/block/sda (filtered):  alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight power queue range removable ro sda1 sda2 sda5 size slaves stat subsystem trace uevent
/sys/block/sdb (filtered):  alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight power queue range removable ro sdb1 size slaves stat subsystem trace uevent
/sys/block/sdc (filtered):  alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight power queue range removable ro size slaves stat subsystem trace uevent
/sys/block/sr0 (filtered):  alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight power queue range removable ro size slaves stat subsystem trace uevent
/dev (filtered):  alarm ashmem autofs binder block bsg btrfs-control bus cdrom cdrw char console core cpu cpu_dma_latency disk dri dvd dvdrw ecryptfs fb0 fd freefall full fuse fw0 hidraw0 hidraw1 hidraw2 hidraw3 hpet input kmsg kvm log mapper mcelog mei mem net network_latency network_throughput null oldmem parport0 port ppp psaux ptmx pts random rfkill rtc rtc0 sda sda1 sda2 sda5 sdb sdb1 sdc sg0 sg1 sg2 sg3 shm snapshot snd sr0 stderr stdin stdout tpm0 uinput urandom usb v4l vga_arbiter vhost-net video0 watchdog watchdog0 zero
ls /dev/mapper:  control
 
=================== df -Th:
 
Filesystem     Type       Size  Used Avail Use% Mounted on
/cow           overlayfs  1.9G   20M  1.9G   2% /
udev           devtmpfs   1.9G   12K  1.9G   1% /dev
tmpfs          tmpfs      381M  972K  380M   1% /run
/dev/sdb1      vfat       7.7G  544M  7.1G   7% /cdrom
/dev/loop0     squashfs   435M  435M     0 100% /rofs
none           tmpfs      4.0K     0  4.0K   0% /sys/fs/cgroup
tmpfs          tmpfs      1.9G  8.0K  1.9G   1% /tmp
none           tmpfs      5.0M  4.0K  5.0M   1% /run/lock
none           tmpfs      1.9G     0  1.9G   0% /run/shm
none           tmpfs      100M   12K  100M   1% /run/user
/dev/sda1      ext2       228M   19M  198M   9% /mnt/boot-sav/sda1
 
=================== fdisk -l:
 
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 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: 0x0e69591c
 
Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      499711      248832   83  Linux
/dev/sda2          501758   625141759   312320001    5  Extended
/dev/sda5          501760   625141759   312320000   83  Linux
 
Disk /dev/sdb: 8178 MB, 8178892800 bytes
92 heads, 57 sectors/track, 3046 cylinders, total 15974400 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: 0x000bf6bf
 
Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *        2048    15974399     7986176    b  W95 FAT32
 
 
No OS has been found on this computer.
 
=================== Recommended repair
Recommended-Repair
This setting will not act on the MBR.
Additional repair will be performed:  repair-filesystems
 
 
Force Unmount all blkid partitions (for fsck) except / /boot /cdrom /dev /etc /home /opt /pas /proc /rofs /sys /tmp /usr /var
 
fsck -fyM /dev/sda1
fsck from util-linux 2.20.1
 
fsck -fyM /dev/sda5
fsck from util-linux 2.20.1
fsck: fsck.crypto_LUKS: not found
fsck: error 2 while executing fsck.crypto_LUKS for /dev/sda5
mount: unknown filesystem type 'crypto_LUKS'
mount /dev/sda5 -> Error code 32
 
Boot successfully repaired.
 
You can now reboot your computer.


 
Merci d'avance pour votre aide  :bounce:


---------------
L'esprit est une force qui peut tirer d'elle même , plus qu'elle ne contient et qui peut rendre plus que ce qu'elle reçoit
mood
Publicité
Posté le 27-08-2013 à 23:30:04  profilanswer
 

n°1343853
transpi
Posté le 27-08-2013 à 23:45:07  profilanswer
 

Il faut essayer de restaurer grub.
Par exemple en suivant http://wiki.manjaro.org/index.php/ [...] Bootloader

 

Tu boot sur un live cd linux quelconque.


Message édité par transpi le 27-08-2013 à 23:45:45
n°1343854
bobjambon
UBUNTU can divide by zero
Posté le 27-08-2013 à 23:53:14  profilanswer
 

J'essayais de faire un truc de cette idée depuis le mode recovery du netinstall de Debian mais sans succès, je vais essayer depuis une buntu.  
Merci pour ta réponse :)  


---------------
L'esprit est une force qui peut tirer d'elle même , plus qu'elle ne contient et qui peut rendre plus que ce qu'elle reçoit
n°1343857
bobjambon
UBUNTU can divide by zero
Posté le 28-08-2013 à 00:33:24  profilanswer
 

Sous un live lambda  
 

Citation :

sudo mount /dev/sda5 /mnt
mount: unknown filesystem type 'crypto_LUKS'


 
Manifestement le cryptage pose problème, je me réoriente vers le rescue mode du CD de debian qui lui me demande la passphrase de cryptage et appréhende donc correctement les partitions
 
Ce dernier propose directement de mettre en place un Chroot (avec un dialogue du style : sur quelle sdxx voulez-vous incruster la racine /"  
 
Mais impossible de choisir /dev/sda5. Le log est très explicite  
 

Citation :

Aug 27 22:13:23 rescue-mode: partitions found: /dev/sda1, /dev/sda2, /dev/sda5, /dev/sdb1, /dev/mapper/sda5_crypt, /dev/Potemkine/root, /dev/Potemkine/swap_1
Aug 27 22:13:26 rescue-mode: selected root device '/dev/sda5'
Aug 27 22:13:26 rescue: umount: can't umount /target: Invalid argument
Aug 27 22:13:26 rescue: mount: mounting /dev/sda5 on /target failed: Device or resource busy
Aug 27 22:13:26 rescue-mode: mount '/dev/sda5' /target failed


 
Je décide tout de même de tenter manuellement
 

Citation :

mount /dev/sda5 /mnt   -> Device or resource busy

 
 
J'ai tenté de lancer  
 

Citation :

fuser -m /dev/sda5 && top

 
 
pour identifier les processus responsables mais rien de bien probant  :sweat:  
 
 
Ça comme à m’inquiéter cette histoire, que faire  :??:


---------------
L'esprit est une force qui peut tirer d'elle même , plus qu'elle ne contient et qui peut rendre plus que ce qu'elle reçoit
n°1343871
roscocoltr​an
L'enfer c'est les utilisateurs
Posté le 28-08-2013 à 08:58:44  profilanswer
 

j'ai jamais installé de linux avec une partition cryptée. Comment se fait le décryptage de la partition ? Le grub installé sait qu'il doit décrypter la partition ? Comment ? Que dit le grub.conf de sda1 ?


Message édité par roscocoltran le 28-08-2013 à 08:58:56

---------------
"Your god is too small", Giordano Bruno, 1548 - 1600
n°1343883
bobjambon
UBUNTU can divide by zero
Posté le 28-08-2013 à 10:35:28  profilanswer
 

Tutoriel ici que j'essaie d'appliquer à mon système
 
Restoring Grub for an Encrypted LVM


---------------
L'esprit est une force qui peut tirer d'elle même , plus qu'elle ne contient et qui peut rendre plus que ce qu'elle reçoit
n°1343887
bobjambon
UBUNTU can divide by zero
Posté le 28-08-2013 à 11:12:45  profilanswer
 

Adaptation de la procédure à mon système :
 
 

Citation :

cryptsetup luksOpen /dev/sda5 linux


 
Soit Linux un nom générique
 

Citation :

lubuntu@lubuntu:~$ sudo vgscan
  Reading all physical volumes.  This may take a while...
  Found volume group "Potemkine" using metadata type lvm2


 
Soit Potemkine le nom du "volume group"
 

Citation :

vgchange -a y Potemkine
 2 logical volume(s) in volume group "Potemkine" now active


 
 

Citation :

lubuntu@lubuntu:~$ sudo lvscan
  ACTIVE            '/dev/Potemkine/root' [290.13 GiB] inherit
  ACTIVE            '/dev/Potemkine/swap_1' [7.71 GiB] inherit


 

Citation :


mkdir /media/linux
mount /dev/Potemkine/root /media/linux
 
lubuntu@lubuntu:~$ sudo mount -o bind /dev /media/linux/dev
lubuntu@lubuntu:~$ sudo mount -o bind /proc /media/linux/proc
lubuntu@lubuntu:~$ sudo mount -o bind /sys /media/linux/sys
 


 
 
Et enfin on passe au chroot
 

Citation :

chroot /media/linux/ /bin/bash


 
On monte la partition de boot  
 

Citation :

mount /dev/sda1 /boot


 
Et là c'est le drame
 

Citation :


 
 
 
root@lubuntu:/# grub-install /dev/sda  
mkdir: cannot create directory `/boot/grub': Input/output error


 
J'ai loupé un truc ?


Message édité par bobjambon le 28-08-2013 à 11:32:59

---------------
L'esprit est une force qui peut tirer d'elle même , plus qu'elle ne contient et qui peut rendre plus que ce qu'elle reçoit
n°1343889
roscocoltr​an
L'enfer c'est les utilisateurs
Posté le 28-08-2013 à 11:30:52  profilanswer
 

t'as remonté /dev dans le chroot ? Moi je remonte /proc /sys et /dev avant un chroot


---------------
"Your god is too small", Giordano Bruno, 1548 - 1600
n°1343890
bobjambon
UBUNTU can divide by zero
Posté le 28-08-2013 à 11:34:44  profilanswer
 

Merci roscocoltran, j'avais effectivement zappé /proc /sys et /dev
 
J'ai mis à jour la procédure mais le résultat est le même  
(sda est pourtant bien accessible)


---------------
L'esprit est une force qui peut tirer d'elle même , plus qu'elle ne contient et qui peut rendre plus que ce qu'elle reçoit
n°1343891
bobjambon
UBUNTU can divide by zero
Posté le 28-08-2013 à 11:43:43  profilanswer
 

C'est manifestement /boot qui pose problème
 

Citation :

root@lubuntu:/boot# ls
ls: reading directory .: Input/output error


---------------
L'esprit est une force qui peut tirer d'elle même , plus qu'elle ne contient et qui peut rendre plus que ce qu'elle reçoit

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Linux et OS Alternatifs
  Installation

  Grub Error après install Debian (crypto-LUKS)

 

Sujets relatifs
[RHEL] Install LibreOffice 4.1.0 impossibleConfiguration Postfix Debian
souris logitech performance mx non détectée sur debianinstall 2eme disque dur sur linux ?? merci
Débit serveur Debian soudainement extrêmement faibleDEBIAN 7 echec installation PHP5
Fatal error en allant sur un site ? SUJET RESOLUPerl ERREUR commande perl -MCPAN -e 'install SOAP::Lite'
DEBIAN 7 Probleme installation module perl DBD 
Plus de sujets relatifs à : Grub Error après install Debian (crypto-LUKS)


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR