LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 03-26-2013, 12:43 AM   #1
SubUbi
LQ Newbie
 
Registered: Mar 2013
Posts: 6

Rep: Reputation: Disabled
Question 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?
 
Old 03-26-2013, 10:25 AM   #2
bmrtin
LQ Newbie
 
Registered: Jan 2004
Location: georga
Distribution: fendora
Posts: 11

Rep: Reputation: 4
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
 
Old 03-26-2013, 06:51 PM   #3
SubUbi
LQ Newbie
 
Registered: Mar 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
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
 
Old 03-26-2013, 11:20 PM   #4
SubUbi
LQ Newbie
 
Registered: Mar 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
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
 
Old 03-26-2013, 11:24 PM   #5
SubUbi
LQ Newbie
 
Registered: Mar 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
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
 
Old 03-26-2013, 11:29 PM   #6
SubUbi
LQ Newbie
 
Registered: Mar 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
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>?
 
Old 04-03-2013, 11:53 PM   #7
SubUbi
LQ Newbie
 
Registered: Mar 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
Any thoughts?
 
Old 04-04-2013, 12:06 AM   #8
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,377

Rep: Reputation: 1173Reputation: 1173Reputation: 1173Reputation: 1173Reputation: 1173Reputation: 1173Reputation: 1173Reputation: 1173Reputation: 1173
Hi,
Quote:
Originally Posted by SubUbi View Post
Any thoughts?
Reinstall and restore your data from backups.

Evo2.
 
Old 04-05-2013, 04:02 AM   #9
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 287Reputation: 287Reputation: 287
Quote:
Originally Posted by SubUbi View Post
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.

Last edited by tommcd; 04-05-2013 at 04:05 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it better on dual boot,trible boot,quad boot rather than virtual machines? pleasehelpme Linux - Newbie 3 12-15-2007 12:04 PM
Boot Camp (fixing boot loaders, learning your way around boot & chainloaders) Siljrath Linux - General 7 05-29-2007 11:22 AM
When I boot my comp. (dual boot sys-Suse 10.1 & Win XP) the first boot stalls. philip niedermeyer Linux - Desktop 5 11-13-2006 06:04 PM
Kind souls: help getting Mandriva install 2 boot? edit boot.ini/grub /boot device or NoMoreReinstallMS Linux - Newbie 1 08-09-2006 04:34 AM
GRUB: How to boot WinXP (NTLDR, NTDETECT.COM & BOOT.INI) from boot partition (EXT2) ? Rayen16 Linux - Software 1 05-25-2006 12:09 PM


All times are GMT -5. The time now is 09:30 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration