"bootable flag" is missing from the doc

Problems with packages? Post here, using [tags] of the package name.

"bootable flag" is missing from the doc

Postby mirage032 » Mon Jun 15, 2020 5:59 am

Hello,

I tried to install my raspberry with the first google link available:
https://archlinuxarm.org/platforms/armv ... berry-pi-4

I had an error saying that the partition is not bootable.

I then followed the parted commands available here: https://linuxize.com/post/how-to-instal ... pberry-pi/
Worked like a charm.

When I reviewed the differences, I noticed that the bootable flag was missing from your doc.

With parted,
$this->bbcode_second_pass_code('', 'sudo parted /dev/sdb --script -- set 1 boot on')

With fdisk,
press a, then press 1.
Check that you have the following message.

$this->bbcode_second_pass_code('', 'Command (m for help): a
Partition number (1,2, default 2): 1

The bootable flag on partition 1 is enabled now.')

you can also do $this->bbcode_second_pass_code('', 'fdisk -l /dev/sdb') to check if it is correct.

$this->bbcode_second_pass_code('', '# fdisk -l /dev/sdb
Disk /dev/sdb: 14.46 GiB, 15510536192 bytes, 30294016 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: dos
Disk identifier: 0x93f90be5

Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 2048 249855 247808 121M c W95 FAT32 (LBA)
/dev/sdb2 249856 30294015 30044160 14.3G 83 Linux')


As a feedback, it's easier to understand the command with parted than manually type a succession of letters.
I don't partition volumes everyday :) even though I've been using GNU/Linux OSes since 2003.
mirage032
 
Posts: 1
Joined: Sun Jun 14, 2020 10:28 pm

Re: "bootable flag" is missing from the doc

Postby moonman » Mon Jun 15, 2020 8:46 am

Bootable flag is not required to boot any raspberrypi so nothing is missing from the installation guide. The bootable flag is simply ignored.

I personally prefer fdisk as to me it is much easier to use and is faster. You can see what each command does by pressing 'm'. Very simple and effective. Either way, the guide explains what each command does, and parted isn't always included while fdisk is usually almost always included with distributions.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am


Return to Packages

Who is online

Users browsing this forum: No registered users and 54 guests