Skip to content

Commit

Permalink
Update Packaging and Testsuite scripts to reflect new directory struc…
Browse files Browse the repository at this point in the history
…ture

change executable name on PSIDRevert text file
  • Loading branch information
r0m30 committed Aug 25, 2015
1 parent 9004d1d commit 5b21d84
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
14 changes: 7 additions & 7 deletions linux/PSIDRevert_LINUX.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@ optional steps 0.b & 0.c will do this:
0.b chmod 0744 /sys/module/libata/parameters/allow_tpm
0.b echo "1" > /sys/module/libata/parameters/allow_tpm

1. msed --scan <- SCAN to find Opal Drive (you should see Yes next the the drive
1. setutil-cli --scan <- SCAN to find Opal Drive (you should see Yes next the the drive
your working with.
2. msed --query /dev/sd? <--this will show the Opal status look at the locking
2. setutil-cli --query /dev/sd? <--this will show the Opal status look at the locking
feature and see if it is Locked = Y
or LockingEnabled = Y that's a good
sign that this should work
3.msed --yesIreallywanttoERASEALLmydatausingthePSID <PSIDALLCAPSNODASHES> /dev/sd?
3.setutil-cli --yesIreallywanttoERASEALLmydatausingthePSID <PSIDALLCAPSNODASHES> /dev/sd?

4. You should see INFO: revertTper completed successfully.
If you get a message that says NOT_AUTHORIZED you entered the PSID wrong.

If it doesn't work please execute the command in step 3 with a -vvvvv (5 v's) as the first option
redirecting the output to a file and send it back to me.
example:
msed -vvvvv --yesIreallywanttoERASEALLmydatausingthePSID <PSIDALLCAPSNODASHES> /dev/sd? > revertlog.txt
setutil-cli -vvvvv --yesIreallywanttoERASEALLmydatausingthePSID <PSIDALLCAPSNODASHES> /dev/sd? > revertlog.txt

Hope this helps.
********************************************************************
Expand All @@ -31,7 +31,7 @@ The following is a sanitized log of the commands and expected responses.
r0m30@r0m30-PC:~$ sudo -s
root@r0m30-PC:~# chmod 0744 /sys/module/libata/parameters/allow_tpm
root@r0m30-PC:~# echo "1" > /sys/module/libata/parameters/allow_tpm
root@r0m30-PC:~# ./msed --scan
root@r0m30-PC:~# ./setutil-cli --scan

Scanning for Opal 2.0 compliant disks
/dev/sd0 No ATA KINGSTON SV100S21205
Expand All @@ -44,7 +44,7 @@ Scanning for Opal 2.0 compliant disks
/dev/sd7 No Generic-MS/MS-Pro 1.00
/dev/sd8 Yes ATA Crucial_CT120M50MU05
No more disks present ending scan
root@r0m30-PC:~# ./msed --query /dev/sd8
root@r0m30-PC:~# ./setutil-cli --query /dev/sd8
/dev/sd8 ATA ATA Crucial_CT120M50MU05

TPer function (0x0001)
Expand All @@ -60,7 +60,7 @@ DataStore function (0x0202)
OPAL 2.0 function (0x0203)
Base comID = 0x1000, Initial PIN = 0x0, Reverted PIN = 0x0, comIDs = 1
Locking Admins = 4, Locking Users = 9, Range Crossing = N
root@r0m30-PC:~# ./msed --yesIreallywanttoERASE*ALL*mydatausingthePSID <PSIDALLCAPSNODASHES> /dev/sd8
root@r0m30-PC:~# ./setutil-cli --yesIreallywanttoERASE*ALL*mydatausingthePSID <PSIDALLCAPSNODASHES> /dev/sd8
- 01:14:10.996 INFO: Performing a PSID Revert on /dev/sd8 with password <PSIDALLCAPSNODASHES>
- 01:14:11.165 INFO: revertTper completed successfully
root@r0m30-PC:~#
12 changes: 6 additions & 6 deletions linux/Package.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
rm msed_LINUX.tgz
strip --strip-debug ../../dist/Release_i686/msed
strip --strip-unneeded ../../dist/Release_i686/msed
strip --strip-debug ../../dist/Release_x86_64/msed
strip --strip-unneeded ../../dist/Release_x86_64/msed
tar --xform 's,^,msed/,' -czf msed_LINUX.tgz *.txt *.sh ../*.txt -C ../../dist Release_i686/msed Release_x86_64/msed
rm sedutil_LINUX.tgz
strip --strip-debug ./CLI/dist/Release_i686/GNU-Linux-x86/sedutil-cli
strip --strip-unneeded ./CLI/dist/Release_i686/GNU-Linux-x86/sedutil-cli
strip --strip-debug ./CLI/dist/Release_x86_64/GNU-Linux-x86/sedutil-cli
strip --strip-unneeded ./CLI/dist/Release_x86_64/GNU-Linux-x86/sedutil-cli
tar --xform 's,^,sedutil/,' -czf sedutil_LINUX.tgz *.txt TestSuite.sh ./*.txt -C ./CLI/dist Release_i686/GNU-Linux-x86/sedutil-cli Release_x86_64/GNU-Linux-x86/sedutil-cli
4 changes: 2 additions & 2 deletions linux/TestSuite.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ read INOUT
echo Last chance to hit Ctrl-c an keep the data on your drive
read INPUT
## test msed commands
MSED=../../dist/Release_i686/msed
##MSED=../../dist/Release_x86_64/msed
MSED=./CLI/dist/Release_i686/GNU-Linux-x86/sedutil-cli
##MSED=./CLI/dist/Release_x86_64/GNU-Linux-x86/sedutil-cli
##MSED=./msed
##MSED=echo
LOGFILE=msed_test.baseline
Expand Down

0 comments on commit 5b21d84

Please sign in to comment.