Sponsored Content
Full Discussion: How to stop USB-HDD?
Special Forums Hardware Filesystems, Disks and Memory How to stop USB-HDD? Post 302481773 by Corona688 on Sunday 19th of December 2010 10:41:44 PM
Old 12-19-2010
It's safe to remove the drive once it's not mounted. I'll keep looking for how to spin down the drive...

---------- Post updated at 09:41 PM ---------- Previous update was at 09:28 PM ----------

sg3_utils contains a utility, sg_start, which can be used to manually spin down a drive.
This User Gave Thanks to Corona688 For This Post:
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

how to stop others users to stop viewing what i am doing ?

Hi , I have one question, suppose i am a normal user and when i use 'w' command , it shows who is logged on and what they are doing . Now i want to stop others users to know what i am doing accept the root ? can i do this ? thanks (5 Replies)
Discussion started by: mobile01
5 Replies

2. UNIX for Dummies Questions & Answers

usb hdd detection problem

I have seagate USB 2.0 HDD which was working good on my windows system Recently I have started using red hat Linux 2.6.9-55.0.12.EL (i686 i686 i386 GNU/Linux) The USB is not at all detected in Linux even if I reboot with it attached to the PC. The same can be detected on any Windows system. ... (0 Replies)
Discussion started by: mahendrakamath
0 Replies

3. Shell Programming and Scripting

Mounting Hdd

Can anybody help me. How can I retreive a data from my old unix SCSI hdd. My server is having a new SCSI Hdd. What should I do. Somebody was telling to mount the old hdd and take. What should I do to mount this old hdd and copy the data. Rajesh, Tata Coffee Ltd (2 Replies)
Discussion started by: tatacoffee
2 Replies

4. UNIX for Dummies Questions & Answers

Old HDD copy to new HDD ? im lost...

Over the last few months the HDD spins louder and louder, so I fiqured its time to replace the HDD. Its been running 24/7/365 since 98 :eek:. yes i said since 98 :D I have an IBM system 43P Model 240. 233 MHz. running AIX Version 4. The current HDD is an IBM DGHS COMP IEC -950 FRU PN#... (5 Replies)
Discussion started by: Chevy89rocks
5 Replies

5. UNIX for Dummies Questions & Answers

How to copy my system hdd usb stick from 4GB to 8GB ?

Hi, my router is my Linux embedded device. I have system installed on HDD 4GB usb stick, part1 swap, part2 /opt , part3 data. I need to copy my system to new HDD 8GB usb stick. What is a way for 4GB > 4GB HDD and what for 4GB > 8GB As I remeber, I can copy image of my 4GB HDD usb stick... (7 Replies)
Discussion started by: jack2
7 Replies

6. UNIX for Dummies Questions & Answers

USB-USB cable between linux and windows computers

Is there an easy way to setup a cross-over cable (USB-USB) between a linux box and a windows PC? My 2 machines are next to each other but I really do not want to keep transfering my files using my USB drive. Thanks! (4 Replies)
Discussion started by: Xterra
4 Replies

7. Ubuntu

Lucid AMD 64 install on USB HDD reboots frequently

Hi all, I am using Ubuntu lucid. It is installed on external USB HDD and I boot into it. Besides other issues, the most significant one is as follows.. I boot in and start working. Everything goes on fine. As soon as I move the HDD, change its position, etc, all icons tuns into a red... (1 Reply)
Discussion started by: morningSunshine
1 Replies

8. Red Hat

USB HDD not showing valid partition on one Solaris machine

Hi All, We have got a USB HDD with important data in it. The data has been copied to the disk(formatted ext3) via a LINUX system. The data was supposed to be copied to a second LINUX machine. Surprisingly, it doesn't show up any valid partitions in the new box. dmesg: usb1-3:... (2 Replies)
Discussion started by: Bikash Mishra
2 Replies

9. AIX

IBM AIX Internal HDD vs SAN HDD and Oracle

Hi Folks, I am facing an issue with the performance. P4 with 1 processor and 16 GB RAM and SAN HDD = Oracle report takes 25 minutes P5 with 2 processors and 16 GB RAM internall HDD with LPAR = Oracle Report takes 1 hour 15 minutes ( please note I have assigned all the max processors and... (7 Replies)
Discussion started by: filosophizer
7 Replies
SG_PREVENT(8)							     SG3_UTILS							     SG_PREVENT(8)

NAME
sg_prevent - sends a SCSI PREVENT ALLOW MEDIUM REMOVAL command SYNOPSIS
sg_prevent [--allow] [--help] [--prevent=PC] [--verbose] [--version] DEVICE DESCRIPTION
Sends a SCSI PREVENT ALLOW MEDIUM REMOVAL command to DEVICE. The default action of this utility is to prevent the removing or ejecting of the medium from a drive. This is done by ignoring the SCSI START STOP UNIT command (see sg_start) and ignoring the eject button on the drive when the user presses it. Drives that hold removable disks, tape cartridges or cd/dvd media typically implement this command. The definition of the "prevent" codes for this command differ between disks and tapes (covered by SBC-3 and SSC-3) and cd/dvd drives (covered by MMC-5). The "prevent codes" described here are from MMC-5. OPTIONS
Arguments to long options are mandatory for short options as well. -a, --allow allow medium removal. This is equivalent to setting to '--prevent=2'. Cannot be used with --prevent=PC option (i.e. either use no options (hence prevent removal), this option or --prevent=PC). -h, --help output the usage message then exit. -p, --prevent=PC where PC is a prevent code value. Defined values are: 0 allows removal, 1 prevents removal (default), 2 allows persistent removal while 3 prevents persistent removal. "Persistent" in this context means that the initiator (port) that successfully uses code 3 blocks other initiators (ports) from allowing removal. A "persistent prevent" state can be cleared by the owner allowing persistent removal (code 2) or a power cycle (or anything that resets the device (lun)) or some special commands (e.g. various service actions of Persistent Reserve Out, see SPC-3). -v, --verbose increase the level of verbosity, (i.e. debug output). -V, --version print the version string and then exit. EXIT STATUS
The exit status of sg_prevent is 0 when it is successful. Otherwise see the sg3_utils(8) man page. AUTHORS
Written by Douglas Gilbert. REPORTING BUGS
Report bugs to <dgilbert at interlog dot com>. COPYRIGHT
Copyright (C) 2004-2007 Douglas Gilbert This software is distributed under a FreeBSD license. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PUR- POSE. SEE ALSO
sg_start(sg3_utils), sg_persist(sg3_utils) sg3_utils-1.23 January 2007 SG_PREVENT(8)
All times are GMT -4. The time now is 08:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy