LinuxQuestions.org
Register a domain and help support LQ
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 01-02-2005, 04:01 PM   #1
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 59
NTFS Drive mounting on ubuntu problem


*background
im very new to linux, but really want to learn. im dual booting xp pro and ubuntu. while in ubuntu, i wanna listen to my mp3s on one of my ntfs partitions, but cant seem to.. i know im doing something wrong because i dont have much experience

*to the point
im trying mount an ntfs partition. i type "mount /dev/hda1 -t ntfs /mnt/win1 -o rw", to allow r/w access to the folder, i think. seems to mount fine. but when i try and display the folder (using gui) it gives error saying "You do not have the permissions necessary to view the contents of "win1". i can view the folder using cmd line however. do i need to supply with the mount cmd, that user 'jordan' owns the folder, or something?

thanks for any feedback!

Last edited by nadroj; 01-02-2005 at 04:04 PM.
 
Old 01-02-2005, 04:07 PM   #2
mago
Member
 
Registered: Apr 2004
Location: Costa Rica
Distribution: slack current with 2.6.16.18 (still off the hook)
Posts: 284

Rep: Reputation: 33
That is almost totally correct, now you better edit the /etc/fstab and add this line so you will have the NTFS partition mounted automaticly every time.


CODE]/dev/hda1 /mnt/win1 ntfs auto,users,umask=000,ro 0 0[/CODE]
Unless you have the new modules to write to the NTFS is not likely that you will be able to.


Cheers!!!!
 
Old 01-02-2005, 04:22 PM   #3
claudius753
Member
 
Registered: Jan 2004
Distribution: Mac OS X 10.6.4 "Snow Leopard", Win 7, Ubuntu 10.04
Posts: 322

Rep: Reputation: 31
Code:
mount /dev/hda1 /mnt/win1 -t ntfs -r -o umask=000
I think the problem was you were mounting as root, and did not have the proper permissions set up for mortal users to do anything with the drive. You can still see the files from the command line, because you were probably still root.

I see you are using Ubuntu, as I recall, that has no su for root, you must use the "root terminal" or something similar to do commands as root. That is why you could see the files from the terminal.

Last edited by claudius753; 01-02-2005 at 04:24 PM.
 
Old 01-02-2005, 05:15 PM   #4
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Original Poster
Rep: Reputation: 59
thank you very much, both mago and claudius!
i have successfully mounted 3 of my ntfs partitions, and can access them fine from gui browsers.

claudius:
yeah.. i guess i was mounting as root.. in ubuntu, apparently you get root terminal access by typing "sudo su" then passw, and u can enter cmds as root. which now makes sense.. i could view the folder cuz i was still in the same console window, logged in as root.

mago:
i noticed one of the parameters you told me to add to fstab, "ro".. this means mount filesystem as read-only? i figured it did... so i replaced it with rw, for all 3 mounts. nothing blew up, so thats good. but it doesnt seem to allow me to write to the drive.

at least iv learned how to mount my other ntfs partitions, which is cool. i went to go play some mp3s, but ubuntu doesnt seem to have xmms, so it opened in "rythmBox", at which point it told me it doesnt have the .mp3 codec ;p

i guess im off now to try and learn how to install xmms now, lol, hope its not too hard

thanks again.

Last edited by nadroj; 01-02-2005 at 05:22 PM.
 
Old 01-02-2005, 05:30 PM   #5
claudius753
Member
 
Registered: Jan 2004
Distribution: Mac OS X 10.6.4 "Snow Leopard", Win 7, Ubuntu 10.04
Posts: 322

Rep: Reputation: 31
Installing xmms should be easy to do through Synaptic. Just search for xmms, and install it, it will resolve dependencies.
 
Old 01-02-2005, 06:05 PM   #6
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Original Poster
Rep: Reputation: 59
ok i found and downloaded synaptic... on to install...

it says to run the command "./configure" , then "make", then "make install"
after i do ./configure.. it shows afew lines, which seem to be correct.. then it gives error and says "configure: error: no acceptable C compiler found in $PATH"
above that it says it cant find: cl, cc, cc (again), and gcc.... which is the gnu c compiler right? so i take it i gotta install the gcc...? hope THAT one works.
 
Old 01-02-2005, 06:08 PM   #7
claudius753
Member
 
Registered: Jan 2004
Distribution: Mac OS X 10.6.4 "Snow Leopard", Win 7, Ubuntu 10.04
Posts: 322

Rep: Reputation: 31
Is not synaptic included in Ubuntu? I thought for sure it was already in a menu somewhere. I'm not using it at the moment, so i couldn't tell you exactly where in the menu, but I thought for sure it was there.
 
Old 01-02-2005, 06:28 PM   #8
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Original Poster
Rep: Reputation: 59
lol...
yeah i just found it in the menu Computer > System config :S
i just opened it and im gonna try and look for xmms and install.

i notice gcc is in the list, and installed... im wondering how come it said it couldnt find the c $path? that didnt mean it wasnt installed, right? it just meant i didnt setup the environment/$path for the compiler right? i have been learning java for almsot a year, and i know about the path and classpath variables, they are probably similar, just ones C and ones java.
in my last voyage with linux, i installed suse and tried to do java in it.. i looked online on how to setup the path variables but couldnt find out.. oh well this is getting off topic, sry

thanks
 
Old 01-02-2005, 06:42 PM   #9
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Original Poster
Rep: Reputation: 59
got xmms running and playing my songs no more silence

i was wondering how to add it to my "applications > multimedia" menu..? or how to set the program up to handle all my audio files so i dont have to select to open with xmms for each song? or could you give me a link where to look, to shut me up?
 
  


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 usb pen drive; ntfs problem ShamitSoneji Fedora 20 12-01-2004 03:19 AM
Wine installtion problem(mounting NTFS drive) karfei00 Linux - Software 1 05-20-2004 10:06 PM
slackware 9.1 mounting problems (cd drive, cd writer drive, win partition (ntfs)) mr.gizm0 Slackware 8 05-11-2004 07:23 PM
Mounting a ntfs drive? mpooley Linux - Hardware 12 12-11-2002 01:32 AM
mounting ntfs(xp) drive elpresidente Linux - Hardware 7 07-01-2002 10:24 AM


All times are GMT -5. The time now is 02:55 PM.

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