I have a 165 GB IDE drive (/dev/hda) in a x86_64 Debian 4 machine, of which actually only about 26 GB is used by files. Some weeks ago I had used parted and tried to make room for another partition by shrinking the primary partition from 159 GB to 90 GB, but during the process parted unfortunately reported errors and quit (sorry, I don't remember what the error message was). I was very glad that the data was not damaged. But since that failed attempt the command "df -h" says that the partition size is 90 GB. OTOH the other tools (parted and fdisk) continue saying 159 GB. I'm no longer interessted in making another partition, instead I would like to get the full capacity back. So, to make a long story short, my question is: How do I reclaim the "lost space" :-), so also "df -h" sees it? I would prefer not reformatting it :-)
########################################## comp112:/home/admin2# uname -a Linux comp112.local 2.6.26-1-amd64 #1 SMP Sat Nov 8 18:25:23 UTC 2008 x86_64 GNU/Linux ########################################## comp112:/home/admin2# parted /dev/hda GNU Parted 1.8.8 Using /dev/hda Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) print all Model: HDS722516VLAT80 (ide) Disk /dev/hda: 165GB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags 1 32.3kB 159GB 159GB primary ext3 boot 2 159GB 165GB 5404MB extended 5 159GB 165GB 5404MB logical linux-swap (parted) quit ########################################## comp112:/home/admin2# fdisk /dev/hda The number of cylinders for this disk is set to 20023. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Command (m for help): p Disk /dev/hda: 164.6 GB, 164696555520 bytes 255 heads, 63 sectors/track, 20023 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x0005e118 Device Boot Start End Blocks Id System /dev/hda1 * 1 19366 155557363+ 83 Linux /dev/hda2 19367 20023 5277352+ 5 Extended /dev/hda5 19367 20023 5277321 82 Linux swap / Solaris Command (m for help): q ########################################## comp112:/home/admin2# df -h Filesystem Size Used Avail Use% Mounted on /dev/hda1 90G 26G 60G 30% / tmpfs 881M 0 881M 0% /lib/init/rw udev 10M 80K 10M 1% /dev tmpfs 881M 0 881M 0% /dev/shm comp112:/home/admin2# ########################################## _______________________________________________ bug-parted mailing list bug-parted@gnu.org http://lists.gnu.org/mailman/listinfo/bug-parted