1
vote
0answers
33 views

shrink live mdadm partition with LVM

My goal is to shrink an mdadm RAID 1 partition while the system is running. I have to disks sda and sdb, which build my two RAID partitions md0 and md1. On md1 I use LVM, md0 is the /boot partition. I ...
3
votes
1answer
50 views

Why does fdisk have a discrepancy in translating units between cylinder and sectors?

We were re-partitioning a virtual disk to increase the size of an LVM's physical volume. This is how we initially performed this: $ fdisk /dev/sdb # delete partition fdisk> d ? 1 # create new ...
0
votes
1answer
377 views

sfdisk given size exceeds max allowable

Hello i have a failed driver in a raid so i had to replace it with a new hard disk. The problem is that although both hard disk are Seagate 1TB they differ slightly in size # sfdisk -s /dev/sda: ...
3
votes
1answer
397 views

What is the difference between the Linux and Linux LVM partition type?

Fdisk shows multiple partition types. What is the difference between choosing 83) Linux and 8e) Linux LVM? Choosing 83) Linux also works fine for using LVM, even creating a physical volume on ...
0
votes
2answers
497 views

Ubuntu: How to find unallocated partition/free space?

I've a legacy dedicated server with Ubuntu onboard (console mode only). Based on docs (prices etc.) I see that server must have 250+ GB, but I see significantly less: $ df -h Filesystem ...
0
votes
0answers
291 views

Ubuntu Server - Screwed up partition table?

So I think I've screwed my Ubuntu server after using PING (it's a tool like Norton Ghost) to try and create a backup image. Basically the system got to an unbootable state just with the grub ...
0
votes
2answers
176 views

how to mount additional space to existing partition?

This is the original output of fdisk -l: Disk /dev/sda: 21.4 GB, 21474836480 bytes 255 heads, 63 sectors/track, 2610 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot ...
1
vote
2answers
921 views

e2label Bad magic number in super-block?

This is the output of fdisk: [root@ns1 ~]# fdisk -l Disk /dev/sda: 21.4 GB, 21474836480 bytes 255 heads, 63 sectors/track, 2610 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device ...
2
votes
1answer
777 views

Fedora 17 - Dropping into debug shell after attempted partitioning

So I tried creating a new partition on Fedora 17 using fdisk as follows: Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder ...
1
vote
1answer
102 views

fdisk -l only displays boot partition

I have a SAN, and it's able to read and write to the 50TB RAID just fine, but when I run fdisk -l it only lists the boot partition of the SAN server, and doesn't display anything about the other ...
4
votes
2answers
1k views

Repurposed disk - Linux blkid command returns incorrect information

I'm working with an SSD drive removed from a VMWare ESXi installation. I'm trying to reuse the disk in an existing Linux installation (CentOS 6.2). The drive sits behind an HP Smart Array P410 RAID ...
2
votes
1answer
2k views

How can I change a partition mount to var and still boot up?

My first question here on server fault. In my haste, I set up a local server with Centos 6.2 and let the Centos installer handle the partitions. Big mistake, I know. Anyway, the only problem I have ...
1
vote
2answers
809 views

Partition size inconsistency after dd clone

We have recently upgraded a system HDD - it was 160GB, now 2TB. We upgraded as we were running low on space, mainly on /usr, and also on /home. I prepared the new drive with a Live CD and GParted ...
6
votes
1answer
371 views

Non-interactively create one partition with all available disk size

This is disgusting to me, but it works: echo -e "n\np\n1\n\n\nt\nc\na\n1\nw" | fdisk /dev/sdb I would like to know a more prudent or elegant way to accomplish this. The entire boot record and ...
1
vote
2answers
559 views

Is the fdisk partition type important when using lvm

I have inherited a few LVM volumes and I noticed that fdisk reports the disks that make up the volume group as partition type 83 (Linux) and not 8e (Linux LVM). Is this a problem and how important ...
1
vote
1answer
760 views

Whats wrong with my partition table?

I'm a bit lost here. I got my trusty old external 500Gb USB drive but it refuse to mount: I think my partition table is invalid: sudo fdisk -lu /dev/sdb Disk /dev/sdb: 500.1 GB, 500107862016 bytes ...
2
votes
3answers
1k views

Recover partition table for lvm

I managed to run fdisk on the wrong disk. However I was able to save a log of the terminal session. Fdisk before the accident: ~$ sudo fdisk -l /dev/sda Disk /dev/sda: 320.1 GB, 320072933376 bytes ...
0
votes
1answer
432 views

sfdisk - partition creation problem

I'm trying to create disk image with 2 partitions: First partition: 1Mb for boot and second partition of the maximum capacity dd if=/dev/zero of=flash.img bs=1M count=10 /sbin/sfdisk flash.img ...
0
votes
3answers
110 views

Paritition an LVM LV

I have an LVM logical volume (LV) and would like to create partitions within this LV to provide an ext3 partition and a swap partition. This LV would then get mounted as a disk to a virtual machine ...
0
votes
1answer
165 views

Partition Centos | Raid

I have 4 HDD, the system is installed on /dev/sda2 # df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 884G 2.1G 836G 1% / /dev/sda3 2.0G 159M 1.7G ...
4
votes
4answers
5k views

Deleting All Partitions From the Command Line

How do you delete all partitions on a device from the command line on Linux (specifically Ubuntu)? I tried looking at fdisk, but it presents an interactive prompt. I'm looking for a single command, ...
1
vote
3answers
195 views

One all-enclosing partition or just use the entire device?

I received a 1TB hard drive that had a single 1TB partition. Because we do not need partitions on the drive (and I disliked using the path /dev/sdc1 instead of /dev/sdc), I went to fdisk, deleted the ...
0
votes
1answer
140 views

Linux partitioning problem

I am using cfdisk to repartition my hdd as from OS install I only got 1 big partition a swap. I wanted to resize the big partition to 1 GB /boot and use the rest of the space for an extended ...
29
votes
7answers
19k views

Reread partition table without rebooting?

Sometimes, when resizing or otherwise mucking about with partitions on a disk, cfdisk will say: Wrote partition table, but re-read table failed. Reboot to update table. (This also happens with ...
5
votes
2answers
10k views

How can I set the disk partition alignment using linux tools?

After reading Disk Partition Alignment Best Practices for SQL Server, I just want to give those advices a try, but on my linux test server. What are the required parameters in order to set the ...