Find the answer to your Linux question:
Results 1 to 5 of 5
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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!

  2. #2
    SuperMod (Back again) devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,777
    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

  3. #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)

  4. $spacer_open
    $spacer_close
  5. #4
    SuperMod (Back again) devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,777
    all other partitions are virtual. created and mounted during boot up only.
    check the output of these commands.
    Code:
    cat /proc/mounts
    df -h
    fstab.pre-uuid is correct. copy it.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  6. #5
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •