fdisk | Fixed disk tool - create partitions
kandi X-RAY | fdisk Summary
kandi X-RAY | fdisk Summary
Description of FreeDOS FDISK extended switches:.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of fdisk
fdisk Key Features
fdisk Examples and Code Snippets
Community Discussions
Trending Discussions on fdisk
QUESTION
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:33It 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.
QUESTION
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- make dir
/home
on/dev/nvme0n1p6
and move all to/home
- copy
/
to/dev/nvme0n1p6
(make one root+home) - update boot param for boot and mount only
/dev/nvme0n1p6
as root
from live cd.
QUESTION
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:53Azure 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
QUESTION
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:53problem solved. thanks to [Long Wu Yuan] on Slack#kubernetes-users.
information provided before problem solved:
QUESTION
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:52To be sure it's used (or not used), you can :
QUESTION
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:59Consider a different approach that doesn't need to take some offset calculations. Let's first create a sample file with DOS partition table:
QUESTION
# 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:12I 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:
QUESTION
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:56Apparently 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 rundmesg
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:
QUESTION
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 MountsHere's my storage class:
...ANSWER
Answered 2020-Nov-02 at 14:44Timo 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
QUESTION
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:14One (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
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install fdisk
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page