Ubuntu This forum is for the discussion of Ubuntu Linux. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
09-17-2006, 12:14 AM
|
#1
|
LQ Newbie
Registered: Aug 2006
Posts: 12
Rep:
|
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.
|
|
|
09-17-2006, 11:18 AM
|
#2
|
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
|
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.
|
|
|
09-17-2006, 11:57 PM
|
#3
|
LQ Newbie
Registered: Aug 2006
Posts: 12
Original Poster
Rep:
|
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.
|
|
|
09-18-2006, 01:07 AM
|
#4
|
Senior Member
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170
|
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.
|
|
|
10-22-2006, 02:31 PM
|
#5
|
Senior Member
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
|
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.)
|
|
|
10-22-2006, 06:21 PM
|
#6
|
Member
Registered: Aug 2003
Location: Kansas... USA
Distribution: Mandrake10 Offical, Debian Sarge, Knoppix, GO Ubuntu!!! my new home
Posts: 79
Rep:
|
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.
|
|
|
10-22-2006, 09:10 PM
|
#7
|
Member
Registered: Jul 2005
Location: England, UK
Distribution: Ubuntu 8.04 Server, Kubuntu 12.04
Posts: 698
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 02:19 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|