Linux - NewbieThis 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.
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.
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!
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.
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.
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:
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
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!
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.