Purchase Linux CDs / DVDs / Flash Drives at OSDisc.com

Welcome to Our Community

While Linux.org has been around for a while, we recently changed management and had to purge most of the content (including users). If you signed up before April 23rd please sign up again. Thanks!

Minimal BASH --- Grub --- error 17

Discussion in 'General Linux' started by Christina, Apr 26, 2017.

  1. Christina

    Christina Member

    Joined:
    Apr 26, 2017
    Messages:
    54
    Likes Received:
    8
    When I do:
    grub> ls /boot/vmlinuz-4.4.0-72-generic root=/dev/sda1
    It says:
    vmlinuz-4.4.0-72-generic
    error: file ;/dev/sda1' not found


     
  2. Christina

    Christina Member

    Joined:
    Apr 26, 2017
    Messages:
    54
    Likes Received:
    8
    grub> linux vmlinuz-4.4.0-47-generic root=/dev/sda1
    error: invalid file name 'vmlinuz-4.4.0-47-generic'

    do I have to do the set root first each time I try a new version and when do I hit tab
     
  3. Christina

    Christina Member

    Joined:
    Apr 26, 2017
    Messages:
    54
    Likes Received:
    8
    Think we can boot from the usb here? It is still in......
     
  4. atanere

    atanere Moderator
    Gold Supporter

    Joined:
    Apr 6, 2017
    Messages:
    331
    Likes Received:
    293
    I don't think you have to do set root each time (unless you reboot).

    I may have not copied/pasted correctly too... lets try this 2nd command again... remember that the command is "linux" now, and not "ls".

    grub> linux /boot/vmlinuz-4.4.0-47-generic root=/dev/sda1

    So I added /boot before vmlinuz.... but you should be able to type: linux /boot/vmli (and hit TAB), then put a space, and add the root= stuff at the end.
     
  5. atanere

    atanere Moderator
    Gold Supporter

    Joined:
    Apr 6, 2017
    Messages:
    331
    Likes Received:
    293
    No, I don't think the USB will work (easily, anyway) from the grub prompt. If you want to try USB, its better to go back to the other booting instruction to hold down the ESC key when turning on, and that should give you a choice of boot devices.
     
  6. Christina

    Christina Member

    Joined:
    Apr 26, 2017
    Messages:
    54
    Likes Received:
    8
    Ok, that gives me grub>
     
  7. Christina

    Christina Member

    Joined:
    Apr 26, 2017
    Messages:
    54
    Likes Received:
    8
    I think we might have it!! Ran through a whole bunch of stuff and now says to run fsck
     
    Rob likes this.
  8. atanere

    atanere Moderator
    Gold Supporter

    Joined:
    Apr 6, 2017
    Messages:
    331
    Likes Received:
    293
    Good! (I think!) It seems that it accepted the command. So the 3rd line is next, and the command you are giving is initrd... so like this:

    initrd /boot/initrd.img-4.4.0-47-generic (and like vmlinuz, you can TAB after typing /boot/init and it should complete for you).
     
  9. atanere

    atanere Moderator
    Gold Supporter

    Joined:
    Apr 6, 2017
    Messages:
    331
    Likes Received:
    293
    Yes? If you went through the 4th final command, and its booting... that would be great. I think it's okay to run fsck now if its prompting you for that. Lets see if Ubuntu starts!!!
     
  10. Christina

    Christina Member

    Joined:
    Apr 26, 2017
    Messages:
    54
    Likes Received:
    8
    I am up and running!! Now let's finish fixing this :)
     
    atanere likes this.
  11. atanere

    atanere Moderator
    Gold Supporter

    Joined:
    Apr 6, 2017
    Messages:
    331
    Likes Received:
    293
    Great! But you aren't quite out of the woods yet... this final step could fail, but I hope not.

    Open up a terminal, and give this command:

    Code:
    sudo update-grub
    Give it your root password, and then you'll see a bunch of stuff scroll by again.

    Then, one last command:

    Code:
    sudo grub-install /dev/sda
     
    Christina likes this.
  12. Christina

    Christina Member

    Joined:
    Apr 26, 2017
    Messages:
    54
    Likes Received:
    8
    Says:
    Installing for i386 -pc platform.
    Installation finished. No error reported
    then gives a command line
     
  13. atanere

    atanere Moderator
    Gold Supporter

    Joined:
    Apr 6, 2017
    Messages:
    331
    Likes Received:
    293
    OK. Say a little prayer, and reboot (or shutdown/restart... whatever you prefer). Good luck!!!!
     
  14. Christina

    Christina Member

    Joined:
    Apr 26, 2017
    Messages:
    54
    Likes Received:
    8
    Think I will save stuff first lol! I will let you know what happens
     
  15. atanere

    atanere Moderator
    Gold Supporter

    Joined:
    Apr 6, 2017
    Messages:
    331
    Likes Received:
    293
    Uhhh, sure... great idea! :D:D

    But if it fails, you can get back with those 4 commands again. Of course that's a big hassle.
     
  16. Christina

    Christina Member

    Joined:
    Apr 26, 2017
    Messages:
    54
    Likes Received:
    8
    WOOHOO!! It restarted!
    Now is there anything I can do about it being slow?
     
    atanere likes this.
  17. atanere

    atanere Moderator
    Gold Supporter

    Joined:
    Apr 6, 2017
    Messages:
    331
    Likes Received:
    293
    What? You think I'm a miracle worker?!?!? :p:D:D:D

    I very glad it booted... that's great! But I'm still concerned about some of the stuff going on with it, like if you are frequently needing to run fsck. And if you are able to boot on a USB or not... and even the DVD drive too. I do think you should make backups often for things that are really important, just in case it decides to quit for good.
     
    VP9KS, Rob and Christina like this.
  18. Christina

    Christina Member

    Joined:
    Apr 26, 2017
    Messages:
    54
    Likes Received:
    8
    I did backup important stuff. DVD drive is not working at all, won't read any disk I put in and hasn't for awhile..... I am half scared to try reaching bios again lol but can put the usb in and it reads it. Should I try a live boot while I have this up? Like I said, computer is about 7 yrs old or so and hard drive is a little older lol AND it is on 24/7 even though it is a laptop because my husband is computer illiterate and can't start it lol so I leave it on all the time for him to look at stuff on ebay
     
  19. atanere

    atanere Moderator
    Gold Supporter

    Joined:
    Apr 6, 2017
    Messages:
    331
    Likes Received:
    293
    You can try to boot on the USB, but I'm guessing that it won't (or else it would have earlier)

    If it doesn't boot on it by itself, you can do the "hold the ESC key" thing and see if the USB shows up in that boot menu, and boot on it like that if it shows up. If you want to always be able to boot on USB, you'll have to make a change in the BIOS to put the USB 1st in the boot order. I'm sure the setting is in there, but might take a bit to find and set it and save it.
     
  20. Christina

    Christina Member

    Joined:
    Apr 26, 2017
    Messages:
    54
    Likes Received:
    8
    It recognizes the usb and shows Ubuntu-16.04.2-desktop-amd64.iso

    I don't know exactly what to do now
     

Share This Page