From owner-freebsd-questions@freebsd.org Fri Mar 17 15:25:40 2017 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 5F0B4D1020A for ; Fri, 17 Mar 2017 15:25:40 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 252A61D35 for ; Fri, 17 Mar 2017 15:25:39 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [88.217.117.6] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.86_2) (envelope-from ) id 1cotkx-0004xf-9t for freebsd-questions@freebsd.org; Fri, 17 Mar 2017 16:25:31 +0100 Received: from localhost.my.domain (c720-r314251 [127.0.0.1]) by localhost.unixarea.de (8.15.2/8.14.9) with ESMTPS id v2HFPTgo003138 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Fri, 17 Mar 2017 16:25:29 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.15.2/8.14.9/Submit) id v2HFPSxO003137 for freebsd-questions@freebsd.org; Fri, 17 Mar 2017 16:25:28 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Fri, 17 Mar 2017 16:25:28 +0100 From: Matthias Apitz To: freebsd-questions@freebsd.org Subject: Re: bootable ext. USB SSD for backup Message-ID: <20170317152528.GA3072@c720-r314251> Reply-To: Matthias Apitz Mail-Followup-To: Matthias Apitz , freebsd-questions@freebsd.org References: <20170316194612.GA1748@c720-r314251> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Operating-System: FreeBSD 12.0-CURRENT r314251 (amd64) User-Agent: Mutt/1.8.0 (2017-02-23) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 88.217.117.6 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Mar 2017 15:25:40 -0000 El día jueves, marzo 16, 2017 a las 11:32:14p. m. -0600, Warren Block escribió: > It works. I've used USB 3 memory sticks of 16GB and larger with > success. In some versions of FreeBSD, the boot loader is really slow on > USB. Once you get past the really... slow... spinner... it is very > usable. USB 2 is not as good, but can be tolerable and might be > good enough with the write speeds of an SSD. > > However, some USB 3 memory sticks run really hot when connected to a USB > controller. For example, the Lexar 128GB JDS55 gets so hot that people > have reported melting of the plastic case. I can verify that level of > heat, but have not left it in use long enough for melting. My Lexar > 32GB JDS75 has similar transfer speeds but does not get meltingly hot. I had not much interest in participate in the discussion about GiB, etc. Meanwhile I did the following (all based on FreeBSD 12.0-CURRENT r314251 (amd64): # gpart create -s gpt da0 gpart: geom 'da0': File exists # gpart destroy -F da0 da0 destroyed # gpart create -s gpt da0 da0 created # gpart add -t freebsd-boot -s 512k -a4k -l ssdboot da0 da0p1 added # gpart bootcode -b /boot/pmbr -p /boot/gptboot -i1 da0 partcode written to da0p1 bootcode written to da0 # gpart add -t freebsd-ufs -l ssdrootfs -b 1m -s 16g da0 da0p2 added # gpart add -t freebsd-swap -l ssdswap -a 1m -s 2g da0 da0p3 added # gpart add -t freebsd-ufs -l ssdbackupfs -a 1m da0 da0p4 added # newfs -U -t /dev/gpt/ssdrootfs # newfs -U -t /dev/gpt/ssdbackupfs (re/ -t see below) # gpart set -a active da0 active set on da0 # gpart show -l da0 => 40 1953525088 da0 GPT (932G) 40 1024 1 ssdboot (512K) 1064 984 - free - (492K) 2048 33554432 2 ssdrootfs (16G) 33556480 4194304 3 ssdswap (2.0G) 37750784 1915772928 4 ssdbackupfs (914G) 1953523712 1416 - free - (708K) # mount /dev/gpt/ssdrootfs /mnt # cd /usr/src # make installworld DESTDIR=/mnt # make installkernel DESTDIR=/mnt # make distrib-dirs DESTDIR=/mnt # make distribution DESTDIR=/mnt # cp /etc/rc.conf /mnt/etc # cp -p /etc/c720.kbd /mnt/etc # cp -p /etc/sysctl.conf /mnt/etc # cp -p /boot/loader.conf /mnt/boot/ # cp -p /boot/device.hints /mnt/boot/ # cat > /mnt/etc/fstab <