You are not logged in.
I'm trying to install Arch in a laptop, from one Flash USB to a USB stick.
I inserted the second USB stick (14.5G), in which the installation is supposed to go, and partitioned it with fdisk this way, following the Wiki:
sdb1 6G, for /root.
sdb2 8.5 G, for /home.
sdb4 2M, for /boot. (planing to install GRUB BIOS later on).
Then, following the specific wiki to install in a USB key
https://wiki.archlinux.org/index.php/In … figuration
I selected filesystem for /root and /home with
# mkfs.ext4 -O "^has_journal" /dev/sdb1# mkfs.ext4 -O "^has_journal" /dev/sdb2But not for the /boot, as there was one of the articles concerning GRUB in BIOS that said it shouldn't have a specific filesystem (I can't find this info right now, as I've been consulting a bunch of them in the wiki, but it's definitely not from any other source, if I got it wrong it was just misunderstanding).
Then I mounted /boot and /home, and it seemed to work fine, with
mount /dev/sdb1 /mnt mkdir /mnt/home mount /dev/sdb2 /mnt/home And tried to mount /boot, as suggested in the Installation Article, with:
mount /dev/sdb4 /mnt/boot And I get:
mount: mount point /mnt/boot does not exist Could anyone please point where is my mistake? I've read everything (including BIOS manual) many times trying to understand it, but honestly couldn't.
I haven't done absolutely any other step but those described in here, in terms of the installation, besides the initial ones of:
- Set keyboard layout
- Test internet connection
- Update system clock
- And, exceptionally, added 'nomodeset' to kernel line when booting from the Live USB, as I was getting the black screen error (did that because I found it here on the forum, and, if I'm not mistaken even in the Wiki).
I'm booting and trying to install the i686 version, even though this laptops runs x64, because the 'Installing Arch Linux on a USB key' article says it's probably best choice in this case.
Offline
Where in the wiki does it recommend using 2M for a boot partition? That should normally be at least 100M, unless there is some special case that I am unaware of.
The boot partition needs a filesystem, otherwise you will not be able to mount it. What you read is that some bootloaders only support certain filesystems. ext3 is usually a good choice, but check the latest documentation to see what the bootloader supports.
The specific error message says that /mnt/boot does not exist. Create the directory with mkdir.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
Thank you very much for the answer, it has definitely taken me a step further. But I still have some doubts that I can't sort just comparing what you said with the information I have through the Wiki.
Where in the wiki does it recommend using 2M for a boot partition? That should normally be at least 100M, unless there is some special case that I am unaware of.
I believe, maybe mistaken, that it's what is said here:
Create a mebibyte partition (+1M with fdisk or gdisk) on the disk with no file system and with partition type BIOS boot.
from
https://wiki.archlinux.org/index.php/GR … structions
And actually it is also the part that says it shouldn't have a file system, which I mentioned in my OP but wasn't managing to find at that moment. It's because of this section that I did it the way I did, 2M (I believe recommending an extra MB is recommended in Grub Manual*, can search for it if it's relevant) and no filesystem.
The boot partition needs a filesystem, otherwise you will not be able to mount it. What you read is that some bootloaders only support certain filesystems. ext3 is usually a good choice, but check the latest documentation to see what the bootloader supports.
Could you please tell me, because I've no idea where I could look for that, if it should follow the 'without a journal' pattern suggested for installation on USB sticks in:
https://wiki.archlinux.org/index.php/In … figuration
ext4 without a journal should be fine, which can be created with # mkfs.ext4 -O "^has_journal" /dev/sdXX.
* Wiki refers to Grub Manual and suggests using it. I'm not trying to mess up sources here.
Last edited by KRust (2016-09-11 00:17:00)
Offline
Ok, after skimming through the links I realize that I don't know enough about grub and this type of setup so take this with a grain of salt and wait for someone who does know to reply.
My understanding is that the 1M partition (the "BIOS boot partition") is just there to ensure that there is some space on the disk for the binary data of core.img. You shouldn't mount that partition, which is why it requires no filesystem. It's basically just reserved private parking for grub internals. It seems that you will not need a separate boot partition with this setup. Usually a separate boot partition is used to ensure that the bootloader's files are accessible to the bootloader even if the root filesystem is encrypted, etc. I'm guessing that between the MBR and this 1M partition, GRUB has everything it needs to boot the system (once configured).
In that case (and I may be wrong, check the guide or wait for another reply), just create the directory /mnt/boot after mounting the root filesystem and follow the rest of the guide. The installation will install files to the boot directory in the root partition.
It seems that you can use the grub-install command to generate core.img, install it to the BIOS boot partition, write the MBR to the beginning of the disk and do whatever other magic you need.
Anyway, sorry for any confusion due to my ignorance.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
Anyway, sorry for any confusion due to my ignorance.
What do you mean? Your help was substantial, in the sense that even if you couldn't give me a definite answer, you presented me with an option - something I didn't have before, and was unable to find it by myself. I'm really thankful.
I'm going to try to do an install with the general design you described, trying to sort anything that comes by with the documentation. Should it not work, I just format everything and start again. It's a bit boring, yes, but I think doing it several times is helping me better understand the system, and might make me a better Arch user once I finally get it to work (ahh, the dream!)
This is not the first time I'm trying to install it, it just didn't work before so I'm trying again and again, seeing if I can cover more bases, learn some more. It's particularly difficult I believe, because it doesn't seem to be a common setup, the install to USB thing. From what I can see, there's less documentation to this than to other methods. But I have no option, I have a laptop with a broken HDD and can't afford a new one right now. I tried Ubuntu before, but it wasn't for me, at all. So this is what I have. And I have more than before after your assistance.
Offline
I think doing it several times is helping me better understand the system, and might make me a better Arch user once I finally get it to work (ahh, the dream!)
That's basically how I started. I dove right in with LUKS over LVM and spent a few days trying to get it right but it was a good learning experience. With your current attitude I'm sure you'll get it working the way you want.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
As I understand it, the 1MB filesystem-less partition is only needed for installing grub on a disk using the GPT partitioning scheme (as opposed to the MBR-style partitioning style). If you have used fdisk to partition, then you are likely using an MBR partition table, and the aforementioned partition is not needed.
Check that you are indeed using MBR by running 'fdisk -l /dev/sda' (replacing sda with the identifier for your disk). It should If it says "Disklabel type: dos" in the output, then you are using the MBR-style and don't need this extra partition. However, if it says "Disklabel type: gpt", then you are using GPT, and do need the 1MB partition to install grub.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
That's basically how I started. I dove right in with LUKS over LVM and spent a few days trying to get it right but it was a good learning experience. With your current attitude I'm sure you'll get it working the way you want.
Thanks one more time, mate! Reading that thread you posted was really refreshing. I had read that it was somewhat possible for a beginner to try this if he was ready to be patient and receptive, but I wasn't seeing too much of that in here before, so there was some space for thinking the idea was just too much optimism on the part of those spreading it. Now reading all those reports in that thread confirmed it 100%, and added to my willpower.
As I understand it, the 1MB filesystem-less partition is only needed for installing grub on a disk using the GPT partitioning scheme (as opposed to the MBR-style partitioning style). If you have used fdisk to partition, then you are likely using an MBR partition table, and the aforementioned partition is not needed.
Check that you are indeed using MBR by running 'fdisk -l /dev/sda' (replacing sda with the identifier for your disk). It should If it says "Disklabel type: dos" in the output, then you are using the MBR-style and don't need this extra partition. However, if it says "Disklabel type: gpt", then you are using GPT, and do need the 1MB partition to install grub.
Yes, I am definitely using MBR, and I see now that it seems to add some space for that by default. Thanks a lot!
I did finish that installation, and this part seemed to go alright, but since I apparently made some mistake while installing intel_ucode, it didn't really work. There was no accusation of problems with Grub, but other ones. I tried some suggestions for repair I found on the forums but they didn't work. So it's back to installing it from scratch one more time. Let the punishment begin!
Offline