[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Shrinking encrypted LVM partition



Aaron Toponce <aaron.toponce@gmail.com> writes:
>     6) Shrink the partition of /dev/sda5 using fdisk(8) or parted(8)

I've run into trouble at this step: when I try to resize the partition
with parted, it complains that it "could not detect file system," and
refuses to do touch the disk.  fdisk does not seem to be able to resize
partitions, so I tried cfdisk, which quit as soon as I ran it on
/dev/sda1 with the "FATAL ERROR: Bad primary partition 1: Partition ends
in the final partial cylinder.

I have not touched the partition table and can still boot into my
system, so the disk appears to be just fine, and the partition table was
set up by the Debian (squeeze) installer and has not been touched since,
so I don't know what cfdisk is on about.

Here's the partition table of sda...
# fdisk -cu /dev/sda

Command (m for help): p

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0002f08e

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      499711      248832   83  Linux
/dev/sda2          501758   625141759   312320001    5  Extended
/dev/sda5          501760   625141759   312320000   83  Linux

How should I proceed from here?

--Aidan


Reply to: