LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 02-20-2013, 12:33 AM   #1
Anna1987
LQ Newbie
 
Registered: Feb 2013
Distribution: Fedora
Posts: 7

Rep: Reputation: Disabled
Unhappy EXT4-fs: bad geometry: block count (large number) exceeds size of device


Hello
I'm new one on this forum et not very experienced in linux that's why I have a question. Normally i use Fedora on my computer. Lately it was fedora version 18. Recently i wanted to change the size of my partitions /home and /. I wanted to reduce my / and enlarge /home.
i try to do this with gparted but i had a message that my / is still mounted. After all my research in the internet in the end I maneged to reduce the / partition but now i received message that "EXT4-fs: bad geometry: block count (large number) exceeds size of device". Is there any possibility to solve this problem without loosing data
 
Old 02-20-2013, 08:38 AM   #2
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 377Reputation: 377Reputation: 377Reputation: 377
Welcome to LQ!
When using gparted it need the partitions to be unmounted to be able to manage them it is better to do it through a live CD , is your system booting? Is the system set to LVM? Did you also resized the home partition? It is a good idea to backup your data first before any other attempts to fix or modify the partitions, with a live CD is a good way to do that.
Here a possible solutions to the problem:
http://gparted-forum.surf4.info/viewtopic.php?id=14172
http://forums.fedoraforum.org/showthread.php?t=231481

Regards

Last edited by ukiuki; 02-20-2013 at 08:40 AM.
 
Old 02-20-2013, 02:18 PM   #3
Anna1987
LQ Newbie
 
Registered: Feb 2013
Distribution: Fedora
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hello,
It's me again.
First of all, Thank You for your reply. The system is not set to LVM so I try to apply the first link:
I reboot system with a live CD and apply what was it in (without using Live CD it didn't work):

http://gparted-forum.surf4.info/viewtopic.php?id=14172

I've changed the value in PT.save with the command:
sfdisk -f /dev/sda -O PT.save < PT.txt

Then mounted /dev/sda2 to /mnt et reboot the system.

But when i reboot without Live CD my system shows grub rescue error: file '/boot/grub2/i386-pc/normal.mod' not found.

When I can reboot with a live CD but i don't know what to do...

Do you have any idea to solve it without installing system from scratch??? What alse can i do? Please help ( I 've completely mesed up :-( )

Regards,
 
Old 02-20-2013, 05:49 PM   #4
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 377Reputation: 377Reputation: 377Reputation: 377
Make sure to backup any critical data you have in the first place. I assume you have done that already?
With a live CD is possible to copy the data to an external drive or to a partition that you know isn't going to be erased or to a pendrive, etc.
Use the file manager to do that, it is possible to mount or unmount partitions or devices through it.

Quote:
Originally Posted by Anna1987 View Post
..But when i reboot without Live CD my system shows grub rescue error: file '/boot/grub2/i386-pc/normal.mod' not found...
Well you will have to fix grub to find out if the partition is been fixed, but fixing grub doesn't mean the partition will be fixed too.
Check this link:
https://docs.fedoraproject.org/en-US...escuemode.html

Quote:
Originally Posted by Anna1987 View Post
...Do you have any idea to solve it without installing system from scratch??? What alse can i do? Please help ( I 've completely mesed up :-( )...
Well it may be possible to fix that, you have to make sure what you are doing and some understanding about the system is a requisite to accomplish the task. You'll need to research learn about the problem to solve it. Reinstall is the easiest way to fix it, and you have a chance to set the partitions in a proper size.

By the way how are the partition set? Could you post the output for the following command? Do you have dual boot with Windows?
as root type in the terminal:
Code:
fdisk -l
So you can: 1- backup your data, 2- fix grub and if the system still bootable then back to the the 1st problem.

or you can also: 1- backup your data, reinstall the system.

One important thing about all this things, it is a learning process.

Regards
 
Old 02-21-2013, 11:14 AM   #5
Anna1987
LQ Newbie
 
Registered: Feb 2013
Distribution: Fedora
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hello,

I don't have a Windows on my computer. Here is the output fron my fdisk:
=========================================================================
root@ubuntu:/media# fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x69205244

Device Boot Start End Blocks Id System
/dev/sda1 1 15372 123471872 83 Linux
/dev/sda2 15372 15535 1310720 83 Linux
/dev/sda3 19197 19458 2097152 82 Linux swap / Solaris
/dev/sda4 * 19458 19458 856 83 Linux

Disk /dev/sdb: 15.9 GB, 15955132416 bytes
256 heads, 48 sectors/track, 2536 cylinders
Units = cylinders of 12288 * 512 = 6291456 bytes
Disk identifier: 0xc3072e18

=====================================================================

Thanks for your repay,

Last edited by Anna1987; 02-21-2013 at 11:15 AM.
 
Old 02-21-2013, 04:25 PM   #6
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 377Reputation: 377Reputation: 377Reputation: 377
Looks like the partitions size is a bit messy, it would be better to reinstall the system.(backup your data)
Lets talk about how to partition it:
Simple way just 2 partitions: the main or root partition which is the / and swap, that is the most basic setup.
A bit better setup would be 3 partitions with: / , swap and /home.
Now to have a more controllable setup, 4 partitions: /boot , / , swap and /home
There are more complex setups but for a desktop use the ones here will do the job.
Now about the sizes, keep in mind one thing, the distribution that you are using may use more or less space than a other distros, and the size of the disk, you have to figure out how much your distro uses.
It will be about:
200-300mb for /boot
1Gb-30Gb(depends on distro) for /
at least same amout of RAM or more for swap
and the rest of the available space for /home
It is just an idea about how to setup the partitions it may be different in other scenarios.
About the partition types if you have an old machine with more than 8 years old it would be better to use ext3 or even ext2 if the processor power is low, it will speed up the whole thing(there other types of partitions some people like a lot XFS), now for machines about 5-7 years old most of them use sata drives, ext3 or ext4 or XFS, is what most people use for their desktops.
Here some info about partitions(this is a bit old but gives a good idea about file systems):
http://www.debian-administration.org/articles/388
This one about partitioning(old doc but give a good notion):
http://linuxmafia.com/~karsten/Linux...partition.html

Regards

Last edited by ukiuki; 02-21-2013 at 04:26 PM.
 
Old 02-22-2013, 01:02 AM   #7
Anna1987
LQ Newbie
 
Registered: Feb 2013
Distribution: Fedora
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thank UkiUki for your advices which are very helpful for me.

Ok, I'm going to reinstall my system. Distribution that I'm going to install is fedora 18 Xface.

That's my private computer and some data I've already copied on the external disk before these unreseanebles manipulations. I bought it five years ago. It has 160G.

But yesterday, I was wonder if restore my data (mostly files .jpg) is possible?
So using bootmod live Cd with testdisk and photorec I tried to restore my data. I did it according to this link:
http://www.dedoimedo.com/computers/l...a-recovery.htm

Testdisk found out my partitions but...
it didn't restore my privates photos (which were located at /home) but only photos from the internet (sites wwhich I've visited before).

What I did wrong? I don't understand why I can restore unuseful photos from the internet and cannot restore my photos?

It means that my partitions wrere completly deleted?

Thanks for your answer,

Anna
 
Old 02-22-2013, 10:49 PM   #8
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 377Reputation: 377Reputation: 377Reputation: 377
Quote:
Originally Posted by Anna1987 View Post
...It means that my partitions wrere completly deleted?...
If you didn't erase the home location, the files still there.
Boot with the a live CD, mount the partition where /home is, then use the file manager and then you can just copy the files to the external drive.
Quote:
Originally Posted by Anna1987 View Post
...
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x69205244

Device Boot Start End Blocks Id System
/dev/sda1 1 15372 123471872 83 Linux
/dev/sda2 15372 15535 1310720 83 Linux
/dev/sda3 19197 19458 2097152 82 Linux swap / Solaris
/dev/sda4 * 19458 19458 856 83 Linux

Disk /dev/sdb: 15.9 GB, 15955132416 bytes
256 heads, 48 sectors/track, 2536 cylinders
Units = cylinders of 12288 * 512 = 6291456 bytes
Disk identifier: 0xc3072e18
Is sda2 the home partition ?

Regards
 
Old 02-25-2013, 10:24 AM   #9
Anna1987
LQ Newbie
 
Registered: Feb 2013
Distribution: Fedora
Posts: 7

Original Poster
Rep: Reputation: Disabled
Ok Thank You for your advice:-)

In the end I reinstall my system and I have new one Fedora 18 with Xfce and it works excellent :-)

I give 10 G for /
4 G for swap
500Mb for /boot
and rest for my home :-)

Thank You so much for your time that you have spent to resolve my problems.
 
Old 02-26-2013, 02:30 PM   #10
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 377Reputation: 377Reputation: 377Reputation: 377
Glad to help ! One hint, when come the time to reinstall the system in the future, you can keep the home partition, no need to format it, you can use it as it is just pointing that is the home partition.

Regards
 
  


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
Cannot mount hard disk: block count exceeds size of device --- bad partition table R00ts Linux - General 15 06-01-2014 03:58 PM
ext4 block size daisychick Linux - Newbie 8 03-11-2012 10:12 PM
Extremely Large Metadata size for directory on an ext4 filesystem mdpolaris Linux - Server 2 06-27-2011 04:47 AM
What to do with a partion with bad block count? yumener Linux - Software 10 11-10-2008 02:02 AM
Large drive- too much space lost by large block size? tome Linux - General 5 12-14-2001 01:32 PM


All times are GMT -5. The time now is 03:04 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration