Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

So I think I've screwed my Ubuntu server after using PING (it's a tool like Norton Ghost) to try and create a backup image.

Basically the system got to an unbootable state just with the grub rescue> prompt. After much messing around with a Live CD and testdisk I managed to get the system to boot again (yay).

Buuuut, when I boot now, the MOTD tells me that the system is using 90% of diskspace. This isn't true, I don't think.

Welcome to Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-35-generic x86_64)

* Documentation:  https://help.ubuntu.com/

System information as of Sat Jan 19 20:35:50 GMT 2013

System load:  0.0                Processes:           112
Usage of /:   1.4% of 223.21GB   Users logged in:     1
Memory usage: 32%                IP address for eth0: 10.0.0.250
Swap usage:   0%

=> /boot is using 91.7% of 60MB

The system's got the following config:

/dev/sda  - 250GB Hard drive that came with the microserver containing Ubuntu server and it's packages
/dev/sdb  - 1TB data volume
/dev/sdc  - 1TB data volume

The result of fdisk reports a load of things that are beyond my linux knowledge:

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 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: 0x000a2883

Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      135781       66867   83  Linux
/dev/sda2          501760   488396799   243947520   8e  Linux LVM

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
81 heads, 63 sectors/track, 382818 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: 0xef459d3e

Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048  1953525167   976761560    5  Extended
/dev/sdb5            4096  1953525167   976760536   83  Linux

Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
81 heads, 63 sectors/track, 382818 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: 0xf7a74b79

Device Boot      Start         End      Blocks   Id  System
/dev/sdc1            2048  1953525167   976761560    5  Extended
/dev/sdc5            4096  1953525167   976760536   83  Linux

Disk /dev/mapper/dumbo-root: 243.5 GB, 243491930112 bytes
255 heads, 63 sectors/track, 29602 cylinders, total 475570176 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: 0x00000000

Disk /dev/mapper/dumbo-root doesn't contain a valid partition table

Disk /dev/mapper/dumbo-swap_1: 6304 MB, 6304038912 bytes
255 heads, 63 sectors/track, 766 cylinders, total 12312576 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: 0x00000000

Disk /dev/mapper/dumbo-swap_1 doesn't contain a valid partition table

My understanding is that I've not got swap as such, which is dangerous, and I've somehow ended up with LVM.

I want to restore the system to a state with a simple partition structure, no LVM, and I'd like to use Clonezilla, or something to get a backup image as I dont have the time to reinstall the server again.

I've been looking at the Gparted Live CD to re-partition the drive, but I'm not confident I can do this without making the system unbootable again or loosing any data.

Any help greatly appreciated.

share|improve this question
    
I've just got the fdisk off another healthy Ubuntu install on an almost identical Microserver, and it's something like this: /dev/sda1 * 2048 484466687 242232320 83 Linux /dev/sda2 484468734 488396799 1964033 5 Extended /dev/sda5 484468736 488396799 1964032 82 Linux swap / Solaris --- this is what I guess I'm trying to achieve. –  Dan Jan 19 '13 at 21:08
    
1  
Dan, Bryan's comment above is a terse way of encouraging you to review your previous questions which have answers - some of which have lot of them - and accept the best answer in each case. It's courteous to do so, and drives the SF reputation system both for you and the author of the accepted answer; it may also encourage more answers to this question, which I hope you do get fixed. –  MadHatter Jan 21 '13 at 9:49
    
Noted, and I believe fixed. Fail on my part. Thanks for giving me a little prod :) –  Dan Jan 21 '13 at 19:42
    
So I've since resized the /boot partition which has sorted the disk space warning, but it looks like I've ended up with LVM which complicates things a bit when it comes to repairing stuff. I'm thinking of dd'ing the contents of /root off the LVM, overwriting it back to /dev/sda2 and then creating /dev/sda5 for swap. I'd like to know if its actually this simple though. –  Dan Jan 21 '13 at 19:47

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.