Page 37 of 232 FirstFirst ... 2735363738394787137 ... LastLast
Results 361 to 370 of 2319

Thread: [Boot-Repair] Graphical tool to repair the PC boot in one click

  1. #361
    Join Date
    Jun 2008
    Location
    Singapore
    Beans
    160

    Re: [Boot-Repair] Graphical tool to repair the PC boot in 1 click!

    I get errors:
    for w in dev dev/pts proc sys; do sudo mount -B /mnt/$w ; done
    mount: can't find /mnt/dev in /etc/fstab or /etc/mtab
    mount: can't find /mnt/dev/pts in /etc/fstab or /etc/mtab
    mount: can't find /mnt/proc in /etc/fstab or /etc/mtab
    mount: can't find /mnt/sys in /etc/fstab or /etc/mtab

    root@ubuntu:/# apt-get install -f
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following package was automatically installed and is no longer required:
    efibootmgr
    Use 'apt-get autoremove' to remove them.
    0 upgraded, 0 newly installed, 0 to remove and 109 not upgraded.
    1 not fully installed or removed.
    After this operation, 0 B of additional disk space will be used.
    Can not write log, openpty() failed (/dev/pts not mounted?)
    Setting up grub-pc (1.99-21ubuntu3) ...
    grub-probe: error: cannot find a device for / (is /dev mounted?).
    grub-probe: error: cannot find a device for /boot (is /dev mounted?).
    grub-probe: error: cannot find a device for /boot/grub (is /dev mounted?).
    /usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?).
    dpkg: error processing grub-pc (--configure):
    subprocess installed post-installation script returned error exit status 1
    Errors were encountered while processing:
    grub-pc
    E: Sub-process /usr/bin/dpkg returned an error code (1)


    root@ubuntu:/# grub-setup
    No device is specified.
    Usage: grub-setup [OPTION...] DEVICE
    Try `grub-setup --help' or `grub-setup --usage' for more information.
    root@ubuntu:/#


    root@ubuntu:/# grub-install
    install_device not specified.
    Usage: grub-install [OPTION] install_device
    Install GRUB on your drive.


    root@ubuntu:/# update-grub
    /usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?).
    root@ubuntu:/#


    So I hope these error messages give you a clue?

    Regards

  2. #362
    Join Date
    Jan 2008
    Location
    France
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: [Boot-Repair] Graphical tool to repair the PC boot in 1 click!

    ahh sorry, the mount line was still incorrect. i fixed it again: http://ubuntuforums.org/showpost.php...&postcount=358

    please reboot again before retrying.
    Last edited by YannBuntu; May 10th, 2012 at 01:50 PM.

  3. #363
    Join Date
    Jun 2008
    Location
    Singapore
    Beans
    160

    Re: [Boot-Repair] Graphical tool to repair the PC boot in 1 click!

    Quote Originally Posted by YannBuntu View Post
    ahh sorry, the mount line was still incorrect. i fixed it again: http://ubuntuforums.org/showpost.php...&postcount=358

    please reboot again before retrying.
    It went well as far as grub-install
    I then got
    root@ubuntu:/# grub-install
    install_device not specified.
    Usage: grub-install [OPTION] install_device
    Install GRUB on your drive.

    Nearly there?
    Cheers

  4. #364
    Join Date
    Jan 2008
    Location
    France
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: [Boot-Repair] Graphical tool to repair the PC boot in 1 click!

    what were the outputs of the previous commands?

    please update Boot-Repair, then click "Create BootInfo report", and indicate the URL.
    Last edited by YannBuntu; May 10th, 2012 at 03:40 PM.

  5. #365
    Join Date
    Jun 2008
    Location
    Singapore
    Beans
    160

    Re: [Boot-Repair] Graphical tool to repair the PC boot in 1 click!

    Quote Originally Posted by YannBuntu View Post
    what were the outputs of the previous commands?

    please update Boot-Repair, then click "Create BootInfo report", and indicate the URL.
    in reverse order:
    root@ubuntu:/# apt-get install -f
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following package was automatically installed and is no longer required:
    efibootmgr
    Use 'apt-get autoremove' to remove them.
    0 upgraded, 0 newly installed, 0 to remove and 109 not upgraded.

    root@ubuntu:/# dpkg --configure -a
    Setting up grub-pc (1.99-21ubuntu3) ...
    /usr/sbin/grub-setup: warn: Attempting to install GRUB to a partitionless disk or to a partition. This is a BAD idea..
    /usr/sbin/grub-setup: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
    Installation finished. No error reported.
    Generating grub.cfg ...
    Found linux image: /boot/vmlinuz-3.2.0-23-generic
    Found initrd image: /boot/initrd.img-3.2.0-23-generic
    done

    root@ubuntu:/# dpkg --configure -a
    Setting up grub-pc (1.99-21ubuntu3) ...
    /usr/sbin/grub-setup: warn: Attempting to install GRUB to a partitionless disk or to a partition. This is a BAD idea..
    /usr/sbin/grub-setup: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
    Installation finished. No error reported.
    Generating grub.cfg ...
    Found linux image: /boot/vmlinuz-3.2.0-23-generic
    Found initrd image: /boot/initrd.img-3.2.0-23-generic
    done


    root@ubuntu:/# apt-get update
    this seems to run fine. long output until
    Fetched 19.0 MB in 48s (396 kB/s)
    Reading package lists... Done

    That's the end of my term buffer

  6. #366
    Join Date
    Jan 2008
    Location
    France
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: [Boot-Repair] Graphical tool to repair the PC boot in 1 click!

    ok. That confirms that currently your system does not have grub-efi installed.

    Now please:
    1) from a live-cd, please connect internet, run Boot-Repair, update it, click the "Create BootInfo" button, note the new URL (URL n°1) that will appear.
    then type in a terminal:

    Code:
    sudo mount /dev/sda2 /mnt
    sudo mount /dev/sda1 /mnt/boot/efi
    for w in dev dev/pts proc sys; do sudo mount -B /$w /mnt/$w ; done
    sudo cp /etc/resolv.conf /mnt/etc/resolv.conf
    sudo chroot /mnt
    Immediately, in the #chroot invite, type:
    Code:
    apt-get update
    apt-get purge -y grub-pc
    apt-get install -y grub-efi
    grub-install
    update-grub
    Please indicate the outputs of the 5 last commands, and the URL n°1.

    2)Then reboot on your live-CD, run Boot-Repair, update it, click the "Create BootInfo" button, indicate the new URL (URL n°2) that will appear.
    Last edited by YannBuntu; May 12th, 2012 at 09:24 PM. Reason: removed grub-setup (useless for efi)

  7. #367
    Join Date
    Jun 2008
    Location
    Singapore
    Beans
    160

    Re: [Boot-Repair] Graphical tool to repair the PC boot in 1 click!

    OK, I will do this later tonight
    Thanks

  8. #368
    Join Date
    Jun 2008
    Location
    Singapore
    Beans
    160

    Re: [Boot-Repair] Graphical tool to repair the PC boot in 1 click!

    URL No 1: Please note the following URL: http://paste.ubuntu.com/980371/

  9. #369
    Join Date
    Jun 2008
    Location
    Singapore
    Beans
    160

    Re: [Boot-Repair] Graphical tool to repair the PC boot in 1 click!

    ubuntu@ubuntu:~$ sudo mount /dev/sda2 /mnt
    ubuntu@ubuntu:~$

    ubuntu@ubuntu:~$ sudo mount /dev/sda1 /mnt/boot/efi
    ubuntu@ubuntu:~$

    ubuntu@ubuntu:~$ for w in dev dev/pts proc sys; do sudo mount -B /$w /mnt/$w ; done
    ubuntu@ubuntu:~$

    ubuntu@ubuntu:~$ sudo cp /etc/resolv.conf /mnt/etc/resolv.conf
    ubuntu@ubuntu:~$

    ubuntu@ubuntu:~$ sudo chroot /mnt
    root@ubuntu:/#

    root@ubuntu:/# apt-get update
    Ign http://extras.ubuntu.com precise InRelease
    etc...

    root@ubuntu:/# apt-get purge -y grub-pc
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following package was automatically installed and is no longer required:
    efibootmgr
    Use 'apt-get autoremove' to remove them.
    The following packages will be REMOVED:
    grub-gfxpayload-lists* grub-pc*
    0 upgraded, 0 newly installed, 2 to remove and 109 not upgraded.
    After this operation, 522 kB disk space will be freed.
    (Reading database ... 187848 files and directories currently installed.)
    Removing grub-pc ...
    Purging configuration files for grub-pc ...
    Removing grub-gfxpayload-lists ...
    Processing triggers for man-db ...
    root@ubuntu:/#

    root@ubuntu:/# apt-get install -y grub-efi
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following package was automatically installed and is no longer required:
    grub-pc-bin
    Use 'apt-get autoremove' to remove them.
    The following extra packages will be installed:
    grub-efi-amd64 grub-efi-amd64-bin
    The following NEW packages will be installed:
    grub-efi grub-efi-amd64 grub-efi-amd64-bin
    0 upgraded, 3 newly installed, 0 to remove and 109 not upgraded.
    Need to get 654 kB of archives.
    After this operation, 2,122 kB of additional disk space will be used.
    Get:1 http://gb.archive.ubuntu.com/ubuntu/ precise/main grub-efi-amd64-bin amd64 1.99-21ubuntu3 [614 kB]
    Get:2 http://gb.archive.ubuntu.com/ubuntu/ precise/main grub-efi-amd64 amd64 1.99-21ubuntu3 [38.9 kB]
    Get:3 http://gb.archive.ubuntu.com/ubuntu/ precise/main grub-efi amd64 1.99-21ubuntu3 [1,098 B]
    Fetched 654 kB in 21s (30.8 kB/s)
    Preconfiguring packages ...
    Selecting previously unselected package grub-efi-amd64-bin.
    (Reading database ... 187823 files and directories currently installed.)
    Unpacking grub-efi-amd64-bin (from .../grub-efi-amd64-bin_1.99-21ubuntu3_amd64.deb) ...
    Selecting previously unselected package grub-efi-amd64.
    Unpacking grub-efi-amd64 (from .../grub-efi-amd64_1.99-21ubuntu3_amd64.deb) ...
    Selecting previously unselected package grub-efi.
    Unpacking grub-efi (from .../grub-efi_1.99-21ubuntu3_amd64.deb) ...
    Processing triggers for man-db ...
    Setting up grub-efi-amd64-bin (1.99-21ubuntu3) ...
    Setting up grub-efi-amd64 (1.99-21ubuntu3) ...

    Creating config file /etc/default/grub with new version
    BootCurrent: 0004
    Timeout: 0 seconds
    BootOrder: 0004,0003,0005,0006,0002
    Boot0000 Setup
    Boot0001 Boot Menu
    Boot0002* USB FDD:
    Boot0003* ATA HDD0: WDC WD5000BPVT-24HXZT3
    Boot0004* USB HDD:
    Boot0005* USB CD:
    Boot0006* PCI LAN: Realtek PXE B02 D00
    Installation finished. No error reported.
    Setting up grub-efi (1.99-21ubuntu3) ...
    root@ubuntu:/#

    But here I hit a snag:
    root@ubuntu:/# grub-setup
    The program 'grub-setup' is currently not installed. You can install it by typing:
    apt-get install grub-pc
    root@ubuntu:/#

    Shall I do 'apt-get install grub-pc'?
    Seems it mught interfere with the previous command

  10. #370
    Join Date
    Jun 2008
    Location
    Singapore
    Beans
    160

    Re: [Boot-Repair] Graphical tool to repair the PC boot in 1 click!

    However the next command worked:
    root@ubuntu:/# grub-install
    BootCurrent: 0004
    Timeout: 0 seconds
    BootOrder: 0004,0003,0005,0006,0002
    Boot0000 Setup
    Boot0001 Boot Menu
    Boot0002* USB FDD:
    Boot0003* ATA HDD0: WDC WD5000BPVT-24HXZT3
    Boot0004* USB HDD:
    Boot0005* USB CD:
    Boot0006* PCI LAN: Realtek PXE B02 D00
    Installation finished. No error reported.
    root@ubuntu:/#

    and finally:
    root@ubuntu:/# grub-install
    BootCurrent: 0004
    Timeout: 0 seconds
    BootOrder: 0004,0003,0005,0006,0002
    Boot0000 Setup
    Boot0001 Boot Menu
    Boot0002* USB FDD:
    Boot0003* ATA HDD0: WDC WD5000BPVT-24HXZT3
    Boot0004* USB HDD:
    Boot0005* USB CD:
    Boot0006* PCI LAN: Realtek PXE B02 D00
    Installation finished. No error reported.
    root@ubuntu:/# update-grub
    Generating grub.cfg ...
    Found linux image: /boot/vmlinuz-3.2.0-23-generic
    Found initrd image: /boot/initrd.img-3.2.0-23-generic
    done
    Will reboot now

Page 37 of 232 FirstFirst ... 2735363738394787137 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •