gpart

  1. grahamperrin

    Other 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...
  2. 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...
  3. jbodenmann

    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...
  4. 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...
  5. 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?
  6. 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...
  7. 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...
  8. C

    ZFS dedicated zfs disk and gpart : what good practices ?

    Hi all. Using ZFS raidz quite a lot in my work; I used to give zfs whole disks as it is told ZFS love to manage itself entire disks. Unfortunately this way of managing disks leads to disks without labels/partitions scheme : the partition table remains clear , so it not clearly visible to...
  9. Abraham79

    Manual partitioning for installing on SSD with pre-existing Linux OS. Is this steps correct?

    Hi, I am planning to do a bare-metal installation of FreeBSD 12.1 on a intel 330 SSD which already contain Devuan 3.0 Linux on UEFI-GPT system. I'm planning to install Gnome 3. I tried running the installer and manual mode in bsdinstall seems to me, confusing. It is asking for entire disk or...
  10. J

    UFS Installing a new operating system using DD

    Hello, I've tried using FreeBSD but due to a lot of unsupported software and a few strange interactions with my CPU I simply wish to install another operating system. On Linux this would be easy, just use 'dd if=myiso.iso of=/dev/sdb (my ssd partition)'. However, when I tried to do this on...
  11. A

    gpart restore -> Invalid argument

    Hello All, I'm trying to restore my boot mirror (2 identical USB sticks) using gpart backup and gpart restore but getting an error. # gpart list da0 Geom name: da0 modified: false state: OK fwheads: 255 fwsectors: 63 last: 31260638 first: 34 entries: 128 scheme: GPT Providers: 1. Name: da0p1...
  12. dijitaltrix

    Other Issue with gpart "Device Busy"

    I have an issue with gpart, it will not let me delete partition ada0p2 responding with “Device Busy” The man page gpart(8) says this may be shown if a partition exists but I cannot seem to delete partition 2 in my case via gpart delete or gpart destroy This is a used disk but new to the...
  13. bokutin

    Other Can I create start 34 with gpart create?

    I'm trying to create the same partition to make it raid, but it doesn't work. Can I make only start 40 with gpart in FreeBSD 12? # camcontrol devlist <Samsung SSD 850 PRO 512GB EXM02B6Q> at scbus6 target 0 lun 0 (pass5,ada4) # new ssd <Samsung SSD 850 PRO 512GB EXM02B6Q> at scbus11 target...
  14. D

    Zfs partition

    Hi I want to build a file server using zfs. I installed the os on mirrored zfs from the bsd installation. The installation formatted the drives automatically with FreeBSD-zfs partition. Now I want to add drives to my new pool called Data. This drives are new. Do I need to gpart the drives...
  15. S

    Solved New SSD, best way to move OS from old disk to new one?

    I have old small 16GB SSD and now I got better 128GB Samsung 850 pro SSD. Copying stuff to new one is easy with dd, but what block size I should use with it? I not sure what to do with old 16GB SSD, maybe it is good place for swap? 16GB SSD is ada0 and 128GB ada1. gpart list Geom name: ada0...
  16. M

    ZFS How to add free space to zpool from different storage device

    As we're running out of disk space, I've added another block storage device and made it a zfs partition with gpart : $ gpart show => 40 125829040 vtbd0 GPT (60G) 40 1024 1 freebsd-boot (512K) 1064 6291456 2 freebsd-zfs (3.0G) 6292520...
  17. rdslw

    Solved gpart 4k alignment

    I do not understand why gpart thinks that 4k alignment means starting first partition at sector 41, instead of usual 40. Sector size is 512, so 4k alignment should result in starting 40. [root@cyan ~]# gpart create -s GPT ada0 ada0 created [root@cyan ~]# gpart add -t freebsd-boot -s 1024 ada0...
  18. Kay

    Other gpart leaves free space before partition 1 - is this normal?

    I have a ZFS pool consisting of two drives in a mirror VDEV. Now I'm replacing one with a larger capacity. So I first add the 3rd (new) drive to the VDEV for resilvering, before I detach the small drive. However when I partition the new drive in the same way I partitioned my existing drives, I...
  19. B

    ZFS adding swap space

    I setup this HDD with zfs but no swap, now even with 32GB of ram I am running into issues related to swap. I created a swap file but I've been told that's a bad idea and can lead to deadlocks. My goal is to eventually debug the programs that I am using to see how to lower their memory usage but...
  20. Petr Fischer

    Solved Replacing failed disk in ZFS (bootable) mirror - how to recover bootsector

    Hello, I have simple ZFS mirror from 2 disks. Contains zroot. Is bootable (GPT). 1) ZFS mirror was created during FreeBSD installation - I assume, that installer wrote proper gpt bootsector to both disks, so when one disk die in the future, system can boot from second disk - is this true? 2)...
Top