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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-09-2004, 11:09 AM
|
#1
|
Member
Registered: Jul 2004
Location: INDIA
Distribution: SusE, Gentoo,Debian,FreeBSD
Posts: 197
Rep:
|
adding an entry to /etc/fstab file and another query
Hello
i have a drive apart from the root partition,its a fat file system,.,
normally whenever i reboot this is what i do to mount it
mount -t vfat /dev/hda1 /mnt/ax/
Now ,I want to add this to the fstab file so that i dont have to mount whenever i reboot.
how do i do it?
also is there a way to make the drive's space into my present linux home??i am the single user of my system (home pc).......ofcourse after removing all the data on it ..
thanx for any suggestions
tinku
Last edited by Tinku; 06-03-2005 at 04:30 AM.
|
|
|
08-09-2004, 11:47 AM
|
#2
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
Use your favorite editor and simply put in your fstab file:
Code:
/dev/hda1 /mnt/ax/ vfat users 0 0
That would be the basic way, man fstab and mount for more details and options.
|
|
|
08-09-2004, 12:14 PM
|
#3
|
Senior Member
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687
Rep:
|
you would want a line like this in /etc/fstab:
#this mounts /dev/hda of type auto onto /mnt/windows with the permissions shown...
/dev/hda1 /mnt/windows auto uid=1000,gid=1000,umask=002,exec,dev,suid,rw,auto,user 0 0
#this would mount it to /home/your_account_name/windows - so it is available in your home
/dev/hda1 /home/your_account_name/windows auto uid=1000,gid=1000,umask=002,exec,dev,suid,rw,auto,user 0 0
The directory ~/windows will have to exist - you must create it first
You can replace the filesystem-type "auto" with "vfat" if you want - but auto always worked for me
|
|
|
08-11-2004, 08:35 PM
|
#4
|
Member
Registered: Jul 2004
Location: INDIA
Distribution: SusE, Gentoo,Debian,FreeBSD
Posts: 197
Original Poster
Rep:
|
thnx for both of u,,both worked
|
|
|
All times are GMT -5. The time now is 02:31 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|