LinuxQuestions.org
Help answer threads with 0 replies.
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, 12:49 PM   #1
Fred Caro
Member
 
Registered: May 2007
Posts: 999

Rep: Reputation: 166Reputation: 166
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, 01:47 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,808

Rep: Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604
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, 08:22 PM   #3
Fred Caro
Member
 
Registered: May 2007
Posts: 999

Original Poster
Rep: Reputation: 166Reputation: 166
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, 08:30 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,842

Rep: Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823
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, 01:02 AM   #5
Fred Caro
Member
 
Registered: May 2007
Posts: 999

Original Poster
Rep: Reputation: 166Reputation: 166
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


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


All times are GMT -5. The time now is 10:43 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration