gpart weirdness: diskid/DISK-3EV0P4PZ00007250010X GPT (17G)

2013-10-09 Thread Anton Shterenlikht
# gpart show = 34 35566411 da1 GPT (17G) 34 35566411 - free - (17G) = 34 35566411 diskid/DISK-3EV0P4PZ7250010X GPT (17G) 34 35566411- free - (17G) = 34 35566411 da2 GPT (17G) 34 35566411

Re: gpart weirdness: diskid/DISK-3EV0P4PZ00007250010X GPT (17G)

2013-10-09 Thread Mark Felder
On Wed, Oct 9, 2013, at 4:33, Anton Shterenlikht wrote: # gpart show = 34 35566411 da1 GPT (17G) 34 35566411 - free - (17G) = 34 35566411 diskid/DISK-3EV0P4PZ7250010X GPT (17G) 34 35566411- free - (17G

Re: gpart weirdness: diskid/DISK-3EV0P4PZ00007250010X GPT (17G)

2013-10-09 Thread Anton Shterenlikht
From: Mark Felder f...@freebsd.org To: freebsd-questions@freebsd.org Subject: Re: gpart weirdness: diskid/DISK-3EV0P4PZ7250010X GPT (17G) Date: Wed, 09 Oct 2013 06:56:17 -0500 On Wed, Oct 9, 2013, at 4:33, Anton Shterenlikht wrote: # gpart show = 34 35566411 da1 GPT (17G

gpart: table 'da0' is corrupt; operation not permitted

2013-07-16 Thread aurfalien
Hello again, Not happy to be posting so much lately especially being so new. I grabbed a few disks from a Mac and am using them for sys disks. Upon booting from an install CD into a shell, I type; gpart show and see several partitions; 34 78165293da0

Re: gpart: table 'da0' is corrupt; operation not permitted

2013-07-16 Thread Michael Sierchio
On Tue, Jul 16, 2013 at 1:44 PM, aurfalien aurfal...@gmail.com wrote: Upon doing; gpart destroy da0 I get; gpart: Device busy crude but effective: DISK=da0 offset=`diskinfo $DISK | awk '{ print $4 - 131072 }'` dd if=/dev/zero of=/dev/$DISK bs=64k count=1 dd if=/dev/zero of=/dev/$DISK

Re: gpart: table 'da0' is corrupt; operation not permitted

2013-07-16 Thread aurfalien
On Jul 16, 2013, at 1:50 PM, Michael Sierchio wrote: On Tue, Jul 16, 2013 at 1:44 PM, aurfalien aurfal...@gmail.com wrote: Upon doing; gpart destroy da0 I get; gpart: Device busy crude but effective: DISK=da0 offset=`diskinfo $DISK | awk '{ print $4 - 131072 }'` dd

Re: gpart: table 'da0' is corrupt; operation not permitted

2013-07-16 Thread Warren Block
On Tue, 16 Jul 2013, aurfalien wrote: On Jul 16, 2013, at 1:50 PM, Michael Sierchio wrote: On Tue, Jul 16, 2013 at 1:44 PM, aurfalien aurfal...@gmail.com wrote: Upon doing; gpart destroy da0 I get; gpart: Device busy crude but effective: DISK=da0 offset=`diskinfo $DISK | awk

Re: gpart: table 'da0' is corrupt; operation not permitted

2013-07-16 Thread aurfalien
On Jul 16, 2013, at 3:01 PM, Warren Block wrote: On Tue, 16 Jul 2013, aurfalien wrote: On Jul 16, 2013, at 1:50 PM, Michael Sierchio wrote: On Tue, Jul 16, 2013 at 1:44 PM, aurfalien aurfal...@gmail.com wrote: Upon doing; gpart destroy da0 I get; gpart: Device busy crude

Re: gpart

2013-04-01 Thread Erich Dollansky
Hi, On Sun, 31 Mar 2013 21:06:24 -0500 Joshua Isom jri...@gmail.com wrote: On 3/31/2013 8:54 PM, Erich Dollansky wrote: I have had only one problem with this description. I could not boot from a GPT setup on my machine done as described there. But I have a disk done with PCBSD based on

RE: gpart

2013-04-01 Thread Grant Peel
-Original Message- From: Erich Dollansky [mailto:erichsfreebsdl...@alogt.com] Sent: March-31-13 9:55 PM To: Grant Peel Cc: freebsd-questions@freebsd.org Subject: Re: gpart Hi, On Sun, 31 Mar 2013 21:28:40 -0400 Grant Peel gp...@thenetnow.com wrote: I am in the midst of setting up

Re: gpart

2013-04-01 Thread Erich Dollansky
Hi, On Mon, 1 Apr 2013 09:20:21 -0400 Grant Peel gp...@thenetnow.com wrote: I am currently running 8.0 and am in need of many of the ports to be upgraded, and have never had much luck doing the upgrade thing with the base system and ports, preferring instead to completely rebuild in restore

gpart

2013-03-31 Thread Grant Peel
them on other servers when the time comes. I am reading everything there is about GPT at this point as I have never used it before. It seems gpart is the tool to use. I have done several test runs setting the drive geometry using this as a guide: http://www.wonkity.com/~wblock/docs/html

Re: gpart

2013-03-31 Thread Erich Dollansky
Hi, On Sun, 31 Mar 2013 21:28:40 -0400 Grant Peel gp...@thenetnow.com wrote: I am in the midst of setting up the framework for new servers using FreeBSD 9.1. I used the bsdinstall and Manual`` option when setting up the disk geometry using GPT - graphical setup. The idea will be to

Re: gpart

2013-03-31 Thread Joshua Isom
On 3/31/2013 8:54 PM, Erich Dollansky wrote: I have had only one problem with this description. I could not boot from a GPT setup on my machine done as described there. But I have a disk done with PCBSD based on 9.0 which booted well. I cannot tell you if this is a problem caused by a later

Re: gpart

2013-03-31 Thread Joshua Isom
On 3/31/2013 8:28 PM, Grant Peel wrote: I was wondering in anyone sees any issues creating the drive geometry using this method, with the intent of restoring dumped filesystems to to, including the root filesystem. Geometry or partition size? If it's geometry, and you need to worry about it,

Re: gpart

2013-03-31 Thread Doug Hardie
will be to eventually dump the 4 file systems, (/, /usr /var and /home) and restore them on other servers when the time comes. I am reading everything there is about GPT at this point as I have never used it before. It seems gpart is the tool to use. I have done several test runs setting

9.1 install wipes out gpart boot blocks?

2013-01-30 Thread Gary Aitken
I used gpart to set up a new disk, then went through a 9.1 install. Everything seemed to go fine, but when time came to boot the new drive, it wouldn't boot. When doing the 9.1 install, I selected the disk and had to assign the partitions to the various filesystems. AFIK, I did not otherwise

9.1 install wipes out gpart boot blocks?

2013-01-30 Thread Robert Huff
Gary Aitken writes: I used gpart to set up a new disk, then went through a 9.1 install. Everything seemed to go fine, but when time came to boot the new drive, it wouldn't boot. While the it wouldn't boot is catastrophically imprecise, I had what sounds like a similar problem

Re: 9.1 install wipes out gpart boot blocks?

2013-01-30 Thread Warren Block
On Wed, 30 Jan 2013, Gary Aitken wrote: I used gpart to set up a new disk, then went through a 9.1 install. Everything seemed to go fine, but when time came to boot the new drive, it wouldn't boot. What did it say? When doing the 9.1 install, I selected the disk and had to assign

creating bootable disk with gpart

2013-01-28 Thread Erich Dollansky
Hi, I followed http://www.wonkity.com/~wblock/docs/html/disksetup.html to create bootable disks with GPT. As you know from my former post, I tried to boot via USB from a GPT disk and failed. I inserted the disk into the notebook and bootin also failed. Irony is that inserting the MBR disk into

Re: creating bootable disk with gpart

2013-01-28 Thread Warren Block
On Mon, 28 Jan 2013, Erich Dollansky wrote: Hi, I followed http://www.wonkity.com/~wblock/docs/html/disksetup.html to create bootable disks with GPT. As you know from my former post, I tried to boot via USB from a GPT disk and failed. I inserted the disk into the notebook and bootin also

Re: creating bootable disk with gpart

2013-01-28 Thread Erich Dollansky
Hi, On Mon, 28 Jan 2013 08:41:10 -0700 (MST) Warren Block wbl...@wonkity.com wrote: On Mon, 28 Jan 2013, Erich Dollansky wrote: Hi, I followed http://www.wonkity.com/~wblock/docs/html/disksetup.html to create bootable disks with GPT. As you know from my former post, I tried to

Re: creating bootable disk with gpart

2013-01-28 Thread Erich Dollansky
example, it also fails: [X220]/home/erich (root) gpart destroy -F da0 da0 destroyed [X220]/home/erich (root) gpart show da0 gpart: No such geom: da0. [X220]/home/erich (root) gpart create -s mbr da0 da0 created [X220]/home/erich (root) gpart show da0 = 63 312581745 da0 MBR (149G

Re: creating bootable disk with gpart

2013-01-28 Thread Erich Dollansky
in a failure but much later. What failure? it is all getting really confusing for me. When I try now your example, it also fails: [X220]/home/erich (root) gpart destroy -F da0 da0 destroyed [X220]/home/erich (root) gpart show da0 gpart: No such geom: da0. [X220]/home/erich (root) gpart

Re: gpart, glabel and newfs -- what am I doing wrong

2013-01-13 Thread Erich Dollansky
typically be avoided. thanks for the explaination. I am not able to use the labels outside gpart but if they work for me - as it currently looks like - I will stick with them. I will later report in more detail when I have finished my scripts. Erich

Re: gpart, glabel and newfs -- what am I doing wrong

2013-01-13 Thread Warren Block
On Sun, 13 Jan 2013, kpn...@pobox.com wrote: On Sun, Jan 13, 2013 at 08:09:00AM +0700, Erich Dollansky wrote: For what is glabel then still good? It is still useful for partition schemes that don't have labels (eg, MBR) AND the filesystem used doesn't support labels itself AND the end of the

Re: gpart, glabel and newfs -- what am I doing wrong

2013-01-13 Thread Warren Block
On Sun, 13 Jan 2013, Warren Block wrote: On Sun, 13 Jan 2013, kpn...@pobox.com wrote: On Sun, Jan 13, 2013 at 08:09:00AM +0700, Erich Dollansky wrote: For what is glabel then still good? It is still useful for partition schemes that don't have labels (eg, MBR) AND the filesystem used

gpart, glabel and newfs -- what am I doing wrong

2013-01-12 Thread Erich Dollansky
Hi, in general, I try to create the partitions with gpart, add a label with glabel and put a filesystem. I think that I am doing something very simple the wrong way but I cannot see the error. I try to do it in the following way: # gpart destroy -F da0 # gpart create -s GPT da0 # gpart add -t

Re: gpart, glabel and newfs -- what am I doing wrong

2013-01-12 Thread Mardorf Ralf
FWIW I could not partition using the FreeBSD 9.0 amd64 install DVD. I partitioned with the PcBSD  8.2 DVD and then tried to install from 9.0, but it anyway caused partitioning issues. After that I partitioned using FreeBSD 8.3, installed 8.3 and then updated to 9.1. Regards, Ralf

Re: gpart, glabel and newfs -- what am I doing wrong

2013-01-12 Thread Warren Block
On Sat, 12 Jan 2013, Erich Dollansky wrote: in general, I try to create the partitions with gpart, add a label with glabel and put a filesystem. I think that I am doing something very simple the wrong way but I cannot see the error. I try to do it in the following way: # gpart destroy -F da0

Re: gpart, glabel and newfs -- what am I doing wrong

2013-01-12 Thread Erich Dollansky
Hi, On Sat, 12 Jan 2013 09:56:39 -0700 (MST) Warren Block wbl...@wonkity.com wrote: On Sat, 12 Jan 2013, Erich Dollansky wrote: in general, I try to create the partitions with gpart, add a label with glabel and put a filesystem. I think that I am doing something very simple the wrong

gpart and FreeBSD 8.x

2012-12-03 Thread Rick Miller
For anyone interested, Posted a new blog with regards to gpart on FreeBSD 8.x (with a link to one of Warren's blog posts): http://blog.hostileadmin.com/2012/12/03/freebsd-partitions-and-filesystems-with-gpart/ -- Take care Rick Miller ___ freebsd

Re: gpart and FreeBSD 8.x

2012-12-03 Thread Julien Cigar
On 12/03/2012 13:31, Rick Miller wrote: For anyone interested, Posted a new blog with regards to gpart on FreeBSD 8.x (with a link to one of Warren's blog posts): http://blog.hostileadmin.com/2012/12/03/freebsd-partitions-and-filesystems-with-gpart/ gpart is in BASE on 8.x so there is nothing

Re: gpart and FreeBSD 8.x

2012-12-03 Thread Rick Miller
On Mon, Dec 3, 2012 at 7:49 AM, Julien Cigar jci...@ulb.ac.be wrote: gpart is in BASE on 8.x so there is nothing to install Thanks, Julien! I added a comment to this effect on the post! -- Take care Rick Miller ___ freebsd-questions@freebsd.org

Manually partitioning using gpart

2012-11-25 Thread Ralf Mardorf
This is what I've got: # gpart show ada0 = 63 625142385 ada0 MBR (298G) 63 121274683 - free - (57G) [snip] IIUC I now have to do: # gpart add -s 64k -t freebsd-boot -l boot0 ada0 # gpart add -s 8G -t freebsd-swap -l swap0 ada0 # gpart add -t freebsd-ufs -a 256k -l root0 ada0

Re: Manually partitioning using gpart

2012-11-25 Thread Polytropon
On Sun, 25 Nov 2012 12:26:14 +0100, Ralf Mardorf wrote: This is what I've got: # gpart show ada0 = 63 625142385 ada0 MBR (298G) 63 121274683 - free - (57G) [snip] IIUC I now have to do: # gpart add -s 64k -t freebsd-boot -l boot0 ada0 # gpart add -s 8G -t freebsd

Re: Manually partitioning using gpart

2012-11-25 Thread Lucas B. Cohen
On 2012.11.25 12:26, Ralf Mardorf wrote: Here I already don't understand how large the swap should be. Really 2 * size of the RAM? It depends on use patterns and the amount of RAM in your computer. 1.5* to 2* installed memory is a traditional works for most value, but I feel it's outdated for

Re: [Bulk] Re: Manually partitioning using gpart

2012-11-25 Thread Ralf Mardorf
On Sun, 2012-11-25 at 13:29 +0100, Polytropon wrote: On Sun, 25 Nov 2012 12:26:14 +0100, Ralf Mardorf wrote: This is what I've got: # gpart show ada0 = 63 625142385 ada0 MBR (298G) 63 121274683 - free - (57G) [snip] IIUC I now have to do: # gpart add -s 64k

Re: Manually partitioning using gpart

2012-11-25 Thread Ralf Mardorf
I'm reading http://www.wonkity.com/~wblock/docs/html/disksetup.html at the moment. Seemingly there are many outdated howtos first hits for searching with Google. I frst read 64k for boot and now 512k. IIUC Install the GPT bootcode into the boot partition has to be done and is independent of the

Re: Manually partitioning using gpart

2012-11-25 Thread Lucas B. Cohen
On 2012.11.25 13:57, Ralf Mardorf wrote: IIUC Install the GPT bootcode into the boot partition has to be done and is independent of the GRUB in the MBR. Not in your case. You won't need bootcode other than GRUB's (in the MBR, and the Linux partition where the bulk of it is installed).

Re: Manually partitioning using gpart

2012-11-25 Thread Ralf Mardorf
At the moment I still have: This is what I've got: # gpart show ada0 = 63 625142385 ada0 MBR (298G) 63 121274683 - free - (57G) [snip] Regarding to http://www.wonkity.com/~wblock/docs/html/disksetup.html for my set up it should be ok to run: # gpart add -t freebsd-boot -l boot

Re: Manually partitioning using gpart

2012-11-25 Thread Ralf Mardorf
On Sun, 2012-11-25 at 14:13 +0100, Lucas B. Cohen wrote: On 2012.11.25 13:57, Ralf Mardorf wrote: IIUC Install the GPT bootcode into the boot partition has to be done and is independent of the GRUB in the MBR. Not in your case. You won't need bootcode other than GRUB's (in the MBR, and the

Re: [Bulk] Re: Manually partitioning using gpart

2012-11-25 Thread Polytropon
On Sun, 25 Nov 2012 13:43:46 +0100, Ralf Mardorf wrote: On Sun, 2012-11-25 at 13:29 +0100, Polytropon wrote: I'll read this. I want to test what's possible and/or impossible regarding to MIDI and audio productions using FreeBSD. Will be interesting. I know there is some good support for this

Re: Manually partitioning using gpart

2012-11-25 Thread Polytropon
On Sun, 25 Nov 2012 14:30:17 +0100, Ralf Mardorf wrote: At the moment I still have: This is what I've got: # gpart show ada0 = 63 625142385 ada0 MBR (298G) 63 121274683 - free - (57G) [snip] Regarding to http://www.wonkity.com/~wblock/docs/html/disksetup.html for my set

Wheres the FreeBSD PBR ? (was Re: Manually partitioning using gpart / wh)

2012-11-25 Thread Lucas B. Cohen
-compatible bootcode to that partition instead, but I've yet to find out how to do it. gpart(8) seems to have the ability to do it, but it's manual page doesn't mention what file to pass to its -p option to do that. Maybe it's one of those /boot/boot1 or /boot/boot2 files I'm seeing on my system

Re: Manually partitioning using gpart

2012-11-25 Thread Bruce Cran
On 25/11/2012 12:29, Polytropon wrote: Won't be wrong; my understanding of the rule was 2 * size of _possible_ RAM in the machine. But disk space is cheap, so 8 G should be fine. But again, the requirement for the swap partition depends on what you're doing with the machine and what you're

Re: Wheres the FreeBSD PBR ? (was Re: Manually partitioning using gpart / wh)

2012-11-25 Thread Ralf Mardorf
it. It would be useful for emergency purposes to write MBR-partition scheme-compatible bootcode to that partition instead, but I've yet to find out how to do it. gpart(8) seems to have the ability to do it, but it's manual page doesn't mention what file to pass to its -p option to do that. Maybe it's

OT: Manually partitioning using gpart

2012-11-25 Thread Ralf Mardorf
On Sun, 2012-11-25 at 14:37 +0100, Polytropon wrote: BTW, I still have some Atari ST hardware here. Impressive what has been possible with this (quite limited) machines, but with _efficient_ programs... I still have the C64 in some cartons and the Atari ST is still beside my PC, but I don't

Re: Manually partitioning using gpart

2012-11-25 Thread Ralf Mardorf
Polytropon, I'll use journaling. I've to apologize for my broken English. Regarding to the comment line my question is, if it's enough to us a # at the beginning, or if it's needed to begin and to end with a #. I suspect just a # at the beginning is needed.

Re: Manually partitioning using gpart

2012-11-25 Thread Polytropon
On Sun, 25 Nov 2012 15:42:38 +0100, Ralf Mardorf wrote: Polytropon, I'll use journaling. That should give you additional security in integrity, especially on a everything in one / partition. I've to apologize for my broken English. No understanding problem here. Regarding to the comment

Re: Manually partitioning using gpart

2012-11-25 Thread Warren Block
On Sun, 25 Nov 2012, Ralf Mardorf wrote: This is what I've got: # gpart show ada0 = 63 625142385 ada0 MBR (298G) 63 121274683 - free - (57G) [snip] IIUC I now have to do: # gpart add -s 64k -t freebsd-boot -l boot0 ada0 # gpart add -s 8G -t freebsd-swap -l swap0 ada0 # gpart

Re: Manually partitioning using gpart

2012-11-25 Thread Ralf Mardorf
On Sun, 2012-11-25 at 13:49 -0700, Warren Block wrote: Realize this multi-boot stuff is painful and inconvenient and install everything in a VM? Unfortunately this is impossible. I'll install FreeBSD, because there's a driver for my sound card, a RME HDSPe AIO, that perhaps enables to use all

Re: Manually partitioning using gpart

2012-11-25 Thread Lucas B. Cohen
Hi Warren, On 2012.11.25 21:49, Warren Block wrote: For a hard drive, 4K alignment and starting the main partition at 1M is good. Why would one leave 1024 full kbits before the first partition on a HDD ? ___ freebsd-questions@freebsd.org mailing list

Re: Manually partitioning using gpart

2012-11-25 Thread Ralf Mardorf
On Mon, 2012-11-26 at 02:22 +0100, Lucas B. Cohen wrote: Hi Warren, On 2012.11.25 21:49, Warren Block wrote: For a hard drive, 4K alignment and starting the main partition at 1M is good. Why would one leave 1024 full kbits before the first partition on a HDD ? Create a partition for /.

Re: Manually partitioning using gpart

2012-11-25 Thread Warren Block
On Mon, 26 Nov 2012, Lucas B. Cohen wrote: On 2012.11.25 21:49, Warren Block wrote: For a hard drive, 4K alignment and starting the main partition at 1M is good. Why would one leave 1024 full kbits before the first partition on a HDD ? The second only is only relevant to GPT. We went over

help with gpart

2012-10-31 Thread doug
I am trying to put FreeBSD on an HP laptop. The use up all the partitions to I deleted the least useful one, shrunk the windows partition and tried to add freeBSD. gpart show: = 63 625142385 ada0 MBR (298G) 63 1985- free - (992k) 2048 407552 1

Re: help with gpart

2012-10-31 Thread Warren Block
On Wed, 31 Oct 2012, d...@safeport.com wrote: I am trying to put FreeBSD on an HP laptop. The use up all the partitions to I deleted the least useful one, shrunk the windows partition and tried to add freeBSD. gpart show: = 63 625142385 ada0 MBR (298G) 63 1985

gpart and mbr give no operating system message at boot.

2012-09-07 Thread markham breitbach
I am trying to partition a disk to be used as the primary boot disk for a FreeBSD 8.3 installation using gpart to install an MBR partition. The system is an existing FreeBSD 5.2.1 system at a remote location (ie impossible to boot from CD/netboot/etc), but has no data of value. To do this I am

Re: gpart and mbr give no operating system message at boot.

2012-09-07 Thread Warren Block
On Fri, 7 Sep 2012, markham breitbach wrote: I am trying to partition a disk to be used as the primary boot disk for a FreeBSD 8.3 installation using gpart to install an MBR partition. The system is an existing FreeBSD 5.2.1 system at a remote location (ie impossible to boot from CD/netboot

Re: gpart and mbr give no operating system message at boot.

2012-09-07 Thread markham breitbach
. On 12-09-07 2:48 PM, Warren Block wrote: On Fri, 7 Sep 2012, markham breitbach wrote: I am trying to partition a disk to be used as the primary boot disk for a FreeBSD 8.3 installation using gpart to install an MBR partition. The system is an existing FreeBSD 5.2.1 system at a remote

Re: gpart and mbr give no operating system message at boot.

2012-09-07 Thread Polytropon
FreeBSD since 4.0. :-) Partitions created with the gpart / gpt tools usually use e. g. /dev/ad0p1 and so on for partitioning, if I remember correctly. Additionally, I typically point to http://www.wonkity.com/~wblock/docs/html/disksetup.html to encourage the use of labels, because that lets

Re: Partitioning with gpart

2012-08-29 Thread Thomas Mueller
and move everything from the ufs disk and then format the ufs disk with zfs. I have not tried the command line before so I just tried to create over the disk with: gpart create -s gpt ada2 The message is that ada2 already exists as a file system. Show indicates that it is not gpt but mbr

Re: Partitioning with gpart

2012-08-29 Thread Lynn Steven Killingsworth
is on an mbr partition. I thought I would format the mbr disk with zfs and move everything from the ufs disk and then format the ufs disk with zfs. I have not tried the command line before so I just tried to create over the disk with: gpart create -s gpt ada2 The message is that ada2 already

Partitioning with gpart

2012-08-28 Thread Lynn Steven Killingsworth
and then format the ufs disk with zfs. I have not tried the command line before so I just tried to create over the disk with: gpart create -s gpt ada2 The message is that ada2 already exists as a file system. Show indicates that it is not gpt but mbr. Then in order to start over I tried to delete

Re: Partitioning with gpart

2012-08-28 Thread Warren Block
everything from the ufs disk and then format the ufs disk with zfs. I have not tried the command line before so I just tried to create over the disk with: gpart create -s gpt ada2 The message is that ada2 already exists as a file system. The exact message would help; gpart is not a filesystem

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
. 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 filesystem. When using GPT what were called slices are now partitions, and instead of 'ada0s1a' (disk 0, slice 1, partition a) you just have 'ada0p1

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

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

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
it with one partition and newfs it. Or you can use the gpart tools with I am not yet familiar. But, in any case, the FAT32 is irrelevant. You just overwrite that with the FreeBSD stuff. If you have a FAT32 on it and if you want to use it as a FAT32, then you leave the FAT32 alone and just mount

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

GUI for gpart

2012-07-07 Thread Carmel
I have heard, although I never personally saw it, a GUI for gpart I heard that there exists one for Linux. Is there any comparable one for FreeBSD and comparable with KDE? -- Carmel ✌ carmel...@hotmail.com ___ freebsd-questions@freebsd.org mailing list

Re: GUI for gpart

2012-07-07 Thread Polytropon
On Sat, 7 Jul 2012 08:58:06 -0400, Carmel wrote: I have heard, although I never personally saw it, a GUI for gpart I heard that there exists one for Linux. Is there any comparable one for FreeBSD and comparable with KDE? I'd suggest to look into the PC-BSD installer and the utilities that come

Re: GUI for gpart

2012-07-07 Thread Wojciech Puchar
I have heard, although I never personally saw it, a GUI for gpart I heard that there exists one for Linux. Is there any comparable one for FreeBSD and comparable with KDE? no idea. If you want it with already installed system, try to compile linux software. Anyway i see no reason

  1   2   3   >