Questions tagged [fdisk]

fdisk command-line utility that provides disk partitioning

Filter by
Sorted by
Tagged with
-1 votes
0 answers
15 views

Is it possible to resize my Ubuntu LV directry?

I have big problem with one of Ubuntu servers: user@lenovo-st50:~/main/project-system-docker/server$ df -h Filesystem Size Used Avail Use% Mounted on tmpfs ...
7 votes
1 answer
12k views

USB stick not recognized by fdisk

My USB stick got corrupted. I am not even able to format it as it is not found properly by my OS (Ubuntu 16.04). What I tried: It is found by neither fdisk -l, lsblk nor gparted. It is shown by ...
2 votes
2 answers
8k views

Unknown Filesystem - grub rescue after Windows 10 update?

About a week ago Windows 10 ran its automatic updates and after that I'm unable to boot to ubuntu the way I was doing it (pressing f12 and manually selecting Ubuntu partition). Now it takes me to a ...
8 votes
1 answer
5k views

Hard Drive Partition: Optimal Transfer Size

I have a Western Digital 4TB drive (WD40PURZ). It appears that the recommended procedure for partitioning the drive results with: "Optimal transfer size 33553920 bytes not a multiple of physical ...
4 votes
2 answers
5k views

USB stick shows up as two drives!

I was given a free 1GB USB at an event a few months ago - however, when I plug it in to my Ubuntu laptop, the USB shows up as two drives (/dev/sdb and /dev/sdc). I have checked it isn't just ...
0 votes
2 answers
237 views

Usb drive has showed a lot of partition in lsblk, but none partition really exist

I'm was trying to delete all partition in a usb drive(a sd card with 64Gb storge), and by lsblk it showed that there is 12 partition and pretty much correct total disk size(59.5/64) NAME MAJ:...
0 votes
0 answers
91 views

Expand Ubuntu Filesystem on Hyper-V not going through

can you please help in letting me know the steps needed to increase the size of ubuntu hard drive. It is VM, I increased the disk in hyper-V by 11G. Inside the VM, when I run PARTED Print I see root@...
1 vote
1 answer
11k views

why fdisk doesn't show hard disk(/dev/sdf) while lsblk shows hard disk(/dev/sdf)?

I'm trying to mount additional hard disk. lsblk shows /dev/sdf1..3. However, sudo fdisk -l doesn't show /dev/sdf1..3 What is the problem?
-1 votes
1 answer
309 views

I am trying to increase the size of a partion/disk that is full, but I am having trouble

on my Ubuntu virtual machine, I have a disk/partition called / with a ton of free space. I also have a partition called /mnt/images that is full. You can see that here: root@marzen:/# df Filesystem ...
0 votes
0 answers
198 views

Ubuntu not showing USB in file manager

Ubuntu 22.04.3 LTS jammy Desktop recognises the USB as per fdisk an audio notification confirms the inserted (and removed) USB however file manager is missing the USB? ubuntu@ubuntu:~$ sudo fdisk -l ...
0 votes
0 answers
37 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 ...
3 votes
1 answer
13k views

The CRC for the main partition and back up partition table are invalid

I've been having problems with my HDD since I tried dual booting Ubuntu 14.04 with Windows 8.1. When I was installing from the Ubuntu installer I was receiving input/output error during write on /dev/...
2 votes
0 answers
85 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 ...
1 vote
0 answers
534 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 ...
0 votes
2 answers
126 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 ...
0 votes
0 answers
993 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 ...
0 votes
0 answers
43 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?
11 votes
3 answers
31k views

What is the "Loop" partition in ubuntu?

I'm a new user to Ubuntu, to just installed and used the command sudo fdisk -l. I found out that my Windows partition is SDA and my ubuntu is loop. What is this loop thing?
0 votes
0 answers
30 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 ...
0 votes
0 answers
23 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 ...
0 votes
1 answer
439 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 ...
0 votes
0 answers
78 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 ...
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?
11 votes
2 answers
46k views

How do I create a backup image of an SD card?

I have to copy my SD card to my hard-drive. I know that I have to mount and unmount it, but the following line doesn't work: dd if=/media/oneiric of=~/sd-card-copy.img That was my first try, but ...
1 vote
2 answers
1k views

Format usb linux Western Digital external disks

How can I format an external USB drive? I have a Western Digital external usb which adds automatically a virtual read-only CD partition which prevented me to run the standard ways to format a disk. ...
0 votes
0 answers
142 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 ...
0 votes
1 answer
244 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 ...
0 votes
0 answers
65 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 ...
0 votes
2 answers
284 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:)
0 votes
1 answer
330 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 ...
0 votes
1 answer
4k views

Creating a RAID1 Array, "Disk doesn't contain a valid partition table"

I'm trying to create (two) software RAID1 arrays on two identical 4TB non-boot drives. I'm following advice from several forum posts but keep running into trouble. Here's what I've done so far: for ...
0 votes
0 answers
156 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 ...
0 votes
0 answers
39 views

After adding root volume CPU utilization is continously full

My fdisk /dev/root occupies full space without any reason.
2 votes
0 answers
983 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 ) - ...
0 votes
1 answer
682 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 ...
-1 votes
1 answer
142 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 ...
0 votes
0 answers
1k 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 ...
0 votes
1 answer
2k 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 &...
0 votes
0 answers
156 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 ...
0 votes
1 answer
120 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 ...
0 votes
0 answers
98 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 ?
0 votes
0 answers
9k 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/...
0 votes
0 answers
413 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 ...
2 votes
0 answers
69 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 ...
1 vote
0 answers
256 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 ...
0 votes
0 answers
298 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 ...
0 votes
0 answers
190 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 ...
0 votes
0 answers
170 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# ...
1 vote
1 answer
152 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, ...
0 votes
1 answer
217 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 ...

1
2 3 4 5
7