LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-11-2012, 07:09 PM   #1
ted_chou12
Member
 
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:
Code:
# 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
*********************//192.168.1.9/Desktop /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,
Ted.
 
Old 08-11-2012, 08:09 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
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:

http://www.tuxfiles.org/linuxhelp/fstab.html

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

http://linux.byexamples.com/archives...tab-with-uuid/

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


Reply



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 02:59 AM
samba mounts in fstab Zurvan Linux - Networking 5 04-17-2005 10:13 AM
fstab to define mounts on boot PhiMati Fedora 1 06-18-2004 05:29 PM
How to edit mounts - fstab problems... muzicman82 Linux - General 3 01-29-2004 10:06 PM
switching mounts in fstab elpresidente Linux - General 6 07-09-2002 07:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:18 AM.

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