Click to See Complete Forum and Search --> : Can't access files on cd-rom, or hardrive.
Jes|er
08-02-2003, 06:42 PM
I just installed mandrake linux last night, and I'm trying to figure things out. For starters I cant seem to get a file listing on my cd-rom (yes there;s a cd in there with files). I goto mnt/cdrom and there is no listing. I tried reloading from the right click menu and nothing happens. I doesnt seem to even access the drive.
Also, how do I mount my ntfs partition so I can get some files from it? All I want to do is create a link to it on my desktop. I was going to set the user permissions so I can access them (they are locked) but didnt see that option. I also tried the tutorial: Mounting NTFS Filesystems. I mounted the hd as root, then type in this command:
/dev/hda1 /windows ntfs ro,myusername,noauto,umask=0007,gid=1000 0 0
and it tells me this:
bash: /dev/hda1: Permission denied
Thanks for any help you can provide.
Edit: Its a cd-rw, and I also tried it on my dvd drive. Dont know if the type of drive will make any difference.. ?
kshim5
08-02-2003, 07:10 PM
Didi you try accesing the files as root ?
If not try to.
dev/hda1 /windows ntfs ro,myusername,noauto,umask=0007,gid=1000 0 0
that "myusername" it's wrong, change it to "users".
Btw, I don't know if Mandrake comes with NTFS support by default, you will need to re-compile your kernel.
As for the cdrom, you need to mount it.
mount /mnt/cdrom
If that dosn't work, please post your /etc/fstab config so we can take a look.
keyshawn
08-02-2003, 07:23 PM
hey,
btw, welcome to the forums.
First off, see if your drives are supported for mandrake.
http://www.mandrakelinux.com/en/hardware.php3
[some still have a few probs, more dvd's than cd-rw's]
Also, there's a gui prog in the 'control your system' bar which allows you to admin the permissions to your mounted stuff, among other directories on linux. [not sure of the name of the gui prog, damn it, i know its not in the mandrake control center, it's one of the other ones ............if you logged in as a user, you can still access it, provide you have the root password
[im presuming you're using a frontend like KDE, GNOME, icewm, etc.]
If you want to do your own searching, go to the linux documentation project page - www.tldp.org - and look for some more info there...
good luck.
catcha back on the flipside,
keyshawn
[a newbie trying to help another newbie ]
EDIT:
Serz, mandrake [9 and newer i know, dunno of older ones] should recognize NTFS windows partitions....
Jes|er
08-02-2003, 10:26 PM
Thanks for the help, I did manage to get my cdrom mounted no problem. Still cant get that ntfs drive mounted, and cant seem to find any info on it. But I'm going to keep trying.
Thanks again!
dalek
08-03-2003, 02:39 AM
Try a search on www.google.com/linux for "mandrake 9.1" NTFS. Put the quotes around mandrake 9.1. You may have to make a change or install something but it should read it. You may also want to set up a small partition to swap files that is FAT32. It can be small, just big enough to swap files. Bummer that you have to reboot though.
Warning: DON'T try to write to NTFS. Linux can read pretty good, but writing is a bad idea.
:D :D :D
Jes|er
08-03-2003, 03:18 PM
Thanks, I did finnaly get it mounted. But I'm stil having problems. I put a shortcut to it on my desktop, but when I click on it, it says:
Unable to enter file:/mnt/win_c. You dont have access rights to this location.
So I read a bit more and learned that I could su into root from kde. I tried that and set what I though was the access permissions for myself by right clicking on the drive and going to properties. On one of the tabs I set access rights for user. Obviously it didnt work.
I had linux installed about a year ago and didnt have this much trouble. I dont remember if the drive was ntfs however I think it was, as WinXP pro was installed. I also tried reinstalling linux twice and still have the same problems.. I am so freakin lost on this.
Originally posted by Jes|er
I mounted the hd as root, then type in this command:
/dev/hda1 /windows ntfs ro,myusername,noauto,umask=0007,gid=1000 0 0
and it tells me this:
bash: /dev/hda1: Permission deniedJust for future reference "/dev/hda1 /windows ntfs ro,myusername,noauto,umask=0007,gid=1000 0 0" isn't a command you enter at the command prompt, it's an example of the line you should put in your /etc/fstab file. Note that the "noauto" option tells the system not to automatically mount the partition at boot up; change that to "auto" if you want the partition automounted. Also, the "umask=0007" option gives full permissions to the owner of /mnt/win_c and users who are in the group with the ID of "1000", but denies all access to anyone else. Check the user/group permissions and ownership of the directory itself to make sure the user you are logged in as really does have permission to access the drive.
Here's some background info from an earlier post of mine that might help clarify things:In Linux, permission control works differently for FAT32 and NTFS filesystems than it does for native Linux filesystems (ext2, ext3, reiser, etc.). Try this:
1. The UNIX permissions of a directory onto which you mount a Windows filesystem can't be changed while the fileystem is mounted. Unmount the Windows partition; you should then be able to chmod the permissions of /mnt/Windows.
2. Windows doesn't support UNIX-style permissions, and you can only apply permissions to the entire filesystem, not to individual Windows files/folders. This is done with the "umask" option of the mount command. In /etc/fstab, change the mount entry for your Windows partition to this:
/dev/hda5 /mnt/Windows vfat users,defaults,umask=000 0 0
(the "users" option allows anyone to mount/unmount the drive and overrides the default , which is that only root is allowed to mount/unmount.)
The value of the permission bits used with umask are the opposite of those used with the chmod command. For example, the following pairs are equivalent:
umask=000 and chmod 777
umask=022 and chmod 755
justlinux.com
Copyright 2007 Jupitermedia Corporation All Rights Reserved.