Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am attempting to install Arch Linux (for the hundredth time) and I recently ran across another problem. I am trying to find a list of my partitions. In order to do this I entergdisk When I do this however it returns

Type device filename, or press to exit:

I have attempted entering gdisk /dev/disk1 When I do this I get there error

Problem opening /dev/disk1 for reading! Error is 2.

However, I am still able to mount partitions when I know the partition. I am simply trying to get a list of my partitions so I can remember which ones they are.

Any help understanding the problem would be useful.

(Off topic question: Boot loaders do not need to be installed in the first partition of root correct? Last time I installed it I put it in /boot yet I was given an error)

share|improve this question
    
Wow noone...... –  Griffin Mar 30 '13 at 16:18

2 Answers 2

up vote 2 down vote accepted

gdisk is throwing an error because /dev/disk1 is only an example, not a real block device. Use gdisk /dev/sda if you want to work on your first drive.

gdisk is extradordinarily well documented on it's author's, Rod Smith, site: Rod's Books.

share|improve this answer

gdisk Error 2 means the file or device could not be found. Several other commands will list disks and partitions:

sudo parted -l

sudo fdisk -l

lsblk

As for boot loaders, where you install them depends on the boot loader and the partition table as well as computer BIOS. See the Arch Wiki for a detailed explanation.

share|improve this answer
    
The Arch wiki is the most confusing thing in the world. –  Griffin Mar 30 '13 at 18:28
    
I wish they would just separate all the different types of installs. –  Griffin Mar 30 '13 at 18:29
    
@Griffin - agree the wiki could use some restructuring, but the linked article is actually very informative and well-written. I'm more of a Fedora guy myself, so haven't spent a lot of time there. –  dartonw Mar 30 '13 at 19:42

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.