LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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!

Notices


Reply
  Search this Thread
Old 03-21-2004, 08:46 PM   #1
m00j
LQ Newbie
 
Registered: Mar 2004
Location: Brisbane, Australia
Distribution: Mandrake 10 Community
Posts: 6

Rep: Reputation: 0
mandrake 10 won't shut down


Hi,

I have just started using linux (as I am learning it at uni). After installing Fedora (twice - updated it and killed X ) and not finding it to my tastes I have moved onto Mandrake 10. My problem is that every time I shut it down, the shutdown does not work. It does not hang, it just never shuts down (left it on for 3 hours and it didn't shut down).

When I choose shutdown the regular Mandrake shutting down screen comes up, and hitting esc (to enter verbose mode?) everything seems to be going fine until it reaches a certain point. For all of the lines starting with Stopping... they all end in [ OK ] until it gets to the line

Code:
Stopping hotplug : ehci_hcd 0000:00:1d.7: remove, state1
after that line it prints some stuff about usb disconnect and 4 sets of things that seem to be related to shutting down the 4 slots on my USB card reader. They all seem to be made up of a set of 4 lines - but right before it stops shutting down it prints the first 2 of 4 for another device:

Code:
Attached scsi removable disk sdd at scsi1, channel 0, id 0, lun 3, type 0
Attached scsi generic sg3 at scsi1, channel 0, id 0, lun 3, type 0

After that it does nothing, but I can still type stuff in the prompt (not that it does anything, no commands seem to work). I have no idea what is happening, I assume it has something to do with hotplug.

If I have not provided enough info, is there a place where a log of the shutdown is stored? Because it would be a bit of a pain to have to write everything out by hand and then retype.


Any help is greatly appreciated! And remember, I am a linux noob, I know a few commands, but not much!



On another unrelated note, how do you make the commands in /sbin/ like ifconfig work without having to type /sbin/ifconfig ? The lab computers at uni seem to only require you to type ifconfig (without the /sbin/)


Thanks!
 
Old 03-21-2004, 11:30 PM   #2
liamoboyle
Member
 
Registered: Mar 2004
Location: Wellington, New Zealand
Distribution: Debian
Posts: 127

Rep: Reputation: 15
Regarding -
On another unrelated note, how do you make the commands in /sbin/ like ifconfig work without having to type /sbin/ifconfig ? The lab computers at uni seem to only require you to type ifconfig (without the /sbin/)
-

When you type a command name into a shell prompt, it searches all the directories in the $PATH variable for one with that name; by default, only the root user has /sbin and /usr/sbin in their path, as many of the programs in there are only required by the root user.

To fix this up, you can type
export PATH=$PATH:/usr/sbin:/sbin

To make it do this automatically, edit your ~/.bashrc (if you use bash as your shell) and put the following line in; it will be ran every time you open a shell.

Regarding the rest, make sure your kernel has APM (Advanced Power Management) compiled in, it could be that it's shut everything down but then doesn't know how to cut the power...
 
Old 03-22-2004, 01:03 AM   #3
m00j
LQ Newbie
 
Registered: Mar 2004
Location: Brisbane, Australia
Distribution: Mandrake 10 Community
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by liamoboyle
Regarding -
Regarding the rest, make sure your kernel has APM (Advanced Power Management) compiled in, it could be that it's shut everything down but then doesn't know how to cut the power...
I don't think this is the problem as when I hard reset it, the power button doesn't seem to work, and if I reset it, it says that it was not shut down cleanly last time. I will try checking though.

Is there a command I can type to check it? Or a program of some sort?



And in regard to the $PATH thing, I did not realise that they would all work from root. I can just su to root when I need to run them. Probably be safer that way anyway.

Thanks again for your help!
 
Old 05-04-2004, 07:38 AM   #4
sven
LQ Newbie
 
Registered: May 2004
Posts: 1

Rep: Reputation: 0
Unhappy workaround

Hi,
i have the same problem and because i do not use usb devices, this is my workaround.
I commented the lines 258-263 in the file /etc/hotplug/usb.rc out.
...
# disconnect all controllers we can, and kernel drivers
# HCDs first, so most drivers reduce their use counts.
#rmmod ehci-hcd >/dev/null 2>&1
#rmmod ohci-hcd >/dev/null 2>&1
#rmmod uhci-hcd >/dev/null 2>&1
#rmmod usb-ohci >/dev/null 2>&1
#rmmod usb-uhci >/dev/null 2>&1
#rmmod uhci >/dev/null 2>&1

# user mode code may keep usbfs busy for a while yet ...
...

i will continue to look still in the net for a correct solution.

Sven

ps: this text was translated automatically with systrans
 
Old 05-04-2004, 06:22 PM   #5
m00j
LQ Newbie
 
Registered: Mar 2004
Location: Brisbane, Australia
Distribution: Mandrake 10 Community
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks Sven, I will give that a try when I get home tonight.
 
Old 08-03-2004, 01:27 PM   #6
bigteejay
LQ Newbie
 
Registered: Aug 2004
Posts: 1

Rep: Reputation: 0
Was this ever resolved?

I too am having the same issue.

I saw this bug posted...
http://bugzilla.redhat.com/bugzilla/....cgi?id=121031
...thought it might be relevant.

I read somewhere too that someone who had access to the Mandrake Online update service resolved the problem after auto-updating. I dont have access to this, but am trying to find out how to resolve it manually.

Here is a debian user with what appears to be the same issue too...
http://lists.debian.org/debian-power.../msg00501.html
 
Old 09-01-2004, 10:31 PM   #7
roryg
LQ Newbie
 
Registered: May 2003
Distribution: Mandrake 9.1
Posts: 4

Rep: Reputation: 0
I solved this problem with hotplug haning while trying to shutdown my mmc card reader by upgrading hotplug. I also upgraded harddrake & dynamic for good measure (my usb scanner used to generate a new 'dynamic' icon every time I rebooted).

Anyway, it's all good now. Mdk 10 seems to be pretty good all araound, for a .0 release.
 
  


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
Mandrake 9.2 shut down problem Tarkik Mandriva 7 06-18-2004 04:15 PM
Mandrake will not shut down HoosTrax Linux - Hardware 0 02-06-2004 03:04 PM
Cannot Shut Down Mandrake 9.1 ok278 Linux - Software 5 11-03-2003 03:04 PM
How do you shut down Mandrake? randon Linux - General 14 10-23-2003 05:22 AM
cannot shut down mandrake 9.1 spyghost Mandriva 3 10-16-2003 10:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:27 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