Gpt on linux

pegasis

Member
May 17, 2014
186
0
76
Gpt is a real pain.

I want to format my hd as GPT follow some of this guide: https://www.tecmint.com/install-linux-mint-17/

make 2 partitions, (grub and efi), and then copy root and home from an existing HD
will this work?

how do I update fstab with the 2 new (GPT) related partitions??
what settings/switches do i use in Fstab for these partitions?
 

mv2devnull

Golden Member
Apr 13, 2010
1,503
145
106
What do you have in fstab now, in first column?

The old style had device name, like in:
Code:
/dev/hda1 /boot ...
The trouble with that is that the name could change from hda to sda, sdb, ...

Filesystems, like ext3, can be labeled and devicename was replaced:
Code:
LABEL=boot /boot ...
Alas! You could have two drives with same label-name on filesystems.

Enter UUID. Random, hopefully unique identifier:
Code:
UUID=ba5c3324-cb35-4730-8f11-04b2ad8235cb /boot ...

If you do clone a filesystem, then UUID is copied. If you just copy contents, then UUID is different.

Boot loader and /etc/fstab look for UUID. The initramfs probably too.
 

pegasis

Member
May 17, 2014
186
0
76
I can fix the Fsatb uuid entries, but do i need to be concerned about the partitions for grub, and EFI in the FSTAB??

that is the real question, or just the partitions that linux is using: home, root?
 

mv2devnull

Golden Member
Apr 13, 2010
1,503
145
106
The question is: who reads/writes to where and when?

The EFI must find the boot loader, the loader has to read the kernel and initramfs, the kernel has to mount the root (and other necessary filesystems).

What about kernel update? Somebody writes a new kernel and initramfs. Somebody updates the grub.cfg?

Yes, there is probably some infrequent access to EFI System Partition from running Linux.
 

pegasis

Member
May 17, 2014
186
0
76
I am not following you

the real question is what to do about the grub and efi partitions in the FSTAB

what do i put there?
 

pegasis

Member
May 17, 2014
186
0
76
yes there is a blkid command, but the question is what type of switches to go with these non linux partitions??
 

pegasis

Member
May 17, 2014
186
0
76
I have followed this except I did NOT install linux
I copied the existing partitions

https://www.tecmint.com/install-linux-mint-17/

so I have 5 partitions, only only 3 showing in FSTAB?

the first 2 for grub, and EFI are not listed???

# /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/sda1 during installation
UUID=fa752849-db4d-4c8b-9e3d-33dcd654d93a / ext4 errors=remoun$

UUID=1f100a74-dbfb-439d-8415-3e08930eea1e /home ext4 defaults $


UUID=48bca054-b643-465f-b716-f303110c4791 none swap sw $

How can I fix this so the drive is correct and will boot?
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |