Changes

Jump to: navigation, search

Successful booting with UUID

2,037 bytes added, 11 months ago
Finishing setting up the page, adding examples, commands and notes.
As is common in Linux, everything is a file (except for networking stuff, but that's beyond the scope of this guide) and so is the /etc/fstab file. To be safe, copy the contents of this file to a backup location.
'''{{console|body=###i## cp /etc/fstab /etc/fstab.bak'''}}
Next, obtain the UUID's of each partition in your system. For that, we have the blkid command:
'''{{console|body=###i## blkid /dev/sd* >> /etc/fstab'''}}
<Next thing is to edit the fstab file so it resembles this example: {{file|name=/etc/fstab|desc=/etc/fstab|file|body=#/dev/sda1 /boot jfs defaults 1 2UUID=4fec87f4-b4ad-4707-a1ef-3dd2dd0108c5 /boot jfs defaults 1 2#/dev/sda2 / jfs defaults 0 1UUID=95ca00ac-d0a4-4a80-ba44-4a615a6dc6a4 / jfs defaults 0 1#/dev/sda5 none swap sw 0 0UUID=4ab5f71d-a26a-4438-b66f-beee4d9c61a7 none swap sw 0 0#/dev/sda6 /home jfs user,noauto 0 2#UUID=10fa710a-9cbc-4cc4-b4d1-fc1d6b4d4ff6 /home jfs user,noauto 0 0}} Obviously, the UUID numbers will differ on your system and most likely so is the partitioning and perhaps the file system (jfs in this example) used.As you've noticed, both methods of designating partitions are present, shown for comparison only, with the /dev/sdX entries commented out. Once you've established your Funtoo system works with the UUID entries, you can remove the /dev/sdX lines. But it won't hurt if you leave them in place, just make sure they remain commented out. Double-check the entries and syntax are correct, then reboot. When your Funtoo system boots, congrats! You now have a system that always mounts the partitions in the tree consistently and correctly. ===== Expanding your system ===== If you add more drives to comeyour system, updating /etc/fstab is fairly straightforward. First, obtain which drive designation (following the /dev/sdX convention) the new drive has: {{console|body=###i## dmesg}}Assuming your new hard drive is sdb, run the blkid command again:{{console|body=###i## blkid /dev/sdb >> /etc/fstab}} Then edit /etc/fstab as before, making sure the directory where you want to mount it in the tree exists. {{note|The guide assumes you use SATA drives in your system, which is the de-facto standard on modern systems. If you're still using older IDE drives, you'll need to change the sdX references to hdX.}}
{{ArticleFooter}}
wiki-users
31
edits

Navigation menu