Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I just installed Linux around Halloween, but I am trying my best to learn. However, I've run into a few problems that I couldn't fix by reading the documentation, and I was hoping that someone could give me a few pointers as to the correct course of action to take.
First, for DVD playing. I've installed mplayer, totem, and gxine, and they all are having problems playing DVDs. Mplayer just doesn't work - sometimes it'll play the movie trailer (quite smoothly actually, but without sound), and sometimes it won't play anything. Totem and Gxine both play the DVDs fine, but with a huge amount of skipped frames. I tried using hdparm -d1 /dev/hdd (my dvdrom drive), but it said:
root@nebula dev # hdparm -d1 /dev/hdd
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma = 0 (off)
Also, when I boot up, I receive an error about DMA on my hard drive. It tells me that DMA is not enabled on my hard drive, and that the fsck process would be slow. I've done some reading, and I've found out that if dma can't be enabled, then there is likely a problem with kernel settings. I've checked them over, and I can't seem to find anything wrong. Here are the settings I'm using: (this is kernel 2.6.0-test9-mm2)
<*> ATA/ATAPI/MFM/RLL support
<*> Enhanced IDE/MFM/RLL disk/cdrom/tape/floppy support
--- Please see Documentation/ide.txt for help/info on IDE drives
[ ] Use old disk-only driver on primary interface
<*> Include IDE/ATA-2 DISK support
[ ] Use multi-mode by default
[ ] Auto-Geometry Resizing support
<*> Include IDE/ATAPI CDROM support
< > Include IDE/ATAPI TAPE support (EXPERIMENTAL)
<*> Include IDE/ATAPI FLOPPY support
<*> SCSI emulation support
[ ] IDE Taskfile Access[*] IDE Taskfile IO (EXPERIMENTAL)
--- IDE chipset support/bugfixes
[ ] CMD640 chipset bugfix/support[*] PNP EIDE support[*] PCI IDE chipset support[*] Sharing PCI IDE interrupts support
[ ] Boot off-board chipsets first support[*] Generic PCI IDE Chipset Support
< > OPTi 82C621 chipset enhanced support (EXPERIMENTAL)
< > RZ1000 chipset bugfix/support[*] Generic PCI bus-master DMA support
[ ] Force enable legacy 2.0.X HOSTS to use DMA[*] Use PCI DMA by default when available
[ ] Enable DMA only for disks
[ ] ATA Work(s) In Progress (EXPERIMENTAL)
Following the ATA Work(s) in Progress item, there is a list of different chipsets to support. I couldn't find mine in there. Just in case though, my motherboard is the EPoX 8KHA+. I had a link ready for quick reference, but unfortunately I can't post it until I get more posts Also, I noticed while I was looking this over that I had mistakenly overlooked a default chipset choice - the Intel PIIXn was checked. Could this be what's causing the problem? It wouldn't be a huge deal for me to recompile my kernel to remove support for this chipset if that's all that's wrong.
On a somewhat related note, I'm also having problems with CD-burning performance. when trying to use xcdroast, I'm experiencing much lower transfer speeds than my drives can support. It says that I shouldn't be using ATAPI; that I should be using SCSI Emulation. However, I've read somewhere on the internet that the new 2.6 series of kernels includes ATAPI support (and I guess it does -- it works, but much more slowly). Should I remove ATAPI Support from the kernel and add SCSI Emulation (the docs say they are mutually exclusive)? Or is this just a fault of xcdroast and/or a problem due to the above DMA problem? Any suggestions?
you could try to have your dvd drive scsi-emulated on boot. what bootloader are you using? grub or lilo? i'm using grub, so adding the option to the line in bold will use scsi emulation for that drive. in my grub.conf, my dvd drive is /dev/hdc and my cdrw is /dev/hdb.
title Red Hat Linux 7.3 (2.4.18-10)
kernel /boot/vmlinuz-2.4.18-10 ro root=/dev/hda11 hdb=ide-scsi hdc=ide-scsi
now doing this will wreak havoc with your /dev links as this device will no longer mount as /dev/hdd, but as /dev/scd0 (if this is the only cd/dvd/cdrw/dvdrw drive you have) or as /dev/scd1 (if you have let's say a cdburner or cdrom on your first ide channel). also if kudzu is running at boot, it will most likely add /dev/cdrom3 which will point to this new device label (/dev/scd0 or /dev/scd1). anyway, you can figure out which dvd/cdromX (where X is a differentiating number) points to which device by right clicking on the link and going into it's properties where it will have a "Points to" field. you need to delete the /dev/cdromX that points to the old device, /dev/hdd and rename the /dev/cdromY (the other cdrom device where Y is it's number) pointing to the /dev/scd1 (or scd0, but my guess is because it's on the second ide channel, it will be /dev/scd1) to /dev/cdromX. you'll then need to delete your /dev/dvd link and create a new link to /dev/cdromX that points to /dev/scd1.
after doing this, now try to enable dma the same way you did before (hdparm -d1 /dev/hdd).
anyway, this technique works for laptops whose cd/cdrw/dvd/etc.. peripherals won't enable dma.
for you cdrw it would. i'm not so sure about your hard drive, though. usually ide hard drives should enable dma just fine. it could be that you don't have enable dma in your kernel, in which case you'd have to create a custom kernel. i would wait on suggestions for that though before doing anything like the scsi emulation thingy. although, if you do the scsi emulation and you still can't enable dma on your dvd or cdrw drive, then i'm apt to think your kernel version doesn't have dma support set.
Yeah I agree with you... I think I'll wait to make sure my kernel is configured correctly (it *should* be, but I've been know to make mistakes ). If that doesn't work, then at least I know I have a backup solution that should work for my peripherals.
So .. is there any more info needed on my kernel configuration besides what I've given above?
I've been trying to enable the SCSI emulation on my plextor DVD-rom drive. I have plextor dvd+/-rw (scsi emulated, hdc) and my dvd-rom drive is hdd. I just wanted to ask where I should add the "hdd=ide-scsi"-line? My lilo.conf:
Use "lspci" to find out what ide controller you have.
One of the lines of output will look something like:
00:xx.x IDE interface: Manufacturer controllername blah blah blah
This will probably help you decide what to enable in the kernel configuration. I have no idea why the PIIXn chipset is always enabled by default. It's been that way for many kernel versions. You can safely turn that off, though it makes little difference either way...
Daliz, please do not hijack other irrelevant threads, your question is not related to the initial question, and is just confusing things.
I have no idea if this old thread (which was quite happily dead) was resolved or not, but you may well want to enable the amd74xx module or similar, i need this module in order to have DMA on my nforce2 board.