LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices



Reply
 
Search this Thread
Old 11-19-2004, 06:54 AM   #1
g-string 3
Member
 
Registered: Aug 2004
Location: Germany
Distribution: Sarge
Posts: 153

Rep: Reputation: 30
How to edit mtab/fstab


hello, I use agnula 1.2 (based on Debian).
The problem is my harddiscs are not presented in /mnt.
The cdrom and floppy is in /media and works 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.)

Last edited by g-string 3; 11-19-2004 at 06:56 AM.
 
Old 11-19-2004, 02:24 PM   #2
ferrix
Member
 
Registered: Jun 2003
Location: Sydney, Australia
Distribution: Ultima, Blag, KateOS, PCLinuxOS, Frugalware
Posts: 216

Rep: Reputation: 31
First of all, create mountpoints in /mnt - just use mkdir command. Then edit fstab with your favourite text editor... see http://www.userlocal.com/tips/fatmounting.php
 
Old 02-03-2006, 05:21 PM   #3
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
Rule #1 of editing your file system tables: NEVER EDIT /etc/mtab!!!!!!!! It is built off of fstab; meaning when you mount a drive, mtab gets written to.

Here's what you gotta do to get your drives seen:

1. Launch a console, and type the following:
Code:
$ su
Password: (Enter root password)
To get root access.
Code:
$ cd /mnt/
$ mkdir directoryname
(Run this command 3 (three) times for each of the hard drives you wish to mount, each time specifying a different name - for this example, let's use the directorynames win_c, win_d, and win_e)
Code:
$ vi /etc/fstab
I know VI isn't the easiest text editor to use, but bear with me. When in VI, press 'I' to go into "Insert Mode," which allows you to edit the file, and add the following lines to the end of the file:
Code:
/dev/hda1 /mnt/win_c vfat umask=0,iocharset=iso8859-1,codepage=850 0 0
/dev/hda5 /mnt/win_d ntfs umask=0,nls=iso8859-1,ro 0 0
/dev/hda6 /mnt/win_e ntfs umask=0,nls=iso8859-1,ro 0 0
Make sure you leave a newline character at the end of the file (just hit [Enter] after you finish writing the last line to the file).

Then, press: [Esc]
Then, to save the file, and quit VI, just type: :wq

I hope that works

Edit: Unfortunately, unless you've compiled ntfs support into your kernel, you will not be able to write to any of the ntfs partitions.

Last edited by indienick; 02-03-2006 at 05:22 PM.
 
Old 02-03-2006, 05:25 PM   #4
g-string 3
Member
 
Registered: Aug 2004
Location: Germany
Distribution: Sarge
Posts: 153

Original Poster
Rep: Reputation: 30
Hi, thanks for your answer!

No, nano is better than Vi .... I'm just kidding .... I even do not know Vi.

Meanwhile I tested some other distros and learned this stuff a bit. Nevertheless thanks for your interest.

Have a nice day. Bye
 
Old 02-03-2006, 05:27 PM   #5
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
No problem.
 
  


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 Off
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 07:15 AM
how to edit fstab/mtab? g-string 3 Linux - General 7 11-21-2004 09:17 AM
/etc/fstab or /etc/mtab praveenv Linux - Newbie 1 08-17-2004 05:03 AM
use mtab as fstab?hi rgiggs Mandriva 5 06-08-2004 01:47 PM
what is the difference between /etc/fstab and /etc/mtab ? Xavius Linux - Newbie 2 03-27-2004 09:15 AM


All times are GMT -5. The time now is 07:24 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration