LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 12-07-2003, 09:42 AM   #1
mmail75
LQ Newbie
 
Registered: Nov 2003
Distribution: Fedora Core
Posts: 20

Rep: Reputation: 0
Question power down and unmounting cd problems


I am a newbie on Linux (really newbie) and I have started with Fedora Core 1, which I love. But I find very difficult to configure it and install new programs. Thanks to forums like this one, I've managed to put .mp3 support on XMMS, install java and Flash, which would have been impossible for me without this help.

Now I'm stuck with two things:

1- When I turn off my computer, it appears a black screen with "Killing processes", "Unmounting devices" etc., everything with a green OK. But the last message I receive is: POWER DOWN., and the PC is turned on until I press the big power button. Windows does it automatically, although with older computers and Windows it happened the same to me, it appeared a message similar to "Now you can safely turn off your PC". What can I do to automatize this?

2- When I insert an CD, I often can't eject it. With Audio Cd's it doesn't happen to me but if I put an .mp3 CD and play it, I can eject it. When I try to unmount, it appears a message telling me that it can't be unmounted, that it is on use, although I've closed all the apps that *apparently* use my CD. I've read some similar threads, and none has helped...

Well, I would appreciate any sort of help, but please remember I am really new on Linux, and I don't know quite anything.
THANK YOU VERY MUCH TO EVERYONE!!!
 
Old 12-07-2003, 10:04 AM   #2
dkaplowitz
Member
 
Registered: Oct 2002
Location: Havertown PA
Distribution: Ubuntu/RHEL/Fedora
Posts: 253

Rep: Reputation: 31
Re: power down and unmounting cd problems

Quote:
Originally posted by mmail75


1- When I turn off my computer, it appears a black screen with "Killing processes", "Unmounting devices" etc., everything with a green OK. But the last message I receive is: POWER DOWN., and the PC is turned on until I press the big power button. Windows does it automatically, although with older computers and Windows it happened the same to me, it appeared a message similar to "Now you can safely turn off your PC". What can I do to automatize this?
This is normal behavior. However, if you want to automate it, it's an APM (automatic power management) thing...which I don't know, so I'll leave that for someone else to answer. Oddly enough, my laptops shut down automatically, but my workstation requires a manual shut off.

Quote:
Originally posted by mmail75

2- When I insert an CD, I often can't eject it. With Audio Cd's it doesn't happen to me but if I put an .mp3 CD and play it, I can eject it. When I try to unmount, it appears a message telling me that it can't be unmounted, that it is on use, although I've closed all the apps that *apparently* use my CD. I've read some similar threads, and none has helped...
I find this happens if you are still in the /mnt/cdrom directory....meaning, if XMMS is still trying to access those files, then it will say that the drive is busy. You need to make sure that nothing is actually currently reading or writing to the cdrom at the time you try to umount it....for instance, trying to umount from within the /mnt/cdrom dir... The command "eject cdrom" also works, once you unmount it.
 
Old 12-07-2003, 02:15 PM   #3
arthur1968
Member
 
Registered: Aug 2003
Location: Navacerrada, MADRID (Spain)
Distribution: Debian (latest); Fedora Core 1
Posts: 63

Rep: Reputation: 15
For the shutdown problem:

If your computer's BIOS has ACPI support,

enable acpi by adding

acpi=on

to your kernel line in

/boot/grub/grub.conf

If your computer's BIOS has APM support,

enable apm by adding

apm=on

to your kernel line in

/boot/grub/grub.conf

For the unmount problem:

make sure no processes are still accessing your CD drive

fuser -m -v /mnt/cdrom That will tell you what's using the cd.

If you just want to kill them all do

fuser -k -m /mnt/cdrom


Cheers,

Arthur1968

Forgot to say that fuser is not in bash:

/sbin/fuser ...

Sorry

Last edited by arthur1968; 12-07-2003 at 05:01 PM.
 
Old 12-07-2003, 05:46 PM   #4
mmail75
LQ Newbie
 
Registered: Nov 2003
Distribution: Fedora Core
Posts: 20

Original Poster
Rep: Reputation: 0
Hi dkaplowitz & arthur1968!

Thanks for your replies.

QUOTE:
-----------------------------------------------------------------------------------------------
Originally posted by dkaplowitz:

>I find this happens if you are still in the /mnt/cdrom directory....meaning, if
>XMMS is still trying to access those files, then it will say that the drive is
>busy. You need to make sure that nothing is actually currently reading or
>writing to the cdrom at the time you try to umount it....for instance, trying
>to umount from within the /mnt/cdrom dir... The command "eject cdrom"
>also works, once you unmount it.
-----------------------------------------------------------------------------------------------

Well, I am quite sure that nothing apparently uses it, as I close all the applications that were using that drive without unmount success. That's due to I'm a newbie and I'm not used to other processes opened or similar. The only thing I know it is that it's easier on Windows, and I'm just starting. Can't find anything open...


And refering to arthur1968, that could be the solution for shutdown problem. Checking in different forums, now I know I am using an SMP system (PIV with Hyper-Threading) and that could be causing this problem.
I tried several solutions on different forums but none worked, they told me to put "apm=power-off" on my kernel line. I don't know if it doesn't work or I can't recognise how to do it. I put it on GRUB's conf file in THE SAME LINE (is this OK?) that appears the word kernel (but not the lines that start with #, that seem to be just notes), at the end of the line.

And after, how do I know if my motherboard has ACPI/APM support, or whether has both (well, I really don't know what are they appart from they meaning, "Advanced Power Management" and "Advanced Configuration and Power Interface"). If is compatible with both (which I even don't know if is possible), which is better? Which line should I insert on that "unknown" line on grub.conf?

THANK YOU!!! :-)
 
Old 12-07-2003, 06:07 PM   #5
arthur1968
Member
 
Registered: Aug 2003
Location: Navacerrada, MADRID (Spain)
Distribution: Debian (latest); Fedora Core 1
Posts: 63

Rep: Reputation: 15
You are most welcome.

I think 2 of the easiest places to check for APM / ACPI support are:

1 dmesg | less
This command will print out all the messages generated whilst the system is booted
Simply watch out for apm / acpi

2 When rebooting, go into your BIOS (usually pressing the Delete key / F2 or some other
key)
When inside the BIOS, just wonder around to see if you can find references to APM /
ACPI

Regards,

Arthur1968
 
Old 12-08-2003, 04:33 AM   #6
mmail75
LQ Newbie
 
Registered: Nov 2003
Distribution: Fedora Core
Posts: 20

Original Poster
Rep: Reputation: 0
Hei, arthur1968!

Your ACPI solution has worked for me. I've find in my BIOS config utility some ACPI settings and I have enabled all them, and added the line "acpi=on" and my computer now powers down automatically!

THANKS!
 
  


Reply



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
Problems mounting/unmounting flash USB drive LordSurvivoR Linux - Hardware 1 07-12-2005 11:19 PM
problems mounting and unmounting iso images. Snerkel Linux - Software 5 08-21-2004 06:57 PM
samba unmounting problems lin00b Linux - Networking 2 08-11-2004 01:03 AM
unmounting cdrom / I already mounted my cd rom rpm problems jamaso Linux - General 3 03-24-2002 06:23 AM
Power problems Promethus Linux - General 1 02-03-2002 07:11 PM

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

All times are GMT -5. The time now is 05:26 PM.

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