LinuxQuestions.org
Help answer threads with 0 replies.
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 11-19-2004, 06:33 AM   #1
g-string 3
Member
 
Registered: Aug 2004
Location: Germany
Distribution: Sarge
Posts: 153

Rep: Reputation: 30
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.)
 
Old 11-19-2004, 06:52 AM   #2
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
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!
 
Old 11-19-2004, 06:59 AM   #3
g-string 3
Member
 
Registered: Aug 2004
Location: Germany
Distribution: Sarge
Posts: 153

Original Poster
Rep: Reputation: 30
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,
 
Old 11-19-2004, 07:03 AM   #4
jkobrien
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slackware, LFS, Ubuntu, RedHat, Slamd64
Posts: 507

Rep: Reputation: 30
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.
 
Old 11-19-2004, 07:21 AM   #5
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
Quote:
I have not done any moutpoints yet.
Without mountpoints it will not work.
Quote:
what means umask=000?
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.
 
Old 11-20-2004, 10:16 AM   #6
g-string 3
Member
 
Registered: Aug 2004
Location: Germany
Distribution: Sarge
Posts: 153

Original Poster
Rep: Reputation: 30
i did:
/dev/hda5 /mnt/hda5 vfat defaults,umask=000 0 0

But the drive still is not displayed in /mnt.
 
Old 11-20-2004, 11:16 AM   #7
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
hi,

you really should try ( as root ) : " #mkdir /mnt/hda5 ".

egag

Last edited by egag; 11-20-2004 at 11:18 AM.
 
Old 11-21-2004, 08:17 AM   #8
g-string 3
Member
 
Registered: Aug 2004
Location: Germany
Distribution: Sarge
Posts: 153

Original Poster
Rep: Reputation: 30
thanks a lot.
It works! its superb.

greets, c
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
fstab problem: mount: can't find dvd in /etc/fstab or /etc/mtab Nikon01 Slackware 5 11-17-2006 06:15 AM
How to edit mtab/fstab g-string 3 Linux - Distributions 4 02-03-2006 04:27 PM
/etc/fstab or /etc/mtab praveenv Linux - Newbie 1 08-17-2004 04:03 AM
use mtab as fstab?hi rgiggs Mandriva 5 06-08-2004 12:47 PM
what is the difference between /etc/fstab and /etc/mtab ? Xavius Linux - Newbie 2 03-27-2004 08:15 AM

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

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