You are not logged in.

#1 2014-11-22 06:47:16

BabbyUser
Member
Registered: 2014-08-26
Posts: 44

[Solved]cfdisk won't toggle boot(Installing Arch UEFI)

I'm trying to make a partition bootable, on the other arch version I downloaded, it had a toggle boot option, now it doesnt. I tried hitting ''b'' on my keyboard and that doesn't toggle it either. I'm a total loss right now.

Last edited by BabbyUser (2014-11-25 03:54:03)

Offline

#2 2014-11-22 06:54:59

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved]cfdisk won't toggle boot(Installing Arch UEFI)

man cfdisk wrote:

       b      Toggle the bootable flag of the current partition.  This allows you to select which primary partition is bootable on the drive.  This command
              may not be available for all partition label types
.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-11-22 15:14:59

BabbyUser
Member
Registered: 2014-08-26
Posts: 44

Re: [Solved]cfdisk won't toggle boot(Installing Arch UEFI)

jasonwryan wrote:
man cfdisk wrote:

       b      Toggle the bootable flag of the current partition.  This allows you to select which primary partition is bootable on the drive.  This command
              may not be available for all partition label types
.

then how am I supposed to make it available? Because now I can't even get arch to boot from my new computer.

Offline

#4 2014-11-22 15:23:37

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,523

Re: [Solved]cfdisk won't toggle boot(Installing Arch UEFI)

I think is not that the case.
Which is your boot loader/manager ?


do it good first, it will be faster than do it twice the saint wink

Offline

#5 2014-11-22 15:25:44

BabbyUser
Member
Registered: 2014-08-26
Posts: 44

Re: [Solved]cfdisk won't toggle boot(Installing Arch UEFI)

TheSaint wrote:

I think is not that the case.
Which is your boot loader/manager ?



I tried grub, on my other computer, it worked flawlessly(but i toggled the boot setting on my root partition, which I didn't do here), I followed all the steps correctly, but once I reboot and remove the stick I'm greeted with "no bootable device"

Offline

#6 2014-11-22 15:33:47

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,523

Re: [Solved]cfdisk won't toggle boot(Installing Arch UEFI)

You should restart the Arch ISO and chroot in the installation. Then try to remake the configuration.
If you're using UEFI, see more detail on grub wiki.
For vfat partitions like ESP check if you've installed dosfstools.


do it good first, it will be faster than do it twice the saint wink

Offline

#7 2014-11-22 16:15:22

BabbyUser
Member
Registered: 2014-08-26
Posts: 44

Re: [Solved]cfdisk won't toggle boot(Installing Arch UEFI)

TheSaint wrote:

You should restart the Arch ISO and chroot in the installation. Then try to remake the configuration.
If you're using UEFI, see more detail on grub wiki.
For vfat partitions like ESP check if you've installed dosfstools.

I am using UEFI.


I followed that guide but I get

grub-install: info: cannot open '/boot/grub/device.map': no such file or directory
grub-install: error: failed to get canonical path of '/boot/efi'

Am I royally screwed?

My etc/fstab:

#/dev/sda2
UUID=d975058a0-da67-4081-9734-68300cdca3aa / ext4 rw,relatime,data=ordered 0 1

#dev/sda4
UUID=148911a-84a6-4193-ab0f-94853f439ce7 /home ext4 rw,relatime,data=ordered 0 2

#/dev/sda3
UUID=a5da123a-40fe-4ab3-b0c4-51736311994be none swap defaults 0 0

Offline

#8 2014-11-22 16:23:44

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,523

Re: [Solved]cfdisk won't toggle boot(Installing Arch UEFI)

OK, what about you ESP ?
fstab doesn't mention it.
After chroot, let us see

# gdisk -l /dev/sda
# ls -lF /dev/disk/by-uuid

Have you only one HDD, or more?


do it good first, it will be faster than do it twice the saint wink

Offline

#9 2014-11-24 23:36:22

BabbyUser
Member
Registered: 2014-08-26
Posts: 44

Re: [Solved]cfdisk won't toggle boot(Installing Arch UEFI)

TheSaint wrote:

OK, what about you ESP ?
fstab doesn't mention it.
After chroot, let us see

# gdisk -l /dev/sda
# ls -lF /dev/disk/by-uuid

Have you only one HDD, or more?

Sorry for the late reply:

gdisk -l /dev/sda

MBR:Protective
GPT:Present

1 2048 2099199 1024MiB EF00(EFI Partition)
2 2099200 44042239 20GiB root
344042240 1953525134 910.GiB homw

I try to install grub using

# grub-install --target=x86_64-efi --efi-directory=$esp --bootloader-id=arch_grub --recheck --debug

I receive

grub-install: info: cannot open /boot/grub/device.map: No such file or directory
grub-install: error: failed to get canonical path of ' '

for --efi-directory=$esp I replaced ESP with /mnt/boot which is where I mounted the efi partition. As for the canonical path issue, I'm clueless.

Last edited by BabbyUser (2014-11-24 23:39:11)

Offline

#10 2014-11-25 00:11:25

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,523

Re: [Solved]cfdisk won't toggle boot(Installing Arch UEFI)

May I understanding you wrongly.
All boot loader must install  after chroot into the installation.
The ESP is correct. But I don't see /boot in your fstab. Also I wish you to read wikis more carefully.


do it good first, it will be faster than do it twice the saint wink

Offline

#11 2014-11-25 03:01:34

BabbyUser
Member
Registered: 2014-08-26
Posts: 44

Re: [Solved]cfdisk won't toggle boot(Installing Arch UEFI)

TheSaint wrote:

May I understanding you wrongly.
All boot loader must install  after chroot into the installation.
The ESP is correct. But I don't see /boot in your fstab. Also I wish you to read wikis more carefully.

Got arch to install, I just made a file in /boot called efi and did the original grub command, worked like a charm. (: Thanks

Offline

#12 2014-11-25 03:07:48

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,523

Re: [Solved]cfdisk won't toggle boot(Installing Arch UEFI)

Got you the solution ?
Mark the thread [Solved], please.


do it good first, it will be faster than do it twice the saint wink

Offline

Board footer

Powered by FluxBB