Re: memstick && Invalid partition table

From: Allan Jude <allanjude_at_freebsd.org>
Date: Tue, 7 Jun 2016 09:15:03 -0400
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: <Ut165 USB2FlashStorage 0.00> 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<NO_6_BYTE>
> 
> 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:
> <UNUSED>
> The data for partition 3 is:
> <UNUSED>
> The data for partition 4 is:
> <UNUSED>
> 
> 
> 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
Received on Tue Jun 07 2016 - 11:15:09 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:05 UTC