LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 12-11-2010, 11:49 AM   #1
Fred Caro
Senior Member
 
Registered: May 2007
Posts: 1,007

Rep: Reputation: 167Reputation: 167
can and how to access a used sas disk using bash


Dear all,
I do a bit for for local charity that refurbishes and repairs computers, the proceeds going to 'steps' at Bolton. A donation of several sas hard drives has come in and I have got the job of wiping the data before re-sale. I have got a sata adapter and been using a live cd/dvd to access said drive but the nearest I've got is for the live disk (cfdisk) to recognise there is something there although it cannot read it. Any suggestions? Or do I need a special motherboard or O/S?

Fred.
 
Old 12-11-2010, 12:47 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
If all you want to do is wipe the data.. you don't care about accessing it. If you can see the disks (in fdisk or sd* under /dev/), use the "shred" utility on the disk. So like: shred /dev/sdc
 
Old 12-12-2010, 07:22 PM   #3
Fred Caro
Senior Member
 
Registered: May 2007
Posts: 1,007

Original Poster
Rep: Reputation: 167Reputation: 167
sas (sos)

I don't want to read it as such, I want to erase it but the apparatus will not read a drive designation so I cannot erase/shred it. Is there a bash script for this happy event?
'apparatus'= knoppix,slamp,usb caddy and fedora 14 cd asking for an identifier of which there seams to be little indication on the drive. Connecting rogue hard drive to the motherboard and running the system via a live cd.
If it sounds like I am struggling then that is because I am, could be a few quid in it for 'steps' though.

Fred.
 
Old 12-12-2010, 07:30 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Immediately after plugging in the caddy, run this and post the output (root/sudo in need)
Code:
dmesg | tail -n 20
fdisk -l
 
Old 12-17-2010, 12:02 AM   #5
Fred Caro
Senior Member
 
Registered: May 2007
Posts: 1,007

Original Poster
Rep: Reputation: 167Reputation: 167
sas

Thanks for the replies but have since found out I was a bit optimistic. The 'caddy' set up was not a true usb arrangement and the motherboard lacks a controller for sas drives, it does not show up on the bios. I should have checked this first. My apologies.

Fred.
 
  


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
Help with BASH to search text files on disk purveshk Linux - Newbie 5 06-23-2015 02:31 PM
BASH - How to access a variablized variable? DevonB Linux - Newbie 17 12-18-2009 12:59 PM
Disk Storage Systems - SAS,SCSI vs SATA richinsc Linux - Hardware 6 02-02-2009 02:49 AM
Very Poor Disk Performance SAS 15000 RPM Drives JustinK101 Linux - Newbie 4 07-02-2008 07:57 PM
SAS Hard Disk syok Slackware 5 01-02-2008 01:32 AM

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

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