Showing posts with label fstab. Show all posts
Showing posts with label fstab. Show all posts

Thursday, 23 January 2014

FSTAB Backup (Linux Mint 15)

# /etc/fstab: static file system information.
#
#            

#Entry for /dev/sda2 :
UUID=a8df1bf1-348e-488d-8b4b-85cf697508a2 / ext4 errors=remount-ro 0 1
#Entry for /dev/sda3 :
UUID=af6228ed-ecf6-4ba5-b41b-1ee2ad3131d1 /home ext4 defaults 0 2
#Entry for /dev/sdb5 :
UUID=6A96512F11008B6C /media/Archives ntfs-3g defaults,locale=en_GB.UTF-8 0 0
#Entry for /dev/sdb1 :
UUID=717C64040B1AAA85 /media/Audio ntfs-3g defaults,locale=en_GB.UTF-8 0 0
#Entry for /dev/sdb7 :
UUID=22B1D8761652CD13 /media/Audiobooks ntfs-3g defaults,locale=en_GB.UTF-8 0 0
#Entry for /dev/sdb2 :
UUID=4DA5A9D475203A97 /media/Comics ntfs-3g defaults,locale=en_GB.UTF-8 0 0
#Entry for /dev/sdb3 :
UUID=5738040F13AA6DB3 /media/Encrypted ntfs-3g defaults,locale=en_GB.UTF-8 0 0
#Entry for /dev/sda6 :
UUID=7DD730AC7EBC41BA /media/Storage ntfs-3g defaults,locale=en_GB.UTF-8 0 0
#Entry for /dev/sdb6 :
UUID=3D6F4D094E05930A /media/Television ntfs-3g defaults,locale=en_GB.UTF-8 0 0
#Entry for /dev/sdb8 :
UUID=485D903C5ED3DE8B /media/Video ntfs-3g defaults,locale=en_GB.UTF-8 0 0
#Entry for /dev/mapper/cryptswap1 :
/dev/sda5 none swap sw 0 0
#UUID=86612f93-9212-4b65-a84e-5e2246958ee6 none swap sw 0 0

#UUID=4911e8b6-c879-459b-8d47-3a5d2dbe19fb none swap sw 0 0

Saturday, 9 March 2013

Backup fstab (Manjaro)


First create the respective folders in /media
#
# /etc/fstab: static file system information
#
#


UUID=547fd19a-66be-46b0-8323-815b7adfeb76 / ext4 defaults 0 1
UUID=8978dd1d-1867-4ced-ad55-87e3e939dc4c swap swap defaults 0 0
UUID=fe17cdfb-7b6e-4cd8-8eb1-016daedae010 /home ext4 defaults 0 1
#added mount points
/dev/sda4 /media/backup ntfs defaults 0 0
/dev/sdb1 /media/audio ntfs defailts 0 0
/dev/sdb2 /media/archives ntfs defaults 0 0
/dev/sdb5 /media/television ntfs defaults 0 0
/dev/sdb6 /media/comics ntfs defaults 0 0
/dev/sdb7 /media/video ntfs defaults 0 0

Sunday, 8 March 2009

Mounting NTFS Drives (Fedora 10)


Install the utility ntfs-config from the repositories:

After using it, your fstab files should read:

# /etc/fstab: static file system information.
#
#

tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
#Entry for /dev/sda5 :
UUID=d572a434-8fb1-4fc2-b808-5649d0cc8a3e / ext3 defaults 1 1
#Entry for /dev/sda7 :
UUID=463e2a0f-3bfa-4fd5-935b-2d1720a62aea /home ext3 defaults 1 2
#Entry for /dev/sdb1 :
UUID=72188BF931F7548A /media/Archives ntfs-3g defaults,locale=en_US.UTF-8 0 0
#Entry for /dev/sdb5 :
UUID=448EE9AE6EA505E0 /media/Audio ntfs-3g defaults,locale=en_US.UTF-8 0 0
#Entry for /dev/sdb6 :
UUID=57D531AA6BB0C0BE /media/Video ntfs-3g defaults,locale=en_US.UTF-8 0 0
#Entry for /dev/sda6 :
UUID=0a44b859-4799-409b-86ac-d5708a7e141d swap swap defaults 0 0

#UUID=448EE9AE6EA505E0 /media/music ntfs-3g uid=1000,gid=100,umask=0 0 0
#UUID=72188BF931F7548A /media/archives ntfs-3g uid=1000,rw,gid=100,umask=0 0 0
#UUID=57D531AA6BB0C0BE /media/video ntfs-3g uid=1000,gid=100,umask=0 0 0
#UUID=DE487FA5487F7B5B /media/ntfs ntfs-3g uid=1000,gid=100,umask=0 0 0

Thursday, 26 February 2009

fstab - Backup (Fedora 10)


Dont forget to create the appropriate folders first!!!!

#
# /etc/fstab
# Created by anaconda on Thu Feb 19 18:50:36 2009
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or vol_id(8) for more info
#
UUID=d572a434-8fb1-4fc2-b808-5649d0cc8a3e / ext3 defaults 1 1
UUID=463e2a0f-3bfa-4fd5-935b-2d1720a62aea /home ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
UUID=0a44b859-4799-409b-86ac-d5708a7e141d swap swap defaults 0 0
#Added Mounts
#Audio
UUID=448EE9AE6EA505E0 /media/music ntfs-3g uid=1000,gid=100,umask=022 0 0
#Archives
UUID=72188BF931F7548A /media/archives ntfs-3g uid=1000,gid=100,umask=022 0 0
#Video
UUID=57D531AA6BB0C0BE /media/video ntfs-3g uid=1000,gid=100,umask=022 0 0
#NTFS Windows
UUID=DE487FA5487F7B5B /media/ntfs ntfs-3g uid=1000,gid=100,umask=022 0 0

Friday, 5 September 2008

Automounting NTFS Partitions (Ubuntu)

To find out the UUID of a particular partition type in:

sudo blkid | grep sdb1

Remember to change the sbd1 part to whichever partition you want the UUID number of. Then set yourself a mount point in /media:

sudo mkdir /media/sdb1

Again, sdb1 can be whatever you want it to be, as long as it matches your fstab entry. Then backup and edit fstab:

cp /etc/fstab /etc/fstab.bak
gksu gedit /etc/fstab

Add this line - insert UUID and change /media/sda1 to whatever your mount point is. GID 100 is group users, 46=plugdev, 1000 is normally your group:

UUID=enterUUIDnumberhere /media/sdb1 ntfs-3g uid=1000,gid=100,umask=022 0 0

Remount /dev/sdb1, if it's already mounted:

sudo umount /dev/sdb1
sudo mount /dev/sdb1

Tuesday, 10 June 2008

Mounting Partitions (Mint 5.0)

Unlike in Mint 4.0, for some reason the NTFS partitions don't auto-mount on bootup in Mint 5.0. To get them to boot, the easiest solution is to download the "ntfs-config" tool from Synaptic. It's basically a GUI tool that alters the fstab for you.

If however you're happy with editing the fstab, you need to create individual directories first in /media, using......

sudo mkdir /media/nameofdirectory

........and then alter your fstab accordingly. The finished product should look something like this......

proc /proc proc defaults 0 0
# Entry for /dev/sda5 :
UUID=a1f611d0-1cf4-4906-b652-5f851d0b70a6 / ext3 relatime,errors=remount-ro 0 1
# Entry for /dev/sda7 :
UUID=b1fa4d86-0b25-4e96-a331-8a1033b8f647 /home ext3 relatime 0 2
# Entry for /dev/sda6 :
UUID=2294b177-9d7f-4a68-a32a-ff3b8adcbefa none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/sdb6 /media/Video ntfs-3g defaults,locale=en_GB.UTF-8 0 0
/dev/sdb1 /media/Archives ntfs-3g defaults,locale=en_GB.UTF-8 0 0
/dev/sdb5 /media/Audio ntfs-3g defaults,locale=en_GB.UTF-8 0 0
/dev/sda1 /media/System ntfs-3g defaults,locale=en_GB.UTF-8 0 0

Sunday, 30 December 2007

Mount Error In mtab

On boot, after a clean install of Mepis 7.0, Linux will throw up a error message of....

mount: according to mtab, sysfs is already mounted on /sys


To remedy, remove the sections in the fstab text file that are prefixed with "none", replacing them with the duplicate, complete entries from mtab. Save and reboot.

For example:

After a clean install, /etc/fstab will read as.....

# Pluggable devices are handled by uDev, they are not in fstab
/dev/sda5 / ext3 defaults,noatime 1 1
/dev/sda6 swap swap sw,pri=1 0 0
none /proc proc defaults 0 0
none /proc/bus/usb usbfs devmode=0666 0 0
none /dev/pts devpts mode=0622 0 0
none /sys sysfs defaults 0 0
/dev/sda7 /home auto defaults,noatime 1 2
# Dynamic entries below
/dev/sda1 /mnt/sda1 ntfs-3g noauto,users 0 0
/dev/sda2 /mnt/sda2 vfat,ext3,ext2,reiserfs noauto,users,exec 0 0
/dev/sda3 /mnt/sda3 vfat,ext3,ext2,reiserfs noauto,users,exec 0 0
/dev/cdrom /media/cdrom udf,iso9660 noauto,users,exec,ro 0 0
/dev/scd0 /media/cdrom udf,iso9660 noauto,users,exec,ro 0 0


Remove the values preceded with the word "none" and replace them with their mtab equivalents, as found in the /etc/mtab text file.

/dev/sda5 / ext3 rw,noatime 0 0
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
procbususb /proc/bus/usb usbfs rw 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
shmfs /lib/init/rw/splashy tmpfs rw 0 0
fusectl /sys/fs/fuse/connections fusectl rw 0 0
/dev/sda7 /home ext3 rw,noatime 0 0
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0


The resulting file should read as:

# Pluggable devices are handled by uDev, they are not in fstab
/dev/sda5 / ext3 defaults,noatime 1 1
/dev/sda6 swap swap sw,pri=1 0 0
proc /proc proc rw,noexec,nosuid,nodev 0 0
procbususb /proc/bus/usb usbfs rw 0 0
devpts /dev/pts devpts rw,noexec,nosuid,gid=5,mode=620 0 0
sysfs /sys sysfs rw,noexec,nosuid,nodev 0 0
/dev/sda7 /home auto defaults,noatime 1 2
# Dynamic entries below
/dev/sda1 /mnt/sda1 ntfs-3g noauto,users 0 0
/dev/sda2 /mnt/sda2 vfat,ext3,ext2,reiserfs noauto,users,exec 0 0
/dev/sda3 /mnt/sda3 vfat,ext3,ext2,reiserfs noauto,users,exec 0 0
/dev/cdrom /media/cdrom udf,iso9660 noauto,users,exec,ro 0 0
/dev/scd0 /media/cdrom udf,iso9660 noauto,users,exec,ro 0 0

Monday, 30 April 2007

SATA ONLY fstab - Mounting Fat32/NTFS Partitions (Mepis 6.5)

Original fstab after clean install of Simply Mepis 6.5:

# Pluggable devices are handled by uDev, they are not in fstab
/dev/sda5 / ext3 defaults,noatime 1 1
/dev/sda6 swap swap sw,pri=1 0 0
none /proc proc defaults 0 0
none /proc/bus/usb usbfs devmode=0666 0 0
none /dev/pts devpts mode=0622 0 0
none /sys sysfs defaults 0 0
/dev/sda7 /home ext3 defaults,noatime 1 2
# Dynamic entries below
/dev/sda1 /mnt/sda1 ntfs-3g noauto,users 0 0
/dev/sda2 /mnt/sda2 vfat,ext3,ext2,reiserfs noauto,users,exec 0 0
/dev/sda3 /mnt/sda3 vfat,ext3,ext2,reiserfs noauto,users,exec 0 0
/dev/cdrom /media/cdrom udf,iso9660 noauto,users,exec,ro 0 0
/dev/hda /media/cdrom udf,iso9660 noauto,users,exec,ro 0 0
/dev/fd0 /media/floppy vfat,ext2 noauto,users,exec,rw 0 0

To auto-mount the other drive partitions, allowing read/write privileges on the fat32 partitions, alter the fstab entry by doing the following::

su
kate /etc/fstab

Change the fstab entry until it looks like the following:

# Pluggable devices are handled by uDev, they are not in fstab
/dev/sda5 / ext3 defaults,noatime 1 1
/dev/sda6 swap swap sw,pri=1 0 0
none /proc proc defaults 0 0
none /proc/bus/usb usbfs devmode=0666 0 0
none /dev/pts devpts mode=0622 0 0
none /sys sysfs defaults 0 0
/dev/sda7 /home ext3 defaults,noatime 1 2
/dev/sda1 /mnt/sda1 ntfs-3g auto,users 0 0
# Dynamic entries below
/dev/sda2 /mnt/sda2 vfat,ext3,ext2,reiserfs noauto,users,exec 0 0
/dev/sda3 /mnt/sda3 vfat,ext3,ext2,reiserfs noauto,users,exec 0 0
/dev/cdrom /media/cdrom udf,iso9660 noauto,users,exec,ro 0 0
/dev/hda /media/cdrom udf,iso9660 noauto,users,exec,ro 0 0
/dev/fd0 /media/floppy vfat,ext2 noauto,users,exec,rw 0 0

Then add the following to your /etc/rc.local file before "exit":


if [ -e /usr/local/bin/mountVFAT.sh ]; then
/usr/local/bin/mountVFAT.sh
fi

Create a folder named "bin within the /usr/local folder. Then inside that folder create a text called mountVFAT.sh. That text file should contain the following information:

#!/bin/bash

sudo -u melchizedek mount /mnt/sda2
sudo -u melchizedek mount /mnt/sda3

Change the file permissions using the following command:

chmod ug+x /usr/local/bin/mountVFAT.sh


Reboot

Monday, 23 April 2007

SATA/PATA - Mounting Fat32/NTFS Partitions (Mepis 6.5)

Original fstab after clean install of Simply Mepis 6.5:

# Pluggable devices are handled by uDev, they are not in fstab
/dev/sda3 / ext3 defaults,noatime 1 1
/dev/sda2 swap swap sw,pri=1 0 0
none /proc proc defaults 0 0
none /proc/bus/usb usbfs devmode=0666 0 0
none /dev/pts devpts mode=0622 0 0
none /sys sysfs defaults 0 0
# Dynamic entries below, identified by 'users' option
/dev/sda1 /mnt/sda1 ntfs noauto,users,exec,ro,umask=0222 0 0
/dev/hdc1 /mnt/hdc1 vfat,ext3,ext2,reiserfs noauto,users,exec 0 0
/dev/hdc5 /mnt/hdc5 vfat,ext3,ext2,reiserfs noauto,users,exec 0 0
/dev/sda4 /mnt/sda4 vfat,ext3,ext2,reiserfs noauto,users,exec 0 0
/dev/cdrom /media/cdrom iso9660,udf noauto,users,exec,ro 0 0

To auto-mount the other drive partitions, allowing read/write privileges on the fat32 partitions, alter the fstab entry by doing the following:

su
kate /etc/fstab

Change the fstab entry until it looks like the following:

# Pluggable devices are handled by uDev, they are not in fstab
/dev/sda3 / ext3 defaults,noatime 1 1
/dev/sda2 swap swap sw,pri=1 0 0
none /proc proc defaults 0 0
none /proc/bus/usb usbfs devmode=0666 0 0
none /dev/pts devpts mode=0622 0 0
none /sys sysfs defaults 0 0
/dev/sda1 /mnt/sda1 ntfs-3g auto,users 0 0
# Dynamic entries below
/dev/hdc1 /mnt/hdc1 vfat,ext3,ext2,reiserfs noauto,users,exec 0 0
/dev/hdc5 /mnt/hdc5 vfat,ext3,ext2,reiserfs noauto,users,exec 0 0
/dev/sda4 /mnt/sda4 auto noauto,users,exec 0 0
/dev/cdrom /media/cdrom udf,iso9660 noauto,users,exec,ro 0 0
/dev/hda /media/cdrom udf,iso9660 noauto,users,exec,ro 0 0

Then add the following to your /etc/rc.local file before "exit":

if [ -e /usr/local/bin/mountVFAT.sh ]; then
/usr/local/bin/mountVFAT.sh
fi

Create a folder named "bin within the /usr/local folder. Then inside that folder create a text called mountVFAT.sh. That text file should contain the following information:

#!/bin/bash

sudo -u melchizedek mount /mnt/hdc1
sudo -u melchizedek mount /mnt/hdc5
sudo -u melchizedek mount /mnt/sda4

Change the file permissions using the following command:

chmod ug+x /usr/local/bin/mountVFAT.sh

Reboot