Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-16-2008, 04:13 PM   #1
Registered: Jan 2006
Location: USA
Distribution: Ubuntu - Xenial Xerus
Posts: 124

Rep: Reputation: 15
By cancelling a GParted partitioning operation, I've lost my OS

Using GParted to try to make a separate partition for /home, I got to the point where GParted put a small "window" on the screen with a bar, moving back and forth, back and forth. It said something like:


/dev/sda1 to the left and shrink to 40 gig.

after 20 minutes or so of this, I thought the process stuck, so I clicked the cancel button. Gparted shut down fine, but when I tried to reboot from the disk, instead of the LiveCD that gparted ran from (so the drive was unmounted), I find the OS is blown up.

Any ideas?
Old 04-16-2008, 04:46 PM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,898

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
If gparted never got to the point of writing the new partition table (you would have been given a message to that effect), then it may be possible to resolve this situation.

Can you provide a bit more information (boot error messages, etc) that just
I find the OS is blown up.
Old 04-16-2008, 05:08 PM   #3
Registered: Jan 2006
Location: USA
Distribution: Ubuntu - Xenial Xerus
Posts: 124

Original Poster
Rep: Reputation: 15
At boot, the typical ubuntu screen comes up a while, then fsck, then more than 10 minutes of words flashing by at the speed of light.

GParted wrote some file, I post it below:

GParted 0.3.3

Libparted 1.7.1

Move /dev/sda1 to the left and shrink it from 295.20 GiB to 39.56 GiB 22:46 ( ERROR )

calibrate /dev/sda1 00:00 ( SUCCES )

path: /dev/sda1
start: 63
end: 619080839
size: 619080777 (295.20 GiB)
calculate new size and position of /dev/sda1 00:00 ( SUCCES )

requested start: 0
requested end: 82959659
requested size: 82959660 (39.56 GiB)
new start: 63
new end: 82959659
new size: 82959597 (39.56 GiB)
check filesystem on /dev/sda1 for errors and (if possible) fix them 06:46 ( SUCCES )

e2fsck -f -y -v /dev/sda1

Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information

307868 inodes used (0.80%)
12879 non-contiguous inodes (4.2%)
# of inodes with ind/dind/tind blocks: 30516/1525/0
9984240 blocks used (12.90%)
0 bad blocks
1 large file

264041 regular files
24286 directories
132 character device files
26 block device files
2 fifos
503 links
19363 symbolic links (17642 fast symbolic links)
9 sockets
308362 files
e2fsck 1.40.2 (12-Jul-2007)
shrink filesystem ( EXECUTING )

resize2fs /dev/sda1 41479798K


Create Primary Partition #2 (ext3, 255.64 GiB) on /dev/sda

Old 04-16-2008, 05:29 PM   #4
Registered: Aug 2003
Distribution: Fedora 22, Debian 8, Centos 6/7 for servers
Posts: 101

Rep: Reputation: 16
try find a program called 'testdisk' is GPL software runs on Linux and Win32 - it can scan and find you old partition structure and 'hopefully' put it back prior to using Gparted condition. has worked for me when I did the same thing.

PS dont rush partition moving / shrinking etc especially when shrinking ext3 volumes etc

Old 04-16-2008, 07:08 PM   #5
LQ Guru
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
If I could just add a touch more info here, for future reference for the OP:

It is *generally* not recommended to move a partition; particularly the START of a partition. Stretching bigger (to the right) never seems to be an issue, but trouble *can* occur when totally moving a partition.
I suggest instead, when possible, you MAKE a fresh new partition in the area where you otherwise would have MOVED one to, and then COPY the stuff from the old partition TO the new one.
This way, you can be assured you won't bork anything during the move, AND if something IS wrong with the new partition, at least you still have the old one as backup.
When all is proven to be OK, you can delete the old partition.



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
repartitioning assistance - making one partitioning from two with gparted Nishtya Linux - Newbie 3 02-24-2008 07:54 PM
Gparted - power failure - lost XP? 3lowdown Linux - Newbie 18 10-28-2007 07:19 AM
LXer: Partitioning with GParted LXer Syndicated Linux News 0 08-07-2006 12:03 PM
I lost my Partitions using GParted! MorPhiend Linux - Newbie 1 11-23-2005 02:11 PM
Lost operation of MS mouse after up2date s_shrum Linux - Hardware 1 02-29-2004 04:57 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:40 AM.

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