I am currently trying to build a Linux From Scratch (LFS) partition.
This is my first attempt and I'm doing this to challenge myself, but I'm having trouble getting started.
I'm using a Raspberry Pi 3, with a 16gb Micro SD, currently installed with Ubuntu 20.04LTS, as my base.
I'm having trouble allocating the partition though.
This is a bit of a jumble of questions, but any additional clarity or recommended reading/research is welcome!
From what I've found so far, it seems that most non-embedded Linux installations, and many embedded installations, may not use
/dev/as the actual partition mounting space? (source) I'm not really clear on what this means though. Do I need to look for a different place to try mounting my new partition?
I also don't see any
/dev/sdb/, etc in my
/dev/. Is this normal for Ubuntu or Ubuntu for SBC's? I feel like this is related to my first question, but still don't have a clear understanding of why it is like this.
Also I saw that using
MAKEDEVapparently doesn't make the partition Dynamically managed? Is there a way to set it up to be Dynamically managed, or does it matter since I'm using it to build my LFS partition?
What I've Tried
I tried creating
sudo MAKEDEV sda from my
/dev/, but I don't have the binaries for
MAKEDEV installed apparently. I am currently trying to find the required packages for it (Not sure if this will fix my overall problem or not though, any advice is welcome).
user@host:~$ cfdisk /dev/sda cfdisk: cannot open /dev/sda: No such file or directory user@host:~$ sudo cfdisk /dev/sda cfdisk: cannot open /dev/sda: No such file or directory user@host:~$ cat /proc/partitions major minor #blocks name 7 0 24084 loop0 7 2 62720 loop2 7 3 49608 loop3 7 4 26564 loop4 7 5 65316 loop5 7 6 49956 loop6 179 0 15558144 mmcblk0 179 1 262144 mmcblk0p1 179 2 15294959 mmcblk0p2 user@host:~$ ll /dev/sd* ls: cannot access '/dev/sd*': No such file or directory user@host:~$ ll /dev/disk/by-path/ total 0 drwxr-xr-x 2 root root 100 Jan 1 1970 ./ drwxr-xr-x 7 root root 140 Jan 1 1970 ../ lrwxrwxrwx 1 root root 13 Aug 4 23:07 platform-3f202000.mmc -> ../../mmcblk0 lrwxrwxrwx 1 root root 15 Aug 4 23:07 platform-3f202000.mmc-part1 -> ../../mmcblk0p1 lrwxrwxrwx 1 root root 15 Aug 4 23:07 platform-3f202000.mmc-part2 -> ../../mmcblk0p2
Current Thought Process
I am trying to make the
/dev/sd*/ partition, with
MAKEDEV or some other method, and then proceed with
cfdisk to try and complete this part of my build. Any thoughts on this, am I over thinking it, or maybe misunderstanding what I need to do?