From owner-freebsd-questions@freebsd.org Sun Sep 27 19:35:46 2015 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 EB0EDA0B95C for ; Sun, 27 Sep 2015 19:35:45 +0000 (UTC) (envelope-from jd1008@gmail.com) Received: from mail-io0-x22d.google.com (mail-io0-x22d.google.com [IPv6:2607:f8b0:4001:c06::22d]) (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 B160A6C6 for ; Sun, 27 Sep 2015 19:35:45 +0000 (UTC) (envelope-from jd1008@gmail.com) Received: by ioiz6 with SMTP id z6so155420307ioi.2 for ; Sun, 27 Sep 2015 12:35:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=GCZVmvLXhz0s450Ne4EU0aRm0SBwQMuDx9HNaQd3wu4=; b=bvM+Sw8LadA8S6WVJDlHsJwbFw7phOyM4zgGBsrIkQBsLelOq2uzAJ1tzHRWsuHnHh kowWtTQenORnBCTjXK+yIpESioP4M8TFRmkgBFn77TY/n5q5wTrzB4QV5waxJzwyw6V3 I17hNBYIrErAkSQ1OpGDOoE5q3vNwX3iVAghdjQpQZ9IJ/2xz2wilNbNwXG3n8hc1u3c /WTVShk+EOMViSuVa5DLz6vzNHo46XEu3QLDuTEIYC3jZtQ5yiaPqqbYzNmNNHVCgNrC LagDa6D2ob+6UF/kg6KgF05zE+1HQvWaZRwfI09zED5TwfEj9bQjT15wHHG5/9Qds66x uTQg== X-Received: by 10.107.18.231 with SMTP id 100mr16216427ios.15.1443382545029; Sun, 27 Sep 2015 12:35:45 -0700 (PDT) Received: from localhost.localdomain ([2601:680:c001:e700:8a9f:faff:fe69:7e]) by smtp.googlemail.com with ESMTPSA id o74sm6774282ioo.8.2015.09.27.12.35.43 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 27 Sep 2015 12:35:44 -0700 (PDT) Subject: Re: dd question To: freebsd-questions@freebsd.org References: <5606A4FF.4090105@hiwaay.net> <56073915.6030707@hiwaay.net> <20150927131036.c6b2d9ce.freebsd@edvax.de> <5607E84D.1050803@hiwaay.net> <20150927155354.7dab526a.freebsd@edvax.de> <5607F676.10307@hiwaay.net> <20150927160604.f1e1c21d.freebsd@edvax.de> <5607FA6E.5040600@hiwaay.net> <20150927164334.ccd67f04.freebsd@edvax.de> <56080546.9030408@hiwaay.net> From: jd1008 Message-ID: <5608450A.6010304@gmail.com> Date: Sun, 27 Sep 2015 13:35:38 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <56080546.9030408@hiwaay.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Sep 2015 19:35:46 -0000 On 09/27/2015 09:02 AM, William A. Mahaffey III wrote: > On 09/27/15 09:49, Polytropon wrote: >> Take the disklabel editor screen as an example. Make sure >> 'c' is as big as the whole device, then take the end of >> the last partition, 'a', as an offset, and add the desired >> size for 'd'. > > Hmmmm .... My 'c' slice is *not* the size of the whole drive: > > [root@kabini1, /etc, 9:54:38am] 596 % bsdlabel da0 > # /dev/da0: > 8 partitions: > # size offset fstype [fsize bsize bps/cpg] > a: 1401120 0 4.2BSD 0 0 0 > c: 1401120 0 unused 0 0 # "raw" part, > don't edit > [root@kabini1, /etc, 9:54:44am] 597 % > > > 1401120 (sectors) * 512 (bytes/sector) = 7.173734e+08 Bytes or 717-ish > MB (700.56 MiB), which is what I'm seeing out of my mounted drive, not > the 4-ish GB (3.61-ish GiB) it should be .... I'm guessing the drive > would boot & install OK, however it is convenient to be able to log > the proceedings in case of questions, that is what I am getting at .... > I already explained that since you dd'ed the iso image onto the whole usb disk, you end up telling the OS your usb drive is of the size of the iso file. So, the rest of the drive is dotally invisible. What you COULD have done is first partition the usb drive to have a first partition to equal to the size of the ISO file, and then dd the iso file into THE PARTITION< and not the whole drive. If your BIOS supports it, you could then tell bios to boot from the partition. The rest of the USB stick's space would be available.