Score:0

Create mount point and mounting partition

cn flag

Question about mounting partitions:

do I need first to create mount point for EFI partition, then mount:

sudo mkdir -p /mnt/boot/efi          #Create EFI partition mount point
sudo mount /dev/sda1 /mnt/boot/efi   #Mount EFI partition

or I can mount straight without mount point creation?

sudo mount /dev/sda1 /mnt/boot/efi   #Mount EFI partition

In most examples I don't see the mount moint creation prior mounting partition.

heynnema avatar
ru flag
/boot/efi is already mounted in /etc/fstab. No need to try and do it again. And yes, you need to create mount points, if they don't already exist, before trying to mount.
cn flag
when you need to recover system and boot from LiveCD image: how do you know that /boot/efi is already mounted in /etc/fstab?
heynnema avatar
ru flag
That's a different question than what you asked.
Score:0
cn flag

The mount command mounts a partition on a certain directory. That directory must exist. So you need to create the desired mount point if it does yet not exist. If it does already exist, then you do not need to, nor can you, create the mount point.

cn flag
what's difference between `mount /dev/sda1 /boot/efi` and `mount /dev/sda1 /mnt/boot/efi`?
vanadium avatar
cn flag
Different mount point obviously, but that is a different question.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.