1

I'm trying to install Ubuntu 18.04 on my Seagate 1 TB (external hard drive). I created one partition for my files leaving about 100 GB unallocated for Ubuntu's installation. I followed steps in this tutorial (in the link below) used to install Ubuntu

https://www.tecmint.com/ubuntu-14-04-installation-guide/

except that I set the boot loader to my external hard drive. Everything went so well but whenever I restart my computer and choose to boot from external HDD, I get unknown file system error

Update

Solutions suggested in the AskUbuntu community are all about fixing grub and it seems not working for me since it based on locating root partition, In my case I tried every partition listed all of them gave "error: unknown filesystem "

Here is the method i used

ls
ls (hd0,msdos6)/
set root=(hd0,msdos6)
ls /
set prefix=(hd0,msdos6)/boot/grub
insmod /boot/grub/linux.mod
normal

I spend too much time trying to install different distributions of Linux such as Centos but I got the same error. I think rather than fixing grub I need to know what causes this issue in the first place. Is there something wrong with installation, or something else? How do I find out?

Update 2

I tried Boot-Repair ISO to fix boot issue and report says the following:

The boot files of [Ubuntu 18.04.3 LTS] are far from the start of the disk. 
Your BIOS may not detect them. You may want to retry after creating a /boot 
partition (EXT4, >200MB, start of the disk). This can be performed via tools 
such as gParted. Then select this partition via the [Separate /boot 
partition:] option of [Boot Repair]

is that means i need to create /boot just before root partition or at the start of the entire hard disk

The last update

At last, Finally it works

Problem was in bios (can't detect boot files), boot-repair ISO report suggested adding /root partion at the start of hard disk

https://help.ubuntu.com/community/BootPartition

the most important remark as the help article says boot partition must be located inside the first 100 Gb of the disk

- Reduce one of the first partitions of the disk in order to create 1GB 
  (=1000MiB) of free space at the start of the disk where Ubuntu is 
  installed. This free space must be located inside the first 100GB of the 
  disk (its end must not be located at more than 100GB from the start of the 
  disk).

Thanks for all of you guys. I really appreciated your help, I hope AskUbuntu won't delete this question because as far i know it can't be a duplicate of this

How to install Ubuntu on portable external Hard Drive?

  • So which one are you trying to install, 18.04 or 14.04? 14.04 is off-topic because it's too old. – SurvivalMachine Sep 05 '19 at 15:24
  • 1
    @SurvivalMachine ubuntu 18,04 – Mohamed sayed Sep 05 '19 at 16:14
  • What brand/model system? What video card/chip? UEFI/gpt or BIOS/MBR install? You mention msdos which is MBR? May be best to see details, use ppa version with your live installer (2nd option) or any working install, not older Boot-Repair ISO: Please copy & paste link to the Boot-info summary report ( do not post report), the auto fix sometimes can create more issues. https://help.ubuntu.com/community/Boot-Repair – oldfred Sep 05 '19 at 16:35
  • Thanks for your help @oldfred i tried Boot-Repair and this is what i got http://paste.ubuntu.com/p/wfnjSCGFHK/ – Mohamed sayed Sep 05 '19 at 23:59
  • You have BIOS/MBR installs. It looks like Boot-Repair installed/reinstalled grub to MBR of external drive. If you set BIOS to boot from external drive in BIOS mode, it should boot Ubuntu. Install of Ubuntu is in sdb6 which from grub is hd1,6. Windows drive is hd0. Some BIOS may make an external drive as first, so some may may install as hd0,6. When I plug in a flash drive I often have to experiment on what drive it is seen as. – oldfred Sep 06 '19 at 03:40
  • 1
    Boot-repair report says
    " The boot files of [Ubuntu 18.04.3 LTS] are far from the start of the disk. Your BIOS may not detect them. You may want to retry after creating a /boot partition (EXT4, >200MB, start of the disk). This can be performed via tools such as gParted. Then select this partition via the [Separate /boot partition:] option of [Boot Repair]."
    – Mohamed sayed Sep 06 '19 at 14:16
  • Old BIOS used to only Boot from first 137GB of a drive. And some USB bootable systems have similar issue. But you have NTFS partition at beginning of drive. Since separate /home you can just have a smaller / (root) partition of 25GB at beginning of drive.Not sure if your old Windows will read a NTFS partition that is not at start of external drive. But Windows 7 reaches EoL - end of life in Jan 2020. – oldfred Sep 06 '19 at 19:11
  • At last, it finally worked – Mohamed sayed Sep 08 '19 at 10:55

1 Answers1

0

Welcome to Ubuntu!

You will find current and complete instructions at Ubuntu.com, much more useful than a third party article designed for a version which has reached its End of Public Support, as version 14.04 did in April of 2019. Things have changed for 18.04 LTS.

For one thing, you don't need to create a swap partition, since the modern kernel is fast enough so there's no longer a disadvantage in using a swap file instead. The swap file will be created automatically during installation of Ubuntu, so please don't bother with a swap partition.

The Pre-Installation Hardware steps are especially important. You did not specify your hardware platform, and whether it BIOS/firmware relies on Legacy Boot, whether Legacy Boot is still enabled, of if you have disabled that option and set for the preferred UEFI boot.

Please use UEFI if you can, which probably will require a complete erasure of that external drive and making an entirely new GPT partition table, unless that drive is already prepared with a GPT partition table. You can confirm the partition table type for all drives with this command ( thanks to https://unix.stackexchange.com/questions/120221/gpt-or-mbr-how-do-i-know ) to run from any Linux:

sudo fdisk -l

If you see Disklabel type: dos the drive is MBR-formatted, not GPT-formatted. If you are free to repartition that external drive with a GPT partition table, please back up everythng on that drive, verify the backup works, then do another backup and verify to different media, as disk partition operations are potentially destructive of data. Then, convert following this article.

K7AAY
  • 17,202