Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
Hello...
I have been trying to change the file permissions of my DVD drive block device file /dev/hdd after I had to remake this file with MAKEDEV... All seemed to go well, but the owner and the permissions were wrong. The owner was listed as (user) and the permissions were set to -rw------- , so I quickly changed the permissions on the file, and then the owner to root to correspond to the rest of the /dev files, but when I log out of Linux, and log back in, the permissions revert to their original state.
I don't know how important these permissions are, because I can use and mount the drive perfectly, but I cannot turn on DMA.
Here's what I tried:
Code:
[root@wyc412djh-1 root]# hdparm -d1 /dev/hdd
/dev/hdd:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma = 0 (off)
Why aren't the permissions I set to /dev/hdd sticking, and why can't I turn DMA on for it?
Thanks a bunch.
Gveto
docalton:
That did the trick alright... Thanks a lot.
About the file permissions; they still aren't being changed after a logout, but from what I've seen, this does not affect the working af the drive or computer... Any ideas?
Gveto
PS: docalton: Where in STL do you live? I live near STL on the IL side, but am up at Peoria for school.
I'm pretty certain that you're not going to be able to change the DMA settings of your hard drive / cd on the fly... :P
Which is why it's a bootup option, and not something you can change at will while it's in operation. Think of it as one of those situations where windows tells you 'Thanks for clicking here... I have to reboot to execute your selection'.
Actually, you can change the dma status "on the fly." And also, you do NOT even have to reboot. You could have just unloaded the module using "rmmod ide-cd" then reloaded the module using "modprobe ide-cd dma=1". This however is easier accomplished by using the options in the modules.conf. Unless of course this is a mission critical system and a reboot is out of the question. Then change the modules.conf file for future reboots.
GVETO: I am not really from St. Louis, I'm from the IL side to, however who has really heard of Alton, IL. Easier to say St. Louis, almost everbody knows where that is.
I havent tracked it down yet, but I also experience that problem. When I log in as myself, it changes the owner and permissions. It does however change them back when I log out. It may have something to do with users being able to mount the cd without having to be root. You've peaked my curiosity. I'll have to find out now...
Well, there you go.. learn something new every day.
I am, however, also curious. How is it you're able to remove the 'ide' driver while the device is in use. I mean.. wouldn't you have to unmount all the file systems before doing that?
you are not actually removing the entire ide driver. Just the ide cdrom driver. Yes, you probably would need to umount any ide cdroms that are mounted before you removed the module.
I guess that I just assumed that would be everybody's first thing they would do. been using linux for about 10 years, since kernel 1.1.59, but just happened across this board the other day. as such my assumtions are not always correct.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.