gpart

  1. mkrei

    ZFS Label not being assigned to hard drive

    Updating a mirrored zpool with larger disks, one at a time. Got about halfway through when the server unexpectedly rebooted (still unknown why, but that's beside the point). The device labels (/dev/daX) were reshuffled, but I'm manually assigning zfs labels so it shouldn't have been an...
  2. J

    UFS device busy trying to remove partition

    The situation is the following: # lsblk DEVICE MAJ:MIN SIZE TYPE LABEL MOUNT da0 0:92 36G GPT - - <FREE> -:- 33M - - - da0p3 0:95 1.0G freebsd-swap gpt/swapfs - <FREE> -:- 37G -...
  3. jeltoesolnce

    ZFS Does "BSDINSTALL" make ssd|name sector size right though installing?

    Hello. Do I have to specify the sector size manually in gpart if BSDINSTALL writes force4K, or BSDINSTALL do all right? This is geom disk list output: Geom name: da0 Providers: 1. Name: da0 Mediasize: 256060514304 (238G) Sectorsize: 512 Stripesize: 4096 Stripeoffset: 0 Mode...
  4. byrnejb

    Solved re-partion of replacement disc drive for raidz2

    Answer found just after posting: gpart backup /dev/ada0 | gpart restore -l -F /dev/ada3 I have just replaced a 3Tb Red in a raidz2 array. It is identical hardware to the remaining three hdds. The other tree drive are all partitioned thus: for DN in {0..2} ; do gpart show /dev/ada"$DN" ...
  5. apprentice

    UFS How to correctly align the SSD?

    I'm having a lot of trouble understanding and calculating the alignment. OBJECTIVE: Know how to calculate the alignment for my HD, So I can align my HDs on my Laptop, 2 Nvme and 1 SSD, They are different brands and different sizes Problem 1: How do I create a partition table with 4096 byte...
  6. J

    ZFS cannot import pool after booting 13.2 after upgrading to 14.0

    First, a quick warning to beadm users: If you have upgraded to 14.0 and you boot from ZFS and you ran zpool upgrade on your root ZFS pool and you beadm activate a pre-14.0 snapshot then you may be in for some pain :'‑( How did I get here: My FreeBSD system uses UEFI, I boot from ZFS and I...
  7. S

    Solved Why do I see diskid/DISK-WD instead of my labels for a pool?

    I created raidz with labels and geoms /dev/ada1pX /dev/ada2pX /dev/ada3pX /dev/ada3pX as well as /dev/gpt/$labels existed before reboot. It was like this: pool: hddPool_x3_RAIDZ state: ONLINE config: NAME STATE READ WRITE CKSUM...
  8. F

    Creating partition error: Invalid argument

    Hello. I have a problem installing FreeBSD 13.1. When partitioning the disk, I have the problem that you see in the photo. Invalid argument. I checked both on VM and on another disk. I tried to reinstall MBR, it didn't help. It's the same in gpart. Creating a part of any type does not work. I...
  9. aragats

    Other How to shrink a GPT disk image?

    I have a 64GB GPT disk image file with multiple partitions. I shrank the last (and the largest) partition and now have a free space of 32GB at the end. Now I'd like to shrink the entire image file. If I simply run truncate -s 32g disk.img, gpart doesn't like it and reports "No such geometry"...
  10. Micrified

    Unable to create an NTFS partition in a new GPT table

    Context I've added a fancy new NVMe storage device to my system. I wish to install an operating system on it. To achieve this, I believe I should: Setup a GPT partition table scheme Create an NTFS partition within the GPT table scheme Reboot and use a prepared USB to install my new operating...
  11. Nick-6

    Solved GEOM: invalid disklabel

    I would like to multi-boot FreeBSD[13.1-RESEASE], OpenBSD[7.1] and Debian[sid] on my SSD. Before doing it on physical disks, I tried it on VirtualBox on my FreeBSD-13.1-RELEASE. I installed OpenBSD on ada0p4 with full disk encryption. To do/practice it twice, I booted into FreeBSD, delete and...
  12. Nick-6

    ZFS What is the difference between gpart and other tools?

    I'm trying to format my external disk with ZFS filesystem. I've search and found several guides using different tools. Since sysutils/gpart is used in handbook, it seems FreeBSD prefer it than other tools. So, I'd like to know what's the difference and I'd like to make sure the commands I used...
  13. Andreas Strauch

    embedded build for armv7 broken in stable/13

    Hi, I am running the following build against the stable/13 source branch: cd /usr/src git clone -b stable/12 --depth 1 https://git.freebsd.org/src.git /usr/src cd release sh release.sh -c $HOME/BBB.conf The error I get looks as follows on the command line...
  14. Cath O'Deray

    Solved GPT fdisk (gdisk(8)) and gpart(8)

    When gdisk(8) adds the first partition to a disk, it defaults to 1 M free space before the partition, for example: root@mowa219-gjp4-8570p-freebsd:~ # gpart show da4 => 34 976773101 da4 GPT (466G) 34 2014 - free - (1.0M) 2048 976771087 1 freebsd-ufs...
  15. M

    UFS Help to resize partition / without data loss with gpart

    I need to resize the / without losing data, I believe I will need to do this with a FreeBSD LIVE distro, but I'm concerned about the lack of experience with gpart. Below is the disk partition table > root@FreeBSD:~ # gpart show ada1 => 63 468862065 ada1 MBR (224G) 63...
  16. J

    Solved Increase ZFS-on-root partition size

    I have a FreeBSD 13.0 bhyve VM running on a FreeBSD 13.0 host. Originally, The VM was created with a 64 GB disk but I increased that to 128 GB. When logging into the VM, I see that the disk was indeed resized correctly: root@poudriere01:~ # gpart show -lp => 40 268435440 vtbd0 GPT...
  17. megarubber

    Solved FreeBSD can’t boot

    Hello everyone. I have a computer with Windows, Arch and Lubuntu and all these systems are booting from a Multi-Boot. Recently, I decided to download freebsd for some tests and decided to put the OS in my multi-boot. I allocated 20 GB, installed in UEFI/GPT and made 3 partitions from UFS...
  18. s0undsp4c3

    Solved New freebsd-swap space with 400GB but htop shows 66.0G

    Hi daemons, I created a new partition: sudo gpart add -t freebsd-swap -i 2 ada 2 sudo swapon /dev/ada2p2 It works great but, the whole partition is of 400G but, htop only shows `66.0G` Why is that?
  19. O

    can't mount Dangerously Dedicated USB stick

    Hello fellow FreeBSD users, I try to mount a USB stick to recover a geli key. This stick has a full install and I used to boot on it and run FreeBSD (version 7 or 8). When I created it I did not use slices and make it dedicated (I forgot why). The server hardware is broken and I can't boot on an...
  20. K

    ZFS pool not found after partition resize with gpart

    Hello, I had the following partition scheme: ada0: ada0p1 freebsd-boot ada0p2 freebsd-swap ada0p3 freebsd-zfs ada0p3 had a size of ~1TB, and after I resized this partition to 500GB using gpart, the boot loader cannot found my zfs pool. What should I do to fix my boot loader and my zfs pool...
Back
Top