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.
|
 |
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: Ubuntu
Posts: 3,517
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: Ubuntu
Posts: 3,517
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
|
|
|
All times are GMT -5. The time now is 06:04 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
|
|