You are not logged in.

#1 2012-09-27 16:42:05

Lowra
Member
Registered: 2009-09-21
Posts: 192

[SOLVED] GUID partitions: boot flag ? list partitions as /dev/sda[x] ?

Hey,

I've been trying to re-install Arch through the new medium.
I have an SSD, and I'd like to use a GUID partition table.

I managed to create my partitions with the gdisk utility, however here's two things that I don't understand/don't know how to do. Here's my partition scheme if it can be of any help:
IMG_20120927_175624.jpg

My questions:
- The wiki entry covering the step of partitionning shows a root partition with a Boot Flag.
Wouldn't I need to set up a similar flag for my /boot partition ? If so, how do you do this ? My research lead me nowhere.

- I used to use "fdisk -l" the list my partitions, and to know which partitions were known as /dev/sda1, /dev/sda2...
Since fdisk -l shows a warning, telling that it doesn't support GPT, how can I know which of my partition is /dev/sda1, /dev/sda2 in order to create the right filesystems for the next step ?
Gdisk list my partitions as 1,2,3,4, and I can't know the right /dev/sda[x] path.

Thanks !

Last edited by Lowra (2012-09-27 19:41:35)

Offline

#2 2012-09-27 16:58:39

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] GUID partitions: boot flag ? list partitions as /dev/sda[x] ?

I guess the first column tells you which partition is it '1' is '/dev/sda1' etc.
Have you tried 'lsblk /dev/sda' or 'cfdisk /dev/sda'?

Offline

#3 2012-09-27 17:39:40

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [SOLVED] GUID partitions: boot flag ? list partitions as /dev/sda[x] ?

Don't use cfdisk for GPT-partitioned drives.

The example with cfdisk (which is just an example, by the way), mentions the boot flag because the damn program doesn't let you quit without setting one. It's noob-proof, in a way, I guess. But don't worry. There's a note for Syslinux telling you to install the gptfdisk package in case you have a GPT-partitioned drive, and GRUB doesn't care about boot flags (you need a 2 MiB partition for GRUB, for GPT-partitioned drives).

To list partitions, use one of these:

# blkid /dev/sda1
$ lsblk /dev/sda1
# gdisk -l /dev/sda

And don't forget to mark it as solved (by editing the first post).

Last edited by DSpider (2012-09-27 17:44:42)


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#4 2012-09-27 18:28:07

Lowra
Member
Registered: 2009-09-21
Posts: 192

Re: [SOLVED] GUID partitions: boot flag ? list partitions as /dev/sda[x] ?

Just to be sure:
I plan to use syslinux as my bootloader, so I don't need to set up any bootflag whatsoever ?

Offline

#5 2012-09-27 18:54:08

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [SOLVED] GUID partitions: boot flag ? list partitions as /dev/sda[x] ?

No. The "/usr/sbin/syslinux-install_update" script will do it for you (provided you installed the gptfdisk package).

https://wiki.archlinux.org/index.php/Be … e#Syslinux


Follow the Beginners' Guide and you should be fine.


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#6 2012-09-27 19:40:53

Lowra
Member
Registered: 2009-09-21
Posts: 192

Re: [SOLVED] GUID partitions: boot flag ? list partitions as /dev/sda[x] ?

Alright then, I missed the little note in the wiki entry smile

Thanks DSpider !

Offline

Board footer

Powered by FluxBB