Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: fstab wiped out

  1. #1
    Join Date
    Dec 2006
    Location
    Perth Amboy, NJ
    Beans
    141
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    fstab wiped out [SOLVED]

    ok, so while trying to get my printer to work i tried various .deb files while trying to use other drivers. For some reason my fstab file was wiped and the the only thing showing is the usbfs filesystem

    my question: Is there any way to "recompile" the original list that i had? Is there any place where i may be able to re-list all the filesystems that were on /etc/fstab?

    (I can still restart/shutdown Linux and reboot fine, but i know I need that file with the original list of filesystems i had before.)

    any suggestions would be great, thanks in advance.
    Last edited by run1206; March 25th, 2009 at 04:09 AM.
    Welcome to the world of Open Source!!!
    Linux User #471120 Ubuntu User #21997
    Jaunty Jackalope 9.04

  2. #2
    Join Date
    Oct 2005
    Location
    Jacksonville, FL
    Beans
    29,420

    Re: fstab wiped out

    If you can still boot Ubuntu, then there has to be /etc/fstab or the system won't know where to mount what.

    What's the output of this command from a terminal?

    Code:
    ls -la /etc/fstab*
    In the world of Linux, who needs Windows and Gates...

    Got most of my golden beans at an auction on eBay (with a couple of free drinks).

  3. #3
    Join Date
    Dec 2006
    Location
    Perth Amboy, NJ
    Beans
    141
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: fstab wiped out

    Code:
    run1206@run1206-laptop:~$ ls -la /etc/fstab*
    -rw-r--r-- 1 root root 112 2009-03-15 16:32 /etc/fstab
    -rw-r--r-- 1 root root  71 2009-03-15 16:31 /etc/fstab~
    -rw-r--r-- 1 root root  43 2009-03-15 15:31 /etc/fstab.lexmark-z600.bak
    is there any way that i might use mtab to fill in the missing filesystems?
    i see most of them are there...
    Code:
    tmpfs /lib/init/rw tmpfs rw,nosuid,mode=0755 0 0
    /proc /proc proc rw,noexec,nosuid,nodev 0 0
    sysfs /sys sysfs rw,noexec,nosuid,nodev 0 0
    varrun /var/run tmpfs rw,nosuid,mode=0755 0 0
    varlock /var/lock tmpfs rw,noexec,nosuid,nodev,mode=1777 0 0
    udev /dev tmpfs rw,mode=0755 0 0
    tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
    devpts /dev/pts devpts rw,noexec,nosuid,gid=5,mode=620 0 0
    rootfs / rootfs rw 0 0
    fusectl /sys/fs/fuse/connections fusectl rw 0 0
    lrm /lib/modules/2.6.27-11-generic/volatile tmpfs rw,mode=755 0 0
    usbfs /proc/bus/usb usbfs rw,devgid=14 0 0
    securityfs /sys/kernel/security securityfs rw 0 0
    binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,noexec,nosuid,nodev 0 0
    gvfs-fuse-daemon /home/run1206/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev,user=run1206 0 0
    /dev/sdb1 /media/My\040GS\040Drive vfat rw,nosuid,nodev,uhelper=hal,shortname=mixed,uid=1000,utf8,umask=077,flush 0 0
    /dev/sda2 /media/ACER fuseblk rw,nosuid,nodev,allow_other,blksize=4096 0 0
    /dev/sda3 /media/DATA fuseblk rw,nosuid,nodev,allow_other,blksize=4096 0 0
    Last edited by run1206; March 15th, 2009 at 09:43 PM.
    Welcome to the world of Open Source!!!
    Linux User #471120 Ubuntu User #21997
    Jaunty Jackalope 9.04

  4. #4
    Join Date
    Oct 2005
    Location
    Jacksonville, FL
    Beans
    29,420

    Re: fstab wiped out

    Code:
    cat /etc/fstab
    In the world of Linux, who needs Windows and Gates...

    Got most of my golden beans at an auction on eBay (with a couple of free drinks).

  5. #5
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: fstab wiped out

    Nevermind - taurus has it covered. If fstab is empty, take a look at the contents of fstab~ and you might be able to recover that file.
    Back to Xorg...

    Retired.

  6. #6
    Join Date
    Dec 2006
    Location
    Perth Amboy, NJ
    Beans
    141
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: fstab wiped out

    Code:
    run1206@run1206-laptop:~$ cat /etc/fstab
    # 	<file system> 		<mount point> 		<type> 		<options> 	<dump> 		<pass>
    	proc 			/proc 			proc 		defaults 	0 		0
    run1206@run1206-laptop:~$
    and fstab~...
    Code:
    run1206@run1206-laptop:~$ cat /etc/fstab~
    # 	<file system> 		<mount point> 		<type> 		<options> 	<dump> 		<pass>
    run1206@run1206-laptop:~$
    Welcome to the world of Open Source!!!
    Linux User #471120 Ubuntu User #21997
    Jaunty Jackalope 9.04

  7. #7
    Join Date
    Oct 2005
    Location
    Jacksonville, FL
    Beans
    29,420

    Re: fstab wiped out

    Code:
    cat /etc/fstab~
    cat /etc/fstab.lexmark-z600.bak
    In the world of Linux, who needs Windows and Gates...

    Got most of my golden beans at an auction on eBay (with a couple of free drinks).

  8. #8
    Join Date
    Dec 2006
    Location
    Perth Amboy, NJ
    Beans
    141
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: fstab wiped out

    Code:
    run1206@run1206-laptop:~$ cat /etc/fstab~
    # 	<file system> 		<mount point> 		<type> 		<options> 	<dump> 		<pass>
    run1206@run1206-laptop:~$ cat /etc/fstab.lexmark-z600.bak 
    usbfs			/proc/bus/usb		usbfs	devgid=14 0 0
    run1206@run1206-laptop:~$
    the only one showing is the usbfs...

    anyway how i can manually put the filesystem back into fstab?
    Welcome to the world of Open Source!!!
    Linux User #471120 Ubuntu User #21997
    Jaunty Jackalope 9.04

  9. #9
    Join Date
    Oct 2005
    Location
    Jacksonville, FL
    Beans
    29,420

    Re: fstab wiped out

    You need to know the UUID's for all the partitions.

    Code:
    sudo fdisk -l
    sudo blkid
    Then, your /etc/fstab would look something like

    Code:
    proc            /proc           proc    defaults        0       0
    
    UUID=qwer1234asdf5678zxcv  /  ext3  relatime,errors=remount-ro  0  1
    UUID=1234qwer5678asdf90  none   swap  sw  0  0
    
    /dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0
    In the world of Linux, who needs Windows and Gates...

    Got most of my golden beans at an auction on eBay (with a couple of free drinks).

  10. #10
    Join Date
    Dec 2006
    Location
    Perth Amboy, NJ
    Beans
    141
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: fstab wiped out

    thanks for the blkid command...
    here's what i get.
    Code:
    run1206@run1206-laptop:~$ sudo blkid
    /dev/sda1: UUID="2A08D775E49BED2A" LABEL="PQSERVICE" TYPE="ntfs" 
    /dev/sda2: UUID="3C9051F19051B25E" LABEL="ACER" TYPE="ntfs" 
    /dev/sda3: UUID="E460B8DC60B8B720" LABEL="DATA" TYPE="ntfs" 
    /dev/sda5: UUID="c6853b2c-6e0b-40b2-ba6a-92ed9b86c6d5" TYPE="ext3" 
    /dev/sda6: TYPE="swap" UUID="5b5cd6e0-e2c0-4f79-96ce-912d82e5ce7f" 
    /dev/sdb1: LABEL="My GS Drive" UUID="780E-9E13" TYPE="vfat" 
    run1206@run1206-laptop:~$
    my fstab thus far is the attached file..
    Attached Images Attached Images
    Welcome to the world of Open Source!!!
    Linux User #471120 Ubuntu User #21997
    Jaunty Jackalope 9.04

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

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