Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Sep 2015 13:35:38 -0600
From:      jd1008 <jd1008@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: dd question
Message-ID:  <5608450A.6010304@gmail.com>
In-Reply-To: <56080546.9030408@hiwaay.net>
References:  <5606A4FF.4090105@hiwaay.net> <CA%2BtpaK3UOEfKSfSjbdcH%2BR2jaU9=XVBEg%2B%2Bjn5VCbiiUkLF_Tg@mail.gmail.com> <56073915.6030707@hiwaay.net> <20150927131036.c6b2d9ce.freebsd@edvax.de> <alpine.BSF.2.20.1509270540450.40168@wonkity.com> <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>

next in thread | previous in thread | raw e-mail | index | archive | help


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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5608450A.6010304>