LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 06-25-2011, 11:36 AM   #16
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411

Quote:
Sorry, but this is far above my knowlege so I behave clumsily, I fear.
Dont apologise...this is where Linux comes into its own: the learning curve and the community. You're not on your own here

Okay, let's go down the checklist again to see what we missed:

issued fdisk -l in the console, can you see the external drive? What is its name?

Issued umount /dev/sdb

likely sdb is the external drive

what happens?

If you're not root, the command could be "blackholed" by bash without feedback, fdisk does that on my machine. I issue it and ... nothing.

If you can unmount the drive...but it powers up again. So it could be a persistent process (Xorg is one of them, it dies and comes back for more), okay, let's look at /etc/inittab, list it and look for the word "respawn" - those are the respawning processes. Is the process for the external drive in there?

I'll do some more digging here...the plot thickens (never understood that one ...)

Thor

Last edited by ButterflyMelissa; 06-25-2011 at 11:53 AM.
 
Old 06-25-2011, 11:31 PM   #17
gorade
LQ Newbie
 
Registered: Nov 2010
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Thor_2.0 View Post
[B]

issued fdisk -l in the console, can you see the external drive? What is its name?

Issued umount /dev/sdb

likely sdb is the external drive

what happens?

If you're not root, the command could be "blackholed" by bash without feedback, fdisk does that on my machine. I issue it and ... nothing.

If you can unmount the drive...but it powers up again. So it could be a persistent process (Xorg is one of them, it dies and comes back for more), okay, let's look at /etc/inittab, list it and look for the word "respawn" - those are the respawning processes. Is the process for the external drive in there?

I'll do some more digging here...the plot thickens (never understood that one ...)

Thor
Name of the drive is sdc1. umount /dev/sdc1 unmounts it but doesn't turn power off.

From itittab:
1:2345:respawn:/sbin/getty 38400 tty1
2:23:respawn:/sbin/getty 38400 tty2
3:23:respawn:/sbin/getty 38400 tty3
4:23:respawn:/sbin/getty 38400 tty4
5:23:respawn:/sbin/getty 38400 tty5
6:23:respawn:/sbin/getty 38400 tty6

# Example how to put a getty on a serial line (for a terminal)
#
#T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100
#T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100

# Example how to put a getty on a modem line.
#
#T3:23:respawn:/sbin/mgetty -x0 -s 57600 ttyS3

Last edited by gorade; 06-26-2011 at 02:09 AM.
 
  


Reply

Tags
externalharddrive, poweroff



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
turn a computer into a usb or firewire mass storage device. exodist Linux - General 13 01-17-2011 09:07 AM
How to disable USB Mass Storage device ( usb drive ) in Linux vijaush Linux - Newbie 4 06-25-2008 09:43 AM
After plug in apacer ht202 usb mass storage into usb port. Nothing appear. tellmeimhong Linux - Hardware 3 02-04-2006 02:32 AM
how to get mandrake 9.0 shut down the computer without pushing the power button? sirpelidor Mandriva 8 11-25-2003 12:11 PM
power off the computer after shut down gary.chan Linux - Software 1 01-05-2003 10:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

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