I just upgraded from ~10.10 (it was stuck, un-upgradeable) to 12.04 by installing over the top of the existing installation.
The home folder and desktop files all seem to still be present, as expected, but the /var/www directory is gone!
A file system search doesn't turn anything up, looking for "www".
Apache doesn't seem to be installed anymore either.
Does the installer really delete the entire folder?
Output of fdisk -l
:
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 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: 0x00032a24
Device Boot Start End Blocks Id System
/dev/sda1 * 63 964622924 482311431 83 Linux
/dev/sda2 964622925 976768064 6072570 5 Extended
/dev/sda5 964622988 976768064 6072538+ 82 Linux swap / Solaris
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 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: 0x34e85825
Device Boot Start End Blocks Id System
/dev/sdb1 63 1953520064 976760001 fd Linux raid autodetect
Disk /dev/sdg: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 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: 0x0b366f5b
Device Boot Start End Blocks Id System
/dev/sdg1 63 1953520064 976760001 fd Linux raid autodetect
Output of df -h
: (temporarily mounted in the 12.04 live cd)
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 457G 77G 358G 18% /media/500GB
Using some of the file system tools (debugfs, extundelete, ext2grep) I can see the deleted www directory. However, it looks like that deletion combined with the operating system upgrade ruined any chances of recovering the directory.
Sure, installing over an existing installation will preserve your home folder and settings, but everything outside it will be wiped out and installed anew. That's the difference between installation and upgrade. After install you'll have a default set of applications with default settings, that's why Apache is not installed.
In fact, even preserving the home folder is a relatively new feature of Ubuntu installer...
No comments:
Post a Comment