Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Jan 28, 2005 5:20 pm 
Offline
Junior Member

Joined: Wed Jan 26, 2005 7:20 pm
Posts: 34
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.

Thanks.


Top
   
 Post subject:
PostPosted: Fri Jan 28, 2005 5:43 pm 
Offline
Senior Member
User avatar

Joined: Mon Jun 23, 2003 1:25 pm
Posts: 260
This is mine

Code:
# 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


Top
   
 Post subject:
PostPosted: Fri Jan 28, 2005 7:41 pm 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
/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.

_________________
/ Peter


Top
   
 Post subject:
PostPosted: Fri Jan 28, 2005 7:57 pm 
Offline
Senior Member

Joined: Fri Aug 06, 2004 5:49 pm
Posts: 158
Hopefully you caught it before a reboot, but if you didn't, the second post down on this thread will help:
http://www.linode.com/forums/viewtopic.php?t=1416


Top
   
 Post subject: That got it. Thanks.
PostPosted: Mon Jan 31, 2005 8:50 pm 
Offline
Junior Member

Joined: Wed Jan 26, 2005 7:20 pm
Posts: 34
That took care of the problem. Thanks.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group