Home arrow Journal arrow Use Unique IDs in /etc/fstab to prevent booting errors in FreeBSD
Use Unique IDs in /etc/fstab to prevent booting errors in FreeBSD PDF
Tuesday, 10 January 2012
If for example we add a new sata controller drive order might be changed and our FreeBSD system will not boot. To prevent that we can use drive unique IDs in /etc/fstab instead of partition names.

Do do that we will first find the unique ID of the mounted partition using dumpfs (the example is for partition mounted for /):

  dumpfs / | grep id

We will get:

superblock location    65536    id    [ 4ecd076f 51229e38 ]
volname        swuid    0


Then we edit /etc/fstab and add the id for / partition:

/dev/ufsid/4ecd076f51229e38    /        ufs    rw    1    1

We can repeat the process for every partition that will be mounted at boot time using /etc/fstab.

 
< Prev   Next >

Other BSD Systems

OpenBSD

Misc

Solaris

Polls

Best BSD firewall?