LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 09-17-2006, 12:14 AM   #1
morghanphoenix
LQ Newbie
 
Registered: Aug 2006
Posts: 12

Rep: Reputation: 0
Enabling DMA for DVD drive.


Wondering if both devices on the secondary IDE cable need to support DMA because my CD writer doesn't. I ran a script that was supposed to enable DMA and got a message saying it was unable to, but not why. So if both don't need to be able to use DMA could someone post the terminal commands to enable it.
 
Old 09-17-2006, 11:18 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
The command to enable DMA is:

hdparm -d1 /dev/hdX

Where '/dev/hdX' is the drive (for example, /dev/hda, /dev/hdc, etc.).

Check your BIOS settings for the drive, some BIOS have the option to enable/disable DMA. Also, make sure the drives are properly jumpered master/slave, as the 'cable select' setting can confuse some controllers.
 
Old 09-17-2006, 11:57 PM   #3
morghanphoenix
LQ Newbie
 
Registered: Aug 2006
Posts: 12

Original Poster
Rep: Reputation: 0
Got it

I allready knew how to do all the hardware and bios settings, it just wouldn't work on the command line. I put in the command you told me and got "permission denied", tried it again with sudo before it and it worked perfectly. Got any ideas why when I type su and enter my password it says "authentication failure", it is the root password, no idea why it won't let me do su but sudo works with the same password. Anyways, thanks for the command, DMA enabled and working greaat.
 
Old 09-18-2006, 01:07 AM   #4
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by morghanphoenix
I allready knew how to do all the hardware and bios settings, it just wouldn't work on the command line. I put in the command you told me and got "permission denied", tried it again with sudo before it and it worked perfectly. Got any ideas why when I type su and enter my password it says "authentication failure", it is the root password, no idea why it won't let me do su but sudo works with the same password. Anyways, thanks for the command, DMA enabled and working greaat.
You su problem most likely has to do with root being disabled in Ubuntu. Have you checked their wiki for instructions on creating a real root account? For the hdparm command if you want it to be set on boot edit the /etc/hdparm.conf file to look similar to this at the bottom.

Code:
/dev/hdc {
        dma = on
}
Changing the /dev/hdc to your drive letter of course.
 
Old 10-22-2006, 02:31 PM   #5
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Code:
sudo su
should still work.

Also, I believe it's your own password that is needed in a sudo situation, even if you have set up that root acct. ... (If I have got this wrong, some regular *buntu user please correct me.)
 
Old 10-22-2006, 06:21 PM   #6
sleepindawg
Member
 
Registered: Aug 2003
Location: Kansas... USA
Distribution: Mandrake10 Offical, Debian Sarge, Knoppix, GO Ubuntu!!! my new home
Posts: 79

Rep: Reputation: 15
I believe that the first user on Ubuntu has sudo rights "without" having to enter a password. The first user created during install is like a "superuser" I do believe, therefor not having to use the password. Yes, using "su" as superuser will need the superuser's password.
 
Old 10-22-2006, 09:10 PM   #7
binary_y2k2
Member
 
Registered: Jul 2005
Location: England, UK
Distribution: Ubuntu 8.04 Server, Kubuntu 12.04
Posts: 698
Blog Entries: 1

Rep: Reputation: 31
Quote:
Originally Posted by sleepindawg
I believe that the first user on Ubuntu has sudo rights "without" having to enter a password. The first user created during install is like a "superuser" I do believe, therefor not having to use the password. Yes, using "su" as superuser will need the superuser's password.
No the first user setup still has to enter a password to use sudo, it's only different on the liveCD where sudo doesn't need the password. You can set a user to be able to use sudo without a password, but it's not set that way by default.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
enabling DMA for DVD playback daveReed Linux - Hardware 7 06-09-2006 04:34 PM
Enabling DMA for DVD when system boots (SuSE 9.1) webwolf70 Linux - Hardware 2 07-26-2004 12:53 PM
Help enabling DMA on Maxtor drive needed valroth Linux - Hardware 3 11-24-2003 01:43 AM
RH9 enabling DMA for DVD/CD/CDRW combo filkacik Linux - Software 0 10-03-2003 02:57 PM
Suse 8.2 change my DMA setting on my DVD-R drive to off & IDE DMA MODE NOT SHOWING IT maximalred Linux - General 0 08-23-2003 04:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 02:19 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration