|
From: | André L |
Subject: | please how to fix grub after re-installing windows 7? |
Date: | Fri, 26 Oct 2012 20:09:31 +0300 |
address@hidden:~$ sudo fdisk -l Disco /dev/sda: 320.1 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders, total de 625142448 setores Unidades = setores de 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Identificador do disco: 0x80000000 Dispositivo Boot Início Fim Blocos Id Sistema /dev/sda1 63 257039 128488+ de Utilitário Dell /dev/sda2 257040 4466069 2104515 c W95 FAT32 (LBA) /dev/sda3 * 4466070 540519260 268026595+ 7 HPFS/NTFS/exFAT /dev/sda4 540520446 625137344 42308449+ 5 Estendida /dev/sda5 619161228 625137344 2988058+ 82 Linux swap / Solaris /dev/sda6 615843840 619159551 1657856 82 Linux swap / Solaris /dev/sda7 609636352 615835647 3099648 82 Linux swap / Solaris /dev/sda8 540520448 603424767 31452160 83 Linux /dev/sda9 603426816 609634303 3103744 82 Linux swap / Solaris Partições lógicas fora da ordem do disco address@hidden:~$ sudo mount /dev/sda8 /mnt address@hidden:~$ sudo grub-install --root-directory=/mnt//dev/sda install_device not specified. Usage: grub-install [OPTION] install_device Install GRUB on your drive. -h, --help print this message and exit -v, --version print the version information and exit --modules=MODULES pre-load specified modules MODULES --boot-directory=DIR install GRUB images under the directory DIR/grub instead of the /boot/grub directory --grub-setup=FILE use FILE as grub-setup --grub-mkimage=FILE use FILE as grub-mkimage --grub-mkrelpath=FILE use FILE as grub-mkrelpath --grub-mkdevicemap=FILE use FILE as grub-mkdevicemap --grub-probe=FILE use FILE as grub-probe --no-floppy do not probe any floppy drive --allow-floppy Make the drive also bootable as floppy (default for fdX devices). May break on some BIOSes. --recheck probe a device map even if it already exists --force install even if problems are detected --disk-module=MODULE disk module to use INSTALL_DEVICE can be a GRUB device name or a system device filename. grub-install copies GRUB images into /boot/grub, and uses grub-setup to install grub into the boot sector. Report bugs to <address@hidden>. address@hidden:~$ |
[Prev in Thread] | Current Thread | [Next in Thread] |