LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-21-2005, 01:49 PM   #1
UV_Blue
LQ Newbie
 
Registered: Mar 2005
Location: Midvale, Utah
Posts: 4

Rep: Reputation: 0
NTFS/Automounting


I am fairly new to Linux, I can do something if I know how, but that's the problem, I don't even know where to start, so I figured here was as good of a place as any. I need to mount the NTFS partition /Dev/hda1 to /mnt/windows at boot, and give permission to all sub-folders/files to users. How would I go about doing this? I have added a module to my Fedora Core 3 kernel (2.6.10-1.770) to allow it to recognize NTFS partitions. If someone could give me a step by step guide or basic overview along with why you do certain things I would appreciate it.
 
Old 03-21-2005, 01:59 PM   #2
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
there is a file in the /etc (configuration) folder. it is used to store information about your 'file system table'. its full path is '/etc/fstab'. open a terminal window and login as root and edit that file, for example type the following at the prompt to do this:
Code:
sudo gedit /etc/fstab
it will ask for the root password for the sudo (super-user do) command, so make sure you have that and enter it in when asked. this will then open the program 'gedit' (similar to M$'s wordPad) and load the file /etc/fstab. add a line to the end of this file to have a location auto-mounted on bootup.
here is an example of a line i added to have one of my NTFS partitions auto-mounted on boot:
Code:
/dev/hdb5       /mnt/win3       ntfs    auto,users,umask=000,rw 0 0
you can use that just replacing the 2 paths, if you like.

edit: also, be sure to watch your spelling of the paths you enter in, linux is case sensitive. /Dev is not /dev.

Last edited by nadroj; 03-21-2005 at 02:03 PM.
 
Old 03-21-2005, 01:59 PM   #3
jollyjoice
Member
 
Registered: Aug 2003
Location: UK
Distribution: Gentoo 64
Posts: 383

Rep: Reputation: 30
crack open a terminal and log in as root, you'll need to edit your fstab so do this with
Code:
nano /etc/fstab
u'll want to create a new entry along the lines of:
Code:
/dev/hda1     /mnt/windows  ntfs   users,noatime,auto   0 0
I can't remember the exact syntax but base it on the other entires, this shoul allow it to mount at boot.

Last edited by jollyjoice; 03-21-2005 at 03:14 PM.
 
Old 03-21-2005, 02:07 PM   #4
UV_Blue
LQ Newbie
 
Registered: Mar 2005
Location: Midvale, Utah
Posts: 4

Original Poster
Rep: Reputation: 0
Is umask used to change the ownership, or is that chmod? What's the difference between the 2?
 
Old 03-21-2005, 02:13 PM   #5
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
taken from here:

uid=value, gid=value and umask=value
Set the file permission on the filesystem. The umask value is given in octal. By default, the files are owned by root and not readable by somebody else.

info about chmod here
 
Old 03-21-2005, 02:18 PM   #6
UV_Blue
LQ Newbie
 
Registered: Mar 2005
Location: Midvale, Utah
Posts: 4

Original Poster
Rep: Reputation: 0
Wow! Thank you so much, I would have expected someone to at least yell at me for being so stupid, but you just answered calmly and helped me like it was nothing, thank you!!!
 
Old 03-21-2005, 02:20 PM   #7
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
your very welcome.
im very much a newb to linux, so if i were to rag on you, it would come back on me sooner or later! no good comes from that kind of attitude anyways
its not a matter of being stupid, either.. everyone starts from knowing nothing.

Last edited by nadroj; 03-21-2005 at 02:22 PM.
 
Old 03-22-2005, 11:16 AM   #8
sabeeh
LQ Newbie
 
Registered: Mar 2005
Location: Pakistan
Distribution: Fedora 2
Posts: 15

Rep: Reputation: 0
how to mount FAT32 or FAT drives of windows
 
Old 03-22-2005, 11:40 AM   #9
jollyjoice
Member
 
Registered: Aug 2003
Location: UK
Distribution: Gentoo 64
Posts: 383

Rep: Reputation: 30
same, just replace ntfs with vfat or msdos, vfat = fat32.
 
  


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
NTFS automounting after reboot?? spicyohaggis Linux - General 1 12-26-2004 03:02 AM
AutoMounting dkc_ace Linux - Hardware 2 05-13-2003 02:57 PM
Automounting?? RVK Linux - Newbie 3 03-14-2003 01:54 PM
Automounting an NTFS hard drive harperonline Linux - General 2 03-13-2003 12:01 PM
!!!!automounting Ntfs!!!! harperonline Linux - Networking 4 03-13-2003 11:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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