GPT partition on LM

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
pegasis
Level 4
Level 4
Posts: 250
Joined: Fri Dec 26, 2014 12:56 pm

GPT partition on LM

Post by pegasis » Tue Dec 05, 2017 1:31 pm

OBJECTIVE: I am trying to convert existing MBR to GPT

Method: using the steps in this tut: https://www.tecmint.com/install-linux-mint-17/

to make the grub and EFI partitions, and copy existing HD partitions for root, home and swap onto the new GPT partition HD, from an existing HD that is MBR.

my question is how to set up Grub and EFI partitions in Fstab??
what call out and switchs, so the GPT HD will boot with the copied partitions from the original HD??

this should be very simple, but I have attempted different ways at least 8 times.

I really don't wish to do fresh install, and have to copy reconfigure HD again

Please start a new thread with your support questions.
Include the result of:

CODE: SELECT ALL
inxi -Fxzo from existing "master" HD


inxi -Fxzo
System: Host: BladeRunner Kernel: 4.4.0-21-generic x86_64 (64 bit gcc: 5.3.1)
Desktop: Cinnamon 3.0.7 (Gtk 3.18.9-1ubuntu3.3)
Distro: Linux Mint 18 Sarah
Machine: Mobo: Gigabyte model: Z270X-UD3-CF v: Default string
Bios: American Megatrends v: F3 date: 01/13/2017
CPU: Quad core Intel Core i7-7700K (-HT-MCP-) cache: 8192 KB
flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 33603
clock speeds: max: 4201 MHz 1: 800 MHz 2: 2300 MHz 3: 800 MHz
4: 800 MHz 5: 800 MHz 6: 800 MHz 7: 1000 MHz 8: 800 MHz
Graphics: Card: NVIDIA Device 1c81 bus-ID: 01:00.0
Display Server: X.Org 1.18.4 drivers: nvidia (unloaded: fbdev,vesa,nouveau)
Resolution: 1920x1080@60.00hz
GLX Renderer: GeForce GTX 1050/PCIe/SSE2
GLX Version: 4.5.0 NVIDIA 384.90 Direct Rendering: Yes
Audio: Card-1 Intel Device a2f0 driver: snd_hda_intel bus-ID: 00:1f.3
Card-2 NVIDIA Device 0fb9 driver: snd_hda_intel bus-ID: 01:00.1
Sound: Advanced Linux Sound Architecture v: k4.4.0-21-generic
Network: Card: Intel Ethernet Connection (2) I219-V
driver: e1000e v: 3.2.6-k bus-ID: 00:1f.6
IF: enp0s31f6 state: up speed: 100 Mbps duplex: full mac: <filter>
Drives: HDD Total Size: 5001.0GB (33.0% used)
ID-1: /dev/sda model: ST5000DM003 size: 5001.0GB
Partition: ID-1: / size: 55G used: 11G (21%) fs: ext4 dev: /dev/sda1
ID-2: /home size: 1.8T used: 1.5T (91%) fs: ext4 dev: /dev/sda3
ID-3: swap-1 size: 18.12GB used: 0.00GB (0%) fs: swap dev: /dev/sda5
RAID: No RAID devices: /proc/mdstat, md_mod kernel module present
Unmounted: ID-1: /dev/ram0 size: 0.07G label: N/A uuid: N/A
ID-2: /dev/ram1 size: 0.07G label: N/A uuid: N/A
ID-3: /dev/ram2 size: 0.07G label: N/A uuid: N/A
ID-4: /dev/ram3 size: 0.07G label: N/A uuid: N/A
ID-5: /dev/ram4 size: 0.07G label: N/A uuid: N/A
ID-6: /dev/ram5 size: 0.07G label: N/A uuid: N/A
ID-7: /dev/ram6 size: 0.07G label: N/A uuid: N/A
ID-8: /dev/ram7 size: 0.07G label: N/A uuid: N/A
ID-9: /dev/ram8 size: 0.07G label: N/A uuid: N/A
ID-10: /dev/ram9 size: 0.07G label: N/A uuid: N/A
ID-11: /dev/ram10 size: 0.07G label: N/A uuid: N/A
ID-12: /dev/ram11 size: 0.07G label: N/A uuid: N/A
ID-13: /dev/ram12 size: 0.07G label: N/A uuid: N/A
ID-14: /dev/ram13 size: 0.07G label: N/A uuid: N/A
ID-15: /dev/ram14 size: 0.07G label: N/A uuid: N/A
ID-16: /dev/ram15 size: 0.07G label: N/A uuid: N/A
Sensors: System Temperatures: cpu: 29.8C mobo: 27.8C gpu: 0.0:29C
Fan Speeds (in rpm): cpu: N/A
Info: Processes: 225 Uptime: 14:50 Memory: 1768.4/15998.9MB
Init: systemd runlevel: 5 Gcc sys: 5.4.0
Client: Shell (bash 4.3.481) inxi: 2.2.35

pegasis
Level 4
Level 4
Posts: 250
Joined: Fri Dec 26, 2014 12:56 pm

Re: GPT partition on LM

Post by pegasis » Mon Dec 18, 2017 1:52 pm

why is GPT so hard

I am on step 18 of this trying a fresh install: https://www.tecmint.com/install-linux-mint-17/

I get error: says no root system is defined??

I just want to install LM using pre-made GPT partitions

How can I get GPT on existing HD, or do fresh install with GPT??

pegasis
Level 4
Level 4
Posts: 250
Joined: Fri Dec 26, 2014 12:56 pm

Re: GPT partition on LM

Post by pegasis » Mon Dec 18, 2017 3:10 pm

I did complete fresh install with LM as GUID

HD is not recognized as boot??

how can I fix this??

User avatar
JerryF
Level 9
Level 9
Posts: 2640
Joined: Mon Jun 08, 2015 1:23 pm
Location: Rhode Island, USA

Re: GPT partition on LM

Post by JerryF » Mon Dec 18, 2017 7:38 pm

pegasis wrote:why is GPT so hard

I am on step 18 of this trying a fresh install: https://www.tecmint.com/install-linux-mint-17/

I get error: says no root system is defined??

I just want to install LM using pre-made GPT partitions

How can I get GPT on existing HD, or do fresh install with GPT??
Try doing step 20 (/ (root) partition) before step 18.
IF AND WHEN your problem has been solved, please edit your original post and add [SOLVED] to the beginning of the Subject Line. It helps other members.

lostfarmer
Level 3
Level 3
Posts: 197
Joined: Mon Feb 10, 2014 11:59 pm
Location: Idaho

Re: GPT partition on LM

Post by lostfarmer » Mon Dec 18, 2017 10:18 pm

looks like you have a gpt disk with Mint installed in MBR mode , if you used the guide you posted. So you must select to boot hdd in bios/legacy/?? (do not know what your firmware calls MBR booting) but not in EFI mode booting.

If you provide more info , would help us to help you.
sudo fdisk --list
post data in file /ect/fstab

pegasis
Level 4
Level 4
Posts: 250
Joined: Fri Dec 26, 2014 12:56 pm

Re: GPT partition on LM

Post by pegasis » Tue Dec 19, 2017 9:28 am

sudo fdisk --list

Disk /dev/ram0: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram1: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram2: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram3: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram4: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram5: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram6: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram7: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram8: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram9: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram10: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram11: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram12: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram13: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram14: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/ram15: 64 MiB, 67108864 bytes, 131072 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/sda: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x7548b09a

Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 117189547 117187500 55.9G 83 Linux
/dev/sda2 3869130752 3907028991 37898240 18.1G 82 Linux swap / Solaris
/dev/sda3 117190656 3869130751 3751940096 1.8T 83 Linux

Partition table entries are not in disk order.




Disk /dev/sdb: 4.6 TiB, 5000981078016 bytes, 9767541168 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: E2F0F86E-3D61-40EC-956B-60B4CF4F87B5

Device Start End Sectors Size Type
/dev/sdb1 2048 43007 40960 20M BIOS boot
/dev/sdb2 43008 657407 614400 300M Linux filesystem
/dev/sdb3 657408 66193407 65536000 31.3G Linux swap
/dev/sdb4 66193408 178833407 112640000 53.7G Linux filesystem
/dev/sdb5 178833408 9767540735 9588707328 4.5T Linux filesystem



sdb1 partition type is bios bootable
sdb2 is legacy bios bootable
sdb3 is swap
sdb4 is root
sdb5 is home

it mounted to media automatically for sdb4, sdb5

how can I find the Fstab, where is it? in root, or home partition?

pegasis
Level 4
Level 4
Posts: 250
Joined: Fri Dec 26, 2014 12:56 pm

Re: GPT partition on LM

Post by pegasis » Tue Dec 19, 2017 9:30 am

here is fstab in /etc

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sdb4 during installation
UUID=d12e39d5-87d1-4ee7-b0d3-6de90a67a799 / ext4 errors=remount-ro 0 1
# /boot was on /dev/sdb2 during installation
UUID=508e0a78-3e6e-477d-98f3-a536117dbf52 /boot ext2 defaults 0 2
# /home was on /dev/sdb5 during installation
UUID=7c1e7626-4312-41c7-a430-ab2ade217a55 /home ext4 defaults 0 2
# swap was on /dev/sdb3 during installation
UUID=a6cae4e0-b912-48ec-94c4-2415de094a1c none swap sw 0 0

lostfarmer
Level 3
Level 3
Posts: 197
Joined: Mon Feb 10, 2014 11:59 pm
Location: Idaho

Re: GPT partition on LM

Post by lostfarmer » Tue Dec 19, 2017 11:10 pm

I will not have time to help you. Will ask some more questions and hope some one will step in.
1) do you have any good reason to have a boot partition ?
2) do you have any good reason not to boot in EFI mode ?
If the answer is yes, that is OK
3) do you want to duel boot or are you removing the linux on sda ? are you planning on removing sda or have 2 hdd's ?
4) when you installed the new Mint , did you get a grub install error ?

If you still want to try to copy the Mint from sda to sdb, it should work and there is a how-to on this forum. But not sure where.

If you have not done so and want to boot into the new install, run 'sudo update-grub' should add the new install into sda's grub menu.

Some of this post is just to bump it up.

pegasis
Level 4
Level 4
Posts: 250
Joined: Fri Dec 26, 2014 12:56 pm

Re: GPT partition on LM

Post by pegasis » Wed Dec 20, 2017 9:16 am

I am just following the tutorial

I just need GPT for linux

I know nothing of UEFI really

just need gpt for my new 5TB drive

User avatar
pbear
Level 5
Level 5
Posts: 564
Joined: Wed Jun 21, 2017 12:25 pm
Location: San Francisco

Re: GPT partition on LM

Post by pbear » Wed Dec 20, 2017 1:11 pm

Why do you insist on using a tutorial you KNOW doesn't work? Try Install in Legacy mode to GPT Partitions by forum guru austin.texas.
Time flies like an arrow. Fruit flies like a banana.
Running Mate 18.3 64 bit (by upgrade from 18.1-2)

pegasis
Level 4
Level 4
Posts: 250
Joined: Fri Dec 26, 2014 12:56 pm

Re: GPT partition on LM

Post by pegasis » Wed Dec 20, 2017 1:23 pm

I have tried that tutorial also

I could not get it to work, drive would not boot

User avatar
pbear
Level 5
Level 5
Posts: 564
Joined: Wed Jun 21, 2017 12:25 pm
Location: San Francisco

Re: GPT partition on LM

Post by pbear » Wed Dec 20, 2017 3:44 pm

That's puzzling. I've done many BIOS installs to GPT partitions. It's pretty straightforward, actually.

Willing to try to walk you through this, but won't be able until this evening (my time).
Time flies like an arrow. Fruit flies like a banana.
Running Mate 18.3 64 bit (by upgrade from 18.1-2)

User avatar
pbear
Level 5
Level 5
Posts: 564
Joined: Wed Jun 21, 2017 12:25 pm
Location: San Francisco

Re: GPT partition on LM

Post by pbear » Thu Dec 21, 2017 12:10 am

Doing a little research, I found an article by Rod Smith (respected Linux guru) indicating that others have had problems like you're experiencing. It's rare but happens. In a nutshell, some UEFI computers running in legacy mode (aka CRM) have trouble with GPT, which a BIOS or legacy boot machine accesses via another legacy compatibility mode. Stated a little differently, a legacy boot computer using a GPT drive is doing two compatibility conversions simultaneously and they don't always mesh. Smith describes several solutions, but the simplest is to go with UEFI rather than legacy mode. A few years ago, it was difficult to get Linux to run in UEFI, but that problem has since been solved.

I realize you've been trying to avoid the issue, but the best path forward might be to see whether your system supports UEFI. A simple "back of the envelope" way to answer that question would be to tell us what make and model computer you're using, whether it was originally a Windows machine and, if so, which version. If it originally was Win7, this solution isn't available (and the incompatibility described in the article isn't the issue). If it was originally Win8 or Win10, UEFI should be available and almost certainly would solve your problem.

By the way, I've done all my GPT installs from a former Win7 machine, which may explain the difference in our outcomes.
Time flies like an arrow. Fruit flies like a banana.
Running Mate 18.3 64 bit (by upgrade from 18.1-2)

pegasis
Level 4
Level 4
Posts: 250
Joined: Fri Dec 26, 2014 12:56 pm

Re: GPT partition on LM

Post by pegasis » Thu Dec 21, 2017 9:04 am

LM supports Uefi
the bios supports uefi, because my windows drives work with it

I just know nothing of UEFI, and blindly follow the tutorials, as I have tried for months and get no results.
HD won't boot, or bios says there is no bootable device

Rod's stuff is way over my head.
I really don't know how legacy boot mode works, or UEFI

LM should have an install option of GPT, or MBR

I just need the basic steps, and an understanding of what they do, So If I get stuck I can think it thru

User avatar
pbear
Level 5
Level 5
Posts: 564
Joined: Wed Jun 21, 2017 12:25 pm
Location: San Francisco

Re: GPT partition on LM

Post by pbear » Thu Dec 21, 2017 1:15 pm

If it's a UEFI machine, you've been using the wrong tutorials. The TecMint tutorial, in particular, has you label something as an EFI partition then formats it ext2/3/4 when it has to be FAT32. On the bright side, this can be solved.

You mention Windows. Is this going to a be a dual boot machine? If so, look at this tutorial. If not, you could use the default installation, which is very easy but won't accommodate transferring over your old partitions (files yes, but not the partitions). To do that, we need to discuss how to partition the drive. I can't right now, as I'm off to work, but will give it a go this evening. Or maybe someone else can jump in.

By the way, the simple solution is to take the machine to a computer repair shop. They can handle both installation and data transfer. Make sure it's someone who knows Linux, but those can't be hard to find. IMHO, free but with months of aggravation isn't really free.
Time flies like an arrow. Fruit flies like a banana.
Running Mate 18.3 64 bit (by upgrade from 18.1-2)

pegasis
Level 4
Level 4
Posts: 250
Joined: Fri Dec 26, 2014 12:56 pm

Re: GPT partition on LM

Post by pegasis » Thu Dec 21, 2017 1:48 pm

It is NOT a dual boot
my other drives are windows 10 with GPT

The default LM install does not offer GPT.

I really would like to perform this myself; install and copy partitions over, update Fstab.

any suggestions?

pegasis
Level 4
Level 4
Posts: 250
Joined: Fri Dec 26, 2014 12:56 pm

Re: GPT partition on LM

Post by pegasis » Thu Dec 21, 2017 2:38 pm

to install LM with GPT/UEFI do I just follow the tutorial steps?

or do I also need a UEFi USB?

or UEFI active in Bios, how to turn on?

pegasis
Level 4
Level 4
Posts: 250
Joined: Fri Dec 26, 2014 12:56 pm

Re: GPT partition on LM

Post by pegasis » Thu Dec 21, 2017 5:33 pm

I think I just need a UEFI partition to boot

how do I set the flag to boot?

pegasis
Level 4
Level 4
Posts: 250
Joined: Fri Dec 26, 2014 12:56 pm

Re: GPT partition on LM

Post by pegasis » Thu Dec 21, 2017 5:33 pm

this is useful:

explains things a bit

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

User avatar
pbear
Level 5
Level 5
Posts: 564
Joined: Wed Jun 21, 2017 12:25 pm
Location: San Francisco

Re: GPT partition on LM

Post by pbear » Fri Dec 22, 2017 12:30 am

Sorry, but I don't feel comfortable trying to guide you through this. A few thoughts to consider as you move forward.

1. Two operating systems on the same computer is dual boot, even if they're on separate drives.

2. The Mint ISO will boot in either BIOS or UEFI. Same ISO works for both.

3. In a default installation, the installer picks the disk format (MBR vs. GPT) consistent with the boot environment.

4. To select the boot environment (UEFI vs. legacy boot), you have to enter setup. How one does that varies from machine to machine. Check the manual. Doubtless available online if you've lost track of your copy (or never got one).

5. The Ubuntu page you linked is excellent.

6. An EFI boot partition should be flagged boot and esp. (This is another thing the TecMint tutorial got wrong.)

Hope that helps. Good luck.
Time flies like an arrow. Fruit flies like a banana.
Running Mate 18.3 64 bit (by upgrade from 18.1-2)

Post Reply

Return to “Installation & Boot”