<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>HowToBSD &#187; hdd</title>
	<atom:link href="http://howtobsd.com/tag/hdd/feed" rel="self" type="application/rss+xml" />
	<link>http://howtobsd.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 11 Feb 2014 11:21:33 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>How to mount iso image in FreeBSD</title>
		<link>http://howtobsd.com/software/how-to-mount-iso-image-in-freebsd.html</link>
		<comments>http://howtobsd.com/software/how-to-mount-iso-image-in-freebsd.html#comments</comments>
		<pubDate>Mon, 03 Oct 2011 12:19:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[hdd]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[virtualization]]></category>

		<guid isPermaLink="false">http://howtobsd.com/?p=487</guid>
		<description><![CDATA[It is very actual question &#8220;mount iso in freebsd&#8220;. However mounting of iso is very easy. Let&#8217;s make sure it: Firstly we need to make virtual device for our iso image (use mdconfig for it): howtobsd# mdconfig -a -f /path_to_iso/Mac_OS_X.iso md0 md0 (command return) &#8211; it is name of virtual device (should appear in /dev/md0). [...]]]></description>
				<content:encoded><![CDATA[<p>It is very actual question &#8220;<strong>mount iso in freebsd</strong>&#8220;. However mounting of iso is very easy. Let&#8217;s make sure it:</p>
<p>Firstly we need to make virtual device for our iso image (use mdconfig for it):<br />
<code>howtobsd# mdconfig -a -f /path_to_iso/Mac_OS_X.iso<br />
md0</code></p>
<p>md0 (command return) &#8211; it is name of virtual device (should appear in /dev/md0).<br />
you can check if it appeared in /dev:<br />
<code>howtobsd# ls /dev/ | grep md0<br />
md0</code></p>
<p>And now we just need to mount virtual device:</p>
<p><code>howtobsd# mount_cd9660 /dev/md0 /cdrom</code></p>
<p>That&#8217;s all, your iso image available in /cdrom directory.</p>
<p>If you need to unmount and delete virtual device, do following commands:<br />
<code>howtobsd# umount  /cdrom<br />
mdconfig -d -u md0</code></p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/software/how-to-mount-iso-image-in-freebsd.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>HDD head parking on FreeBSD (Load_Cycle_Count)</title>
		<link>http://howtobsd.com/solutions/hdd-head-parking-on-freebsd.html</link>
		<comments>http://howtobsd.com/solutions/hdd-head-parking-on-freebsd.html#comments</comments>
		<pubDate>Mon, 18 Oct 2010 20:18:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solutions]]></category>
		<category><![CDATA[hdd]]></category>
		<category><![CDATA[problems & solutions]]></category>

		<guid isPermaLink="false">http://howtobsd.com/?p=233</guid>
		<description><![CDATA[Usually  hdd for notebooks (and some models for desktop, for example models of  WD Caviar Green series) includes function of head parking for powersave. This function parks heads after few seconds of inactivity.A lot of head parkings isn&#8217;t good for hdd. You can check your smart data using utility smartmontools: howtobsd# smartctl -a /dev/ad0 &#124; [...]]]></description>
				<content:encoded><![CDATA[<p>Usually  hdd for notebooks (and some models for desktop, for example models of  WD Caviar Green series) includes function of head parking for powersave. This function parks heads after few seconds of inactivity.A lot of head parkings isn&#8217;t good for hdd.</p>
<p>You can check your smart data using utility <a href="//howtobsd.com/?p=169">smartmontools</a>:</p>
<p><code>howtobsd# smartctl -a /dev/ad0 | grep Load_Cycle_Count<br />
193 Load_Cycle_Count        0x0032   099   099   000    Old_age   Always       -       <span style="color: #ff0000;"><strong>37104</strong></span></code></p>
<p><span style="color: #ff0000;"><strong>37104 &#8211; </strong></span>it is a number of parking (only imagine it! On my laptop before fixing this value had been increased on 50 numbers per\hour)</p>
<p>For prevent hdd from  head parking or change timeout you can use ataidle.</p>
<p><code>howtobsd# cd /usr/ports/sysutils/ataidle/<br />
howtobsd# make install clean<br />
howtobsd# ataidle -P 254 /dev/ad0</code></p>
<p>This commands set APM (Advanced Power Management) to highest power consumption.</p>
<p>and add into rc.conf:<br />
<code>ataidle_enable="YES"<br />
ataidle_devices="ad0"<br />
ataidle_ad0="-I 60 -S 120 -A 127 -P 254"</code></p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/solutions/hdd-head-parking-on-freebsd.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>S.M.A.R.T. for FreeBSD (smartmontools)</title>
		<link>http://howtobsd.com/software/smar-t-for-freebsd-smartmontools.html</link>
		<comments>http://howtobsd.com/software/smar-t-for-freebsd-smartmontools.html#comments</comments>
		<pubDate>Tue, 17 Aug 2010 14:12:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[hdd]]></category>
		<category><![CDATA[monitoring]]></category>

		<guid isPermaLink="false">http://howtobsd.com/?p=169</guid>
		<description><![CDATA[S.M.A.R.T. (Self-Monitoring hdd, Analysis, and Reporting Technology). This monitoring system support practically all hdd disks. You have to install smartmontools for working with smart on FreeBSD. I suggest you have alredy installed it. #smartctl -a /dev/ad1 This command show you many various indicatos about your disk (rate of hardware read errors, count of reallocated sectors, [...]]]></description>
				<content:encoded><![CDATA[<p>S.M.A.R.T. (Self-Monitoring hdd, Analysis, and Reporting Technology).<br />
This monitoring system support practically all hdd disks.<br />
You have to install smartmontools for working with smart on FreeBSD. I suggest you have alredy installed it.</p>
<p> <code>#smartctl -a /dev/ad1 </code></p>
<p>This command show you many various indicatos about your disk (rate of hardware read errors, count of reallocated sectors, hdd temperature etc)</p>
<p>You also can run smartd daemon with will ask disks one time per 30minutes</p>
<p><code>#cp /usr/local/etc/smartd.conf.sample /usr/local/etc/smartd.conf<br />
#vim /usr/local/etc/smartd.conf:<br />
/dev/ad0 -S on -o on -a -I 194 -m admin@howtobsd.com<br />
/dev/ad4 -S on -o on -a -I 194 -m admin@howtobsd.com</code></p>
<p>add to /etc/rc.conf:</p>
<p><code>usr/local/etc/>echo 'smartd_enable="YES"' >> /etc/rc.conf<br />
/usr/local/etc/>echo 'smartd_flags="-l local2 --interval=300"' >> /etc/rc.conf</code></p>
<p><code>#/usr/local/etc/rc.d/smartd start</code></p>
<p>That is all!</p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/software/smar-t-for-freebsd-smartmontools.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to move FreeBSD system from one hdd to another.</title>
		<link>http://howtobsd.com/software/how-to-move-freebsd-system-from-one-hdd-to-another.html</link>
		<comments>http://howtobsd.com/software/how-to-move-freebsd-system-from-one-hdd-to-another.html#comments</comments>
		<pubDate>Tue, 04 May 2010 10:13:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[hdd]]></category>
		<category><![CDATA[move system]]></category>

		<guid isPermaLink="false">http://howtobsd.com/?p=110</guid>
		<description><![CDATA[It&#8217;s can be useful, when you current hard drive disk too small or going out of order. I&#8217;ve moved my FreeBSD system with this simple method twice. At last I&#8217;ve moved System from production server. New hdd has added in software RAID-1 and work correct.So, I think you won&#8217;t have some kind of problem. Any [...]]]></description>
				<content:encoded><![CDATA[<p>It&#8217;s can be useful, when you current hard drive disk too small or going out of order.<br />
I&#8217;ve moved my FreeBSD system with this simple method twice. At last I&#8217;ve moved System from production server. New hdd has added in <a href="http://howtobsd.com/?p=91">software RAID-1</a> and work correct.So, I think you won&#8217;t have some kind of problem. Any way, if something will wrong you always can use your previous hdd.<br />
Let&#8217;s start.</p>
<p>1)Shut down your FreeBSD:<br />
<code>#halt</code></p>
<p>and swich off computer from power</p>
<p>2)Connect your new hdd, swich on computer and make shure that hdd is detected (in BIOS) and start booting system.<br />
3)For example your new hdd has detected like this: /dev/ad4<br />
4)make directories for points for mounting yours partitions:</p>
<p><code>#mkdir /mnt/root &amp;&amp; mkdir /mnt/var &amp;&amp; mkdir /mnt/usr</code></p>
<p>5) Start up sysinstall program:<br />
<code>#sysinstall</code><br />
choose Configure-&gt; Fdisk-&gt; ad4 (carefully)<br />
create freeBSD slice on the all disk space. Press s (set bootable), press w (write changes). And choose &#8220;Standard Install a standard MBR&#8221; and press &#8220;YES&#8221;<br />
Go to the Label choose ad4 press &#8216;a&#8217; (auto-defaults for all), it is auto create  partitions for you. You can create partitions yourself (if you need special partition size). After that you have to select mount points. For every partition press &#8216;m&#8217; and insert mount point (for exemple in my partition ad4s1e mount point &#8220;/mnt/usr&#8221;), when you finish, press &#8216;w&#8217; (write changes). If you create partitions by hand &#8211; you should be shure that your root partition has created with letter &#8220;a&#8221; like this: ad4s1a. You can obtain it in thw next trick. Firstly create partinion with mount point &#8216;/&#8217; &#8211; only in this case partition will be created by Label with letter &#8216;a&#8217;. And after that you need change mount point partition ad4s1a in &#8216;/mnt/root/&#8217;. I advise you create partition the same in your previous disk (see in /etc/fstab). Don&#8217;t forget create partitions that were in your previous disk (/tmp and others)  After that program create partitions and mount it in your points &#8211; /mnt/root, /mnt/var, mkdir /mnt/usr.</p>
<p>6) Check your partition and mount points:<br />
<code>#df</code><br />
7) Now you are ready for magic commands:<br />
<code># cd / ; pax -p eme -X -rw . /mnt/root<br />
# cd /var; pax -p eme -X -rw . /mnt/var<br />
# cd /usr; pax -p eme -X -rw . /mnt/usr</code></p>
<p>8)If letters partitions in your new hdd are not conform with letters partitions your previous hdd you must fix it in you new fstab: /mnt/root/etc/fstab<br />
Carefully examine your fstab and output df. If your new hdd take the place of previous hdd (replace) and letters of partitions the same in the both hdds. You don&#8217;t have to change mnt/root/etc/fstab, becose when you replace you old hdd pertition will be correct for you new hdd. But if your partitions were changed &#8211; edit /mnt/root/etc/fstab. For example if partiotion /var has lable /dev/ad0s1f and became /dev/ad0s1g you have to change in /mnt/root/etc/fstab from ad0s1f to ad0s1g</p>
<p>9)Shut down&#8230;swich off&#8230; replace hdd..swich on&#8230;enjoy</p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/software/how-to-move-freebsd-system-from-one-hdd-to-another.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Software RAID-1 on FreeBSD gmirror howto</title>
		<link>http://howtobsd.com/software/software-raid-1-on-freebsd-gmirror-howto.html</link>
		<comments>http://howtobsd.com/software/software-raid-1-on-freebsd-gmirror-howto.html#comments</comments>
		<pubDate>Sat, 10 Apr 2010 11:31:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[gmirror]]></category>
		<category><![CDATA[hdd]]></category>
		<category><![CDATA[RAID-1]]></category>

		<guid isPermaLink="false">http://howtobsd.com/?p=91</guid>
		<description><![CDATA[freebsd geom mirror howto I did RAID-1 on the FreeBSD 7.1-RELEASE with two identical HDD &#8211; WD15EARS (1,5Tb) I think you can use any hhd on condition that firs device have to be smoller size than second. in my case: - FreeBSD detect it as ad10 and ad16 - System has been installed in ad10 [...]]]></description>
				<content:encoded><![CDATA[<h2>freebsd geom mirror howto</h2>
<p>I did RAID-1 on the FreeBSD 7.1-RELEASE with two identical HDD &#8211; WD15EARS (1,5Tb)<br />
I think you can use any hhd on condition that firs device have to be smoller size than second.</p>
<p>in my case:<br />
- FreeBSD detect it as<strong> ad10</strong> and <strong>ad16</strong><br />
- System has been installed in <strong>ad10</strong> (with standard boot loader)</p>
<p>Before starting you have to do this:<br />
<code>howtobsd#sysctl kern.geom.debugflags=16</code></p>
<p>next you can add you device where has installed your system (In my situation it is <strong>ad10</strong>)</p>
<p><code>howtobsd#gmirror label -v -b round-robin gm0 /dev/ad10<br />
Metadata value stored on /dev/ad10.<br />
Done.</code></p>
<p>and add kernels module gmirror:</p>
<p><code>howtobsd#echo geom_mirror_load="YES" &gt;&gt; /boot/loader.conf</code></p>
<p>I&#8217;d advice you to backup your current version of fstab before editing:</p>
<p><code>howtobsd#cp /etc/fstab /etc/fstab.backup</code></p>
<p>edit your fstab-file very carefully.<br />
<code>howtobsd#vim /etc/fstab</code></p>
<p>you have to change /dev/<strong>ad10xxx</strong> on /dev/<strong><span style="color: #800000;">mirror</span>/gm0xxx</strong> &#8211; (very carefully! you mustn&#8217;t forget &#8220;/<strong><span style="color: #800000;">mirror</span></strong>&#8220;)</p>
<p>my fstab before:<br />
<code># Device        Mountpoint  FStype  Options     Dump    Pass#<br />
/dev/ad10s1b        none        swap    sw      0   0<br />
/dev/ad10s1a        /       ufs rw      1   1<br />
/dev/ad10s1d        /tmp        ufs rw      2   2<br />
/dev/ad10s1e        /usr        ufs rw      2   2<br />
/dev/ad10s1f        /var        ufs rw      2   2<br />
/dev/ad10s1g        /vol1       ufs rw      2   2<br />
/dev/ad10s1h        /vol2       ufs rw,userquota    2   2</code></p>
<p>my fstab after:<br />
<code># Device        Mountpoint  FStype  Options     Dump    Pass#<br />
/dev/mirror/gm0s1b      none        swap    sw      0   0<br />
/dev/mirror/gm0s1a      /       ufs rw      1   1<br />
/dev/mirror/gm0s1d      /tmp        ufs rw      2   2<br />
/dev/mirror/gm0s1e      /usr        ufs rw      2   2<br />
/dev/mirror/gm0s1f      /var        ufs rw      2   2<br />
/dev/mirror/gm0s1g      /vol1       ufs rw      2   2<br />
/dev/mirror/gm0s1h      /vol2       ufs rw,userquota    2   2</code></p>
<p>going to reboot</p>
<p>and finally add second hdd in raid massive:</p>
<p><code>howtobsd#gmirror insert gm0 /dev/ad16</code></p>
<p>at this moment system started background mirroring<br />
you can check status of rebuilding:<br />
<code>howtobsd# gmirror status<br />
Name    Status  Components<br />
mirror/gm0  DEGRADED  ad10<br />
ad16 (0%)</code></p>
<p>or more verbose:</p>
<p><code>howtobsd# gmirror list<br />
Geom name: gm0<br />
State: DEGRADED<br />
Components: 2<br />
Balance: round-robin<br />
Slice: 4096<br />
Flags: NONE<br />
GenID: 0<br />
SyncID: 1<br />
ID: 2858761865<br />
Providers:<br />
1. Name: mirror/gm0<br />
Mediasize: 1500301909504 (1.4T)<br />
Sectorsize: 512<br />
Mode: r8w7e8<br />
Consumers:<br />
1. Name: ad10<br />
Mediasize: 1500301910016 (1.4T)<br />
Sectorsize: 512<br />
Mode: r1w1e1<br />
State: ACTIVE<br />
Priority: 0<br />
Flags: DIRTY<br />
GenID: 0<br />
SyncID: 1<br />
ID: 1691608728<br />
2. Name: ad16<br />
Mediasize: 1500301910016 (1.4T)<br />
Sectorsize: 512<br />
Mode: r1w1e1<br />
State: SYNCHRONIZING<br />
Priority: 0<br />
Flags: DIRTY, SYNCHRONIZING<br />
GenID: 0<br />
SyncID: 1<br />
Synchronized: 0%<br />
ID: 1437675374</code></p>
<p>Synchronization can go on a long time (in my case about 7 hours)</p>
<p>Congratulate! When synchronized obtain 100% you can cut off one of your hdd and try to boot system for checking efficiency of RAID1 massive.</p>
<p>Oh&#8230;at last&#8230;<br />
If one of your HDDs out of order &#8211; replace defective HDD and give command:</p>
<p><code>howtobsd#gmirror forget gm0<br />
howtobsd#gmirror insert gm0 /dev/ad16</code></p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/software/software-raid-1-on-freebsd-gmirror-howto.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD 7.2 and Silicon Image Sil 3112 SATA Controller</title>
		<link>http://howtobsd.com/hardware/freebsd-7-2-and-silicon-image-sil-3112-sata-controller.html</link>
		<comments>http://howtobsd.com/hardware/freebsd-7-2-and-silicon-image-sil-3112-sata-controller.html#comments</comments>
		<pubDate>Sun, 22 Nov 2009 11:11:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[hdd]]></category>

		<guid isPermaLink="false">http://howtobsd.com/?p=43</guid>
		<description><![CDATA[Sil3112 SATA Controller FreeBSD 7.2 ]]></description>
				<content:encoded><![CDATA[<p>Recently I have happened to set up some services on my brother&#8217;s fileserver.<br />
FreeBSD should been worked via PCI SATA Controller(Sil3112)on SATA 1Tb HDD.<br />
FreeBSD 7.2 was installing by a miracle. But it didn&#8217;t work properly.<br />
Server was being hang up and restart when hard disk was being use actively (for example: updating ports tree,make installing port&#8217;s and especially uploading a big data level via samba).<br />
As it found out this controller don&#8217;t work correctly with FreeBSD, although it present in <a title="generic ATA/ATAPI disk controller driver" rel="nofollow" href="http://www.freebsd.org/cgi/man.cgi?query=ata&amp;apropos=0&amp;sektion=4&amp;manpath=FreeBSD+7.2-RELEASE&amp;format=html">The currently supported ATA/SATA controller chips</a></p>
]]></content:encoded>
			<wfw:commentRss>http://howtobsd.com/hardware/freebsd-7-2-and-silicon-image-sil-3112-sata-controller.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
