Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Install Ubuntu outside the PC target

  1. #1
    Join Date
    Sep 2020
    Beans
    6

    Install Ubuntu outside the PC target

    Hi everyone !
    I try to install Ubuntu on an old PC with a brand new SSD (Crucial BX500 240GO). I had some hardware trouble : it seems that I can't install any OS through the old computer (neither Windows, Ubuntu or Xubuntu).
    So I've tried to install Ubuntu from a newer laptop (host). It works fine but when I plug the SSD on the old PC (target), it doesn't boot.
    I've searched a lot and it seems that the problem comes from the compatibility between hardwares : the host is in UEFI mode and the target is in Legacy mode only (old computer).

    I tried some tutorials for installing Ubuntu in Legacy mode, such as :
    - Before installing, select "Do something else"
    - Deleting all partitons
    - Creating ext4 /boot 500Mo partition
    - Creating swap 4096Mo partition
    - Creating ext4 root "/" partition with the rest

    It didn't work, I have some trouble during the boot period. I tried a Repair-Boot and then I had
    Code:
    Missing operating system
    Reboot and Select proper Boot device or Insert Boot Media in selected Boot device and press a key
    Here are the boot-info
    - Before repair-boot : http://paste.ubuntu.com/p/Mz8rHMKD2q/
    - After repair-boot : http://paste.ubuntu.com/p/Yyj4Vk7p7n/

    Does anyone can help me to find what's wrong ?
    Thanks a lot !
    Last edited by titi118; September 25th, 2020 at 06:45 PM.

  2. #2
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Install Ubuntu outside the PC target

    Is old computer before 2012 and therefore probably BIOS only?
    Microsoft required vendors to install in UEFI/gpt mode starting with Windows 8 release in 2012.

    Did you update SSD firmware when connected to laptop.

    You have syslinux in MBR which is a Windows type boot loader. But you need grub in MBR to correctly boot.
    And you are showing corruption on the sda1 & sda6 ext4 partitions.
    Mounting failed: mount: /mnt/BootInfo/sda1: cannot mount; probably corrupted filesystem on /dev/sda1.
    To see all the ext4 partitions
    sudo parted -l
    #From liveDVD/Flash so everything is unmounted,swap off if necessary, change example shown with partition sdb1 to your partition(s)
    #e2fsck is used to check the ext2/ext3/ext4 family of file systems. -p tries fixes where response not required, Run both commands as they have different parameters.
    sudo e2fsck -C0 -p -f -v /dev/sdb1
    # -y auto answers yes for fixes needing response, also see man e2fsck
    sudo e2fsck -f -y -v /dev/sdb1

    I now prefer to use gpt partitioning even with most BIOS only systems. The only reason to still have MBR, is if you have Windows in BIOS boot mode.

    I have used gpt starting in 2010 with my BIOS only system.
    But gpt with BIOS also needs a 1MB unformatted bios_grub partition for grub to install correctly.
    Also newer Ubuntu now uses a swap file, so swap partition not required. But if using swap partition better to have it last, just to be out of the way.
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  3. #3
    Join Date
    Sep 2020
    Beans
    6

    Re: Install Ubuntu outside the PC target

    Yes it's an old computer before 2012 >>> BIOS only
    I did not update SSD firmware but I know it works fine (CrystalDiskInfo)

    Something went wrong with the previous installation. I did it again properly, here is the boot-info from the host PC http://paste.ubuntu.com/p/q32tySwF2G
    There are 2 partitions : one for the Grub (1Go '/boot') et one for the rest (239Go '/' ).

    Now, when I plug the SSD into the pc target, it takes a long time to display Ubuntu (like 5min, on a SSD it's a bit weird) then, the charging logo spin and spin and spin... And nothing happened.

    The boot-info says :
    Code:
    The default repair of the Boot-Repair utility would reinstall the grub2 ofsda2 into the MBR of sda,
    using the following options:        sda1/boot, Additional repair would be performed: unhide-bootmenu-10s
    I'm not use to the concept of MBR, I don't know if it says this because I'm trying to do a Legacy install or if I really should do that.

  4. #4
    Join Date
    Jun 2010
    Location
    London, England
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Install Ubuntu outside the PC target

    I'm not use to the concept of MBR, I don't know if it says this because I'm trying to do a Legacy install or if I really should do that.
    Modern motherboards have a UEFI (Unified Extensible Firmware Interface) motherboard set up utility. With UEFI we can install in UEFI mode or legacy mode. Older motherboards have a BIOS (Basic Input Output System) motherboard set up utility. So, we have to install in BIOS/legacy mode.

    The Master Boot Record (MBR) is the information in the first sector of any hard disk or diskette that identifies how and where an operating system is located so that it can be boot (loaded) into the computer's main storage or random access memory.
    Boot-Repair is suggesting reinstalling Grub into the MBR because your SSD is formatted as MBR.

    (GUID Partition Table) The format used to define the hard disk partitions in computers with UEFI startup firmware. The GUID Partition Table (GPT) replaces the previous master boot record (MBR) method. While the MBR supported partitions as large as 2.2TB, GPT partitions can be up to 18 exabytes.
    As previously stated hard drives in a BIOS motherboard machine can be formatted as either MBR or GPT. I have a BIOS motherboard with 2 hard drives. One is MBR and the other is GPT. My system works fine.

    Regards
    It is a machine. It is more stupid than we are. It will not stop us from doing stupid things.
    Ubuntu user #33,200. Linux user #530,530


  5. #5
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Install Ubuntu outside the PC target

    It must not be that old as it shows an ESP. Line 55
    EFI in dmesg.
    It looks like a standard BIOS/MBR configuration.
    Generally if just desktop use, you do not need /boot as separate partition. Some very old systems needed all boot files in first 137GB of a drive, but then better to have smaller / (root) of 25 or 30GB and rest of drive as /home.

    That Windows sees SSD, is not same as Linux seeing SSD.

    Slow Boot --------------------------------
    https://ubuntuforums.org/showthread....9#post13932499
    https://ubuntuforums.org/showthread.php?t=2417453 &
    https://ubuntuforums.org/showthread....2#post13857392 &
    https://www.dedoimedo.com/computers/...slow-boot.html

    https://askubuntu.com/questions/1187...ost-everything &
    https://askubuntu.com/questions/1018...ine-service-do &
    https://askubuntu.com/questions/8004...-daily-service
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  6. #6
    Join Date
    Sep 2020
    Beans
    6

    Re: Install Ubuntu outside the PC target

    Thanks for your advices and explanations !
    I must say, this is the boot-info of the host PC and no the target PC. So indeed, it has EFI.

    For the slow boot : thanks for the links but like i said, it doesnt boot until the end... Just keep spining...

  7. #7
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Install Ubuntu outside the PC target

    As in the links, did you review systemd-analyze & systemd-analyze blame?
    Change some of the settings as suggested.
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  8. #8
    Join Date
    Aug 2011
    Location
    51.8° N 5.8° E
    Beans
    5,486
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: Install Ubuntu outside the PC target

    Can you temporarily switch the host computer to legacy mode? Then switch it back to uefi when installation is done and you've taken the SSD out.

  9. #9
    Join Date
    Sep 2020
    Beans
    6

    Re: Install Ubuntu outside the PC target

    Quote Originally Posted by oldfred
    As in the links, did you review systemd-analyze & systemd-analyze blame?
    Change some of the settings as suggested.
    I saw some advice regarding slow boot but at final my setup doesn't boot at all. The best I have done is to reach the Ubuntu graphics and wait for the wheel which keeps spinning... So I think I rather should fix the first problem before try those suggestions (in case of I had to re install again).


    Quote Originally Posted by Impavidus
    Can you temporarily switch the host computer to legacy mode? Then switch it back to uefi when installation is done and you've taken the SSD out.
    Yes I already done that. And then, I let Ubuntu does the installation by itself. But it's not working...

  10. #10
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Install Ubuntu outside the PC target

    Do you have different graphics between the two systems?
    You may need nomodeset if nVidia.
    And make sure newer system does not install any video drivers automatically via safe boot or updates.

    Then with older system can you boot recovery mode?
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

Page 1 of 2 12 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
  •