Re: Format a USB flash drive using gpart

2012-07-09 Thread Bruce Cran
On 08/07/2012 13:10, Warren Block wrote: bsdinstall(8) has a curses partition editor. There is probably a trick needed to use that outside of an install context. Just run bsdinstall partedit. -- Bruce Cran ___ freebsd-questions@freebsd.org mailing

Re: Format a USB flash drive using gpart

2012-07-09 Thread Polytropon
On Sun, 08 Jul 2012 23:27:23 -0400, Thomas Mueller wrote: You mean the non-subdivided 1.44 MB or other capacity of a floppy is called a partition? Let's try to use the correct terminology. If you're talking about an MS-DOS disk, then yes, it contains a DOS partition which is formatted. In

Re: Format a USB flash drive using gpart

2012-07-09 Thread Wojciech Puchar
If you're talking about an MS-DOS disk, then yes, it contains a DOS partition which is formatted. In FreeBSD, we would call it a slice (slice == DOS primary partition). In this case, there is no (sub)partitioning, the _slice_ carries the MS-DOS unless you need windows 98 support partitionless

Re: Format a USB flash drive using gpart

2012-07-09 Thread Bruce Cran
On 09/07/2012 11:16, Polytropon wrote: If you're talking about an MS-DOS disk, then yes, it contains a DOS partition which is formatted. In FreeBSD, we would call it a slice (slice == DOS primary partition). In this case, there is no (sub)partitioning, the _slice_ carries the MS-DOS file system

Re: Format a USB flash drive using gpart

2012-07-09 Thread Wojciech Puchar
Floppy disks aren't partitioned/sliced - they use 'dangerously dedicated' they use dangerously obsolete mode. nobody use them at all. disk's empty. If you're on an old system and run 'gpart show da0' and don't see a partition table it's quite easy to forget to check if da0 itself contains a

Re: Format a USB flash drive using gpart

2012-07-09 Thread Bruce Cran
On 09/07/2012 13:17, Wojciech Puchar wrote: they use dangerously obsolete mode. nobody use them at all. A company I worked with were still distributing files on floppy disks as recently as 2009. They _are_ obsolete, but I suspect plenty of people still use them. unless it is a normal way

Re: Format a USB flash drive using gpart

2012-07-09 Thread Wojciech Puchar
A company I worked with were still distributing files on floppy disks as recently as 2009. quite funny :) They _are_ obsolete, but I suspect plenty of people still use them. unless it is a normal way of using it. That's right - I was thinking of my system where I destroyed all the data on

Re: Format a USB flash drive using gpart

2012-07-09 Thread Bruce Cran
On 09/07/2012 13:29, Wojciech Puchar wrote: only your fault, not FreeBSD. Why you connected your data disk at first place. I didn't say it was FreeBSD's fault. If I thought it was, I would have fixed it! -- Bruce Cran ___

Re: Format a USB flash drive using gpart

2012-07-09 Thread Ian Smith
On Sun, 8 Jul 2012 21:00:40 +0100, Bruce Cran wrote: On 08/07/2012 16:06, Ian Smith wrote: In general they're not distinct in usage from any other type of disk. The more expensive disks of course support TRIM so you'd want to pass -t to newfs to enable it. Thanks. Next time I blow

Re: Format a USB flash drive using gpart

2012-07-09 Thread Warren Block
On Mon, 9 Jul 2012, Bruce Cran wrote: On 09/07/2012 11:16, Polytropon wrote: If you're talking about an MS-DOS disk, then yes, it contains a DOS partition which is formatted. In FreeBSD, we would call it a slice (slice == DOS primary partition). In this case, there is no (sub)partitioning, the

Re: Format a USB flash drive using gpart

2012-07-09 Thread Jerry McAllister
On Mon, Jul 09, 2012 at 07:44:28AM +0200, Wojciech Puchar wrote: You don't. You wipe the FAT32 with fdisk and make a FreeBSD slice on it. Then you can bsdlabel it with one partition and newfs it. Or you can repeat 100 times more that you have to make fdisk and bsdlabel. you don't, and it

Re: Format a USB flash drive using gpart

2012-07-08 Thread Wojciech Puchar
Magdeburg, Germany I have used gpart to partition a USB flash drive into FreeBSD boot partition, root partition and swap partition. making swap partition on USB pendrive is at least stupid. if you won't swap at all - wasted space. If you will it would be so slow and wear USB pendrive so

Re: Format a USB flash drive using gpart

2012-07-08 Thread Polytropon
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

Re: Format a USB flash drive using gpart

2012-07-08 Thread Polytropon
On Sun, 8 Jul 2012 09:49:30 +0200 (CEST), Wojciech Puchar wrote: Magdeburg, Germany I have used gpart to partition a USB flash drive into FreeBSD boot partition, root partition and swap partition. making swap partition on USB pendrive is at least stupid. if you won't swap at all -

Re: Format a USB flash drive using gpart

2012-07-08 Thread Carmel
On Sat, 7 Jul 2012 20:36:36 -0600 (MDT) Warren Block articulated: On Sat, 7 Jul 2012, Carmel wrote: This is probably a dumb question, but does gpart even work on a USB flash drive? I have not been able to figure out how to do it. I want to erase the entire drive and format it for a

Re: Format a USB flash drive using gpart

2012-07-08 Thread Polytropon
On Sun, 8 Jul 2012 07:41:59 -0400, Carmel wrote: Perhaps, and I know that this will offend some purists, but a nice GUI that would do what your instructions detail above would be helpful. There is no way that I am going to remember all of those instructions in six months time. Just my 2¢. Why

Re: Format a USB flash drive using gpart

2012-07-08 Thread Warren Block
On Sun, 8 Jul 2012, Carmel wrote: Yes, gpart will work with pretty much any storage device. If you want the drive to be bootable, it needs boot blocks. This is easier with GPT than MBR. For an 8G drive: # gpart create -s gpt da0 # gpart add -t freebsd-boot -s 512k da0 # gpart bootcode -b

Re: Format a USB flash drive using gpart

2012-07-08 Thread Wojciech Puchar
Interestingly enough, I searched through the man pages and FreeBSD help but never came across anything that specifically addressed flash drive. because there is no need to. For freebsd it is just a storage device. for FreeBSD only i recommend using bsdlabel, not gpart, for multiOS using

Re: Format a USB flash drive using gpart

2012-07-08 Thread Wojciech Puchar
with using the commands provided by Warren, you will be fine every time. If you practice them regularly, you will remember them, and if you do so, you'll surely write a script that after doing man gpart he will understand it, so remembering is easy.

Re: Format a USB flash drive using gpart

2012-07-08 Thread Polytropon
On Sun, 8 Jul 2012 14:16:31 +0200 (CEST), Wojciech Puchar wrote: Perhaps, and I know that this will offend some purists, but a nice GUI not about purism but (lack of) usability. GUI interfaces never helps, only hides real things and prevent understanding anything. You maybe understand

Re: Format a USB flash drive using gpart

2012-07-08 Thread Bruce Cran
On 08/07/2012 13:30, Polytropon wrote: With few routine, tasks are performed more natural using the desired CLI tools. You don't go Now I have to remember which command to format the disk, you just format the disk, which means spaking to newfs. The more often you do it, the more obvious the

Re: Format a USB flash drive using gpart

2012-07-08 Thread Polytropon
On Sun, 08 Jul 2012 14:27:05 +0100, Bruce Cran wrote: On 08/07/2012 13:30, Polytropon wrote: With few routine, tasks are performed more natural using the desired CLI tools. You don't go Now I have to remember which command to format the disk, you just format the disk, which means spaking

Re: Format a USB flash drive using gpart

2012-07-08 Thread Ian Smith
In freebsd-questions Digest, Vol 422, Issue 10, Message: 29 On Sun, 8 Jul 2012 07:41:59 -0400 Carmel carmel...@hotmail.com wrote: On Sat, 7 Jul 2012 20:36:36 -0600 (MDT) Warren Block articulated: On Sat, 7 Jul 2012, Carmel wrote: This is probably a dumb question, but does gpart

Re: Format a USB flash drive using gpart

2012-07-08 Thread Wojciech Puchar
I know your question specified gpart, but the easiest way I know of to put UFS filesystems on flash drives is to use sade(8), incorporating the the easiest way to put UFS filesystem on flash drives is to ... put UFS filesystem using newfs command. You DO NOT NEED any partitioning.

Re: Format a USB flash drive using gpart

2012-07-08 Thread Bruce Cran
On 08/07/2012 16:06, Ian Smith wrote: In general they're not distinct in usage from any other type of disk. The more expensive disks of course support TRIM so you'd want to pass -t to newfs to enable it. -- Bruce Cran ___

Re: Format a USB flash drive using gpart

2012-07-08 Thread Wojciech Puchar
In general they're not distinct in usage from any other type of disk. The more expensive disks of course support TRIM so you'd want to pass -t to newfs to enable it. can you give me an example of pendrive that supports TRIM? ___

Re: Format a USB flash drive using gpart

2012-07-08 Thread Bruce Cran
On 08/07/2012 21:51, Wojciech Puchar wrote: can you give me an example of pendrive that supports TRIM? LaCie FastKey (http://www.tomshardware.co.uk/usb-3.0-thumb-drive-flash-drive,review-32174-5.html). -- Bruce Cran ___

Re: Format a USB flash drive using gpart

2012-07-08 Thread Wojciech Puchar
seems like SSD style controller+USB 3.0 bridge. sizes suggest this. thanks. On Sun, 8 Jul 2012, Bruce Cran wrote: On 08/07/2012 21:51, Wojciech Puchar wrote: can you give me an example of pendrive that supports TRIM? LaCie FastKey

Re: Format a USB flash drive using gpart

2012-07-08 Thread Thomas Mueller
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? Polytropon responded: Yes, that's exactly what my advice was aiming to, but let's try

Re: Format a USB flash drive using gpart

2012-07-08 Thread Jerry McAllister
On Sun, Jul 08, 2012 at 02:27:05PM +0100, Bruce Cran wrote: On 08/07/2012 13:30, Polytropon wrote: With few routine, tasks are performed more natural using the desired CLI tools. You don't go Now I have to remember which command to format the disk, you just format the disk, which means

Re: Format a USB flash drive using gpart

2012-07-08 Thread Wojciech Puchar
You don't. You wipe the FAT32 with fdisk and make a FreeBSD slice on it. Then you can bsdlabel it with one partition and newfs it. Or you can repeat 100 times more that you have to make fdisk and bsdlabel. you don't, and it doesn't make sense ___

Re: Format a USB flash drive using gpart

2012-07-08 Thread Wojciech Puchar
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. which is best in USB pendrive wear and speed point of view. pendrive's flash translation layers are just awful, only

Format a USB flash drive using gpart

2012-07-07 Thread Carmel
This is probably a dumb question, but does gpart even work on a USB flash drive? I have not been able to figure out how to do it. I want to erase the entire drive and format it for a FreeBSD UFS2 file system. -- Carmel ✌ carmel...@hotmail.com ___

Re: Format a USB flash drive using gpart

2012-07-07 Thread Polytropon
On Sat, 7 Jul 2012 13:15:10 -0400, Carmel wrote: This is probably a dumb question, but does gpart even work on a USB flash drive? I have not been able to figure out how to do it. I want to erase the entire drive and format it for a FreeBSD UFS2 file system. In that case, screw slices and

Re: Format a USB flash drive using gpart

2012-07-07 Thread Thomas Mueller
On Sat, 7 Jul 2012 13:15:10 -0400, Carmel wrote: This is probably a dumb question, but does gpart even work on a USB flash drive? I have not been able to figure out how to do it. I want to erase the entire drive and format it for a FreeBSD UFS2 file system. In that case, screw slices and

Re: Format a USB flash drive using gpart

2012-07-07 Thread Warren Block
On Sat, 7 Jul 2012, Carmel wrote: This is probably a dumb question, but does gpart even work on a USB flash drive? I have not been able to figure out how to do it. I want to erase the entire drive and format it for a FreeBSD UFS2 file system. Yes, gpart will work with pretty much any storage