Results 1 to 5 of 5
Thread: how to recover my fstab???
|
|
Enjoy an ad free experience by logging in. Not a member yet? Register.
|
|
-
06-05-2007 #1Just Joined!
- Join Date
- Jun 2007
- Posts
- 3
how to recover my fstab???
Accidentally lost my fstab file. now is empty!!
Can somebody help me?? my distro is ubuntu
if I type "mount" then I get this:
/dev/sda1 on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
/sys on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
devshm on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
and I found this file fstab.pre-uuid than contains this:
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda1
UUID=6750a7a9-06b3-458b-9fc7-9f596d87b283 / ext3 defaults,errors=remount-ro 0 1
# /dev/sda5
UUID=d3b72163-1ddd-453f-884f-9b3daceae36a none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
# UNCONFIGURED FSTAB FOR BASE SYSTEM
do I copy the contents of this last fstab.pre-uuid with this like-serial-numbers or make a new one like "/dev/sda1 on / type ext3 (rw,errors=remount-ro)" ??
please help me!
-
06-06-2007 #2
copy fstab.pre-uuid and create new fstab file.
Code:cd /etc sudo cp fstab.pre-uuid fstab
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
-
06-06-2007 #3Just Joined!
- Join Date
- Jun 2007
- Posts
- 3
and what about these others that appear mounted right now?
Do I add them to the fstab? or they're mounted automatically in some other init file???
proc on /proc type proc (rw,noexec,nosuid,nodev)
/sys on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
devshm on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
-
06-06-2007 #4
all other partitions are virtual. created and mounted during boot up only.
check the output of these commands.
fstab.pre-uuid is correct. copy it.Code:cat /proc/mounts df -h
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
-
06-06-2007 #5Just Joined!
- Join Date
- Jun 2007
- Posts
- 3
Thanks a lot!!
I'm going to restart the server on the weekend and see if it explodes or not.
you indians rule.
thanks a lot from México


Reply With Quote