Announcement

Collapse
No announcement yet.

pc boots with GNU GRUB

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [System] pc boots with GNU GRUB

    pc shows that text and i cant do it anything for ex. boot normally :

    minimal bash-like line editing is supported. for the first word tab lists possible command completions. anywhere else tab lists possible device or file completions.

    grub>

    #2
    I found this while DDG'ing your problem:
    https://askubuntu.com/questions/1003...be-stuck-there

    I have resolved my issue so I decided to answer my own question.
    I was able to boot my computer through GRUB, by making minor adaptations to the instructions here:
    https://www.linux.com/learn/how-resc...g-grub-2-Linux

    At the GRUB prompt, I typed: "ls" to get a list of all partitions.

    The list looked something like this: (hd0) (hd0,gpt1) (hd0,gpt2) ...


    After I got a list of partitions, I then typed: "ls (hd0,1)/" to determine if the boot menu was in that partition. Note that at this point you can drop "gpt" and just go with the number of the partition. I did this for every partition until I found out which one contained the boot directory.


    For me it turned out that the boot menu was in (hd0,2)


    So then I typed the following command: "ls (hd0,2)/boot" to get a list of files in the boot directory.


    The important files in this regard, as I understand from the above link, are a file called vmlinuz and a file called initrd.img. I suppose it is normal that there will be different versions of these two files (among other files in the boot menu). In any case, I noted the latest version for both, and it is important, apparently, that both vmlinuz and initrd have the same version number.


    Having noted that, I then typed the following commands. The partition number and version number may be different for other people, but it is important, as mentioned, that vmlinuz and initrd have the same version number, and that the number following "sda" corresponds to the partition number.


    grub> set root=(hd0,2)
    grub> linux /boot/vmlinuz-4.4.0-89-generic root=/dev/sda2
    grub> initrd /boot/initrd.img-4.4.0-89-generic
    grub> boot


    And it worked, in the sense that it booted, without any apparent error messages. I don't know if I can reboot, but I now have the opportunity to copy all files that weren't backed up to an external hard-disk. Plus I'll probably download and make a new installation DVD. (I had misplaced my original installation DVD, which was part of my problem). And then I'll try to reboot.

    ...


    "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
    – John F. Kennedy, February 26, 1962.

    Comment


      #3
      boot repair didnt solve boot problem

      it didnt solve.

      the output :
      https://paste.ubuntu.com/p/xcYcSTC65T/

      how can i solve?

      Comment


        #4
        It seems that you hibernated Windows before you attempted to install or boot into Kubuntu. Do what the error msg told you, THREE times:
        Windows is hibernated, refused to mount.
        The disk contains an unclean file system (0, 0).
        Metadata kept in Windows cache, refused to mount.
        Falling back to read-only mount because the NTFS partition is in an
        unsafe state. Please resume and shutdown Windows fully (no hibernation
        or fast restarting.)

        The disk contains an unclean file system (0, 0).
        Metadata kept in Windows cache, refused to mount.
        Falling back to read-only mount because the NTFS partition is in an
        unsafe state. Please resume and shutdown Windows fully (no hibernation
        or fast restarting.)
        The disk contains an unclean file system (0, 0).
        Metadata kept in Windows cache, refused to mount.
        Falling back to read-only mount because the NTFS partition is in an
        unsafe state. Please resume and shutdown Windows fully (no hibernation
        or fast restarting.)
        and, don't start a new thread for an existing problem. You should have posted this under the link you gave.
        "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
        – John F. Kennedy, February 26, 1962.

        Comment


          #5
          Threads merged.
          Windows no longer obstructs my view.
          Using Kubuntu Linux since March 23, 2007.
          "It is a capital mistake to theorize before one has data." - Sherlock Holmes

          Comment


            #6
            Originally posted by GreyGeek View Post
            It seems that you hibernated Windows before you attempted to install or boot into Kubuntu. Do what the error msg told you, THREE times:

            and, don't start a new thread for an existing problem. You should have posted this under the link you gave.
            I found a solution for Pardus linux like this:

            sudo fdisk -l komutu ile sisteminizin kurulu olduğu disk bölümünü tespit ediniz.sudo mount /dev/sdx? /mnt komutu ile sisteminizin kurulu olduğu bölümü bağlayınız. /sdx? yerine sisteminizin yüklü olduğu kendi disk bölümünüzü yanınız (sda2, sda3, sdf1 vb)
            sudo mount --bind /dev /mnt/dev komutu ile gerekli olacak bölümü ekleyiniz.
            sudo chroot /mnt komutuyla /mnt altında yetkili olarak işlem yapmamız sağlanacaktır.
            sudo grub-install /dev/sda komutuyla grub önyükleyicisini yeniden kurabilirsiniz.
            sudo update-grub
            Kurulum tamamlandı. Hata rapor edilmedi, görüyor iseniz işlem tamamdır.
            sudo grub-install --recheck /dev/sda ile tekrar kontrol edebilirsiniz.

            Bağlı diskleri aşağıdaki komutlar ile ayırıp yeniden başlatınız.
            sudo umount /mnt/dev
            sudo umount /mnt

            sudo reboot
            in second line says write the disk partition which contains linux after /dev/

            "sudo mount /dev/sdx? /mnt"

            but i dont know which disk partition contains my linux

            my fdisk output:

            To run a command as administrator (user "root"), use "sudo <command>".See “man sudo_root” for details.
            kubuntu@kubuntu:~$ sudo fdisk -l
            Disk /dev/loop0: 1,7 GiB, 1777819648 bytes, 3472304 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 /dev/sda: 232,9 GiB, 250059350016 bytes, 488397168 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
            Disklabel type: gpt
            Disk identifier: 78C78D23-C201-42DE-861C-C141169ED2B2

            Device Start End Sectors Size Type
            /dev/sda1 2048 1026046 1023999 500M EFI System
            /dev/sda2 1026048 247835556 246809509 117,7G Microsoft basic data
            /dev/sda3 247836672 248776703 940032 459M Windows recovery environment
            /dev/sda4 248778752 249040895 262144 128M Microsoft reserved
            /dev/sda5 249040896 488396799 239355904 114,1G Microsoft basic data

            Disk /dev/sdb: 931,5 GiB, 1000204886016 bytes, 1953525168 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
            Disklabel type: dos
            Disk identifier: 0x1487bb81


            Device Boot Start End Sectors Size Id Type
            /dev/sdb1 * 212 82131 81920 40M ef EFI (FAT-12/16/32)
            /dev/sdb2 83968 1953521663 1953437696 931,5G c W95 FAT32 (LBA)

            kubuntu@kubuntu:~$


            can you
            analyze that which disk part. is correct for me?

            Comment


              #7
              also pasted link contains some outputs about disk infos.

              Comment


                #8
                opps bios doesnt detect ssd which contains linux

                Comment


                  #9
                  "sudo fdisk -l" does indeed detect and show my ssd, which is at sda1.

                  A partition formatted with EXT4 or Btrfs will show "Linux" or "Linux Filesystem" as the type.

                  Did you, perchance, install Kubuntu on sdb2 ? (A FAT32 partition).
                  "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
                  – John F. Kennedy, February 26, 1962.

                  Comment


                    #10
                    [Content deleted by Administrator]
                    Last edited by Snowhog; Sep 05, 2018, 02:24 PM. Reason: Spammer

                    Comment


                      #11
                      Fake msg
                      "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
                      – John F. Kennedy, February 26, 1962.

                      Comment

                      Working...
                      X