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 08-17-2004, 09:18 PM   #1
jrwizzard
LQ Newbie
 
Registered: Aug 2004
Location: Fort Wayne, IN
Posts: 16

Rep: Reputation: 0
mounting a ntfs partition, automatically


I have FC2 installed on a dual boot with XP.

I have my first partition should be the XP OS, the next partition is a 20 gig for sharing. it is on ntfs, setup by XP
hda3 /boot
hda6 /

not sure what 0,1,2,4,5 is, one is swap odviously.... And 2 others are ntfs partitions, maybe 0 and 1

i have tried

mount -t /dev/hda2 /data

And got that fs type ntfs is not supported by kernal. I installed everything when i loaded this.

Also tried this to mount it automatically in fstab by adding this line...

/dev/hda2 /data ntfs defaults 0 0

It gives the same error. I find it hard to believe that fedora core 2 installed with everything doesnt support ntfs...

can someone point in the right direction for getting this auto mounted on bootup so i can add it as a network share?
 
Old 08-17-2004, 09:25 PM   #2
peace
Member
 
Registered: Jul 2003
Location: Canada
Posts: 214

Rep: Reputation: 31
I know RedHat (what Fedora evolved from) never supported NTFS by default for legal reasons.

There are RPMs http://linux-ntfs.sourceforge.net/rpm/ on Linux-NTFS that you can easily install to solve your problem.
 
Old 08-17-2004, 10:02 PM   #3
jrwizzard
LQ Newbie
 
Registered: Aug 2004
Location: Fort Wayne, IN
Posts: 16

Original Poster
Rep: Reputation: 0
thanks, that seemed to work. Now i have another problem and another question.

The problem, how do I cd folders with more than one word in the name?

The question, hda2 is the correct partition i wanted, but i dont want to mount it at the root. there is a folder in it named "shared work stuff", how can i automatically mount to that folder at boot no matter what user logs in?
 
Old 08-17-2004, 10:20 PM   #4
Nightfrost
Member
 
Registered: Jun 2004
Location: Sweden
Distribution: ArchLinux
Posts: 201

Rep: Reputation: 30
I think you have to mount as root. If you're in the sudoers list, you can use sudo, like so:

sudo mount -o umask=000 /dev/XXXX /mnt/any-folder-you-have-created

the umask=000 option allows any user to access the drive.

if you need to deal with folders containing spaces, try either backslash or apostrophese, like so:

cd shared\ work\ stuff

or

cd 'shared work stuff'

I use Debian, but all this should be the same. Hope it helped.

Last edited by Nightfrost; 08-17-2004 at 10:22 PM.
 
Old 08-17-2004, 10:55 PM   #5
jrwizzard
LQ Newbie
 
Registered: Aug 2004
Location: Fort Wayne, IN
Posts: 16

Original Poster
Rep: Reputation: 0
The apostrophies worked for the multiple word folder name problem...

the mounting issue. Is fstab the right place so that it will get mounted automatically?

If so?
what is the format?
/dev/hda2 /data ntfs default 0 0
is an example of what is already there
/dev/hda2/'Shared Work Stuff' /data ntfs,auto,user,ro 0 0

or would it be what you said?


sudo mount -o umask=000 /dev/hda2/'Shared Work Stuff' /data
 
Old 08-17-2004, 11:25 PM   #6
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,144

Rep: Reputation: 56
Try this,

/dev/hda2/'your folder' /data ntfs auto,users,ro,umask=000 0 0

here's my entry which is similar,
/dev/hda1 /mnt/winxp ntfs noauto,ro,users,umask=000 0 0
 
Old 08-17-2004, 11:57 PM   #7
jrwizzard
LQ Newbie
 
Registered: Aug 2004
Location: Fort Wayne, IN
Posts: 16

Original Poster
Rep: Reputation: 0
well it didnt like the apostropies in fstab

/dev/hda2/'Share no such directory

So if I use the other method of backslashes, are they supposed to replace the spaces? Like this?
/dev/hda2/Share\Work\Stuff ?
 
Old 08-18-2004, 12:49 AM   #8
jrwizzard
LQ Newbie
 
Registered: Aug 2004
Location: Fort Wayne, IN
Posts: 16

Original Poster
Rep: Reputation: 0
i guess i am just going to rename the folder to something without spaces, but i would still like to know how to do space in fstab, in case i run into it again.
 
Old 08-18-2004, 03:27 AM   #9
vavoem
Member
 
Registered: Oct 2003
Location: Rotterdam, the Netherlands
Distribution: Debian Sarge
Posts: 102

Rep: Reputation: 15
have you tried %20 for space, it works in my webbrowser...

just an idea...
 
Old 08-18-2004, 07:19 AM   #10
Nightfrost
Member
 
Registered: Jun 2004
Location: Sweden
Distribution: ArchLinux
Posts: 201

Rep: Reputation: 30
an example of an fstab-line:

/dev/sda1 /mnt/sda1 ntfs noauto,users,exec,ro,umask=000 0 0

this is my ntfs drive with windows. The first bit '/dev/sda1' is the device file called upon. That is, you can't have any folders anywhere in it, because it's a file (you can take a look at it in /dev). sd, normally stands for scsi drive (otherwise hd), a stands for the first drive, and 1 stands for the first partition.

The second part /mnt/sda1 is the folder in which you want the file system mounted. This could be anywhere on your linux drive.

the rest of the line says that the drive is ntfs, that it won't be mounted automatically, that all users have access to it, files can be executed from it, it's read-only (linux has no real support for writing on ntfs drives yet), and so on and so forth. Check out man fstab or look in these forums for it.

If I understood you correctly you're trying to mount a filesystem in a folder in a drive which is not yet mounted. This is not possible as you probably understand now.
 
Old 08-18-2004, 12:45 PM   #11
jrwizzard
LQ Newbie
 
Registered: Aug 2004
Location: Fort Wayne, IN
Posts: 16

Original Poster
Rep: Reputation: 0
Someone told me there is something similar to a startup script in /etc/rc2 that runs when the machine boots, and that you could run normal command line through it. Would this be a possible way?
 
  


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
Mounting ntfs partition Gentleman_finn Linux - Newbie 14 07-25-2005 04:45 PM
ntfs partition mounting as rw ktekosi Slackware 4 06-07-2005 09:43 PM
mounting my NTFS partition. Amsterdam Fedora 16 08-30-2004 12:48 PM
How to automatically mount ntfs partition? Duukkis Linux - Software 3 06-25-2003 07:07 PM
Mounting NTFS partition therion12 Linux - General 3 01-15-2002 03:51 AM


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