LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-01-2004, 02:35 PM   #1
Tinku
Member
 
Registered: Jul 2004
Location: INDIA
Distribution: SusE, Gentoo,Debian,FreeBSD
Posts: 197

Rep: Reputation: 30
entry in fstab file


instead of doing the following everytime as su, i want to ad an entry in the fstab fiile?


mount --bind <source directory> <destination dir>

HOw to go abt it?
tia
tinku
 
Old 10-01-2004, 02:46 PM   #2
coolfrog
Member
 
Registered: Sep 2004
Location: India
Distribution: Slackware 10.0
Posts: 77

Rep: Reputation: 15
Hi Tinku,
Open the fstab file as root.
You will see a list of columns in it.
In the first column enter the respective drive location eg /dev/hda/
in the second the mount point you've created in the mnt folder eg /mnt/HardDrive1/
Now in the third put the filesystem usually vfat.
In the remaining columns you can put either Defaults or uid=XXX,gid=XXX or umask 0000 and 0 0.

Heres an example of my fstab :
/dev/hda /mnt/disk1 vfat gid=500,uid=500 0 0
 
Old 10-01-2004, 02:48 PM   #3
vash_stewy
LQ Newbie
 
Registered: Apr 2004
Distribution: Fedora,Debian,FreeBSD, Slackware,Gentoo,MacOSX, WindowsXP
Posts: 24

Rep: Reputation: 15
I think this should help you out.
http://www.tuxfiles.org/linuxhelp/fstab.html
 
Old 10-01-2004, 02:52 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
You can't.

fstab's syntax knows nothing about --bind

What you CAN do, though, is put that line in
your rc.local which saves you the hassle of
doing it manually.


Cheers,
TInk
 
Old 10-01-2004, 10:38 PM   #5
Tinku
Member
 
Registered: Jul 2004
Location: INDIA
Distribution: SusE, Gentoo,Debian,FreeBSD
Posts: 197

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Tinkster
What you CAN do, though, is put that line in
your rc.local which saves you the hassle of
doing it manually.
whats the location of this rc.local file?
i have it neither in /etc/init.d nor in /etc/rc.d........
isnt it supposed to be there in one of the above location

tia

tinku
 
Old 10-01-2004, 11:45 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Sorry - I overlooked the SuSE in your profile.

In that case the file's called boot.local, but I
can't recall its location... try a
locate boot.local


Cheers,
Tink
 
Old 10-02-2004, 12:06 AM   #7
Tinku
Member
 
Registered: Jul 2004
Location: INDIA
Distribution: SusE, Gentoo,Debian,FreeBSD
Posts: 197

Original Poster
Rep: Reputation: 30
thnx a lot
that worked
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
what is wrong with this /etc/fstab entry? d1l2w3 Linux - Hardware 10 01-31-2005 11:15 PM
/etc/fstab entry ryedunn Linux - Newbie 1 01-17-2005 01:45 AM
NTFS FSTAB Entry Campy19 Mandriva 2 11-02-2004 07:37 PM
adding an entry to /etc/fstab file and another query Tinku Linux - General 3 08-11-2004 08:35 PM
fstab entry albean Linux - Newbie 1 12-04-2002 01:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:19 PM.

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