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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
07-27-2003, 11:41 PM
|
#1
|
LQ Newbie
Registered: Jul 2003
Location: Asheville, NC
Distribution: Slackware
Posts: 14
Rep:
|
NTFS partition mounting questions
OK, so this post actually is two questions, but I think they are related:
1. When I am logged in as a normal user and I attempt "mount -t ntfs /dev/hda1 /mnt/winxp" I'm told that I have to be root to do this. Sure enough, I am able to mount it when I change to su. But, is there anyway I can change this so I CAN mount it while simply logged in with my user account.
2. Once the ntfs partition is mounted and I try to view the contents to play a movie or mp3 or whatever, I'm told that I dont have permission to view the contents. As root or when I log in as su it works just fine.
I tried "chmod -R 555 /mnt/winxp" as root but got the error that it was read only and it couldnt be completed, which makes sense because I didn't include NTFS write abilities when I compiled the kernel. So yeah, I'm sure there is a setting somewhere that can fix this, I just have no clue where it is. Help me gurus, help!
|
|
|
07-28-2003, 03:22 AM
|
#2
|
LQ Newbie
Registered: Jul 2003
Posts: 10
Rep:
|
Hi,
Firstly I am a newbie too, and I have not complied a new Kernel yet, so I am humbled.
I have started with mounting partions, but only Fat. I did the same, mounted them as root, but I then edited the fstab file, so they would mount on boot up.
This means they are mounted before I log in, so may this will work for you.
add the relevant info to your fstab file
run: gedit etc/fstab
then add the line something like:
/dev/hdb1 /mnt/vfat vfat auto,users 0 0 0
I have not tried to access mine as anything but SU, so I am yet to see if mine are accesible.
All the best
Mo 
|
|
|
07-28-2003, 03:59 AM
|
#3
|
Member
Registered: Jul 2003
Location: Osaka, Japan
Distribution: Arch, Ubuntu
Posts: 421
Rep:
|
This is the entry for my NTFS partition.
/dev/hdb5 /mnt/misc ntfs noauto,user,uid=1000 0 0
Check your uid by typing the command "id".
It doesnt mount automatically on startup but you can do so by changing "noauto" to "auto".... I suppose :P Of course it is read-only.
Hope this helps.
|
|
|
07-28-2003, 10:53 AM
|
#4
|
LQ Newbie
Registered: Jul 2003
Location: Asheville, NC
Distribution: Slackware
Posts: 14
Original Poster
Rep:
|
Thanks guys, you rock!
|
|
|
07-28-2003, 02:58 PM
|
#5
|
LQ Newbie
Registered: Jul 2003
Location: Asheville, NC
Distribution: Slackware
Posts: 14
Original Poster
Rep:
|
doh....
I spoke too soon, I tried that and still when I'm logged onto my user account it tells me that I must be root to mount and once it is mounted I'm unable to view the contents unless im su. Here is my fstab if it helps:
/dev/hda7 swap swap defaults 0 0
/dev/hda8 / reiserfs defaults 1 1
/dev/hda9 /home reiserfs defaults 1 2
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,ro 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
/dev/hda1 /mnt/winxp ntfs auto,joe,uid=1000 0 0
/dev/hda5 /mnt/winxp2 ntfs auto,joe,uid=1000 0 0
note: I did double check to make sure the correct user ID for joe was 1000.
Last edited by slackerJoe; 07-28-2003 at 03:00 PM.
|
|
|
07-28-2003, 03:04 PM
|
#6
|
Senior Member
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403
Rep:
|
If you are not to concerned about security, use the following options in your /etc/fstab
Code:
user,rw,exec,umask=000
|
|
|
07-28-2003, 03:21 PM
|
#7
|
Senior Member
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104
Rep:
|
Hi Slackerjoe
/dev/hda1 /mnt/winxp ntfs auto,ro,umask=022 0 0
or
/dev/hda1 /mnt/winxp ntfs auto,ro,umask=002 0 0
The umask value is the key - try both of these
Last edited by Skyline; 07-28-2003 at 03:23 PM.
|
|
|
07-28-2003, 03:47 PM
|
#8
|
LQ Newbie
Registered: Jul 2003
Location: Asheville, NC
Distribution: Slackware
Posts: 14
Original Poster
Rep:
|
sweet! I tried "/dev/hda1 /mnt/winxp ntfs auto,ro,umask=002 0 0" first and that works. Thanks for the help.
-Joe
|
|
|
07-28-2003, 04:09 PM
|
#9
|
Senior Member
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104
Rep:
|
Nice
|
|
|
07-28-2003, 06:16 PM
|
#10
|
LQ Newbie
Registered: Jul 2003
Posts: 1
Rep:
|
Ok i tried this /dev/hda1 /mnt/winxp ntfs auto,ro,umask=002 0 0 and it said that permission was denied
i tried the other one same thing;.... how do i fix this help...
[B] also to log in as root do i just do this su root password: same as login pw?{/B] in other words how do i figure my password and username  im a newb 
|
|
|
07-28-2003, 06:28 PM
|
#11
|
LQ Newbie
Registered: Jul 2003
Posts: 10
Rep:
|
Slinshot
Boot up, at uder login, type:
Root
at password type
[your actual password for administrator/Super User]
Then you are logged on as root for the whole session and whtever you do will not be questioned for root permissions
Chrs
Mo
|
|
|
07-29-2003, 06:44 AM
|
#12
|
Member
Registered: Jul 2003
Location: Osaka, Japan
Distribution: Arch, Ubuntu
Posts: 421
Rep:
|
Quote:
/dev/hda5 /mnt/winxp2 ntfs auto,joe,uid=1000 0 0
|
You shouldn't put your user name "joe" there. Put "user" instead. I mean like this:
/dev/hda5 /mnt/winxp2 ntfs auto,user,uid=1000 0 0
wish this may help.
|
|
|
07-29-2003, 05:14 PM
|
#13
|
LQ Newbie
Registered: Jul 2003
Distribution: RedHat 8.0 (Debian soon)
Posts: 21
Rep:
|
HI...I'm using Redhat 8.0 and have the same problem trying to mount as anything other than the administrator! I've tried every configuration here and none seem to work! Also, I'm currently mounting it as my main user by opening a root terminal and typing "konqueror /mnt/windows" but I want to try to run /WINDOWS/explorer.exe...I tried "wine /mnt/windows/WINDOWS/explorer.exe" but it said it couldn't find the path! The path is definetly there, is this part of the read/write problem with NTFS systems?
Also, I cannot mount hda2 when i try i get...:-
"[root@localhost alistair]# mount -t ntfs /dev/hda2 /mnt/ntfs_file_dump
mount: wrong fs type, bad option, bad superblock on /dev/hda2,
or too many mounted file systems
(aren't you trying to mount an extended partition,
instead of some logical partition inside?)"
Is it not posible to mount a non-sytem partition?? This is where I keep all my avi files (40GB worth of them!) I can't afford to lose them!
On hda1 I have 30GB of data, I probably need to backup about 10GB of that to format and recover the data on the 'file dump'. If I'd gone with Linux the whole way I wouldn't have this problem!! But anyway as I'm using my linux partition it doesn't have 10GB of space left to backup the data I need so I need to mount another drive (all other drives are ntfs) with 10GB to spare! If anyone can help me with what that error means i'd be much abliged!
|
|
|
07-29-2003, 07:10 PM
|
#14
|
Senior Member
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104
Rep:
|
Hi the_anti_pat
When you get the error :
mount: wrong fs type, bad option, bad superblock on /dev/hda2,
or too many mounted file systems
Have you already got a filesystem mounted into your mount point? - what filesystem type are you trying to mount there?
|
|
|
07-29-2003, 11:37 PM
|
#15
|
LQ Newbie
Registered: Jul 2003
Location: Asheville, NC
Distribution: Slackware
Posts: 14
Original Poster
Rep:
|
Koyi, yea, I got confused and put my account name in there instead of user (my newbiness holds true!). The use of umask as suggested by Skyline and Mathieu got it working though. Thank you for clarifying, though.
|
|
|
All times are GMT -5. The time now is 04:29 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|