From owner-freebsd-questions@FreeBSD.ORG Sun Jul 8 09:45:10 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 372F1106564A for ; Sun, 8 Jul 2012 09:45:10 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id E86448FC0C for ; Sun, 8 Jul 2012 09:45:09 +0000 (UTC) Received: from r56.edvax.de (port-92-195-60-31.dynamic.qsc.de [92.195.60.31]) by mx02.qsc.de (Postfix) with ESMTP id 6AD9527CA5; Sun, 8 Jul 2012 11:45:07 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id q689j6mp001913; Sun, 8 Jul 2012 11:45:06 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sun, 8 Jul 2012 11:45:06 +0200 From: Polytropon To: "Thomas Mueller" Message-Id: <20120708114506.d91ba0e3.freebsd@edvax.de> In-Reply-To: <7E.91.25131.DEDA8FF4@smtp01.insight.synacor.com> References: <7E.91.25131.DEDA8FF4@smtp01.insight.synacor.com> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Carmel , Polytropon , freebsd-questions@freebsd.org Subject: Re: Format a USB flash drive using gpart X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jul 2012 09:45:10 -0000 On Sat, 07 Jul 2012 17:45:17 -0400, Thomas Mueller wrote: > Does a USB flash drive also work as a giant floppy, no partitions? > Can you make a flash drive bootable when nonpartitioned and > formatted that way? Yes, that's exactly what my advice was aiming to, but let's try to keep the terminology clean: You cannot do without partitions. A partition carries a file system. You _can_ do without slices. A slice holds one or more partitions. A slice is a "DOS primary partition". Omitting it is called "dedicated mode". There may be some circumstances where a dedicated disk doesn't boot. Personally I haven't met one, but it's still possible due to BIOSes expecting MS-DOS-alike structures. For the file system side, it's just a matter of having created one partition covering the whole disk, newfs and tunefs it, and install the boot code. Wojciech Puchar did already explain how this works and which tools are involved. However, there _is_ a way to make a "giant floppy without a file system" (as you said without partitions, and I'll take that literally): You can use tar, "the universal file system that isn't a file system" to write data to the USB stick. Writing stuff: # tar cf /dev/da0 /my/files Reading stuff: # tar xf /dev/da0 This works, but it may appear that no other system can read it. If you consider using it for FreeBSD only, no problem. The big advantage: You don't need to mount and umount the stick. I'm assume _that_ construct cannot be booted. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...