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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
11-19-2004, 06:33 AM
|
#1
|
|
Member
Registered: Aug 2004
Location: Germany
Distribution: Sarge
Posts: 153
Rep:
|
how to edit fstab/mtab?
hello, I use agnula 1.2 (based on Debian).
The problem is my harddiscs are not presented in /mnt.
The cdrom and floppy are in /media (not in /mnt!!!???). They work fine.
But how can I enable my hda1,5,6 in /mnt to be able to mount it?
hda3 is reiserfs
hda1 is fat32
hda5 is fat32
hda6 is ntfs (read-only would be o.k.)
|
|
|
|
11-19-2004, 06:52 AM
|
#2
|
|
Senior Member
Registered: Mar 2004
Location: Munich
Distribution: SuSE 12
Posts: 3,511
Rep:
|
I don't know if you have ntfs support for your kernel, but try the following:
Login as root and create a mountpoint for each partition (if they are not present already), using the command mkdir /mnt/hdax (x=1,5 or and 6).
Open /etc/fstab with an editor of your choice (e.g. pico /etc/fstab)
For each partition, create a new line with the following information:
Code:
/dev/hdax /mnt/hdax vfat(or ntfs) defaults,umask=000 0 0
Then save and reboot. After reboot you should have the partitions mounted.
Good luck!
|
|
|
|
11-19-2004, 06:59 AM
|
#3
|
|
Member
Registered: Aug 2004
Location: Germany
Distribution: Sarge
Posts: 153
Original Poster
Rep:
|
i opened fstab as root and aded the following line:
/dev/hda5 /mnt/hda5 vfat rw,user,noauto 0 0.
This didnt work.
I have not done any moutpoints yet.
I am going to it today. thanks, this could be one important step.
I have another two questions:
- When I save mtab, the changes are disappeared after the next reboot. What is going on?
- what means umask=000?
thanks,
|
|
|
|
11-19-2004, 07:03 AM
|
#4
|
|
Member
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slackware, LFS, Ubuntu, RedHat, Slamd64
Posts: 507
Rep:
|
mtab is generated and modified by the system. It's just a list of what filesystems are mounted, you don't need to edit it.
|
|
|
|
11-19-2004, 07:21 AM
|
#5
|
|
Senior Member
Registered: Mar 2004
Location: Munich
Distribution: SuSE 12
Posts: 3,511
Rep:
|
Quote:
|
I have not done any moutpoints yet.
|
Without mountpoints it will not work.
Windows filesystems cannot deal with Linux permissions. To get access to those files, one needs to translate these permissions. Umask modifies the default permissions, e.g. umask=000 means no modification of default rights (comparable to chmod 777), whereas umask=002 is equivalent to chmod 775.
|
|
|
|
11-20-2004, 10:16 AM
|
#6
|
|
Member
Registered: Aug 2004
Location: Germany
Distribution: Sarge
Posts: 153
Original Poster
Rep:
|
i did:
/dev/hda5 /mnt/hda5 vfat defaults,umask=000 0 0
But the drive still is not displayed in /mnt. 
|
|
|
|
11-20-2004, 11:16 AM
|
#7
|
|
Senior Member
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721
Rep:
|
hi,
you really should try ( as root ) : " #mkdir /mnt/hda5 ".
egag
Last edited by egag; 11-20-2004 at 11:18 AM.
|
|
|
|
11-21-2004, 08:17 AM
|
#8
|
|
Member
Registered: Aug 2004
Location: Germany
Distribution: Sarge
Posts: 153
Original Poster
Rep:
|
thanks a lot.
It works! its superb.
greets, c
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:50 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
|
|