Questions tagged [fdisk]

fdisk (for "fixed disk") is a command-line utility that provides disk partitioning functions.

Filter by
Sorted by
Tagged with
0
votes
2answers
382 views

How to recover data after lvremove in centos 7.0?

I did a stupid thing by removing a Logic volume by issuing the below command. lvremove -f /dev/cl_dhcppc4/home However, immediately I restored the lvm from the backup file. vgcfgrestore --file /etc/...
0
votes
3answers
231 views

resize hard disk for live sistem ext4

I have an Ubuntu 16.10 virtual server, upon reinstall I got: root@ip140:~# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 5.5G 1.6G 3.7G 30% / fdisk -l Device Boot ...
0
votes
3answers
153 views

Partitioning woes after SD card upgrade

I'm trying to upgrade my Raspberry PI's SD card to a bigger one. I've seen and tried guides like this one: https://raspberrypi.stackexchange.com/questions/499/how-can-i-resize-my-root-partition My ...
0
votes
1answer
524 views

logical partitions overlap

I have two hard disks. An 80GB and 1TB. Everything works fine. I am running Linux debian 3.2.0-4-amd64 #1 SMP Debian 3.2.65-1+deb7u1 x86_64 GNU/Linux Today I ran sudo /sbin/cfdisk and saw this: Then ...
0
votes
1answer
141 views

Clone disk of a running VM and run it on VirtualBox

I'm in the following situation: I need to "clone" the disks (sda, sdb) of a running CentOS VM over SSH (i did this step by following this guide) and deploy them on something like VirtualBox. I tried,...
0
votes
1answer
300 views

Restoring fdisk mistakes: New partitions & table

On a deabian 8.2 system I made a new LVM partition with fdisk and wanted to issue a pvcreate command, but was constantly being called and then made this horrible horrible mistake. Before the call I ...
0
votes
1answer
55 views

Can't increase partition size due to start

I saw today that my computer didn't want to boot because my /dev/sdb2 (/ partition) was totally full. That was a big mistake from me, I'm a beginner and I've set the size at 10G, which isn't enough. ...
0
votes
1answer
428 views

Volume size larger using fdisk, but not df [duplicate]

I'm trying to increase disk space available on /dev/mapper/centos-root, however, I'm not sure why df -h is not reporting increased size. $ sudo fdisk -l Disk /dev/sda: 68.7 GB, 68719476736 bytes, ...
0
votes
2answers
640 views

Debian Linux root disk getting full, need to transfer /var folder to another disk

One of the disks got out of space, however other disk is nearly empty. Need suggestions how to transfer biggest folder(/var) to the other disk and mount at /var. For now /var folder was in / partition....
0
votes
1answer
74 views

Innacurate lv_root size after extend

I wanted to increase the disk size of 2 VMs from 20GB to 100GB. I followed the normal procedure, increased vmdk size, fdisk to create a new partition with the free space (sda3), vgextend, then ...
0
votes
0answers
871 views

Debian..Can't format and mount external HDD

I have been trying to format my 640GB external Hard Drive in command-line and can't seem to get it working. I have done the following in order: sudo fdisk /dev/sda (Deleted any partitions, created ...
0
votes
0answers
265 views

Live shrinking of root partition has failed on Linux Mint

Steps taken: *Used fdisk to delete the existing root partition and created a new root partition (PV) starting on the same block *Added the 'a' flag using fdisk to make it bootable as /boot is under ...
0
votes
0answers
914 views

External hard drive can't be mounted on linux(windows says: Format it)

I have a hard disk and I can't mount it on linux. These are information may be helpful: # fdisk -l Device Boot Start End Blocks Id System /dev/sdb1 * 63 1250258624 ...
0
votes
0answers
2k views

unable to format usb drive

I'm trying to read an usb drive that until a few day ago seemed to be perfectly working. Today windows started to be unable to access or modify its content. Trying to reformat it with linux (arch ...
0
votes
2answers
855 views

change boot order

I have 2 partitions sda1 XP and sda2 CENTOS. I have reinstalled grub on /dev/sda but on rebooting, I experienced: error : 22 no such parition for Centos; while Windows boots charmingly on the other. ...
0
votes
1answer
2k views

How to check integrity to HDD with UDF format

I'm having problem with a USB external drive, which seem to be formatted with UDF and was being used for MAC and Windows (or at least that is what told). When I attached the HDD to my Linux system ...
0
votes
1answer
568 views

how to resize or growing partition root?

This is my current disk partition configuration fd0 2:0 1 4K 0 disk sda 8:0 0 150G 0 disk ├─sda1 8:1 0 200M 0 part /boot ├─sda2 8:2 0 3.9G 0 part ├─sda3 8:3 ...
-1
votes
4answers
121 views

Get the size of my disks on several system [duplicate]

Edit: I have several machine and I need to get the total storage size of the main disk. The problem I have is that on some machine my disk have the name /dev/sda or /dev/md126p3. How could I reliably ...
-1
votes
1answer
298 views

Partitioning with MS-DOS type

I need to partition an external HD, with FAT32. Once upon a time, fdisk listed its possible partition types in a different, clearer way. The nearest entries now seem to be 10 Microsoft reserved ...
-1
votes
2answers
77 views

Linux + how to capture the OS disk device [closed]

we want to capture the disk device that belong to the OS ( Linux ) since each linux machine have list of disks that are not the OS , we want to capture the disk that belong to the OS so by fdisk ...
-1
votes
1answer
65 views

Understanding exec

I need to understand the following script sequence. $command .= "n\n\n\n\nt\n7\nc\nw\n"; exec("echo -e \"{$command}\" | /sbin/fdisk {$kernelDevice}"); I can't figure out ...
-1
votes
1answer
17 views

creating space for data with fdisk

I am running a debian server on Windows in Hyper-V, I have expanded the Hyper-V partition to 2T, now I would like to expand the Debian partition to use that new space. The new space will be for videos,...
-1
votes
3answers
435 views

How to use free space for partition

[root@shine home]# fdisk -l /dev/sda Disk /dev/sda: 4000.8 GB, 4000787030016 bytes 255 heads, 63 sectors/track, 486401 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/...
-1
votes
1answer
324 views

Fdisk expert mode not available

It seems that the eXpert mode in fdisk is no longer available. When I try sudo fdisk -x, terminal returns "fdisk: invalid option -- 'x'" I have fdisk from util-linux 2.24.1 Is this a "feature"?
-2
votes
2answers
58 views

how to find the size of the disk that OS is installed on

how to verify the disk size ( the disk that OS is installed on ) we have redhat 7.2 I will give example # disk_os_size=` lsblk | grep sda ` sda 8:0 0 150G 0 disk ├─sda1 ...
-2
votes
2answers
748 views

Linux “CentOS 7” - General Fdisk Question

I have a CentOS 7 Virtual Machine (VM). I add a new disk to a VM with VMware workstation. Then on the guest CentOS VM, I run the fdisk command, to start adding the partitions that I want. After I ...
-2
votes
2answers
547 views

Resizing root partition in azure CentOS VM

I have a 128 GB SSD Managed disk in Linux - CentOS 7.3. The root partition now shows 30 GB approx and is mounted under "/", ie root. lsblk shows the remaining - So we are good for now. My requirement ...
-3
votes
1answer
75 views

Linux machine disk space

I have already googled and found the following post Linux disk space In there, i use the following df -hT /home | awk 'FNR == 2 {print $3 "B"}' to get the full size of my linux machine disk. ...