fdisk | Fixed disk tool - create partitions

 by   FDOS C Version: v1.3.4 License: GPL-2.0

kandi X-RAY | fdisk Summary

kandi X-RAY | fdisk Summary

fdisk is a C library. fdisk has no bugs, it has no vulnerabilities, it has a Strong Copyleft License and it has low support. You can download it from GitHub.

Description of FreeDOS FDISK extended switches:.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              fdisk has a low active ecosystem.
              It has 18 star(s) with 10 fork(s). There are 4 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 8 open issues and 0 have been closed. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of fdisk is v1.3.4

            kandi-Quality Quality

              fdisk has no bugs reported.

            kandi-Security Security

              fdisk has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              fdisk is licensed under the GPL-2.0 License. This license is Strong Copyleft.
              Strong Copyleft licenses enforce sharing, and you can use them when creating open source projects.

            kandi-Reuse Reuse

              fdisk releases are available to install and integrate.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of fdisk
            Get all kandi verified functions for this library.

            fdisk Key Features

            No Key Features are available at this moment for fdisk.

            fdisk Examples and Code Snippets

            No Code Snippets are available at this moment for fdisk.

            Community Discussions

            QUESTION

            mkfs.vfat: unable to open {partition}: No such file or directory (command succeeds, but throws this error and blocks rest of script)
            Asked 2021-May-21 at 03:38

            Update: I got this working but am still not 100% sure why. I've appended the fully and consistently working script to the end for reference.

            I'm trying to script a series of disk partition commands using sgdisk and mkfs.vfat. I'm working from a Live USB (NixOS 21pre), have a blank 1TB M.2 SSD, and am creating a 1GB EFI boot partition, and a 999GB ZFS partition.

            Everything works up until I try to create a FAT32 filesystem on the EFI partition, using mkfs.vfat, where I get the error in the title.

            However, the odd thing is, the mkfs.vfat command succeeds, but throws that error anyway and blocks the rest of the script. Any idea why it's doing this and how to fix it?

            Starting with an unformatted 1TB M.2 SSD:

            ...

            ANSWER

            Answered 2021-May-20 at 21:33

            It may take time for kernel to be notified about partition changes. Try calling partprobe before mkfs, to request kernel to re-read the partition tables.

            Source https://stackoverflow.com/questions/67596520

            QUESTION

            Debian boot partition full. Did I do something wrong?
            Asked 2021-Apr-19 at 03:17

            This is the first time I've used straight up Debian for a build, and I think I may have screwed up with setting my partitions. My boot partition is completely full now and I can't do basically anything on the system.

            Here's the fdisk output:

            ...

            ANSWER

            Answered 2021-Apr-19 at 03:17
            1. make dir /home on /dev/nvme0n1p6 and move all to /home
            2. copy / to /dev/nvme0n1p6 (make one root+home)
            3. update boot param for boot and mount only /dev/nvme0n1p6 as root

            from live cd.

            Source https://stackoverflow.com/questions/67141451

            QUESTION

            I have two disks on azure linux VM, sda and sdb
            Asked 2021-Apr-16 at 13:53

            I don't use /dev/sdb and I can't delete it. In Azure->Disks i have only my Os_Disk 30GB, in VM tab in Disks there is also only Os_Disk. fdisk -l shows 2 disks:

            ...

            ANSWER

            Answered 2021-Apr-16 at 13:53

            Azure A_v2-Series VMs have additional temporary disk attached(in your case it is /dev/sdb)

            The temporary disk provides short-term storage for applications and processes, and is intended to only store data such as page or swap files.

            Data on the temporary disk may be lost during a maintenance event, shutdown or when you redeploy a VM. During a successful standard reboot of the VM, data on the temporary disk will persist.

            https://azure.microsoft.com/en-us/blog/new-av2-series-vm-sizes/

            https://docs.microsoft.com/en-us/azure/virtual-machines/managed-disks-overview#temporary-disk

            Source https://stackoverflow.com/questions/67126124

            QUESTION

            Try to use iSCSI volume in Kubernetes Cluster but got "wrong fs type, bad option, bad superblock on /dev/sdb, missing codepage or helper program"
            Asked 2021-Apr-14 at 05:53

            Due to problems might caused by NFS ref, I tried to build iSCSI volume mount in K8S cluster, yet I got errors:

            MountVolume.MountDevice failed for volume "iscsipd-rw" : mount failed: exit status 32

            Mounting arguments: --description=Kubernetes transient mount for /var/lib/kubelet/plugins/kubernetes.io/iscsi/iface-default/192.168.20.100:3260-iqn.2020-09.com.xxxx:yyyy.testtarget-lun-1 --scope -- mount -t ext4 -o defaults /dev/disk/by-path/ip-192.168.20.100:3260-iscsi-iqn.2020-09.com.xxxx:yyyy.testtarget-lun-1 /var/lib/kubelet/plugins/kubernetes.io/iscsi/iface-default/192.168.20.100:3260-iqn.2020-09.com.xxxx:yyyy.testtarget-lun-1

            mount: /var/lib/kubelet/plugins/kubernetes.io/iscsi/iface-default/192.168.20.100:3260-iqn.2020-09.com.xxxx:yyyy.testtarget-lun-1: wrong fs type, bad option, bad superblock on /dev/sdb, missing codepage or helper program, or other error.

            At beginning I follow this document to create iSCSI initiator, due to errors caused by different situation, I've tried various settings multiple times. iSCSI initiator connection looked well

            ...

            ANSWER

            Answered 2021-Apr-14 at 05:53

            problem solved. thanks to [Long Wu Yuan] on Slack#kubernetes-users.

            information provided before problem solved:

            Source https://stackoverflow.com/questions/67084405

            QUESTION

            How to resize partition size while the middle partition is the BIOS Boot?
            Asked 2021-Mar-30 at 11:28

            I used Clonezilla to restore an old system to a larger hard disk. However, when I do all my job, I found my first partition doesn't use all the disk space.

            I know the method to resize the partition size by using fdisk, however, I noticed that there is a BIOS boot partition between the first partition and free space. Now I don't know how to deal with it.

            So I want to ask how to expand my first partition to use most of my free space in this disk.

            The second partition type is BIOS Boot, Contents: Unknown

            ...

            ANSWER

            Answered 2021-Mar-25 at 11:52

            To be sure it's used (or not used), you can :

            Source https://stackoverflow.com/questions/66780456

            QUESTION

            mounting multiple partitions from a disk image file
            Asked 2021-Mar-23 at 14:59

            I'm trying to write a small bash script which shall mount all partitions from a given disk image file. I know that this works, because I did this already in the very past, but I can't remember anymore. Maybe I was using somehow /dev/mapper but I can't remember. I'm using for the sizelimit parameter the actual size of the partition and not the absolute sector end of the partition.

            Sorry for my bad English.

            ...

            ANSWER

            Answered 2021-Mar-23 at 13:59

            Consider a different approach that doesn't need to take some offset calculations. Let's first create a sample file with DOS partition table:

            Source https://stackoverflow.com/questions/66764271

            QUESTION

            How to set /dev/root filesystem size to the partition size
            Asked 2020-Dec-20 at 06:12
            # df -h
            Filesystem      Size  Used Avail Use% Mounted on
            /dev/root       4.3G  1.9G  2.2G  47% /
            devtmpfs        980M     0  980M   0% /dev
            tmpfs           981M     0  981M   0% /dev/shm
            tmpfs           981M   33M  948M   4% /run
            tmpfs           981M     0  981M   0% /sys/fs/cgroup
            tmpfs           981M     0  981M   0% /tmp
            tmpfs           981M   16K  981M   1% /var/volatile
            
            ...

            ANSWER

            Answered 2020-Dec-20 at 06:12

            I can see two possible solutions to your issue.

            The first one is by telling Yocto to generate an image with a sepcific IMAGE_ROOTFS_SIZE value. As stated in the Yocto Mega-Manual. The size is specified in KBytes. Modify your machine.conf or local.conf to add this parameter.

            In your case, the value seems to be:

            Source https://stackoverflow.com/questions/65200349

            QUESTION

            Respberry Pi 4 debian HDD not detected on USB3 but works on USB2
            Asked 2020-Dec-14 at 19:56

            I have a brand new Raspberri Pi 4 loaded with NextCloudPi_11-27-20 image on the SD which seems to boot and work perfectly. The system info tells me that the distribution is: Debian GNU/Linux10 \n\l
            I am a linux noob, but think debian is causing the following problem.

            I have a 4tb HDD in an USB3.0 enclosure (DELOCK 42613) which should support UASP
            If I connect the HDD to USB3 it does not show up on sudo fdisk -l If I connect to USB2 it works fine.

            Where can I start to investigate this problem? How can I get it to work on the USB3.0 port?

            edit 2020-12-14 17:05: sudo dmesg output (part of it, characters limit 30000):

            ...

            ANSWER

            Answered 2020-Dec-14 at 19:56

            Apparently this is a known problem: STICKY: If you have a Raspberry Pi 4 and are getting bad speeds transferring data to/from USB3.0 SSDs, read this
            I would not be surprised if there is a similar question on SO

            In short: Something to do with the chips in the SATA adapters to USB and UAS. (if I got it right)
            Please go to the link above for the full story. Quick solution:

            • Get the idVendor=xxxx and idProduct=xxxx by disconnecting the adapter, run sudo dmesg -C, reconnect and run dmesg
            • sudo nano /boot/cmdline.txt and add at the start of the line of parameters 'usb-storage.quirks=[idVendor]:[idProduct]:u'
            • In my case it looks like this usb-storage.quirks=152d:0578:u from the code snippet in my question.
            • reboot
            • check with dmesg | grep usb-storage, you should see something like this:

            Source https://stackoverflow.com/questions/65291990

            QUESTION

            How to make XFS quotas work in Kubernetes volumes on DigitalOcean?
            Asked 2020-Nov-02 at 14:44

            I need help with making the XFS quotas work in Kubernetes on DigitalOcean.

            My problem essentially is that the xfs_quota tool seems to work only when one has also an access to the disk device, not only to the mounted volume. However, whatever I try, I can't seem to get access both to the device and the mount.

            I tried both volume mounts and raw block volumes.

            Volume Mounts

            Here's my storage class:

            ...

            ANSWER

            Answered 2020-Nov-02 at 14:44

            Timo here from the Managed Kubernetes (DOKS) team at DigitalOcean.

            What you are missing is the host system mount of the /dev directory. If you add both

            Source https://stackoverflow.com/questions/64525271

            QUESTION

            File system not filling entire disk
            Asked 2020-Sep-12 at 05:36

            I have a 6TB USB drive connected to a machine running Ubuntu Server 18.04(Linux 4.15.0) with a around 648GB of data on it. The issue is that certain utilities(namely df and btm) report that the disk is 75% full. After some searching, I found out that those utilities seem to think the disk is only 916GB, while others like fdisk or lsblk report that the disk is the proper size of 5.5TB. This is almost certainly an issue I caused while formatting and creating the filesystem, but I am worried that I wont be able to go over 916GB on the drive. I need a way to edit the information, preferably without deleting the data on it(which is the only reason I dont simply reformat it). I have looked into editing the superblocks but have not found any concrete way of doing so, most everything says I need to resize the partition, which I cannot do since fdisk shows correct size, and the partition takes up the whole drive.

            lsblk output:(device in question is /dev/sdc)

            ...

            ANSWER

            Answered 2020-Jul-28 at 20:14

            One (possible) explanation is :

            The partition /dev/sdc1 size is 5.5TB, the file system /dev/sdc1 occupies only a portion (916GB) of the partition

            So you don't need to edit disk information, but only following commands

            Source https://stackoverflow.com/questions/63139343

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install fdisk

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/FDOS/fdisk.git

          • CLI

            gh repo clone FDOS/fdisk

          • sshUrl

            git@github.com:FDOS/fdisk.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link