From owner-freebsd-current@freebsd.org Tue Jun 7 13:15:09 2016 Return-Path: Delivered-To: freebsd-current@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 DE3E3B6DE86 for ; Tue, 7 Jun 2016 13:15:09 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from mx1.scaleengine.net (mx1.scaleengine.net [209.51.186.6]) by mx1.freebsd.org (Postfix) with ESMTP id C4FE81A66 for ; Tue, 7 Jun 2016 13:15:09 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from [10.1.1.2] (unknown [10.1.1.2]) (Authenticated sender: allanjude.freebsd@scaleengine.com) by mx1.scaleengine.net (Postfix) with ESMTPSA id 60D9ED641 for ; Tue, 7 Jun 2016 13:15:03 +0000 (UTC) Subject: Re: memstick && Invalid partition table To: freebsd-current@freebsd.org References: <20160607085637.GA3618@c720-r292778-amd64> From: Allan Jude Message-ID: Date: Tue, 7 Jun 2016 09:15:03 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <20160607085637.GA3618@c720-r292778-amd64> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Jun 2016 13:15:10 -0000 On 2016-06-07 04:56, Matthias Apitz wrote: > > Hello, > > To move a compiled system and kernel to other, smaller device I produce > so called memsticks which are made with the script > /usr/src/release/amd64/make-memstick.sh > > They do, i.e. booting fine and showing for example on a netbook Acer C720 in > /var/log/messages on attach: > > Jun 7 10:35:43 c720-r292778-amd64 kernel: da0 at umass-sim0 bus 0 scbus1 target 0 lun 0 > Jun 7 10:35:43 c720-r292778-amd64 kernel: da0: Removable Direct Access SCSI-2 device > Jun 7 10:35:43 c720-r292778-amd64 kernel: da0: Serial Number 09022100003131 > Jun 7 10:35:43 c720-r292778-amd64 kernel: da0: 40.000MB/s transfers > Jun 7 10:35:43 c720-r292778-amd64 kernel: da0: 7712MB (15794176 512 byte sectors) > Jun 7 10:35:43 c720-r292778-amd64 kernel: da0: quirks=0x2 > > wnd with FDISK: > > $ fdisk da0 > ******* Working on device /dev/da0 ******* > parameters extracted from in-core disklabel are: > cylinders=983 heads=255 sectors/track=63 (16065 blks/cyl) > > parameters to be used for BIOS calculations are: > cylinders=983 heads=255 sectors/track=63 (16065 blks/cyl) > > Media sector size is 512 > Warning: BIOS sector numbering starts with sector 1 > Information from DOS bootblock is: > The data for partition 1 is: > sysid 238 (0xee),(EFI GPT) > start 1, size 14683749 (7169 Meg), flag 0 > beg: cyl 0/ head 0/ sector 2; > end: cyl 1023/ head 255/ sector 63 > The data for partition 2 is: > > The data for partition 3 is: > > The data for partition 4 is: > > > > If I use the fine memstick on some other laptop, in this case a Dell > Latitude E6330, it just says 'Invalid partition table!' > > What could be wrong with it? > > matthias > To fix the partition table to be the size of your memstick do: gpart recover da0 If this does not work, try this (specific to some models of Dell Latitude and some HPs): gpart set -a active da0 -- Allan Jude