![]() ![]() I’ve added my own bits, such as consulting the boot/cmdline.txt file rather than simply assuming the root file system’s location, using UUIDs to identify the partitions, and expanding the existing swap file rather than creating a separate swap partition. In turn, that article was based on a forum post by “Rattus” at. In particular, Ted Hale’s article at is pretty much the blueprint I started from. This article would not have been possible if not for others that went before me. The resulting system should run faster and smoother, and you won’t be using up your SD card’s limited number of write cycles on high-frequency stuff like a virtual memory swap file. All that stays behind on the SD card is a very small boot partition, everything else moves to the hard drive. What you can do is to move all the stuff that comes after that first step to a different device, such as the external hard drive. ![]() I saw someone on a forum claiming to have done away with the SD card altogether, but I’ll believe it when I see it. That’s not to say things couldn’t change in the future. That boot partition contains just a tiny piece of the boot process, but at least for now, its location is non-negotiable. When the Raspberry Pi boots up, it looks to the first partition on the SD card for instructions on what to do next. ![]() You can’t actually boot entirely from the hard drive, but you can boot mostly from the hard drive. The Raspberry Pi Home Server is going to need a proper hard drive, and as long as you’re adding a hard drive, you may as well take advantage of its speed and boot the Raspberry Pi from it. Whether you believe that or not, one thing is certain In order to be a useful home server, the Raspberry Pi is going to need access to more storage space than you get from a simple SD card. That number is ridiculously large, but some have said that it can still be used up faster than you think by things like virtual memory swap files which are written and re-written constantly. SD cards are also very small compared to hard drives, though, and they can only be written to a finite number of times. Running the Raspberry Pi off of an SD card is simple, affordable, and very convenient. Make sure you’ve configured the Pi to boot to the command line, and everything should work as per the original post. Updates: If you didn’t change the boot option using raspi-config so that the Pi boots to the command-line, the hard drive will auto-mount each time you boot up, and copying the root filesystem to the external drive will fail. If you have a Pluralsight subscription, please consider watching it. Self-promotion: I’ve recorded this series as a screencast for Pluralsight: This article is kept for historical reference, but should be considered out of date. Please refer to the new index for updated articles and ordering. A new version of this series has been published. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |