LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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

Reply
 
LinkBack Search this Thread
Old 12-14-2002, 11:01 PM   #1
Gveto
LQ Newbie
 
Registered: Dec 2002
Location: BU - Peoria, IL.
Distribution: RedHat 8.0
Posts: 25

Rep: Reputation: 15
File permissions not sticking, DMA not working...


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
 
Old 12-14-2002, 11:15 PM   #2
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 55
what does
hdparm -i /dev/hdd
report?
 
Old 12-15-2002, 12:16 AM   #3
Gveto
LQ Newbie
 
Registered: Dec 2002
Location: BU - Peoria, IL.
Distribution: RedHat 8.0
Posts: 25

Original Poster
Rep: Reputation: 15
Code:
[root@wyc412djh-1 root]# hdparm -i /dev/hdd

/dev/hdd:

 Model=IDE DVD-ROM 16X, FwRev=V3.10, SerialNo=
 Config={ Fixed Removeable DTR<=5Mbs DTR>10Mbs nonMagnetic }
 RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=0
 BuffType=unknown, BuffSize=0kB, MaxMultSect=0
 (maybe): CurCHS=0/0/0, CurSects=0, LBA=yes, LBAsects=0
 IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio1 pio2 pio3 pio4
 DMA modes:  sdma0 sdma1 sdma2 mdma0 mdma1 mdma2
 UDMA modes: udma0 udma1 udma2
 AdvancedPM=no
There you have it.
Gveto
 
Old 12-15-2002, 10:25 PM   #4
Gveto
LQ Newbie
 
Registered: Dec 2002
Location: BU - Peoria, IL.
Distribution: RedHat 8.0
Posts: 25

Original Poster
Rep: Reputation: 15
Anyone else?
 
Old 12-16-2002, 07:59 AM   #5
docalton
Member
 
Registered: Dec 2002
Location: St Louis, MO
Distribution: Arch Linux
Posts: 99

Rep: Reputation: 15
Not sure about your permissions, but to enable dma on cdrom, you need to add the following line to your /etc/modules.conf file then reboot.

options ide-cd dma=1

That should enable dma. I'll see if I can find the permissions problem.

Hope this helps.
 
Old 12-16-2002, 02:00 PM   #6
Gveto
LQ Newbie
 
Registered: Dec 2002
Location: BU - Peoria, IL.
Distribution: RedHat 8.0
Posts: 25

Original Poster
Rep: Reputation: 15
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.
 
Old 12-16-2002, 02:11 PM   #7
SlickWilly
Member
 
Registered: Dec 2002
Posts: 327

Rep: Reputation: 30
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'.

Slick.
 
Old 12-16-2002, 02:39 PM   #8
Gveto
LQ Newbie
 
Registered: Dec 2002
Location: BU - Peoria, IL.
Distribution: RedHat 8.0
Posts: 25

Original Poster
Rep: Reputation: 15
Yup.. That's the case, the boot script worked just fine.
 
Old 12-16-2002, 03:40 PM   #9
docalton
Member
 
Registered: Dec 2002
Location: St Louis, MO
Distribution: Arch Linux
Posts: 99

Rep: Reputation: 15
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.
 
Old 12-16-2002, 04:35 PM   #10
docalton
Member
 
Registered: Dec 2002
Location: St Louis, MO
Distribution: Arch Linux
Posts: 99

Rep: Reputation: 15
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...
 
Old 12-17-2002, 10:44 AM   #11
SlickWilly
Member
 
Registered: Dec 2002
Posts: 327

Rep: Reputation: 30
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?
 
Old 12-17-2002, 02:00 PM   #12
docalton
Member
 
Registered: Dec 2002
Location: St Louis, MO
Distribution: Arch Linux
Posts: 99

Rep: Reputation: 15
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.

i should have been more clear, may apologies.

Chris
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
dma modus not working on samsung (SP1614N) hda on Asus A7N8X-E Deluxe smtm Linux - Hardware 8 08-08-2007 04:55 AM
Anybody got DMA working on a Gigabyte 915G series mobo? rylan76 Linux - Hardware 2 11-25-2005 02:15 PM
DMA 2.6.7 (still not working) powadha Linux - Hardware 4 07-10-2005 10:25 PM
ide dma not working n6rob Linux - Hardware 1 01-10-2005 08:50 PM
sticking export $LFS in bash file glock19 Linux From Scratch 7 01-29-2002 06:58 PM


All times are GMT -5. The time now is 11:22 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration