You are not logged in.

#1 2013-01-05 16:23:02

charlag
Member
Registered: 2013-01-05
Posts: 10

Can't shrink partition

Hello, I'm Ubuntu user. I want to make two partitions from one for dualbooting Ubuntu/Arch.
So here is original filesystem:
Original.Gparted
And I want it look like this:
Modified.Gparted
As you may see, I booted from livecd and use GParted. When I'm trying to appy changes, it works some time and then fail with message:

resize2fs: Attempt to read block from filesystem resulted in short read while trying to resize /dev/sda1
> Please run 'e2fsck -fy /dev/sda1' to fix the filesystem
> after the aborted resize operation.

Any ideas?

Last edited by charlag (2013-01-05 16:43:01)

Offline

#2 2013-01-05 16:45:48

null
Member
Registered: 2009-05-06
Posts: 398

Re: Can't shrink partition

My idea is to do, what the program tells you to...

resize2fs: Attempt to read block from filesystem resulted in short read while trying to resize /dev/sda1
> Please run 'e2fsck -fy /dev/sda1' to fix the filesystem
> after the aborted resize operation.

Last edited by null (2013-01-05 16:47:25)

Offline

#3 2013-01-05 16:47:08

charlag
Member
Registered: 2013-01-05
Posts: 10

Re: Can't shrink partition

null wrote:

My idea is to do, what the program tells you to...

resize2fs: Attempt to read block from filesystem resulted in short read while trying to resize /dev/sda1
> Please run 'e2fsck -fy /dev/sda1' to fix the filesystem
> after the aborted resize operation.

I tried, it does not help
UPD: it says:

/dev/sda1: 301319/30277632 files (0.4% non-contiguous), 21492778/121104896 blocks

Last edited by charlag (2013-01-05 16:50:09)

Offline

#4 2013-01-05 17:32:35

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Can't shrink partition

Try this:

1. Delete the extended partition (and the subsequent swap), so that you only have one partition on the whole drive.
2. Click "Apply".
3. Resize the first partition.
4. Click "Apply".
5. Create a new ext4 partition and a new swap*. Don't bother with extended partitions.


* only if you want to, because with 2 GB+ RAM you don't even need it. For hibernation and such, you can always use a swap file.

Last edited by DSpider (2013-01-05 17:34:11)


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#5 2013-01-06 02:30:09

charlag
Member
Registered: 2013-01-05
Posts: 10

Re: Can't shrink partition

Problem is that I probably need swap for hybernaton. If i remake it, would Ubuntu use new swap?(for example, names of /dev/sdx will save?)

Offline

#6 2013-01-06 10:27:45

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Can't shrink partition

If you create the swap partition in an extended partition, I think it will keep the /dev/sda5 name. But you could also just as easily edit Ubuntu's fstab to reflect /dev/sda3 (i.e. the swap partition as a primary partition). It's not that big of a deal.


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#7 2013-01-06 15:15:16

charlag
Member
Registered: 2013-01-05
Posts: 10

Re: Can't shrink partition

Unfortuanally, deleting swap did not help. Same error.

Offline

#8 2013-01-06 15:38:57

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Can't shrink partition

It seems as though there is only slightly >80GB of data on the drive.  Would you by chance have another drive that you might be able to copy those contents onto?

That way you can simply format the drive and start from scratch. I think also if this method is a possibility, I would move away from MBR partitioning and enter the fantastic world of the GUID Partition Table (GPT).  Then you don't have to worry about all that extended partition crap.

Offline

#9 2013-01-06 15:55:57

charlag
Member
Registered: 2013-01-05
Posts: 10

Re: Can't shrink partition

Thanks for help everyone, but in S.M.A.R.T threshold is not reached... I think it's end.
Time to buy SSD and install Arch from scratch!

Offline

#10 2013-01-06 16:08:27

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Can't shrink partition

Yes, not passing SMART would be a problem.  Back that data up ASAP!

Offline

#11 2013-01-06 16:10:28

charlag
Member
Registered: 2013-01-05
Posts: 10

Re: Can't shrink partition

I don't have any important data on the disk - thanks to the Google.
Only installing programms may take some time.

Offline

Board footer

Powered by FluxBB