LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Can not boot (https://www.linuxquestions.org/questions/ubuntu-63/can-not-boot-4175455662/)

SubUbi 03-26-2013 12:43 AM

Can not boot
 
I resized my non boot partition (sda2&sda5) and now cannot boot into Ubuntu. Am I out of luck or is there a way to recover?

bmrtin 03-26-2013 10:25 AM

Do you know the process or guide that you followed to re-size. Did it complete without issues? I would try and boot a Live CD and then try to mount the systems and see if you can. Also with the Live CD try an fsck on the partitions:

fsck /dev/sda2
fsck /dev/sda5

SubUbi 03-26-2013 06:51 PM

I used lvreduce and accidentally took the 370 gb partition to 10 gb
Then used lvresize to change it to 350. That is when I realized I might of really did myself in. I wanted to give my boot volume more space as it was out.

I will try those commands and update you with the results

SubUbi 03-26-2013 11:20 PM

on fsck /dev/sda2
fsck.ext2: Attempt to read block from filesystem resulted in short read while trying to open /dev/sda2 | Could this be a zero-length partition?

fsck /dev/sda5
fsck: fsck.LVM2_member: not found
fsck: error 2 while executing fsck.LVM2_member for /dev/sda5

SubUbi 03-26-2013 11:24 PM

also

=====================>>> fsarchiver probe simple <<<=====================
[======DISK======] [=============NAME==============] [====SIZE====] [MAJ] [MIN]
[sda ] [WDC WD4000AAKS-0 ] [ 372.61 GB] [ 8] [ 0]
[sr0 ] [CD-RW TS-H292B ] [ 389.79 MB] [ 11] [ 0]

[=====DEVICE=====] [==FILESYS==] [======LABEL======] [====SIZE====] [MAJ] [MIN]
[loop0 ] [squashfs ] [<unknown> ] [ 294.93 MB] [ 7] [ 0]
[sda1 ] [ext2 ] [<unknown> ] [ 243.00 MB] [ 8] [ 1]
[sda5 ] [LVM2_member] [<unknown> ] [ 372.37 GB] [ 8] [ 5]
[dm-0 ] [ext4 ] [<unknown> ] [ 300.00 GB] [253] [ 0]
[dm-1 ] [swap ] [<unknown> ] [ 1020.00 MB] [253] [ 1]

result while running rescue cd

SubUbi 03-26-2013 11:29 PM

root@sysresccd /root % fsck /dev/mapper/ubuntu-root
fsck from util-linux 2.22.2
e2fsck 1.42.7 (21-Jan-2013)
The filesystem size (according to the superblock) is 97345536 blocks
The physical size of the device is 78643200 blocks
Either the superblock or the partition table is likely to be corrupt!
Abort<y>?

SubUbi 04-03-2013 11:53 PM

Any thoughts?

evo2 04-04-2013 12:06 AM

Hi,
Quote:

Originally Posted by SubUbi (Post 4924759)
Any thoughts?

Reinstall and restore your data from backups.

Evo2.

tommcd 04-05-2013 04:02 AM

Quote:

Originally Posted by SubUbi (Post 4919549)
I used lvreduce and accidentally took the 370 gb partition to 10 gb
Then used lvresize to change it to 350. ...

According to the man page for lvresize:
Quote:

Be careful when reducing a logical volume's size, because data in the reduced part is lost!!! You should therefore ensure that any filesystem on the volume is shrunk first so that the extents that are to be removed are not in use.
And from the man page for lvreduce:
Quote:

Be careful when reducing a logical volume's size, because data in the reduced part is lost!!!
You should therefore ensure that any filesystem on the volume is resized before running lvreduce so that the extents that are to be removed are not in use.
Unfortunately, it looks like your best option is to back up your data and reinstall as evo2 suggested.

In the future, you may want to consider using a Parted Magic live CD for partitioning tasks: http://partedmagic.com/
Parted Magic is easy to use and it is frequently updated and has always worked flawlessly for me.


All times are GMT -5. The time now is 06:28 PM.