#1 Le 12/12/2014, à 12:03
- gegewood
problème installation sur disque dur externe
Bonjour,
nouveau sur ce forum, j'ai voulu installer ubuntu 14.04.1 lts sur un disque dur externede 320g, j'ai windows 7 d'installé sur un disque de 80g. j'installe à partir du cd. après installation je modifie le bios et je boot sur le disque dur externe, et j'ai le messagesuivant file /boot/grub/i386pc/normal.mod not found. je retourne sur ubuntu avec le cd, je regarde le disque dur externe et je vois bien dans boot...le fichier normal .mod. j'ai fait boot-repair http://paste.ubuntu.com/9486873.
merci pour vos suggestions et votre travail
Hors ligne
#2 Le 12/12/2014, à 15:02
- maxire
Re : problème installation sur disque dur externe
Bonjour,
Normalement le message devrait plutôt être: file /boot/grub/i386-pc/normal.mod not found.
Ce message devrait logiquement être visible avant l'affichage de la ligne de commande de grub.
Passes alors cette commande:
grub> set
Ce qui m'intéresse ce sont les valeurs des 4 variables root, prefix, grub_cpu et grub_platform, quelles sont-elles?
En plus que donne?
grub> ls
Note: Je vois dans le boot-info qu'une réparation a été réalisée, elle me semble sensée. Cette réparation est-elle efficace?
Dernière modification par maxire (Le 12/12/2014, à 15:06)
Maxire
Archlinux/Mate + Ubuntu 22.04 + Archlinux/Gnome sur poste de travail
Hors ligne
#3 Le 12/12/2014, à 19:32
- gegewood
Re : problème installation sur disque dur externe
bonsoir et merci pour la réponse, en effet j'ai oublié le tiret dans le libellé. j ai en effet tenté un boot repair, mais sans effet. j'ecris ce message depuis windows. je relance ubuntu pour rentrer les commandes. A bientôt
Hors ligne
#4 Le 12/12/2014, à 19:47
- sinbad83
Re : problème installation sur disque dur externe
Salut,
au moment de l'installation, tu aurais dû indiquer d'enregistrer Grub sur le disque externe. Comme cela, quand le disque est branché, tu démarres dessus et quand il n'y est pas, tu démarres sur le disque interne. Tu peux toujours rattraper: démarre sur le disque externe et ensuite
sudo grub-install /dev/sdb # si le disque est en sdb
La connaissance n'est pas une denrée rare, il faut la partager avec les autres.
Linux registered #484707
Site: www.coursinforev.org/doku.php
Desktop AMD Ryzen 5-3600, RAM 16GB, Ubuntu 20.10, HP Pavillon G6 Ubuntu 20.10 et Ten, Serveur Ubuntu 18.04
Hors ligne
#5 Le 12/12/2014, à 20:09
- gegewood
Re : problème installation sur disque dur externe
bonsoir sinbad83, j' ai effectué l'installation à partir du cd, et dans gparted, j'ai bien indiqué la référence du disque externe dans la case demandée, le principe que je voulais est bien celui que tu décris (j avais consulté des tutos sur le forum qui l'expliquaient).
Actuellement j' ai démarré l'ordi sur le cd, en faisant tester ubuntu,est ce que je peux lancer la commande dans la console?
Hors ligne
#6 Le 12/12/2014, à 20:15
- gegewood
Re : problème installation sur disque dur externe
pour Maxire,
résultat des commandes
grub > set
root hd0, msdos5
prefix (hd0,msdos5)/boot/grub
pas de grub_cpu ni de grub_platform
ls (hd0) (hd0,msdos5) (hd1) (hd1,msdos2) (hd2) (hd2,msdos1)
Hors ligne
#7 Le 13/12/2014, à 12:26
- maxire
Re : problème installation sur disque dur externe
Je mets le boot-info ici:
Boot Info Script e7fc706 + Boot-Repair extra info [Boot-Info 23Nov2014]
============================= Boot Info Summary: ===============================
=> Syslinux MBR (4.04 and higher) is installed in the MBR of /dev/sda.
=> Grub2 (v2.00) 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
for (,msdos5)/boot/grub.
sda1: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows 7/2008: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /bootmgr /Boot/BCD
sda2: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows 7/2008: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 7
Boot files: /bootmgr /Boot/BCD /Windows/System32/winload.exe
sdb1: __________________________________________________________________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sdb5: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 14.04.1 LTS
Boot files: /boot/grub/grub.cfg /etc/fstab
/boot/grub/i386-pc/core.img
sdb6: __________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
============================ Drive/Partition Info: =============================
Drive: sda _____________________________________________________________________
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 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 154,191,869 153,985,022 7 NTFS / exFAT / HPFS
Drive: sdb _____________________________________________________________________
Disk /dev/sdb: 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/sdb1 * 2,046 625,141,759 625,139,714 5 Extended
/dev/sdb5 2,048 584,179,711 584,177,664 83 Linux
/dev/sdb6 584,181,760 625,141,759 40,960,000 82 Linux swap / Solaris
"blkid" output: ________________________________________________________________
Device UUID TYPE LABEL
/dev/loop0 squashfs
/dev/sda1 1EC60D59C60D3297 ntfs Réservé au système
/dev/sda2 ECDE817ADE813DB8 ntfs
/dev/sdb5 6165cd12-1bd5-4279-b8a9-ea45eae16ebe ext4
/dev/sdb6 44ca4350-6543-4151-a06a-5e1bbf1314ce swap
/dev/sr0 iso9660 Ubuntu 14.04.1 LTS amd64
========================= "ls -l /dev/disk/by-id" output: ======================
total 0
lrwxrwxrwx 1 root root 9 Dec 12 09:22 ata-ST380817AS_5MR2C57K -> ../../sda
lrwxrwxrwx 1 root root 10 Dec 12 09:23 ata-ST380817AS_5MR2C57K-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Dec 12 09:23 ata-ST380817AS_5MR2C57K-part2 -> ../../sda2
lrwxrwxrwx 1 root root 9 Dec 12 2014 ata-TSSTcorp_CDDVDW_SH-224BB_R8Z76GACB00431 -> ../../sr0
lrwxrwxrwx 1 root root 9 Dec 12 09:22 usb-WDC_WD32_00BEVT-60ZCT0_WDC_WD3200_WD-WXE508EC8785-0:0 -> ../../sdb
lrwxrwxrwx 1 root root 10 Dec 12 09:12 usb-WDC_WD32_00BEVT-60ZCT0_WDC_WD3200_WD-WXE508EC8785-0:0-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Dec 12 2014 usb-WDC_WD32_00BEVT-60ZCT0_WDC_WD3200_WD-WXE508EC8785-0:0-part5 -> ../../sdb5
lrwxrwxrwx 1 root root 10 Dec 12 2014 usb-WDC_WD32_00BEVT-60ZCT0_WDC_WD3200_WD-WXE508EC8785-0:0-part6 -> ../../sdb6
================================ Mount points: =================================
Device Mount_Point Type Options
/dev/loop0 /rofs squashfs (ro,noatime)
/dev/sdb5 /media/ubuntu/6165cd12-1bd5-4279-b8a9-ea45eae16ebe ext4 (rw,nosuid,nodev,uhelper=udisks2)
/dev/sr0 /cdrom iso9660 (ro,noatime)
=========================== sdb5/boot/grub/grub.cfg: ===========================
--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by 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
set have_grubenv=true
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
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
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_msdos
insmod ext2
set root='hd1,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos5 --hint-efi=hd1,msdos5 --hint-baremetal=ahci1,msdos5 6165cd12-1bd5-4279-b8a9-ea45eae16ebe
else
search --no-floppy --fs-uuid --set=root 6165cd12-1bd5-4279-b8a9-ea45eae16ebe
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=fr_FR
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
set timeout=10
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=10
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=10
fi
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
if background_color 44,0,30; then
clear
fi
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
if [ "${recordfail}" != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-6165cd12-1bd5-4279-b8a9-ea45eae16ebe' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='hd1,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos5 --hint-efi=hd1,msdos5 --hint-baremetal=ahci1,msdos5 6165cd12-1bd5-4279-b8a9-ea45eae16ebe
else
search --no-floppy --fs-uuid --set=root 6165cd12-1bd5-4279-b8a9-ea45eae16ebe
fi
linux /boot/vmlinuz-3.13.0-32-generic root=UUID=6165cd12-1bd5-4279-b8a9-ea45eae16ebe ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.13.0-32-generic
}
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-6165cd12-1bd5-4279-b8a9-ea45eae16ebe' {
menuentry 'Ubuntu, with Linux 3.13.0-32-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-32-generic-advanced-6165cd12-1bd5-4279-b8a9-ea45eae16ebe' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='hd1,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos5 --hint-efi=hd1,msdos5 --hint-baremetal=ahci1,msdos5 6165cd12-1bd5-4279-b8a9-ea45eae16ebe
else
search --no-floppy --fs-uuid --set=root 6165cd12-1bd5-4279-b8a9-ea45eae16ebe
fi
echo 'Loading Linux 3.13.0-32-generic ...'
linux /boot/vmlinuz-3.13.0-32-generic root=UUID=6165cd12-1bd5-4279-b8a9-ea45eae16ebe ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.13.0-32-generic
}
menuentry 'Ubuntu, with Linux 3.13.0-32-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.13.0-32-generic-recovery-6165cd12-1bd5-4279-b8a9-ea45eae16ebe' {
recordfail
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd1,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos5 --hint-efi=hd1,msdos5 --hint-baremetal=ahci1,msdos5 6165cd12-1bd5-4279-b8a9-ea45eae16ebe
else
search --no-floppy --fs-uuid --set=root 6165cd12-1bd5-4279-b8a9-ea45eae16ebe
fi
echo 'Loading Linux 3.13.0-32-generic ...'
linux /boot/vmlinuz-3.13.0-32-generic root=UUID=6165cd12-1bd5-4279-b8a9-ea45eae16ebe ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.13.0-32-generic
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry 'Memory test (memtest86+)' {
insmod part_msdos
insmod ext2
set root='hd1,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos5 --hint-efi=hd1,msdos5 --hint-baremetal=ahci1,msdos5 6165cd12-1bd5-4279-b8a9-ea45eae16ebe
else
search --no-floppy --fs-uuid --set=root 6165cd12-1bd5-4279-b8a9-ea45eae16ebe
fi
knetbsd /boot/memtest86+.elf
}
menuentry 'Memory test (memtest86+, serial console 115200)' {
insmod part_msdos
insmod ext2
set root='hd1,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos5 --hint-efi=hd1,msdos5 --hint-baremetal=ahci1,msdos5 6165cd12-1bd5-4279-b8a9-ea45eae16ebe
else
search --no-floppy --fs-uuid --set=root 6165cd12-1bd5-4279-b8a9-ea45eae16ebe
fi
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows 7 (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-1EC60D59C60D3297' {
insmod part_msdos
insmod ntfs
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 1EC60D59C60D3297
else
search --no-floppy --fs-uuid --set=root 1EC60D59C60D3297
fi
parttool ${root} hidden-
chainloader +1
}
menuentry 'Windows 7 (loader) (on /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-chain-ECDE817ADE813DB8' {
insmod part_msdos
insmod ntfs
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 ECDE817ADE813DB8
else
search --no-floppy --fs-uuid --set=root ECDE817ADE813DB8
fi
parttool ${root} hidden-
chainloader +1
}
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
set timeout=10
fi
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###
### 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 ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------
=============================== sdb5/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/sda5 during installation
UUID=6165cd12-1bd5-4279-b8a9-ea45eae16ebe / ext4 errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=44ca4350-6543-4151-a06a-5e1bbf1314ce none swap sw 0 0
--------------------------------------------------------------------------------
=============================== StdErr Messages: ===============================
cat: write error: Broken pipe
File descriptor 9 (/proc/16915/mounts) leaked on lvs invocation. Parent PID 26164: bash
File descriptor 63 (pipe:[386556]) leaked on lvs invocation. Parent PID 26164: bash
No volume groups found
ADDITIONAL INFORMATION :
=================== log of boot-repair 2014-12-12__09h22 ===================
boot-repair version : 4ppa21
boot-sav version : 4ppa21
glade2script version : 3.2.2~ppa47~saucy
boot-sav-extra version : 4ppa21
boot-repair is executed in live-session (Ubuntu 14.04.1 LTS, trusty, Ubuntu, x86_64)
CPU op-mode(s): 32-bit, 64-bit
file=/cdrom/preseed/ubuntu.seed boot=casper initrd=/casper/initrd.lz quiet splash -- maybe-ubiquity
ls: cannot access /home/usr/.config: No such file or directory
=================== os-prober:
/dev/sda1:Windows 7 (loader):Windows:chain
/dev/sda2:Windows 7 (loader):Windows1:chain
/dev/sdb5:Ubuntu 14.04.1 LTS (14.04):Ubuntu:linux
=================== blkid:
/dev/loop0: TYPE="squashfs"
/dev/sda1: LABEL="RM-CM-)servM-CM-) au systM-CM-(me" UUID="1EC60D59C60D3297" TYPE="ntfs"
/dev/sda2: UUID="ECDE817ADE813DB8" TYPE="ntfs"
/dev/sr0: LABEL="Ubuntu 14.04.1 LTS amd64" TYPE="iso9660"
/dev/sdb5: UUID="6165cd12-1bd5-4279-b8a9-ea45eae16ebe" TYPE="ext4"
/dev/sdb6: UUID="44ca4350-6543-4151-a06a-5e1bbf1314ce" TYPE="swap"
2 disks with OS, 3 OS : 1 Linux, 0 MacOS, 2 Windows, 0 unknown type OS.
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
=================== /media/ubuntu/6165cd12-1bd5-4279-b8a9-ea45eae16ebe/etc/grub.d/ :
drwxr-xr-x 2 root root 4096 juil. 22 22:21 grub.d
total 76
-rwxr-xr-x 1 root root 9424 mai 15 2014 00_header
-rwxr-xr-x 1 root root 6058 mai 8 2014 05_debian_theme
-rwxr-xr-x 1 root root 11608 mai 15 2014 10_linux
-rwxr-xr-x 1 root root 10412 mai 15 2014 20_linux_xen
-rwxr-xr-x 1 root root 1992 mars 12 2014 20_memtest86+
-rwxr-xr-x 1 root root 11692 mai 15 2014 30_os-prober
-rwxr-xr-x 1 root root 1416 mai 15 2014 30_uefi-firmware
-rwxr-xr-x 1 root root 214 mai 15 2014 40_custom
-rwxr-xr-x 1 root root 216 mai 15 2014 41_custom
-rw-r--r-- 1 root root 483 mai 15 2014 README
=================== /media/ubuntu/6165cd12-1bd5-4279-b8a9-ea45eae16ebe/etc/default/grub :
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
=================== UEFI/Legacy mode:
This live-session is not in EFI-mode.
SecureBoot maybe enabled.
=================== PARTITIONS & DISKS:
sda1 : sda, not-sepboot, no-grubenv nogrub, no-docgrub, no-update-grub, 32, no-boot, is-os, not--efi--part, part-has-no-fstab, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, bootmgr, is-winboot, nopakmgr, nogrubinstall, no---usr, part-has-no-fstab, not-sep-usr, standard, not-far, /mnt/boot-sav/sda1.
sda2 : sda, not-sepboot, no-grubenv nogrub, no-docgrub, no-update-grub, 32, no-boot, is-os, not--efi--part, part-has-no-fstab, part-has-no-fstab, no-nt, haswinload, no-recov-nor-hid, bootmgr, is-winboot, nopakmgr, nogrubinstall, no---usr, part-has-no-fstab, not-sep-usr, standard, not-far, /mnt/boot-sav/sda2.
sdb5 : sdb, not-sepboot, grubenv-ok grub2, grub-pc , update-grub, 64, with-boot, is-os, not--efi--part, fstab-without-boot, fstab-without-efi, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot, apt-get, grub-install, with--usr, fstab-without-usr, not-sep-usr, standard, farbios, /media/ubuntu/6165cd12-1bd5-4279-b8a9-ea45eae16ebe.
sda : not-GPT, BIOSboot-not-needed, has-no-EFIpart, not-usb, has-os, 2048 sectors * 512 bytes
sdb : not-GPT, BIOSboot-not-needed, has-no-EFIpart, usb-disk, has-os, 2046 sectors * 512 bytes
=================== parted -l:
Model: ATA ST380817AS (scsi)
Disk /dev/sda: 80.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 106MB 105MB primary ntfs
2 106MB 78.9GB 78.8GB primary ntfs boot
Model: WDC WD32 00BEVT-60ZCT0 (scsi)
Disk /dev/sdb: 320GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1048kB 320GB 320GB extended boot
5 1049kB 299GB 299GB logical ext4
6 299GB 320GB 21.0GB logical linux-swap(v1)
Model: TSSTcorp CDDVDW SH-224BB (scsi)
Disk /dev/sr0: 4700MB
Sector size (logical/physical): 2048B/2048B
Partition Table: mac
Number Start End Size File system Name Flags
1 8192B 24.6kB 16.4kB Apple
2 3979MB 3989MB 9568kB EFI
=================== parted -lm:
BYT;
/dev/sda:80.0GB:scsi:512:512:msdos:ATA ST380817AS;
1:1049kB:106MB:105MB:ntfs::;
2:106MB:78.9GB:78.8GB:ntfs::boot;
BYT;
/dev/sdb:320GB:scsi:512:512:msdos:WDC WD32 00BEVT-60ZCT0;
1:1048kB:320GB:320GB:::boot;
5:1049kB:299GB:299GB:ext4::;
6:299GB:320GB:21.0GB:linux-swap(v1)::;
BYT;
/dev/sr0:4700MB:scsi:2048:2048:mac:TSSTcorp CDDVDW SH-224BB;
1:8192B:24.6kB:16.4kB::Apple:;
2:3979MB:3989MB:9568kB::EFI:;
=================== 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/sr0 on /cdrom type iso9660 (ro,noatime)
/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)
none on /sys/fs/pstore type pstore (rw)
systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)
gvfsd-fuse on /run/user/999/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=ubuntu)
/dev/sdb5 on /media/ubuntu/6165cd12-1bd5-4279-b8a9-ea45eae16ebe type ext4 (rw,nosuid,nodev,uhelper=udisks2)
/dev/sda1 on /mnt/boot-sav/sda1 type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sda2 on /mnt/boot-sav/sda2 type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
=================== 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 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 sdb5 sdb6 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): autofs block bsg btrfs-control bus cdrom char console core cpu cpu_dma_latency cuse disk dri ecryptfs fb0 fd full fuse hidraw0 hidraw1 hpet input kmsg log mapper mcelog mem net network_latency network_throughput null port ppp psaux ptmx pts random rfkill rtc rtc0 sda sda1 sda2 sdb sdb1 sdb5 sdb6 sg0 sg1 sg2 shm snapshot snd sr0 stderr stdin stdout uhid uinput urandom usb v4l vga_arbiter vhci vhost-net video0 zero
ls /dev/mapper: control
=================== hexdump -n512 -C /dev/sda1
00000000 eb 52 90 4e 54 46 53 20 20 20 20 00 02 08 00 00 |.R.NTFS .....|
00000010 00 00 00 00 00 f8 00 00 3f 00 ff 00 00 08 00 00 |........?.......|
00000020 00 00 00 00 80 00 80 00 ff 1f 03 00 00 00 00 00 |................|
00000030 55 21 00 00 00 00 00 00 02 00 00 00 00 00 00 00 |U!..............|
00000040 f6 00 00 00 01 00 00 00 97 32 0d c6 59 0d c6 1e |.........2..Y...|
00000050 00 00 00 00 fa 33 c0 8e d0 bc 00 7c fb 68 c0 07 |.....3.....|.h..|
00000060 1f 1e 68 66 00 cb 88 16 0e 00 66 81 3e 03 00 4e |..hf......f.>..N|
00000070 54 46 53 75 15 b4 41 bb aa 55 cd 13 72 0c 81 fb |TFSu..A..U..r...|
00000080 55 aa 75 06 f7 c1 01 00 75 03 e9 dd 00 1e 83 ec |U.u.....u.......|
00000090 18 68 1a 00 b4 48 8a 16 0e 00 8b f4 16 1f cd 13 |.h...H..........|
000000a0 9f 83 c4 18 9e 58 1f 72 e1 3b 06 0b 00 75 db a3 |.....X.r.;...u..|
000000b0 0f 00 c1 2e 0f 00 04 1e 5a 33 db b9 00 20 2b c8 |........Z3... +.|
000000c0 66 ff 06 11 00 03 16 0f 00 8e c2 ff 06 16 00 e8 |f...............|
000000d0 4b 00 2b c8 77 ef b8 00 bb cd 1a 66 23 c0 75 2d |K.+.w......f#.u-|
000000e0 66 81 fb 54 43 50 41 75 24 81 f9 02 01 72 1e 16 |f..TCPAu$....r..|
000000f0 68 07 bb 16 68 70 0e 16 68 09 00 66 53 66 53 66 |h...hp..h..fSfSf|
00000100 55 16 16 16 68 b8 01 66 61 0e 07 cd 1a 33 c0 bf |U...h..fa....3..|
00000110 28 10 b9 d8 0f fc f3 aa e9 5f 01 90 90 66 60 1e |(........_...f`.|
00000120 06 66 a1 11 00 66 03 06 1c 00 1e 66 68 00 00 00 |.f...f.....fh...|
00000130 00 66 50 06 53 68 01 00 68 10 00 b4 42 8a 16 0e |.fP.Sh..h...B...|
00000140 00 16 1f 8b f4 cd 13 66 59 5b 5a 66 59 66 59 1f |.......fY[ZfYfY.|
00000150 0f 82 16 00 66 ff 06 11 00 03 16 0f 00 8e c2 ff |....f...........|
00000160 0e 16 00 75 bc 07 1f 66 61 c3 a0 f8 01 e8 09 00 |...u...fa.......|
00000170 a0 fb 01 e8 03 00 f4 eb fd b4 01 8b f0 ac 3c 00 |..............<.|
00000180 74 09 b4 0e bb 07 00 cd 10 eb f2 c3 0d 0a 41 20 |t.............A |
00000190 64 69 73 6b 20 72 65 61 64 20 65 72 72 6f 72 20 |disk read error |
000001a0 6f 63 63 75 72 72 65 64 00 0d 0a 42 4f 4f 54 4d |occurred...BOOTM|
000001b0 47 52 20 69 73 20 6d 69 73 73 69 6e 67 00 0d 0a |GR is missing...|
000001c0 42 4f 4f 54 4d 47 52 20 69 73 20 63 6f 6d 70 72 |BOOTMGR is compr|
000001d0 65 73 73 65 64 00 0d 0a 50 72 65 73 73 20 43 74 |essed...Press Ct|
000001e0 72 6c 2b 41 6c 74 2b 44 65 6c 20 74 6f 20 72 65 |rl+Alt+Del to re|
000001f0 73 74 61 72 74 0d 0a 00 8c a9 be d6 00 00 55 aa |start.........U.|
00000200
=================== hexdump -n512 -C /dev/sda2
00000000 eb 52 90 4e 54 46 53 20 20 20 20 00 02 08 00 00 |.R.NTFS .....|
00000010 00 00 00 00 00 f8 00 00 3f 00 ff 00 00 28 03 00 |........?....(..|
00000020 00 00 00 00 80 00 80 00 fd 9f 2d 09 00 00 00 00 |..........-.....|
00000030 00 00 0c 00 00 00 00 00 02 00 00 00 00 00 00 00 |................|
00000040 f6 00 00 00 01 00 00 00 b8 3d 81 de 7a 81 de ec |.........=..z...|
00000050 00 00 00 00 fa 33 c0 8e d0 bc 00 7c fb 68 c0 07 |.....3.....|.h..|
00000060 1f 1e 68 66 00 cb 88 16 0e 00 66 81 3e 03 00 4e |..hf......f.>..N|
00000070 54 46 53 75 15 b4 41 bb aa 55 cd 13 72 0c 81 fb |TFSu..A..U..r...|
00000080 55 aa 75 06 f7 c1 01 00 75 03 e9 dd 00 1e 83 ec |U.u.....u.......|
00000090 18 68 1a 00 b4 48 8a 16 0e 00 8b f4 16 1f cd 13 |.h...H..........|
000000a0 9f 83 c4 18 9e 58 1f 72 e1 3b 06 0b 00 75 db a3 |.....X.r.;...u..|
000000b0 0f 00 c1 2e 0f 00 04 1e 5a 33 db b9 00 20 2b c8 |........Z3... +.|
000000c0 66 ff 06 11 00 03 16 0f 00 8e c2 ff 06 16 00 e8 |f...............|
000000d0 4b 00 2b c8 77 ef b8 00 bb cd 1a 66 23 c0 75 2d |K.+.w......f#.u-|
000000e0 66 81 fb 54 43 50 41 75 24 81 f9 02 01 72 1e 16 |f..TCPAu$....r..|
000000f0 68 07 bb 16 68 70 0e 16 68 09 00 66 53 66 53 66 |h...hp..h..fSfSf|
00000100 55 16 16 16 68 b8 01 66 61 0e 07 cd 1a 33 c0 bf |U...h..fa....3..|
00000110 28 10 b9 d8 0f fc f3 aa e9 5f 01 90 90 66 60 1e |(........_...f`.|
00000120 06 66 a1 11 00 66 03 06 1c 00 1e 66 68 00 00 00 |.f...f.....fh...|
00000130 00 66 50 06 53 68 01 00 68 10 00 b4 42 8a 16 0e |.fP.Sh..h...B...|
00000140 00 16 1f 8b f4 cd 13 66 59 5b 5a 66 59 66 59 1f |.......fY[ZfYfY.|
00000150 0f 82 16 00 66 ff 06 11 00 03 16 0f 00 8e c2 ff |....f...........|
00000160 0e 16 00 75 bc 07 1f 66 61 c3 a0 f8 01 e8 09 00 |...u...fa.......|
00000170 a0 fb 01 e8 03 00 f4 eb fd b4 01 8b f0 ac 3c 00 |..............<.|
00000180 74 09 b4 0e bb 07 00 cd 10 eb f2 c3 0d 0a 45 72 |t.............Er|
00000190 72 65 75 72 20 6c 65 63 74 75 72 65 20 64 69 73 |reur lecture dis|
000001a0 71 75 65 00 0d 0a 42 4f 4f 54 4d 47 52 20 61 62 |que...BOOTMGR ab|
000001b0 73 65 6e 74 00 0d 0a 42 4f 4f 54 4d 47 52 20 63 |sent...BOOTMGR c|
000001c0 6f 6d 70 72 65 73 73 82 00 0d 0a 43 74 72 6c 2b |ompress....Ctrl+|
000001d0 41 6c 74 2b 53 75 70 70 72 20 70 6f 75 72 20 72 |Alt+Suppr pour r|
000001e0 65 64 82 6d 61 72 72 65 72 0d 0a 00 6f 20 72 65 |ed.marrer...o re|
000001f0 73 74 61 72 74 0d 0a 00 8c a4 b5 c9 00 00 55 aa |start.........U.|
00000200
=================== df -Th:
Filesystem Type Size Used Avail Use% Mounted on
/cow overlayfs 2.0G 125M 1.9G 7% /
udev devtmpfs 1.9G 12K 1.9G 1% /dev
tmpfs tmpfs 396M 1.3M 394M 1% /run
/dev/sr0 iso9660 981M 981M 0 100% /cdrom
/dev/loop0 squashfs 939M 939M 0 100% /rofs
none tmpfs 4.0K 0 4.0K 0% /sys/fs/cgroup
tmpfs tmpfs 2.0G 1.8M 2.0G 1% /tmp
none tmpfs 5.0M 4.0K 5.0M 1% /run/lock
none tmpfs 2.0G 80K 2.0G 1% /run/shm
none tmpfs 100M 60K 100M 1% /run/user
/dev/sdb5 ext4 275G 3.5G 257G 2% /media/ubuntu/6165cd12-1bd5-4279-b8a9-ea45eae16ebe
/dev/sda1 fuseblk 100M 12M 89M 12% /mnt/boot-sav/sda1
/dev/sda2 fuseblk 74G 23G 51G 32% /mnt/boot-sav/sda2
=================== fdisk -l:
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 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: 0xc3a4c3a4
Device Boot Start End Blocks Id System
/dev/sda1 2048 206847 102400 7 HPFS/NTFS/exFAT
/dev/sda2 * 206848 154191869 76992511 7 HPFS/NTFS/exFAT
Disk /dev/sdb: 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: 0x0007a912
Device Boot Start End Blocks Id System
/dev/sdb1 * 2046 625141759 312569857 5 Extended
/dev/sdb5 2048 584179711 292088832 83 Linux
/dev/sdb6 584181760 625141759 20480000 82 Linux swap / Solaris
User choice: Est-ce que sdb (320GB) est un disque amovible ? yes
=================== Recommended repair
The default repair of the Boot-Repair utility will reinstall the grub2 of sdb5 into the MBR of sdb.
It will also fix access to other systems (other MBRs) for the situations when the removable media is disconnected.
Additional repair will be performed: unhide-bootmenu-10s
sdb is removable, so we reinstall GRUB of the removable media only in its disk MBR
Will restore the MBR_TO_RESTORE : sda (generic mbr) into sda
dd if=/usr/lib/syslinux/mbr.bin of=/dev/sda
0+1 records in
0+1 records out
*******lspci -nnk | grep -iA3 vga
01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Cedar [Radeon HD 5000/6000/7350/8350 Series] [1002:68f9]
Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:2127]
Kernel driver in use: radeon
01:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Cedar HDMI Audio [Radeon HD 5400/6300 Series] [1002:aa68]
*******
grub-install --version
grub-install (GRUB) 2.02~beta2-9ubuntu1,grub-install (GRUB) 2.
Reinstall the GRUB of sdb5 into the MBR of sdb
Installing for i386-pc platform.
Installation finished. No error reported.
grub-install /dev/sdb: exit code of grub-install /dev/sdb:0
chroot /media/ubuntu/6165cd12-1bd5-4279-b8a9-ea45eae16ebe update-grub
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.13.0-32-generic
Found initrd image: /boot/initrd.img-3.13.0-32-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 7 (loader) on /dev/sda1
Found Windows 7 (loader) on /dev/sda2
Unhide GRUB boot menu in sdb5/boot/grub/grub.cfg
Le démarrage de l'ordinateur a été correctement réparé.
Vous pouvez maintenant redémarrer votre ordinateur.
N'oubliez pas de régler votre BIOS pour qu'il amorce sur le disque amovible !
Download as text
Le paramétrage de grub me semble correct aux variables grub_cpu et grub_platform près c'est peut-être le problème.
La commande ls indique 3 disques, le disque externe hd0 + hd1 et hd2.
Je ne comprends pas ce que sont ces deux disques hd1 et hd2, dans le boot-info seuls deux disques sont détectés, le disque interne noté /dev/sda (Windows) et le disque externe noté /dev/sdb (Ubuntu) hormis le cd.
As-tu bien reporté correctement la commande ls?
Ce n'est pas très important pour l'instant donnes le résultat de:
grub> ls /
je veux juste savoir si elle s'exécute correctement, elle doit comporter entre autres fichiers vmlinuz et initrd.img.
puis
grub> lsmod
Seule la colonne de gauche du résultat m'intéresse.
Dernière modification par maxire (Le 13/12/2014, à 12:27)
Maxire
Archlinux/Mate + Ubuntu 22.04 + Archlinux/Gnome sur poste de travail
Hors ligne
#8 Le 13/12/2014, à 12:56
- gegewood
Re : problème installation sur disque dur externe
bonjour,
résultat de la commande ls /
./ ../ lost+found/ etc/ media/ bin/ boot/ dev/ home/ li/ lib64/ mnt/ opt/ proc/ root/ run/ sbin/ srv/ tmp/ usr/ var/
vmlinuz initrd.img cdrom/
lsmod command not found
Hors ligne
#9 Le 13/12/2014, à 13:03
- gegewood
Re : problème installation sur disque dur externe
pardon, j'ai oublié de préciser pour les disques: j 'ai un disque de 80 giga formater en ntfs avec windows7, un disque de 500 giga ntfs pour mes données, et le disque dur externe sur lequel je voudrai installer ubuntu avec démarrage possible sur celui-ci quand il est branché
Hors ligne
#10 Le 13/12/2014, à 13:11
- maxire
Re : problème installation sur disque dur externe
lsmod command not found, intéressant.
Grub n'a pas accès à ses commandes de base.
Je réfléchis et surtout je déjeune, ce cas est inusité.
Maxire
Archlinux/Mate + Ubuntu 22.04 + Archlinux/Gnome sur poste de travail
Hors ligne
#11 Le 13/12/2014, à 13:15
- maxire
Re : problème installation sur disque dur externe
Je ne vois pas le disque ntfs de 500 G dans le boot-info, serait-ce un disque externe lui aussi?
Maxire
Archlinux/Mate + Ubuntu 22.04 + Archlinux/Gnome sur poste de travail
Hors ligne
#12 Le 13/12/2014, à 13:32
- gegewood
Re : problème installation sur disque dur externe
Non, disque dur SATA, mais dans le BIOS, dans harddisk, j ai bien les 3, mais dans boot je ne peux en mettre qu un en plus du lecteur de disque...bon appétit, et merci
Hors ligne
#13 Le 13/12/2014, à 14:53
- maxire
Re : problème installation sur disque dur externe
Pas normal qu'un disque interne ne soit pas détecté par boot-repair.
Habituellement avec deux disques internes et un disque externe boot-repair liste en /dev/sda et /dev/sdb les deux internes et /dev/sdc l'externe.
Je pense qu'il vaut mieux laisser tomber le démarrage via grub pour l'instant et investiguer un peu plus.
Tu démarres sur le disque d'installation Ubuntu, tu ouvres un terminal et tu donnes le résultat de:
sudo blkid
En fonction du résultat il sera peut-être possible de réaliser une réparation manuellement.
Maxire
Archlinux/Mate + Ubuntu 22.04 + Archlinux/Gnome sur poste de travail
Hors ligne
#14 Le 13/12/2014, à 15:38
- gegewood
Re : problème installation sur disque dur externe
Désolé de ne pas répondre plus rapidement, j ai un autre problème, mon ordi boucle sur le CD live j ai la mire ubuntu avec les petits points, mais il ne se passe rien. Je vais arrêter pour aujourd'hui , merci pour le temps passe a tenter de m aider. Je réessayerai plus tard
Hors ligne
#15 Le 13/12/2014, à 19:19
- gegewood
Re : problème installation sur disque dur externe
bonsoir,
j ai pu relancer ubuntu sur le cd. j'ai débranché mes disques durs, rebranché...donc je peux mettre lerésultat de la commande blkid
ubuntu@ubuntu:~$ sudo blkid
/dev/loop0: TYPE="squashfs"
/dev/sr0: LABEL="Ubuntu 14.04.1 LTS amd64" TYPE="iso9660"
/dev/sdb1: LABEL="RM-CM-)servM-CM-) au systM-CM-(me" UUID="1EC60D59C60D3297" TYPE="ntfs"
/dev/sdb2: UUID="ECDE817ADE813DB8" TYPE="ntfs"
/dev/sda1: LABEL="disque local" UUID="B85236235235E732" TYPE="ntfs"
/dev/sdc5: UUID="6165cd12-1bd5-4279-b8a9-ea45eae16ebe" TYPE="ext4"
/dev/sdc6: UUID="44ca4350-6543-4151-a06a-5e1bbf1314ce" TYPE="swap"
j'essayerai peut être de refaire l'installation en débranchant mes 2 disques dur ntfs
Hors ligne
#16 Le 13/12/2014, à 20:57
- maxire
Re : problème installation sur disque dur externe
Tu as du débrancher puis rebrancher tes disques durs pour pouvoir démarrer par cd, c'est bizarre, cela sent le problème matériel.
Cette fois tous les disques sont visibles, je ne comprends pas ce qui s'est passé avec boot-repair.
Tu peux tenter de réparer grub via un chroot.
Toujours sous Ubuntu en live-cd tu ouvres un terminal:
sudo mount /dev/sdc5 /mnt
for f in /dev /sys /proc /run ; do sudo mount --rbind $f /mnt$f ; done ;
sudo chroot /mnt
Tu te retrouves alors avec un prompt ressemblant à ceci:
root@ubuntu:/#
Tu fais alors:
apt-get update
apt-get dist-upgrade
grub-install --recheck --debug --target=i386-pc /dev/sdc
update-grub
exit
Ensuite:
for f in /dev /sys /proc /run ; do sudo umount -l /mnt$f ; done ;
sudo umount /mnt
Tu redémarres sur le disque externe et si cela ne marche pas, je ne vois pas du tout quoi faire d'autre.
Dernière modification par maxire (Le 13/12/2014, à 21:01)
Maxire
Archlinux/Mate + Ubuntu 22.04 + Archlinux/Gnome sur poste de travail
Hors ligne
#17 Le 14/12/2014, à 22:16
- gegewood
Re : problème installation sur disque dur externe
pour Maxire, merci encore pour le temps passé et les tentatives de dépannage, mais j ai abandonné le disque externe, lors des manips que tu m avais donné j avais des erreurs. je pense que le disque est endommagé. finalement j'ai partitionné mon disque de 500 giga, et j 'ai installe la 14.04 dessus. en mettant ce disque en premier dans le boot, j ai bien la possibilité de choisir soit ubuntu soit windows.
Hors ligne
#18 Le 15/12/2014, à 00:31
- sinbad83
Re : problème installation sur disque dur externe
Si tu as un doute sur ton disque, vérifie-le avec SmartMonTools. Doc sur https://doc.ubuntu-fr.org/smartmontools
La connaissance n'est pas une denrée rare, il faut la partager avec les autres.
Linux registered #484707
Site: www.coursinforev.org/doku.php
Desktop AMD Ryzen 5-3600, RAM 16GB, Ubuntu 20.10, HP Pavillon G6 Ubuntu 20.10 et Ten, Serveur Ubuntu 18.04
Hors ligne
#19 Le 15/12/2014, à 09:36
- maxire
Re : problème installation sur disque dur externe
Oui problème matériel, cela peut être le disque comme cela peut être la carte mère (reconnaissance bizarre des disques internes lorsqu'un disque externe est connecté).
Maxire
Archlinux/Mate + Ubuntu 22.04 + Archlinux/Gnome sur poste de travail
Hors ligne