1

I've accidentally deleted all the contents of my fstab file and I can't mount or unmount any of my drives.

Here is my blkid output:

/dev/loop0: UUID="1d6980b1-174c-49d1-8a11-e95f1b26b4da" TYPE="ext3" 
/dev/sda1: LABEL="System Reserved" UUID="6ED60CCFD60C998B" TYPE="ntfs" 
/dev/sda2: UUID="C480709D8070979E" TYPE="ntfs" 
/dev/sda3: LABEL="New Volume" UUID="5ACAB093CAB06CBF" TYPE="ntfs" 
/dev/sda5: LABEL="New Volume" UUID="F64E260A4E25C3E9" TYPE="ntfs"

I think cat /etc/mtab output would also help:

/dev/loop0 / ext3 rw 0 0
proc /proc proc rw,noexec,nosuid,nodev 0 0
sysfs /sys sysfs rw,noexec,nosuid,nodev 0 0
none /sys/fs/fuse/connections fusectl rw 0 0
none /sys/kernel/debug debugfs rw 0 0
none /sys/kernel/security securityfs rw 0 0
udev /dev devtmpfs rw,mode=0755 0 0
devpts /dev/pts devpts rw,noexec,nosuid,gid=5,mode=0620 0 0
tmpfs /run tmpfs rw,noexec,nosuid,size=10%,mode=0755 0 0
none /run/lock tmpfs rw,noexec,nosuid,nodev,size=5242880 0 0
none /run/shm tmpfs rw,nosuid,nodev 0 0
/dev/sda3 /host fuseblk rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,blksize=4096 0 0
gvfs-fuse-daemon /home/asim/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev,user=asim 0 0
/dev/sda1 /media/System_Reserved fuseblk rw,nosuid,nodev,allow_other,default_permissions,blksize=4096 0 0
/dev/sda2 /media/sda2 fuseblk rw,nosuid,nodev,allow_other,default_permissions,blksize=4096 0 0
gvfs-fuse-daemon /root/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev 0 0

mount without mounting my drives:

/dev/loop0 on / type ext3 (rw)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
/dev/sda3 on /host type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,blksize=4096)
gvfs-fuse-daemon on /home/asim/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=asim)
gvfs-fuse-daemon on /root/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev)

mount output when all drives are mounted:

/dev/loop0 on / type ext3 (rw)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
/dev/sda3 on /host type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,blksize=4096)
gvfs-fuse-daemon on /home/asim/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=asim)
gvfs-fuse-daemon on /root/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev)
/dev/sda1 on /media/System Reserved type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096)
/dev/sda2 on /media/C480709D8070979E type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096)
/dev/sda5 on /media/New Volume_ type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096)
  • did you install ubuntu via wubi? – Avinash Raj Dec 14 '13 at 11:52
  • Yes! It is so. Sorry for not mentioning... – Asim Dec 14 '13 at 11:53
0

Wubi's /etc/fstab when installed the way you did (via disk image) should look like this, with just a single entry for the swap file:

/host/ubuntu/disks/swap.disk    none    swap    sw    0    0

You don't need an entry for / (root) as it is passed to the kernel as a parameter. But if it makes you comfortable you can set your /etc/fstab the way ubiquity does it (the other way of installing Wubi):

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
/host/ubuntu/disks/root.disk / ext3 loop,errors=remount-ro 0 1
/host/ubuntu/disks/swap.disk none swap loop,sw 0 0

PS I modified the above to make it ext3 because the disk image installs use ext3, not ext4 which is the default for the ubiquity installs.

PPS /host (/dev/sda3) is mounted automatically as well. Don't add an entry in /etc/fstab for that partition. You can add entries for your other NTFS partitions if you like.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.