LinuxQuestions.org
Visit the LQ Articles and Editorials section
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-16-2013, 06:00 AM   #1
beandigital
LQ Newbie
 
Registered: Jan 2013
Posts: 17

Rep: Reputation: Disabled
ext2 filesystem mount problem


Hi

I formatted a hard disk from my pc with ext2. I am using this hard drive in an embedded system. When I plug the hard drive into the embedded system and try to mount it I get the following error.

mount -t ext2 /dev/sda /mnt/sda
EXT2-fs (sda1): error: ext2_check_descriptors: Block bitmap for group 0 not in group (block 50462976)!
EXT2-fs (sda1): group descriptors corrupted
mount: mounting /dev/sda1 on /mnt/ failed: Invalid argument

Can anyone tell me what this means?

Thanks

Jon
 
Old 02-16-2013, 06:05 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Quote:
mount -t ext2 /dev/sda /mnt/sda
Is there a typo here (/dev/sda vs /dev/sda1)?

Retry using this:
Code:
mount -t ext2 /dev/sda1 /mnt/sda
 
Old 02-16-2013, 09:25 AM   #3
beandigital
LQ Newbie
 
Registered: Jan 2013
Posts: 17

Original Poster
Rep: Reputation: Disabled
Sorry I meant to write sda1. The error is still there with sda1 used.
 
Old 02-16-2013, 09:47 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
What happens if you let the system figure out the filesystem used?
Code:
mount /dev/sda1 /mnt/sda
You might want to add the -v flag to get some more output.
 
Old 02-16-2013, 10:33 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,818

Rep: Reputation: 726Reputation: 726Reputation: 726Reputation: 726Reputation: 726Reputation: 726Reputation: 726
It is possible that the default parameters used by the computers mkfs like block size is not compatible with the embedded system. Does your embedded system have mkfs?
 
Old 02-16-2013, 11:23 AM   #6
beandigital
LQ Newbie
 
Registered: Jan 2013
Posts: 17

Original Poster
Rep: Reputation: Disabled
If I let the system figure out the filesystem and use the -v flag I get the sames result.

I formatted the hard disk on a Windows pc using a program called EaseUS partition master. The only parameter I could change is the cluster size which I set to 4K. I have mkfs.ext2 on Busybox but it was taking so long to do that I gave up in the end.

Thanks

Jon
 
Old 02-16-2013, 11:26 AM   #7
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Quote:
Originally Posted by beandigital View Post
If I let the system figure out the filesystem and use the -v flag I get the sames result.

I formatted the hard disk on a Windows pc using a program called EaseUS partition master. The only parameter I could change is the cluster size which I set to 4K. I have mkfs.ext2 on Busybox but it was taking so long to do that I gave up in the end.
That might be the problem. I would use mkfs.ext2 and try again. This might take a while, but that all depends on the size of that partition and the options given to mkfs.ext2.
 
Old 02-16-2013, 11:40 AM   #8
beandigital
LQ Newbie
 
Registered: Jan 2013
Posts: 17

Original Poster
Rep: Reputation: Disabled
The trouble is it took about 5 mins on the pc and over 3 hours without finishing in the embedded system. Ideally I would like to avoid doing it on the embedded system. But if I don't have a choice then I will. Do you know why there would be a compatibility issue between the two devices. I guess I just assumed that an ext2 file system would work on any device without issue.
 
Old 02-16-2013, 11:47 AM   #9
beandigital
LQ Newbie
 
Registered: Jan 2013
Posts: 17

Original Poster
Rep: Reputation: Disabled
I have attached the output of running mkfs.ext2 on the embedded system.
Attached Images
File Type: png linux.png (80.5 KB, 17 views)
 
Old 02-16-2013, 12:13 PM   #10
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 2,047

Rep: Reputation: 522Reputation: 522Reputation: 522Reputation: 522Reputation: 522Reputation: 522
Quote:
Originally Posted by beandigital View Post
The trouble is it took about 5 mins on the pc and over 3 hours without finishing in the embedded system. Ideally I would like to avoid doing it on the embedded system. But if I don't have a choice then I will. Do you know why there would be a compatibility issue between the two devices. I guess I just assumed that an ext2 file system would work on any device without issue.
You specified a 4k cluster size... which may not be what the embedded controller handles. This may have caused what the filesystem considers to be block 0 to start in the wrong place.

If you are going to be working on a linux embedded system, I suggest getting a linux workstation as well.
 
Old 02-16-2013, 12:53 PM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,818

Rep: Reputation: 726Reputation: 726Reputation: 726Reputation: 726Reputation: 726Reputation: 726Reputation: 726
It looks like the difference is inode size. 2.6 kernels default to 256 but 2.4 kernels default 128. Do you know what kernel version is running on embedded system?

mkfs.ext2 -I 128 /dev/sda1
 
Old 02-16-2013, 01:01 PM   #12
beandigital
LQ Newbie
 
Registered: Jan 2013
Posts: 17

Original Poster
Rep: Reputation: Disabled
The Kernel is 3.0. So I guess that would be the 256 inode size?
 
Old 02-16-2013, 01:06 PM   #13
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,818

Rep: Reputation: 726Reputation: 726Reputation: 726Reputation: 726Reputation: 726Reputation: 726Reputation: 726
I would expect it to be 256. What kernel are you running on your desktop?
 
Old 02-16-2013, 01:16 PM   #14
beandigital
LQ Newbie
 
Registered: Jan 2013
Posts: 17

Original Poster
Rep: Reputation: Disabled
Well I actually created the ext2 using a program on a Windows machine. The only parameter I could change was the cluster size that I set to 4k. So not sure what inode size it chose to use.
 
Old 02-16-2013, 01:24 PM   #15
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,818

Rep: Reputation: 726Reputation: 726Reputation: 726Reputation: 726Reputation: 726Reputation: 726Reputation: 726
And what program did you use?

As suggested it would be best to format the drive via linux vs windows. Any current Live CD version should work.

Last edited by michaelk; 02-16-2013 at 01:28 PM.
 
  


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
ext2 filesystem and superblock problem. Unknown_User Linux - Server 2 02-28-2007 04:27 PM
EXT2 -fs warning (device sda1): ext2_fill_super:mounting ext3 filesystem as ext2 snakeo2 Linux - Newbie 6 11-19-2006 07:35 PM
ext2 Filesystem Problem DrWorm Linux - General 11 06-02-2005 03:02 PM
ext3\ext2 filesystem amjad Linux - General 1 05-23-2005 04:51 AM
Ext2 Filesystem in RAM Fernando Linux - General 0 03-21-2002 02:32 AM


All times are GMT -5. The time now is 02:51 PM.

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