Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-11-2012, 08:09 PM   #1
Registered: Aug 2010
Location: Zhongli, Taoyuan
Distribution: slackware, windows, debian (armv4l GNU/Linux)
Posts: 431
Blog Entries: 32

Rep: Reputation: 3
adding mounts to /etc/fstab

Hi, I am trying to add mounts to fstab, but I am quite a biggininner. Here is the line I have came up:
# Basic USB filesystem
sysfs  /sys  sysfs  defaults  0 0
usbfs /proc/bus/usb usbfs rw,devmode=0666 0 0

# example of a VFAT USB pendrive
#/dev/sda1  /mnt/pendrive vfat   fmask=111,dmask=0,noauto,user,quiet,shortname=mixed 0 0

#***********************Mount sda3 on main drive to /mnt/main
**********************/dev/sda3 /mnt/main

# Swap partitions
# The 'sw' option means auto activating with 'swapon -a'.
*******************************************sw -a /dev/sda2

#Local Area Network Shares
*********************// /mnt/win cifs 0 0
The lines with huge amounts of asteriks are the ones that I am trying to add, I have tried to read the tutorials online, but fstab file is quite an important file at bootup, I don't want to mess it up.
the /dev/sda3 is a logical partition in the hard disk that I am trying to map to mnt main.
I am trying to create a swap and map it to /dev/sda2 ~500mb roughly this amount of space (I am not sure how to check if the swap is successfully up and running as well).
Lastly, I am trying to map a local area share on to a folder in the mnt folder.
Thank you,
Old 08-11-2012, 09:09 PM   #2
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,092
Blog Entries: 28

Rep: Reputation: 6088Reputation: 6088Reputation: 6088Reputation: 6088Reputation: 6088Reputation: 6088Reputation: 6088Reputation: 6088Reputation: 6088Reputation: 6088Reputation: 6088
It looks like uou are missing important information, particularly the file system type, ownership, read-only or read/write, and so on, in the lines you added.

This is the best introduction to fstab that I've found:

And this is a good article on using UUIDs in fstab:

Last edited by frankbell; 08-11-2012 at 09:10 PM. Reason: clarity


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS Mounts : /etc/fstab questions kryon Linux - Server 1 03-20-2009 03:59 AM
samba mounts in fstab Zurvan Linux - Networking 5 04-17-2005 11:13 AM
fstab to define mounts on boot PhiMati Fedora 1 06-18-2004 06:29 PM
How to edit mounts - fstab problems... muzicman82 Linux - General 3 01-29-2004 11:06 PM
switching mounts in fstab elpresidente Linux - General 6 07-09-2002 08:54 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:40 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration