Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 45

Thread: Kernel reinstallation via chroot on encrypted sda5

  1. #21
    Join Date
    Apr 2014
    Beans
    22

    Re: Kernel reinstallation via chroot on encrypted sda5

    Code:
    mint / # apt-get install linux-generic linux-headers-generic linux-image-generic
    reading package lists...
    building dependency tree
    reading state information...
    linux-generic is already the newest version.
    linux-generic set to manually installed
    linux-headers-generic is already the newest version
    linux-image-generic is already the newest version
    linux-image-generic set to manually installed
    0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded
    Huh. so the headers weren't installed?

  2. #22
    Join Date
    Apr 2014
    Beans
    22

    Re: Kernel reinstallation via chroot on encrypted sda5

    It seems like my bootloader is pointing to /dev/mapper/mint--vg-root but it doesn't exist yet. Maybe whatever builds this doesn't luksopen the drive first?

    is this something that will help ? http://madduck.net/docs/cryptdisk/
    Last edited by apt2; April 13th, 2014 at 10:46 PM.

  3. #23
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    10,329
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Kernel reinstallation via chroot on encrypted sda5

    apt2; As the plot thickens even more:

    OK, held package:
    What returns in that chroot:
    Code:
    apt-mark showholds
    apt-mark showauto | grep linux-image
    apt-mark showmanual | grep linux-image
    Back to the consideration, installing grub.

    Keep in mind that there can only be one grub to control the boot process. That one is from the 'primary' operating system.
    With that in mind, what is now installed as an operating system onto sda1 ? As sda5 contains Mint, is Mint to be the 'primary' operating system ?

    Now, not that I know a lot, but in my limited experience, boot-repair does not cope well with chainloading another linux operating system. I generally try and find a "cause of failure" and repair the fault manually. That procedure generally starts with installing grub to the MBR of the drive that holds that 'primary' operating system, checking from the installed's grub prompt what it sees, booting that 'primary' and updating grub from here ( make sure any secondary systems 30_osprober utility is disabled !). The only job that a bootloader has is to load a kernel into memory and start that de-compression. Once that is done, the bootloader is out of the picture. Our job here is to direct the bootloader in loading that kernel into memory. The way I see it - if that originating kernel resides within encrypted user space - we have a problem.

    reduce to simplest terms
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

  4. #24
    Join Date
    Apr 2014
    Beans
    22

    Re: Kernel reinstallation via chroot on encrypted sda5

    Code:
    mint / # apt-mark showholds
    
    mint / # apt-mark showauto | grep linux-image
    linux-image-3.11.0-19-generic
    linux-image-extra-3.11.0-19-generic
    
    mint / # apt-mark showmanual | grep linux-image
    linux-image
    linux-image-generic

    I think only an update-grub was performed sda1, well, that and boot-repair probably did something with it.

    I need to take a break, I can't think anymore. be back in a few hours.. I need to stop burning up time on this.. after tonight i'm probably just reformatting.

  5. #25
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    10,329
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Kernel reinstallation via chroot on encrypted sda5

    apt2; Roger that.

    Next in line is to deal with the held linux-image and linux-image-generic.

    Will take that up when you are ready. ( I'll burn out here in about 3 hours).

    it is what it is
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

  6. #26
    Join Date
    Apr 2014
    Beans
    22

    Re: Kernel reinstallation via chroot on encrypted sda5

    well, i'm back.. got a little nap in. I am up for any suggestions, still chrooted in

  7. #27
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    10,329
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Kernel reinstallation via chroot on encrypted sda5

    apt2; Still here .

    Ok let's clear the hold:
    Code:
    apt-mark markauto linux-image.*
    and try the install of the images again.

    Back on topic: what/which partition is to be the 'primary' operating system > sda1 or sda5 ?
    As the determining factor to install grub to the MBR is what system is to be in control of the booting process.

    small steps,
    makes progress
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

  8. #28
    Join Date
    Apr 2014
    Beans
    22

    Re: Kernel reinstallation via chroot on encrypted sda5

    Thank you Bashing, for all your time and help!

    The primary os is on partition sda5.

    apt-mark showauto | grep linux-image now shows:

    linux-image
    linux-image-3.11.0-19-generic
    linux-image-extra-3.11.0-19-generic
    linux-image-generic
    Last edited by apt2; April 14th, 2014 at 01:25 AM.

  9. #29
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    10,329
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Kernel reinstallation via chroot on encrypted sda5

    apt2;
    OK ,

    Now as sda5 is the 'primary, I suggest that 30_osprober be turned off in the sda1 install and update that grub, prior to returning to Mint in sda5 and purging / (RE-)installing grub ; then see if you can reboot into the install on sda5.

    So presently, are you able to chroot into sda1 ?

    making progress
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

  10. #30
    Join Date
    Apr 2012
    Beans
    6,421

    Re: Kernel reinstallation via chroot on encrypted sda5

    Sorry I think the linux-image getting marked as manual was probably my fault for suggesting that you install linux-image (instead of linux-image-generic)

    Now back to the regularly scheduled program...

Page 3 of 5 FirstFirst 12345 LastLast

Tags for this Thread

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
  •