From owner-freebsd-questions@freebsd.org Tue Jun 14 18:07:09 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 421BEB72C7C for ; Tue, 14 Jun 2016 18:07:09 +0000 (UTC) (envelope-from brandon.wandersee@gmail.com) Received: from mail-it0-f53.google.com (mail-it0-f53.google.com [209.85.214.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1A9162C46 for ; Tue, 14 Jun 2016 18:07:08 +0000 (UTC) (envelope-from brandon.wandersee@gmail.com) Received: by mail-it0-f53.google.com with SMTP id a5so84369841ita.1 for ; Tue, 14 Jun 2016 11:07:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=rHGn6WivaPMegEWtPVNgLtw13GCGZl7jYxzDjmJGOek=; b=HuKUErMsp8BMEQUhqWXDWXLzfyoklyRolZvJAKohYFwXTS1bd3GXpTRH5XjlSJd63W dvzqvl+3Bev5JCynMMM30ansvcCWYrP9zZrTkasrrW6HUsZwti7aSMAzdZzg3JMyfwrn fUGkJ8kbLhNQPpG+IY4YHQZc9No6z28KN81yIYFHMLzzvbWyMT7r1L74UYEyFNWTeidu tKqXHl7+mVrT/qEUqTbTW5hnq1llhBk/BLoAVt8zts9EASr6CkeaXIvVxa1jpYmz9cJx 9GUq8sEZKaOUDHMmPBsfTdXfREOOBTrNn4+FuBMrWzMrmnbaFiT+/sz4BGNPigKxaekP YytA== X-Gm-Message-State: ALyK8tLdovh7LkrDpZgfUETY9km95M8ot77CkZu9m76nEwqCpueRQ5pFj/EI9AmQhlA6Wg== X-Received: by 10.36.4.23 with SMTP id 23mr29517179itb.11.1465927191890; Tue, 14 Jun 2016 10:59:51 -0700 (PDT) Received: from WorkBox.Home.gmail.com (63-231-155-110.mpls.qwest.net. [63.231.155.110]) by smtp.gmail.com with ESMTPSA id w10sm2349689itc.1.2016.06.14.10.59.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Jun 2016 10:59:48 -0700 (PDT) References: User-agent: mu4e 0.9.16; emacs 24.5.1 From: Brandon J. Wandersee To: Manish Jain Cc: User Questions Subject: Re: Anything special to do moving to SSD? In-reply-to: Date: Tue, 14 Jun 2016 12:59:48 -0500 Message-ID: <8637ofy7l7.fsf@WorkBox.Home> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jun 2016 18:07:09 -0000 Manish Jain writes: > Hi, > > I use FreeBSD 10.2 amd64 as my primary OS. > > I just purchased a Samsung EVO 500 GB Solid State disk, and shall be > migrating to it in the next few days. Just wanted to know whether I > can use it out-of-the-box, pretty much like an IDE/SATA hard disk, or > is there anything special/nice to do for SSD ? > > I presume I shall have to reinstall the OS over again. In case it is > possible to migrate 'in-place' (data copy), please let me know about > that too. If you're using UFS, you can clone your existing installation by piping dump(8) straight into restore(8).[1] If you're using ZFS then you'd use `zfs send | zfs receive` instead, sending your filesystems straight to the new disk/pool instead of backing up and then restoring. Or you could just use some other reliable tool like rsync. Whatever the case, you should certainly already have a backup on-hand anyway, just in case. What is important no matter what is that when creating new UFS filesystems on an SSD, you need to use the `-t` flag to enable TRIM. TRIM is enabled by default on ZFS. [1]: http://www.wonkity.com/~wblock/docs/html/backup.html#_copying_filesystems -- :: Brandon J. Wandersee :: brandon.wandersee@gmail.com :: -------------------------------------------------- :: 'The best design is as little design as possible.' :: --- Dieter Rams ----------------------------------