229 | | == Red Hat Enterprise Linux, CentOS (both in versions 5 and newer) and Fedora Linux distributions == |
230 | | {{{ |
231 | | #!html |
232 | | <ul class="Square"> |
233 | | <li>The smartmontools package is part of the official |
234 | | repositories and can be installed using the <tt>yum</tt> command: |
235 | | |
236 | | <p class="code"># you need to be root to do this<br /> |
237 | | yum install smartmontools</p></li> |
238 | | </ul> |
239 | | |
240 | | <hr /> |
241 | | <ul class="High"><li><a name="other-rpm"></a>Other distributions providing RPM packages</li></ul> |
242 | | |
243 | | <ul class="Square"> |
244 | | <li>Download the latest binary RPM file (<tt>smartmontools*.rpm</tt>) for your |
245 | | distribution. Don't get the SRPM file (<tt>*.src.rpm</tt>).<br /><br /></li> |
246 | | |
247 | | <li>Install it using RPM. <em>You must be <tt>root</tt> to do this</em>:<br /> |
248 | | <p class="code">su root # -> enter root password |
249 | | <br />rpm -ivh smartmontools-5.33-6.i586.rpm</p> |
250 | | For most users, this is all that is needed.<br /><br /></li> |
251 | | |
252 | | <li>If you want to remove the package (<tt>rpm -e smartmontools</tt>) |
253 | | and your system does not have <tt>chkconfig</tt> installed, you may need |
| 229 | ==== Red Hat Enterprise Linux, CentOS (both in versions 5 and newer) and Fedora Linux distributions ==== |
| 230 | |
| 231 | The smartmontools package is part of the official repositories and can be installed using the {{{yum}}} command: |
| 232 | |
| 233 | {{{ |
| 234 | # you need to be root to do this |
| 235 | yum install smartmontools |
| 236 | }}} |
| 237 | |
| 238 | ---- |
| 239 | |
| 240 | ==== Other distributions providing RPM packages ==== |
| 241 | |
| 242 | Download the latest binary RPM file ({{{smartmontools*.rpm}}}) for your |
| 243 | distribution. Don't get the SRPM file ({{{*.src.rpm}}}). |
| 244 | |
| 245 | Install it using RPM. ''You must be {{{root}}} to do this'': |
| 246 | {{{ |
| 247 | su root # -> enter root password |
| 248 | rpm -ivh smartmontools-5.33-6.i586.rpm |
| 249 | For most users, this is all that is needed. |
| 250 | }}} |
| 251 | |
| 252 | If you want to remove the package ({{{rpm -e smartmontools}}}) |
| 253 | and your system does not have {{{chkconfig}}} installed, you may need |
276 | | on Cygwin. |
277 | | Refer to the file <tt>/usr/share/doc/Cygwin/smartmontools-*.README</tt> |
278 | | for details.</li> |
279 | | </ul> |
280 | | |
281 | | <hr /> |
282 | | <ul class="High"><li><a name="WindowsInstall"></a> |
283 | | Windows - Install the Windows package</li></ul> |
284 | | <ul class="Square"> |
285 | | <li>Download and run the latest smartmontools |
286 | | <a href="http://nsis.sourceforge.net/Main_Page"><img src="pics/linkext.gif" width="11" height="11" border="0" alt="extLink: " />NSIS</a>-installer |
287 | | (<tt>*.win32-setup.exe</tt>) from |
288 | | <a href="http://sourceforge.net/projects/smartmontools/files/"><img src="pics/linkext.gif" width="11" height="11" border="0" alt="extLink: " />here</a>. |
289 | | <ul> |
290 | | <li>The default install type "Full" creates start menu shortcuts |
291 | | including an uninstaller, and adds the install directory to the PATH variable. |
292 | | </li> |
293 | | <li>Select install type "Extract files only" to disable these extra |
294 | | components. |
295 | | </li> |
296 | | |
297 | | <li>Virus scanners occasionally produce false positive virus reports for |
298 | | NSIS-installers, see the |
299 | | <a href="http://nsis.sourceforge.net/NSIS_False_Positives"><img src="pics/linkext.gif" width="11" height="11" border="0" alt="extLink: " />NSIS False Positives page</a>. |
300 | | If this is the case for the smartmontools installer, please send a report to the |
301 | | <a href="mailto:smartmontools-support@lists.sourceforge.net"><img src="pics/linkext.gif" width="11" height="11" border="0" alt="extLink: " />smartmontools-support |
302 | | mailing list</a>.<br /><br /></li> |
303 | | </ul> |
304 | | </li> |
305 | | <li><span class="marked">Starting with smartmontools release 5.37, the Windows package |
306 | | is no longer provided as a ZIP archive (<tt>*.win32.zip</tt>).</span><br /> |
307 | | If the self extracting installer cannot be used for some reason, the files may also |
308 | | be unpacked by a recent version of <a href="http://www.7-zip.org/"><img src="pics/linkext.gif" width="11" height="11" border="0" alt="extLink: " />7-Zip</a>.<br /><br /></li> |
309 | | |
310 | | <li>More recent (and probably unstable) Windows test releases build from CVS |
311 | | snapshots are available <a href="http://smartmontools-win32.dyndns.org/smartmontools/"><img src="pics/linkext.gif" width="11" height="11" border="0" alt="extLink: " />here</a>.</li> |
312 | | </ul> |
313 | | |
314 | | <h3><a name="tarball"></a>Second Method (Linux/Solaris/FreeBSD/NetBSD/OpenBSD/Cygwin) - Install from the source tarball</h3> |
315 | | <ul class="Square"> |
316 | | <li>Download the latest source tarball from <a |
317 | | href="http://sourceforge.net/projects/smartmontools/files/">here</a>. |
| 276 | on Cygwin. Refer to the file {{{/usr/share/doc/Cygwin/smartmontools-*.README}}} |
| 277 | for details. |
| 278 | |
| 279 | ---- |
| 280 | |
| 281 | ==== Windows - Install the Windows package ==== |
| 282 | |
| 283 | Download and run the latest smartmontools [http://nsis.sourceforge.net/Main_Page NSIS]-installer |
| 284 | ({{{*.win32-setup.exe}}}) from |
| 285 | [http://sourceforge.net/projects/smartmontools/files/ here]. |
| 286 | |
| 287 | The default install type "Full" creates start menu shortcuts including an uninstaller, and adds the install directory to the PATH variable. |
| 288 | |
| 289 | Select install type "Extract files only" to disable these extra components. |
| 290 | |
| 291 | Virus scanners occasionally produce false positive virus reports for NSIS-installers, see the [http://nsis.sourceforge.net/NSIS_False_Positives NSIS False Positives page]. If this is the case for the smartmontools installer, please send a report to the [mailto:smartmontools-support@lists.sourceforge.net smartmontools-support mailing list] |
| 292 | |
| 293 | Starting with smartmontools release 5.37, the Windows package is no longer provided as a ZIP archive ({{{*.win32.zip}}}). |
| 294 | |
| 295 | If the self extracting installer cannot be used for some reason, the files may also be unpacked by a recent version of [http://www.7-zip.org/ 7-Zip]. |
| 296 | |
| 297 | More recent (and probably unstable) Windows test releases build from CVS snapshots are available [http://smartmontools-win32.dyndns.org/smartmontools/ here]. |
| 298 | |
| 299 | ---- |
| 300 | |
| 301 | == 2. Install from the source tarball (Linux/Solaris/FreeBSD/NetBSD/OpenBSD/Cygwin) == |
| 302 | |
| 303 | Download the latest source tarball from [http://sourceforge.net/projects/smartmontools/files/ here]. |
320 | | odd-numbered extensions.<br /><br /></li> |
321 | | |
322 | | <li>Uncompress the tarball: |
323 | | <p class="code">tar zxvf smartmontools-5.38.tar.gz</p></li> |
324 | | |
325 | | <li>The previous step created a directory called <tt>smartmontools-5.38</tt> |
326 | | containing the code.  Go to that directory, build, and install: |
327 | | <p class="code">cd smartmontools-5.38<br /> |
328 | | ./configure<br /> |
329 | | make<br /> |
330 | | make install</p></li> |
331 | | |
332 | | <li>For releases >=5.19, <tt>./configure</tt> |
333 | | |
334 | | can take optional arguments. These optional arguments are fully explained in the |
335 | | <a href="http://smartmontools.svn.sourceforge.net/viewvc/smartmontools/trunk/smartmontools/INSTALL?view=markup">INSTALL</a> |
336 | | file. The most important one is <tt>--prefix</tt> to change the default installation directories.<br /> |
337 | | <i>Please note that the default installation location changed in versions >=5.31.</i> |
338 | | If you don't pass any arguments to <tt>./configure</tt> all files will reside under |
339 | | <tt>/usr/local</tt> to not interfere with files from your distribution. For more detailed |
340 | | information please also refer to the |
341 | | |
342 | | <a href="http://smartmontools.svn.sourceforge.net/viewvc/smartmontools/trunk/smartmontools/INSTALL?view=markup">INSTALL</a> |
343 | | document.<br /><br /></li> |
344 | | |
345 | | <li>To compile from another directory (avoids overwriting virgin files from the smartmontools package) |
346 | | replace <tt>./configure [options]</tt> by: |
347 | | <p class="code"> |
348 | | mkdir objdir<br /> |
349 | | cd objdir<br /> |
350 | | ../configure [options]<br /> |
351 | | </p></li> |
352 | | |
353 | | <li>To install to another destination (useful for testing and to avoid overwriting an existing smartmontools installation) |
354 | | replace <tt>make install</tt> by: |
355 | | <p class="code">make DESTDIR=/home/myself/smartmontools-test install</p> |
356 | | Use a full path: <tt>~/smartmontools-test</tt> won't work.<br /><br /></li> |
357 | | |
358 | | <li>Unless the destination directory is your home directory (or a location that you have write permission) |
359 | | <br /> |
360 | | <p class="code"># only root can do that:<br /> |
361 | | |
362 | | make install</p> |
363 | | </li> |
364 | | </ul> |
365 | | |
366 | | <h3><a name="SVNInstall"></a> |
367 | | Third Method - Install latest unreleased code from SVN repository</h3> |
368 | | <p class="marked">We moved from CVS to a Subversion (SVN) repository. |
| 306 | odd-numbered extensions. |
| 307 | |
| 308 | Uncompress the tarball: |
| 309 | {{{ |
| 310 | tar zxvf smartmontools-5.38.tar.gz |
| 311 | }}} |
| 312 | |
| 313 | The previous step created a directory called {{{smartmontools-5.38}}} |
| 314 | containing the code. Go to that directory, build, and install: |
| 315 | {{{ |
| 316 | cd smartmontools-5.38 |
| 317 | ./configure |
| 318 | make |
| 319 | make install |
| 320 | }}} |
| 321 | |
| 322 | For releases >=5.19, {{{./configure}}} can take optional arguments. These optional arguments are fully explained in the |
| 323 | [http://smartmontools.svn.sourceforge.net/viewvc/smartmontools/trunk/smartmontools/INSTALL?view=markup INSTALL] |
| 324 | file. The most important one is {{{--prefix}}} to change the default installation directories. |
| 325 | ''Please note that the default installation location changed in versions >=5.31''. |
| 326 | If you don't pass any arguments to {{{./configure}}} all files will reside under |
| 327 | {{{/usr/local}}} to not interfere with files from your distribution. For more detailed |
| 328 | information please also refer to the |
| 329 | [http://smartmontools.svn.sourceforge.net/viewvc/smartmontools/trunk/smartmontools/INSTALL?view=markup INSTALL] document. |
| 330 | |
| 331 | To compile from another directory (avoids overwriting virgin files from the smartmontools package) |
| 332 | replace {{{./configure [options]}}} by: |
| 333 | {{{ |
| 334 | mkdir objdir |
| 335 | cd objdir |
| 336 | ../configure [options] |
| 337 | }}} |
| 338 | |
| 339 | To install to another destination (useful for testing and to avoid overwriting an existing smartmontools installation) |
| 340 | replace {{{make install}}} by: |
| 341 | {{{ |
| 342 | make DESTDIR=/home/myself/smartmontools-test install |
| 343 | }}} |
| 344 | |
| 345 | Use a full path: {{{~/smartmontools-test}}} won't work. |
| 346 | |
| 347 | Unless the destination directory is your home directory (or a location that you have write permission) |
| 348 | |
| 349 | {{{ |
| 350 | # only root can do that: |
| 351 | make install |
| 352 | }}} |
| 353 | |
| 354 | ---- |
| 355 | |
| 356 | == 3. Install latest unreleased code from SVN repository == |
| 357 | |
| 358 | We moved from CVS to a Subversion (SVN) repository. |
389 | | <p class="code">cd smartmontools<br /> |
390 | | ./autogen.sh<br /> |
391 | | ./configure<br /> |
392 | | |
393 | | make<br /> |
394 | | make install</p> |
395 | | |
396 | | <p>- See notes under <a href="#tarball">Second method - install from source tarball</a> for different options to <tt>./configure</tt> |
397 | | and other useful remarks.</p> |
398 | | </li> |
399 | | |
400 | | <li>To update your sources from trunk (development version): |
401 | | <p class="code">cd smartmontools<br /> |
402 | | |
403 | | svn update</p></li> |
404 | | |
405 | | <li>One of the really cool things about version control systems is that you can get |
406 | | <i>any</i> version of the code you want, from the first release up the |
| 377 | {{{ |
| 378 | cd smartmontools |
| 379 | ./autogen.sh |
| 380 | ./configure |
| 381 | make |
| 382 | make install |
| 383 | }}} |
| 384 | |
| 385 | See notes under [#tarball Install from source tarball] for different options to {{{./configure}}} |
| 386 | and other useful remarks. |
| 387 | |
| 388 | To update your sources from trunk (development version): |
| 389 | {{{ |
| 390 | cd smartmontools |
| 391 | svn update |
| 392 | }}} |
| 393 | |
| 394 | One of the really cool things about version control systems is that you can get |
| 395 | ''any'' version of the code you want, from the first release up the |
412 | | <p>E.g. run the following command to fetch the RELEASE_5_38 release:</p> |
413 | | |
414 | | <p class="code">svn co https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/tags/RELEASE_5_38/sm5 smartmontools</p> |
415 | | |
416 | | <p>Note that the directory with the smartmontools sourcefiles is named <span class="marked">sm5</span> in |
417 | | releases <= 5.38.</p> |
418 | | |
419 | | <p>The rest of the build procedure is the same like described above, with one exception:</p> |
420 | | |
421 | | <p>- Skip <tt>./autogen.sh</tt> and <tt>./configure</tt> for tagged releases |
422 | | |
423 | | <= 5.1-18 (RELEASE_5_X_Y, where X = 0 or 1 and Y = 0 to 18).</p> |
424 | | </li> |
425 | | |
426 | | </ul> |
427 | | |
428 | | <h3><a name="live-cd"></a> |
429 | | Fourth Method - Don't install, run from Live-system</h3> |
430 | | <p>If you have a system that is showing signs of disk trouble (for |
| 401 | E.g. run the following command to fetch the RELEASE_5_38 release: |
| 402 | |
| 403 | {{{ |
| 404 | svn co https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/tags/RELEASE_5_38/sm5 smartmontools |
| 405 | }}} |
| 406 | |
| 407 | Note that the directory with the smartmontools sourcefiles is named '''{{{sm5}}}''' in |
| 408 | releases <= 5.38.</p> |
| 409 | |
| 410 | The rest of the build procedure is the same like described above, with one exception: |
| 411 | |
| 412 | - Skip {{{./autogen.sh}}} and {{{./configure}}} for tagged releases |
| 413 | |
| 414 | <= 5.1-18 (RELEASE_5_X_Y, where X = 0 or 1 and Y = 0 to 18). |
| 415 | |
| 416 | ---- |
| 417 | |
| 418 | == 4. Run smartmontools from Live-system == |
| 419 | |
| 420 | If you have a system that is showing signs of disk trouble (for |
438 | | this to run <tt>smartctl</tt> on computers that don't use Linux as the |
439 | | day-to-day operating system.</p> |
440 | | |
441 | | <p><a name="bootable"></a>Here is a list of such bootable CDs:</p> |
442 | | <ul> |
443 | | <li><a href="http://www.finnix.org/"><img src="pics/linkext.gif" width="11" height="11" border="0" alt="extLink: " />Finnix Live Bootable CD</a></li> |
444 | | <li><a href="http://docs.fedoraproject.org/release-notes/f7/en_US/sn-Live.html"><img src="pics/linkext.gif" width="11" height="11" border="0" alt="extLink: " />Fedora Core 7 Live Bootable CD</a></li> |
445 | | <li><a href="http://www.lnx-bbc.com/"><img src="pics/linkext.gif" width="11" height="11" border="0" alt="extLink: " />LNX-BBC Bootable CD</a></li> |
446 | | <li><a href="http://www.stresslinux.org/"><img src="pics/linkext.gif" width="11" height="11" border="0" alt="extLink: " />Stresslinux Bootable CD</a></li> |
447 | | <li><a href="http://www.tux.org/pub/people/kent-robotti/looplinux/rip/"><img src="pics/linkext.gif" width="11" height="11" border="0" alt="extLink: " />RIP (Recovery Is Possible) Bootable CD</a></li> |
448 | | <li><a href="http://www.sysresccd.org/Main_Page"><img src="pics/linkext.gif" width="11" height="11" border="0" alt="extLink: " />SystemRescueCd</a></li> |
449 | | <li><a href="http://www.gpstudio.com/stux/"><img src="pics/linkext.gif" width="11" height="11" border="0" alt="extLink: " />STUX Bootable CD</a></li> |
450 | | |
451 | | <li><a href="http://partedmagic.com/"><img src="pics/linkext.gif" width="11" height="11" border="0" alt="extLink: " />Parted Magic</a> |
452 | | (also contains <a href="http://gsmartcontrol.berlios.de/"><img src="pics/linkext.gif" width="11" height="11" border="0" alt="extLink: " />GSmartControl</a>)</li> |
453 | | <li><a href="http://www.knopper.net/knoppix/index-en.html"><img src="pics/linkext.gif" width="11" height="11" border="0" alt="extLink: " />Knoppix</a> |
454 | | (<a href="http://packages.debian.org/testing/utils/smartmontools"><img src="pics/linkext.gif" width="11" height="11" border="0" alt="extLink: " />Debian/testing</a> based CD)</li> |
455 | | <li><a href="http://www.gentoo.org/"><img src="pics/linkext.gif" width="11" height="11" border="0" alt="extLink: " />Gentoo Installer LiveCD</a></li> |
456 | | <li><a href="http://grml.org/"><img src="pics/linkext.gif" width="11" height="11" border="0" alt="extLink: " />grml Linux Live-CD</a> |
457 | | |
458 | | (<a href="http://packages.debian.org/unstable/utils/smartmontools"><img src="pics/linkext.gif" width="11" height="11" border="0" alt="extLink: " />Debian/unstable</a> |
459 | | based CD, smartmontools is also included in <a href="http://grml.org/faq/#whatissmall"><img src="pics/linkext.gif" width="11" height="11" border="0" alt="extLink: " />grml-small</a>)</li> |
460 | | <li><a href="http://ubuntu-rescue-remix.org/"><img src="pics/linkext.gif" width="11" height="11" border="0" alt="extLink: " />Ubuntu Rescue Remix</a></li> |
461 | | <li><a href="http://smartlinux.sourceforge.net/"><img src="pics/linkext.gif" width="11" height="11" border="0" alt="extLink: " />S.M.A.R.T. Linux</a> |
462 | | (a bootable FLOPPY containing smartmontools!)</li> |
463 | | <li><a href="http://www.inside-security.de/insert_en.html"><img src="pics/linkext.gif" width="11" height="11" border="0" alt="extLink: " />INSERT (Inside Security Rescue Toolkit)</a> |
464 | | (Knoppix based CD)</li> |
465 | | |
466 | | <li><a href="http://www.911cd.net/forums/index.php?showtopic=13459"><img src="pics/linkext.gif" width="11" height="11" border="0" alt="extLink: " />Smartctl Plugin</a> |
467 | | for <a href="http://www.nu2.nu/pebuilder/"><img src="pics/linkext.gif" width="11" height="11" border="0" alt="extLink: " />BartPE bootable live windows CD</a></li> |
468 | | <li>A plugin for the <a href="http://www.ubcd4win.com/"><img src="pics/linkext.gif" width="11" height="11" border="0" alt="extLink: " />UBCD4Win</a> |
469 | | can be created by the <a href="download.html#WindowsInstall">smartmontools windows installer</a></li> |
470 | | <li>The <a href="http://www.ultimatebootcd.com/"><img src="pics/linkext.gif" width="11" height="11" border="0" alt="extLink: " />UBCD</a> |
471 | | 5.0 beta contains PartedMagic (above), see also note about UBCD <a href="faq.html#UBCD">in the FAQ</a></li> |
472 | | |
473 | | </ul> |
474 | | |
475 | | <p>Please let us know if there are others, and we will add them to this list.</p> |
476 | | |
477 | | }}} |
| 427 | this to run {{{smartctl}}} on computers that don't use Linux as the |
| 428 | day-to-day operating system. |
| 429 | |
| 430 | ==== List of bootable CDs ==== |
| 431 | [http://www.finnix.org/ Finnix Live Bootable CD][[BR]] |
| 432 | [http://docs.fedoraproject.org/release-notes/f7/en_US/sn-Live.html Fedora Core 7 Live Bootable CD][[BR]] |
| 433 | [http://www.lnx-bbc.com/ LNX-BBC Bootable CD][[BR]] |
| 434 | [http://www.stresslinux.org/ Stresslinux Bootable CD][[BR]] |
| 435 | [http://www.tux.org/pub/people/kent-robotti/looplinux/rip/ RIP (Recovery Is Possible) Bootable CD][[BR]] |
| 436 | [http://www.sysresccd.org/Main_Page SystemRescueCd][[BR]] |
| 437 | [http://www.gpstudio.com/stux/ STUX Bootable CD][[BR]] |
| 438 | [http://partedmagic.com/ Parted Magic] (also contains [http://gsmartcontrol.berlios.de/ GSmartControl])[[BR]] |
| 439 | [http://www.knopper.net/knoppix/index-en.html Knoppix][[BR]] |
| 440 | [http://packages.debian.org/testing/utils/smartmontools Debian/testing] based CD)[[BR]] |
| 441 | [http://www.gentoo.org/ Gentoo Installer LiveCD][[BR]] |
| 442 | [http://grml.org/ grml Linux Live-CD] ([http://packages.debian.org/unstable/utils/smartmontools Debian/unstable] based CD, smartmontools is also included in [http://grml.org/faq/#whatissmall grml-small])[[BR]] |
| 443 | [http://ubuntu-rescue-remix.org/ Ubuntu Rescue Remix][[BR]] |
| 444 | [http://smartlinux.sourceforge.net/ S.M.A.R.T. Linux] (a bootable FLOPPY containing smartmontools!)[[BR]] |
| 445 | [http://www.inside-security.de/insert_en.html INSERT (Inside Security Rescue Toolkit)] (Knoppix based CD)[[BR]] |
| 446 | [http://www.911cd.net/forums/index.php?showtopic=13459 Smartctl Plugin] for [http://www.nu2.nu/pebuilder/ BartPE bootable live windows CD][[BR]] |
| 447 | A plugin for the [http://www.ubcd4win.com/] UBCD4Win] can be created by the [#WindowsInstall smartmontools windows installer][[BR]] |
| 448 | The [http://www.ultimatebootcd.com/ UBCD] 5.0 beta contains PartedMagic (above), see also note about UBCD [http://smartmontools.sourceforge.net/faq.html#UBCD in the FAQ] |
| 449 | |
| 450 | Please let us know if there are others, and we will add them to this list. |