Gentoo, etc-update, fstab, oops.

I hit 'y' when etc-update asked me if I wanted to replace /etc/fstab. I've already beat my head against the table. Now I need to know how I can restore my fstab. I can (and have) done a df and a cat /proc/swaps, but I'm not sure if the swap listing is the way I would put it in the fstab.

any pointers? Besides being more careful in the future.


4 Replies

This is mine

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/ubd/0              /               ext3            defaults                0 0
/dev/ubd/1              none            swap            sw                      0 0

# NOTE: The next line is critical for boot!
none                    /proc           proc            defaults                0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink). 
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:

none                    /dev/shm        tmpfs           defaults                0 0

/etc/mtab lists what you currently have mounted and with what options, which is a good guide to what you should have in /etc/fstab - the dump/pass values are not the ones to use though.

Hopefully you caught it before a reboot, but if you didn't, the second post down on this thread will help:

That took care of the problem. Thanks.


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct