0

I was running out of space on my 172 Gb HDD, so I bought a 465 Gb replacement, and used the DD command in terminal to copy the old to the new. DD, of course, created a partition exactly 172 Gb in size, so I then booted off a Linux Mint Live CD and used Gparted to expand the 172 Gb partition to the entire disk, and it SEEMED to work fine... except that now, Ubuntu does not recognize that any changes have been made, and still thinks only 172 Gb is available. Gparted, however, DOES see the resized partition, so as far as it is concerned, nothing is wrong. This is a pure Ubuntu installation, no dual-boot. I have attached screenshots of Gparted and Disk Usage Analyser's mutually incompatible results. Has anyone seen this before? Any ideas?

![Gparted Results]/home/rex/Pictures/Screenshot from 2015-11-11 13:17:25Gparted Results.png ![Disk Analyser Results for boot]/home/rex/Pictures/Screenshot from 2015-11-11 13:18:09Disk Analyser Results for boot.png

![Disk Analyser Results for whole disk]/home/rex/Pictures/Screenshot from 2015-11-11 13:18:46Disk Usage Analyser Results for Whole Disk.png

output of sudo parted -l

Model: ATA WDC WD5000AAKX-0 (scsi) 
Disk /dev/sda: 500GB 
Sector size (logical/physical): 512B/512B 
Partition Table: msdos 

Number Start End Size Type File system Flags 
1 1049kB 256MB 255MB primary ext2 
2 257MB 500GB 500GB extended 
5 257MB 500GB 500GB logical lvm 

Model: Generic Flash Disk (scsi) 
Disk /dev/sdb: 15.9GB 
Sector size (logical/physical): 512B/512B 
Partition Table: msdos 
Number Start End Size Type File system Flags 
1 1184kB 15.9GB 15.9GB primary fat32
Charles Green
  • 21,339
  • Your pictures did not post into your question correctly. Can you upload the images to imgur, and add the links to the images to your question? – Charles Green Nov 11 '15 at 21:41
  • I would be absolutely delighted to... if I had the vaguest idea how! (LOL). – Rex Brocki Nov 11 '15 at 22:00
  • ...and I notice that somehow, my apology in advance for my hopeless ignorance at any social media, including these forums, got snipped off my original question... sorry. – Rex Brocki Nov 11 '15 at 22:02
  • I;ve never used it myself (blush). Let's go old school. please execute the command sudo parted -l and paste the output into your question – Charles Green Nov 11 '15 at 22:03
  • I would be absolutely delighted to add my images... if I had the vaguest idea how! (LOL). In addition, somehow my apology in advance did not make it through the posting process. The missing text read: "...and an apology: I am COMPLETELY ignorant of the niceties of social media, these forums included, so if I have asked the wrong type of question, wrong place, etc., please just tell me. I'm not malicious, just ignorant." – Rex Brocki Nov 11 '15 at 22:05
  • parted: invalid option -- '1' Usage: parted [-hlmsv] [-a] [DEVICE [COMMAND [PARAMETERS]]...] rex@rex-Precision-WorkStation-T3400:~$ – Rex Brocki Nov 11 '15 at 22:08
  • The parameter after parted is an 'L' (lowercase) to list the partitions of the disk – Charles Green Nov 11 '15 at 22:12
  • I'm pretty sure you meant this instead:
    Model: ATA WDC WD5000AAKX-0 (scsi) Disk /dev/sda: 500GB Sector size (logical/physical): 512B/512B Partition Table: msdos

    Number Start End Size Type File system Flags 1 1049kB 256MB 255MB primary ext2 2 257MB 500GB 500GB extended 5 257MB 500GB 500GB logical lvm

    Model: Generic Flash Disk (scsi) Disk /dev/sdb: 15.9GB Sector size (logical/physical): 512B/512B Partition Table: msdos

    Number Start End Size Type File system Flags 1 1184kB 15.9GB 15.9GB primary fat32

    – Rex Brocki Nov 11 '15 at 22:12
  • This answer creates a neat little program to upload images to imgur. I am not sure how long they remain there. – Charles Green Nov 11 '15 at 22:13
  • Here is the rest: lba

    Model: Linux device-mapper (crypt) (dm) Disk /dev/mapper/cryptswap1: 1325MB Sector size (logical/physical): 512B/512B Partition Table: loop

    Number Start End Size File system Flags 1 0.00B 1325MB 1325MB linux-swap(v1)

    Error: /dev/mapper/freegeek-swap_1: unrecognised disk label

    Model: Linux device-mapper (linear) (dm) Disk /dev/mapper/freegeek-root: 158GB Sector size (logical/physical): 512B/512B Partition Table: loop

    Number Start End Size File system Flags 1 0.00B 158GB 158GB ext4

    – Rex Brocki Nov 11 '15 at 22:14
  • It was I who truncated the social media part of your question - we are all a little new here. I see that your disk /dev/sda seems to have two partitions using the same space, and you are using lvm. I'm not familiar with lvm, so I'd better bow out of the discussion... – Charles Green Nov 11 '15 at 22:21
  • Update: I tried to download Logical Volume Management... and there's not enough room on my disk! – Rex Brocki Nov 12 '15 at 02:20

1 Answers1

0

For the record, I finally solved it: Logical Volume Manager (LVM) was having an argument with Gparted (Gparted thought there was now only one large partition after expanding /root to fill the whole drive, LVM didn't recognize the change Gparted had made). I went into LVM, and, closing my eyes tight and believing hard in fairies, told LVM to "Edit the Properties" of the "unused space" to match what Gparted had done, and it worked! I now have access to the whole drive. I hope this helps somebody else in the same mess.