Maneer
December 20th, 2015, 10:42 PM
Someone brought be an old Lenovo 32 bit laptop running Lubuntu 12.10 and asked me to update it. Something went wrong with:
$ sudo apt-get update && sudo do-release-upgrade -d
I am left with a system which fails to boot. No problem, I backed up my user directory from a live USB and I can install Lubuntu 15.10 in the existing Gnu/Linux partition - right?
Unfortunately, the existing partition structure seems to be invisible to the 15.10 installer and to the latest version of Gparted, which reports the entire hard disk as a single Fat16 partition (see image attached).
The same partitions which are invisible to Gparted appear as normal in the Places sidebar, of the PCManFM file manager. They can be mounted and used, seemingly without issue. Below, is the shell output of fdisk, which can see the partition structure and parted, which cannot:
$ sudo fdisk -lu
Disk /dev/sda: 74.5 GiB, 80026361856 bytes, 156301488 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
Disklabel type: dos
Disk identifier: 0x0000000a
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 63 20482874 20482812 9.8G c W95 FAT32 (LBA)
/dev/sda2 20482997 146880511 126397515 60.3G f W95 Ext'd (LBA)
/dev/sda3 146882295 156296384 9414090 4.5G 12 Compaq diagnostics
/dev/sda5 20482999 122881184 102398186 48.8G 6 FAT16
/dev/sda6 122882048 145854463 22972416 11G 83 Linux
/dev/sda7 145856512 146880511 1024000 500M 82 Linux swap / Solaris
Partition table entries are not in disk order.
$ sudo parted -l
Model: ATA TOSHIBA MK8034GS (scsi)
Disk /dev/sda: 80.0GB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Disk Flags:
Number Start End Size File system Flags
1 0.00B 80.0GB 80.0GB fat16
NB: This issue is not unique to Lubuntu. I have had similar experience on a machine upgraded from Debian Wheezy to Debian Jessie. The updated version of Gparted on that machine also behaves as described above, where the Wheezy version of Gparted could see the same partitions perfectly.
$ sudo apt-get update && sudo do-release-upgrade -d
I am left with a system which fails to boot. No problem, I backed up my user directory from a live USB and I can install Lubuntu 15.10 in the existing Gnu/Linux partition - right?
Unfortunately, the existing partition structure seems to be invisible to the 15.10 installer and to the latest version of Gparted, which reports the entire hard disk as a single Fat16 partition (see image attached).
The same partitions which are invisible to Gparted appear as normal in the Places sidebar, of the PCManFM file manager. They can be mounted and used, seemingly without issue. Below, is the shell output of fdisk, which can see the partition structure and parted, which cannot:
$ sudo fdisk -lu
Disk /dev/sda: 74.5 GiB, 80026361856 bytes, 156301488 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
Disklabel type: dos
Disk identifier: 0x0000000a
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 63 20482874 20482812 9.8G c W95 FAT32 (LBA)
/dev/sda2 20482997 146880511 126397515 60.3G f W95 Ext'd (LBA)
/dev/sda3 146882295 156296384 9414090 4.5G 12 Compaq diagnostics
/dev/sda5 20482999 122881184 102398186 48.8G 6 FAT16
/dev/sda6 122882048 145854463 22972416 11G 83 Linux
/dev/sda7 145856512 146880511 1024000 500M 82 Linux swap / Solaris
Partition table entries are not in disk order.
$ sudo parted -l
Model: ATA TOSHIBA MK8034GS (scsi)
Disk /dev/sda: 80.0GB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Disk Flags:
Number Start End Size File system Flags
1 0.00B 80.0GB 80.0GB fat16
NB: This issue is not unique to Lubuntu. I have had similar experience on a machine upgraded from Debian Wheezy to Debian Jessie. The updated version of Gparted on that machine also behaves as described above, where the Wheezy version of Gparted could see the same partitions perfectly.