Questions tagged [fdisk]

fdisk command-line utility that provides disk partitioning

Filter by
Sorted by
Tagged with
0 votes
0 answers
22 views

Created Partition in SD card is not detecting after rebooting

In Ubuntu 18, I inserted an SD card, and create a new partition using fdisk, then when executed the command lsblk, I got this NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 ...
Vishak Raj's user avatar
2 votes
0 answers
83 views

No disk tool lists my old 4 TB spinning HDD. I can't get in contact with it

I've tried to connect it via an esata cable and via USB. It's not listed with fdisk -l. How can i mount it? dmesg | tail -n 100 Doesn't list anything about my large disk. I have just installed ...
Lars Gustafsson's user avatar
1 vote
0 answers
85 views

how to copy a partition to a new drive and make it bigger

I have a 500GB internal M.2 SSD , and bought a 2TB M.2 SSD with a case so I can load it exernally before replacing the internal drive. The current setup is split into windows and linux partitions. If ...
Dov's user avatar
  • 763
0 votes
2 answers
48 views

I need 2 create a partition on my USB flash drive with block/cluster size of 256 KB, but cant find the dialog box 2 specify this block size in Disks

I'm using Gnome's Disks program 2 format my USB flash drive. I want only 1, 0700 Microsoft basic data partition, covering the whole disk. The disk will be used to transfer 2-8GB video files between ...
michal roesler's user avatar
0 votes
0 answers
229 views

Is that okay to have the Disk type "Microsoft basic data" in Ubuntu

I was having Windows 11 and now I'm using Linux Ubuntu only. I have two disks (SSD - HDD). My first SSD /dev/sdb disk has 2 partitions 1 with Name " EFI System Partition" ( FAT (32-bit ...
SIRJUE's user avatar
  • 1
0 votes
0 answers
33 views

Formatting Partitions in ubuntu

Hi I create 2 primary partitions with fdisk and I know that I have to format them in next step, how can I format them together instead of running mkfs -t ext4 twice?
Narges Heidarinejad's user avatar
0 votes
0 answers
20 views

Not able to grow the partition of an img file

I have an img file with below partition table $ sudo parted tmp/disk.img GNU Parted 3.4 Using /tmp/disk.img Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) print ...
BTR Naidu's user avatar
  • 169
0 votes
0 answers
21 views

Moving single partition system to smaller SSD

I've got a thin client running Ubuntu server without GUI, with single hdd. Need to move everything to smaller SSD. Can I do it using PV to USB enclosure containing the new ssd on the system itself? Or ...
Kokesh's user avatar
  • 101
0 votes
1 answer
131 views

Extended partition size didn't work

I have the following info using df: francis@playground  /var/log  sudo df -h Filesystem Size Used Avail Use% Mounted on udev 2.9G 0 2.9G ...
francisaugusto's user avatar
0 votes
0 answers
77 views

How do I allocate free disk space to my Ubuntu 22.04 partition? [duplicate]

I have read and tried the mentioned methods of allocating free space to my Ubuntu partition and have been unable to succeed. I have tried both gparted and the Disk Utility application provided with ...
phil's user avatar
  • 1
0 votes
0 answers
28 views

How do I create disk partions using ubuntu that has already been launched? [duplicate]

Ive been trying to partion my disk using ubuntu but anytime I try to resize it it says error in unmounting...target is busy!How do I go about it since am a new user in ubuntu?
Clinton Purim's user avatar
0 votes
0 answers
83 views

need help interpreting fdisk and gnome-disk-utility output

I am on a fresh Ubuntu Server 22.04 install and during install, I think I might have chosen a filesystem which I do not understand: cat /etc/*release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=22.04 ...
kiltek's user avatar
  • 121
0 votes
1 answer
153 views

Why can fdisk create a 10GiB partition on a 10GiB device but not a 9.9GiB partition

I am currently learning about creating and managing devices on my Ubuntu Server 22.04 VM running on a KVM host. I added a virtual qcow2 storage disk to the VM. I used fdisk and for very specific ...
Harsh's user avatar
  • 1
0 votes
0 answers
57 views

Mapping of Disks and underneath "Primary/Logical" Partition(s) by Unix Terminal Prompt Commands and GRUB Prompt Commands (With GRUB Naming Convention)

In Unix ("Ubuntu/lUbuntu") is there any command or any easy way to find mapping for Disk + Logical and/or Primary Partition Information between the "ls" output at "GNU GRUB ...
Nilabja Saha's user avatar
0 votes
0 answers
99 views

Bad magic number: which command to verify filesystem health?

Drives 1 and 2 are bootable (not live) 64GB USB flash drives on which I have installed Ubuntu 22.04.1 LTS. I boot the computer using Drive 1, to study the health of Drive 2 (/dev/sdb). Drive 2 is ...
Ray Woodcock's user avatar
0 votes
2 answers
153 views

How i can use D: Drive in Dual Boot From Ubuntu(Single Hard Disk)?

I want to use my 1TB Hard disk in ubuntu. I have dual-booted Windows And Ubuntu. I can't see D in Ubuntu, in disks it says unmounted. I'm booting from SSD(C:)
Oven Kravecki's user avatar
0 votes
1 answer
153 views

fdisk doesn't create partitions with the requested size

I am trying to write a script to automate the task of partitions creation for ubuntu alongside windows, and for creating partitions I am using fdisk, but the problem is that the Windows OS has already ...
YaserMow's user avatar
  • 174
0 votes
0 answers
130 views

Can't boot Ubuntu or Windows (dual boot) after BIOS update

I have dual boot Ubuntu and Windows 10 on HP Pavilion. When I tried update BIOS (update downloaded from official HP website). After that I couldn't boot neither Ubuntu or Windows so I tried to use ...
tux's user avatar
  • 11
0 votes
0 answers
33 views

After adding root volume CPU utilization is continously full

My fdisk /dev/root occupies full space without any reason.
Arjun Thakur's user avatar
2 votes
0 answers
650 views

Cannot create partition table on sd card

I cannot create a partition table ( nor msdos, nor GPT ) on my new 64 GB PNY micro sd-card. I tried: - using GParted ( in Kubuntu 20.04 and in Mint 20.3 ) - fdisk in the terminal ( Kubuntu ) - ...
Joepie Es's user avatar
  • 1,430
0 votes
1 answer
249 views

What is the proper way to extend a VG using a virtual disk

I have Ubuntu 18.04 Server installed on a VMware platform and I have two established VGs: rootvg is 500GB and hosts the O/S on /dev/sda. The datavg was 2TB and contains our PostgreSQL database ...
S. Nixon's user avatar
  • 372
-1 votes
1 answer
68 views

How can i know the hard disk name?

How can I find the name of the hard disk I'm already in as I tried sudo fdisk -l but the result contains a lot of names, i just need the hard disk I'm using now , please EDIT I got sda 8:0 0 ...
sammo's user avatar
  • 9
0 votes
0 answers
971 views

Extend partition size on ubuntu 20.04 on VMware

I have ubuntu 20.04 with 10gb HDD on VMware. I have exported it and move another VMWare. I need to have more capacity on HDD so on VMWare, I extend the HDD to 20. I used this link to add new space to ...
VOLVO's user avatar
  • 101
0 votes
1 answer
1k views

sfdisk: create a partition from the right

I want to create partition 2 with a specified size, while partition 1 occupies the rest of the disk: echo -en 'g\nw' | fdisk "$2" #create gpt table echo -en ',1331200\n,,U' | sudo sfdisk &...
Mario Palumbo's user avatar
0 votes
0 answers
110 views

I partitioned a disk and now bios doesn't know which disk to boot from

I added another disk to my setup. I partitioned the entire disk to be ext4 with fdisk and mkfs.ext4. Now when I start the computer, it simply shows a blinking cursor. When I remove the disk, the ...
UnqtiousDude's user avatar
0 votes
1 answer
117 views

Partition size issue

I have a server with 4TB HDD, however, there is a strange issue where it seems like main partition is only 200 GB, which shouldn't be the case. if I check with lsblk -a I get: NAME ...
Perovic 's user avatar
0 votes
0 answers
70 views

Losing filesystem after creating a partition with fdisk

I created a partition with fdisk and after writing the change to the disk and reboot, I got stuck at Grub and lost my filesystem on the disk. What happened and do I have the chance to backup my data ?
Yelaco's user avatar
  • 1
0 votes
0 answers
6k views

Cannot Mount Old Ubuntu Drive connected via USB: mount unknown filesystem type 'LVM2_member'

I am trying to mount a previous Ubuntu 20.04 boot drive (250GB M.2 NVMe SSD in a USB-C adapter) to a Ubuntu 20.04 machine at /mnt/foo. However, when I try to mount the drive by doing $ sudo mount /dev/...
Athena Wisdom's user avatar
0 votes
0 answers
368 views

Problems to read a Synology raid1 disk in Ubuntu

I'm trying to recover the data from a disk of a Synology NAS. It was stored in a 2 disk RAID1. One of the disk broke and I didn't replace it. After some months, Synology station broke too, and now I ...
Virtucon42's user avatar
2 votes
0 answers
62 views

Mounted Disk Issue

Please go easy as I am somewhat a novice in Linux. I am running Ubuntu 20.04.2 and using it as a file server. I built it about a year ago and it has been working fine. This morning I rebooted the ...
Dave Coup's user avatar
1 vote
0 answers
180 views

Ubuntu only sees the first partition on an external (USB) disk drive

I connected an external (1TB) hard disk drive to my computer. It is automatically mounted on /media/$USER/Seagate Backup Plus Drive. However this drive has two partitions: an NTFS partition, and an ...
user296662's user avatar
0 votes
0 answers
193 views

Why is my filesystem size larger than the partition size. (df vs fdisk)

So... I get that fdisk lists partition sizes, and df lists filesystem sizes, and that filesystem may use a portion of the partition and disagree on the size, but why would df list filesystem sizes ...
user48956's user avatar
  • 641
0 votes
0 answers
141 views

Ubuntu constantly going to Emergency mode!

Ubuntu 18.04 LST, went to the emergency mode the first time. Nothing works to exit the emergency mode (I tested many from the discussions here) except the following solution. I fixed it using this ...
Artemis-a's user avatar
0 votes
0 answers
144 views

fdisk showing inconstant data, it shows /dev/sda twice

I boot a laptop off of an Ubuntu USB drive. I want to to use dd to image the laptop so I can have a copy before I format it. When I do fdisk -l I get root@ubuntu:/mnt/nfs/volume2/drive2/fpp/test# ...
Dovid Bender's user avatar
1 vote
1 answer
129 views

Boot problems when adding new hard drive to working 18.04 system

I have a ubuntu 18.04 system with 3 spinning hard drives, (sda, sdb, and sdc), that has been working fine. Tonight, I just added a 4th drive, (3TB WD blue), currently unformatted and unpartitioned, ...
loneRanger's user avatar
0 votes
0 answers
82 views

Partitioning a drive in Ubuntu for use in a USB dock on a windows system

I am having some issues with a 5TB internal drive I am trying to use on my windows Laptop (attached Via USB in a HDD Docking station). at first It was having issues detecting the whole drive So I have ...
Chris_livermore's user avatar
0 votes
1 answer
174 views

Upgrade SSD 1TB to 2TB: pv, vg, lv, and fdisk OK. df says no change

I'm upgrading a 20.04 server SSD from 1TB to 2TB. The transfer went fine but I seem to be stuck at the last step trying to get the new space to appear. pvdisplay, vgdisplay, lvdisplay, and fdisk all ...
tiz.io's user avatar
  • 131
0 votes
1 answer
63 views

Syntax help in fstab needed

I just added a external ssd-drive (USB) to my VM (Ubuntu 20.04). Im trying to set it up as a XFS repository, and got the creation of A XFS partition (sdb1) in /sdb working. But i cant figure out how ...
Jigbod's user avatar
  • 1
1 vote
0 answers
87 views

Cant see pcie nvme drive bitlock drive but not enabled bitlock Dell Latitude 5511

Bios had RAID enabled, so that i fixed to AHCI Installing Ubuntu Desktop 18.04 LTS but it's not detecting my Samsung PCIe NVME SSD https://support.thinkcritical.com/kb/articles/switch-windows-10-...
Kangarooo's user avatar
  • 4,988
1 vote
2 answers
3k views

How to make an external hard drive bootable with unetbootin?

The SATA hdd is connected with a USB adapter cable. How is unetbootin used to write an ISO image: to an external hard drive for installing Ubuntu? It's not clear that unetbootin is listing the ...
Nicholas Saunders's user avatar
1 vote
1 answer
729 views

Drives partitioned via server USB caddy not recognized by workstation eSATA (GPT PMBR size mismatch)

We use a USB 3.0 drive caddy (Sabrent EC-DFFN) connected to our Ubuntu 20.04 server for backups. And we are using several make/model 6TB spin drives in daily rotation (one drive per day). Each drive ...
Van's user avatar
  • 771
0 votes
0 answers
35 views

Old hard drive seen as allocated space

Old hard drive seen as allocated space I have an old trusty 20.04 system and it's time to grow into a bigger machine. The new machine is all set up with fresh 20.04 and bigger drives. Everything looks ...
Norm's user avatar
  • 11
0 votes
0 answers
43 views

I trying to partition my disk and i always get less space then i partitioned

So i have [root@archlinux ~]# fdisk -l Disk /dev/sde: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors Device Start End Sectors Size Type /dev/sde1 2048 534527 532480 ...
34diyGsdg23576GGfsytuyfyudyfsd's user avatar
0 votes
0 answers
159 views

Inconsistency on volume start sector found by Boot Repair

I have had a boot problem that I have just solved (just my stupid mistake) but by the way I tried Boot Repair which did not help (nor harm) but generated an interesting report: boot-repair-4ppa129 ...
Pierre ALBARÈDE's user avatar
0 votes
0 answers
1k views

Why can't I increment partition size with cfdisk?

This is an screenshot of cfdisk, showing that I have 20G of free space. When I try to resize /dev/sda2 to just 12G I get an error saying that I have not enough space. (10197402624 bytes == 10G). ...
Adrian's user avatar
  • 143
1 vote
0 answers
1k views

USB drives don't show in Files

Sometimes I can't see USB drives in Files although they appear when doing sudo fdisk -l. In Files a little flash manifests itself in the window when unplugging the USB drive. But plugging/unplugging ...
Andersyes's user avatar
1 vote
0 answers
334 views

Offline shrink EXT4 in terminal and recover the SD card I just killed

I Installed ubuntu (20.04 LTS ARM64) preinstalled image on to a SD card. I had a few issues at this stage leading me to keep reinstalling the OS and try again, one particular issue ended with EXT4-FS ...
mike's user avatar
  • 11
1 vote
0 answers
550 views

Device for PV <UUID> not found

This is how it looks the drive settings of a VM that I am trying to rescue. $ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sr0 11:0 1 ...
Rikkas's user avatar
  • 113
1 vote
1 answer
1k views

Mounting extended or logical volume linux

I'm in the process of going through some old HDs using an external USB adapter before wiping and recycling these. I have a disk showing up as below. But can't seem to mount anything. Disk /dev/sdc: 37....
derekn's user avatar
  • 13
0 votes
1 answer
161 views

How should I interpret this fdisk output?

My main hdd seems to have two partitions over the same disk space. Are /dev/sda2 and /dev/sda6` overlapping? How should I interpret this fdisk output? Have I screwed up my installation? allan@xxxxxxxx:...
zoomiest's user avatar

1
2 3 4 5
7