Deadjasper
2[H]4U
- Joined
- Oct 28, 2001
- Messages
- 2,346
Program in question is sg3_utils. Google has thousands and thousands of pages describing the program but I can find absolutely nothing on how to run it. All I get is "Command Not Found". 
sudo find /|grep -i sg3_utils
Probably, package in question is sg3_utils. Can you give us some context? Have a feeling you may be reading something "old" and there are better ways/commands to do whatever you're wanting.
First step is finding which package installs it and where it's installed. For that, we need to know what distribution you're using.
Well, we can check the usual places, but since it's not finding the command, it's probably not in your $path, which is the usual place. What is your $path, anyway, while we're talking about it. `echo $path`, please!![]()
That's just the manual, probably included in a documentation package. Looks like that program isn't installed/usr/share/man/man8/sg3_utils.8.gz
How do I put it in my path?![]()
First step is finding which package installs it and where it's installed. For that, we need to know what distribution you're using.
Well, we can check the usual places, but since it's not finding the command, it's probably not in your $path, which is the usual place. What is your $path, anyway, while we're talking about it. `echo $path`, please!![]()
That's just the manual, probably included in a documentation package. Looks like that program isn't installed
Actually, try typing "sg_" then hit tab a few times to see if it tries to complete the command. sg3_utils is just the package name. The actual executables are named differently. See also:So, it looks like you downloaded the program (source)? But it should be in the package repository. Unless that version has stuff the repo version doesn't, you should `apt-get install sg3_utils` to install Mint's package.
So, it looks like you downloaded the program (source)? But it should be in the package repository. Unless that version has stuff the repo version doesn't, you should `apt-get install sg3_utils` to install Mint's package.
Actually, try typing "sg_" then hit tab a few times to see if it tries to complete the command. sg3_utils is just the package name. The actual executables are named differently. See also:
https://linux.die.net/man/8/sg3_utils
Probably needs root permissions to access the block devices (/dev/sg*)I rebooted the computer and now I'm getting -
sparkey@sparkey-desktop:~$ sg_scan
sg_scan: Error opening /dev/sg0 : Permission denied
sg_scan: Error opening /dev/sg1 : Permission denied
/dev/sg2: scsi3 channel=0 id=0 lun=0 [em]
sg_scan: Error opening /dev/sg3 : Permission denied
Probably needs root permissions to access the block devices (/dev/sg*)
uh, no, just execute as root. For example: sudo sg_whateverHow do I give it permissions?
I guess I'll need to grant root permissions to sg_*
Ah, my bad, it's sg3-utils not sg3_utils. Looks like it's installed already anyway, since the command completion worked and so did the programs (well, as well as they could anyway).sparkey@sparkey-desktop:~$ sudo apt-get install sg3_utils
[sudo] password for sparkey:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package sg3_utils
sparkey@sparkey-desktop:~$
Doesn't sound good if it has a constant tick, is it parking the head over and over maybe.Looks like I'm pissing in the wind as far as this Netapp HD is concerned. It stalled at 4.47% for a couple of hours and then jumped to 4.51%. Had my hopes up briefly. Even tho HD Sentinel say the drive is good the ever so slight tick tick tick is telling me otherwise.![]()
Doesn't sound good if it has a constant tick, is it parking the head over and over maybe.
Run Spinrite on that drive. It may be able to make it usable again.Not sure. I stopped the format at 3am this morning and it was still at 4.51%. Most likely it was dropped. It hasn't even been broken in yet, less than 10tb written.
I bought this drive off eBay. I notified the seller and he promptly sent me another and didn't require me to send the old one back. I figured I try everything I can before adding it to my dead HD pile.
The replacement was the same model and it formatted normally.
Run Spinrite on that drive. It may be able to make it usable again.
I do. Spinrite doesn't care about the format state. If Spinrite can't make it usable again it's time to put a drill bit through it.It's currently in format never never land. It was originally formated to 520b sectors and after several attempts to format it it's showing as 512b sectors but no format attempt got as far as 5% so that's not accurate. Do you still think Spinrite might help?
I do. Spinrite doesn't care about the format state. If Spinrite can't make it usable again it's time to put a drill bit through it.