guyonphone

Samsung Magician for Linux

Recommended Posts

Hello Unraid,

 

I found out that Samsung made their Magician software for Linux.

 

http://jcutrer.com/howto/linux/samsung-magician-command-line-linux

 

Has anyone used this?

 

I'm not the best with Linux, does anyone have any suggestions on installing it on UnRaid?

 

Thank You

not tried it, but the description says it is for specific Linux distributions, none of which are compatible with unRAID.  That does not necessarily mean it cannot be made to run, but does suggest it could be a non-trivial task.

Share this post


Link to post
Share on other sites

I copied it to my boot drive, and attempted to launch it, I got a message saying the following:

 

root@Unraid:/boot# ./magician
-bash: ./magician: cannot execute binary file

 

It seems like having this would be a terrific idea. I would assume that a large amount of SSD users use Samsung SSD's, and we are missing a lot of the benefits that this could offer, but alas, I do not have the skills to port this to UNRAID.

 

Thanks

 

Share this post


Link to post
Share on other sites

It most likely uses tools already part of the Linux distro since the file is only 2.5M.  unRAID is slimmed down and lacks most tools in a normal distribution so not all functions may work.  That said, copy the 32 or 64 bit bin to a drive (cache, etc.) and issue 'chmod +x' on the file then run it (./magician).

Share this post


Link to post
Share on other sites

It most likely uses tools already part of the Linux distro since the file is only 2.5M.  unRAID is slimmed down and lacks most tools in a normal distribution so not all functions may work.  That said, copy the 32 or 64 bit bin to a drive (cache, etc.) and issue 'chmod +x' on the file then run it (./magician).

Don't even bother with the 32 bit on unRAID v6, no hope for that.

Share this post


Link to post
Share on other sites

With your guys's help I did get it to run:

 


root@Unraid:/mnt/cache/Apps# chmod +x ./magician
root@Unraid:/mnt/cache/Apps# ./magician
Magician is now configuring the environment for LSI MegaRAID SAS Controller.
Magician is now configuring the environment for LSI SAS IT/IR Controller.
Magician is now configuring the environment for LSI SAS IT/IR2 Controller.
Magician is now configuring the environment for LSI SAS IT/IR3 Controller.
================================================================================          ================
Samsung(R) SSD Magician DC Version 1.0
Copyright (c) 2014 Samsung Corporation
================================================================================          ================
Usage:  ./magician  [operation] ..

Allowed Operations:
-L[ --list]              Shows a disk(s) attached to the system.
-F[ --firmware-update]   Updates firmware to specified disk.
-E[ --erase]             Securely Erases all data from specified disk.
-O[ --over-provision]    Performs one of the Over-Provisioning related
                         operations on specified disk.
-T[ --trim]              Optimizes specified disk.
-S[ --smart]             Shows S.M.A.R.T values of specified disk.
-M[ --setmax]            Performs SetMax related operations on specified disk.
-W[ --writecache]        Enables/Disables Write Cache on specified disk.
-X[ --sctcachestate]     Gets the SCT write cache state for specified disk.
-C[ --command-history]   Shows history of the previously executed commands.
-I[ --info]              Displays the disk details to the user.
-license                 Shows the End User License Agreement.
-H[ --help]              Shows detailed Help.


root@Unraid:/mnt/cache/Apps# ./magician -L
================================================================================          ================
Samsung(R) SSD Magician DC Version 1.0
Copyright (c) 2014 Samsung Corporation
================================================================================          ================
----------------------------------------------------------------------------
| Disk   | Model   | Serial  | Firmware  | Capacity | Drive  | Total Bytes |
| Number |         | Number  |           |          | Health | Written     |
----------------------------------------------------------------------------
No Samsung SSD found!

 

However it does not see my SSD. My particular SSD an 850 EVO, is not listed in the supported drives section of this application, so perhaps I can't take advantage of this, or perhaps a dependency in UNRAID is missing like user unevent mentioned as a possibility. This is the end of the line for me, but perhaps this will help someone in the future.

 

Thanks!

Share this post


Link to post
Share on other sites

I can confirm this does work with my 850 Pro on unRAID 6.1.8.  Here are the steps to install and do a little cleanup:

 

mkdir /mnt/user/Data/magician/
cd /mnt/user/Data/magician/
wget http://www.samsung.com/global/business/semiconductor/minisite/SSD/downloads/software/samsung_magician_dc-v1.0_rtm_p2.tar.gz
tar xvfz samsung_magician_dc-v1.0_rtm_p2.tar.gz
mv samsung_magician_dc-v1.0_rtm_p2/64bin/magician  .
rm samsung_magician_dc-v1.0_rtm_p2.tar.gz
rm -rf samsung_magician_dc-v1.0_rtm_p2/

 

I chose to put it in /mnt/user/Data/magician, adjust as needed.  It won't extract to the flash drive.

 

To run:

 

cd /mnt/user/Data/magician/
./magician -L
================================================================================================
Samsung(R) SSD Magician DC Version 1.0
Copyright (c) 2014 Samsung Corporation
================================================================================================
----------------------------------------------------------------------------------------------------
| Disk   | Model                    | Serial         | Firmware  | Capacity | Drive  | Total Bytes |
| Number |                          | Number         |           |          | Health | Written     |
----------------------------------------------------------------------------------------------------
| 5      |Samsung SSD 850 PRO 512GB |zzzzzzzzzzzzzzz |EXM01B6Q   | 476 GB   | GOOD   | 10.06 TB    |
----------------------------------------------------------------------------------------------------

 

If I was starting from scratch I might over-provision the drive, but otherwise I don't see much here.

 

The manual is here if you need it

 

Share this post


Link to post
Share on other sites

I think your SSD drive is asleep  ;D

 

Very cool, thanks for testing it. I hadn't researched it that far, but was hoping for some sort of rapid mode.

 

Still a nice to have in my eyes.

Share this post


Link to post
Share on other sites

LOL yeah I probably didn't need to mask the serial number, but glad you got a laugh out of it ;)

 

And I agree, the fact that Samsung lets us over-provision and upgrade firmware from Linux is pretty awesome.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


Copyright © 2005-2017 Lime Technology, Inc. unRAID® is a registered trademark of Lime Technology, Inc.