Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
09-26-2009, 10:32 AM
|
#1
|
|
LQ Newbie
Registered: Apr 2008
Posts: 12
Rep:
|
Hard disk issue
Hello,
I used to have 250GB Seagate hard disk with a lot of information. After power supply fail the motherboard has failed and, as it looks like, there is file system error on that disk. Before a few days I installed on another machine, on another hard disk Fedora 11 and now I want get my data back, but I cannot mount the disk. When I run
Code:
mount /dev/sdb /mnt/sdb -t ext2
I get
Code:
mount: wrong fs type, bad option, bad superblock on /dev/sdb,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
I cannot make fsck, because I get
Code:
fsck 1.41.4 (27-Jan-2009)
e2fsck 1.41.4 (27-Jan-2009)
fsck.ext2: Superblock invalid, trying backup blocks...
fsck.ext2: Bad magic number in super-block while trying to open /dev/sdb
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
|
|
|
|
09-26-2009, 11:10 AM
|
#2
|
|
Senior Member
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Rep: 
|
Let us see the output of
Normally we only mount a partition. /dev/sdb is confusing as it can have many partitions each with different filing type.
|
|
|
|
09-26-2009, 11:25 AM
|
#3
|
|
LQ Newbie
Registered: Apr 2008
Posts: 12
Original Poster
Rep:
|
it returned that
Code:
Disk /dev/sda: 251.0 GB, 251000193024 bytes
255 heads, 63 sectors/track, 30515 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xd0330960
Device Boot Start End Blocks Id System
/dev/sda1 * 1 29863 239868826 83 Linux
/dev/sda2 29863 30515 5242880 83 Linux
Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x22767688
Device Boot Start End Blocks Id System
/dev/sdb1 1 43 345366 82 Linux swap / Solaris
/dev/sdb2 * 44 1288 10000462+ 83 Linux
/dev/sdb3 1289 3172 15133230 83 Linux
/dev/sdb4 3173 30401 218716942+ 83 Linux
|
|
|
|
09-26-2009, 11:57 AM
|
#4
|
|
Member
Registered: Nov 2003
Distribution: Ubuntu
Posts: 217
Rep:
|
You have to mount one of the partitions. For example:
Code:
mount -t ext2 /dev/sdb4 /mnt/sdb
Be sure you have /mnt/sdb created.
|
|
|
|
09-26-2009, 12:08 PM
|
#5
|
|
LQ Newbie
Registered: Apr 2008
Posts: 12
Original Poster
Rep:
|
the same error is returned when I mount specific partition, no matter which one...
|
|
|
|
09-26-2009, 12:20 PM
|
#6
|
|
Member
Registered: Nov 2003
Distribution: Ubuntu
Posts: 217
Rep:
|
fsck /dev/sdb4 - does that give an error too?
I'm assuming you are doing the mounting as root or with sudo, because I think the error would be different if it was as simple as that.
Also, I would try the mount without expressing the type of filesystem.
|
|
|
|
09-26-2009, 12:33 PM
|
#7
|
|
LQ Newbie
Registered: Apr 2008
Posts: 12
Original Poster
Rep:
|
yes, it does the following
Code:
fsck: Error 2 while executing fsck.reiserfs for /dev/sdb4
And yes I use root only. Why should I use simple user account, anyway?
But DUDE!!!!
THE ONLY THING I HAVE NOT TRIED IS WHAT JUST SAVED MY LIFE!
THANK YOU MAN, YOU HAVE A BEER FROM ME!
|
|
|
|
09-26-2009, 12:41 PM
|
#8
|
|
Senior Member
Registered: Sep 2003
Posts: 3,171
Rep: 
|
Quote:
Originally Posted by man0v
yes, it does the following
Code:
fsck: Error 2 while executing fsck.reiserfs for /dev/sdb4
And yes I use root only. Why should I use simple user account, anyway?
|
Security.
The fundamental aspect of *nix security is having users use limited accounts except for system-level work. All *nix makes it easy to do that and easy to become root when necessary.
Also, using a limited account protects the system when you make a mistake. For instance, rm -r / does not wipe out the system if you are a limited user, but will pretty well finish you off if you do that as root.
Quote:
But DUDE!!!!
THE ONLY THING I HAVE NOT TRIED IS WHAT JUST SAVED MY LIFE!
THANK YOU MAN, YOU HAVE A BEER FROM ME!
|
And that was...what, exactly?
|
|
|
|
09-26-2009, 01:00 PM
|
#9
|
|
LQ Newbie
Registered: Apr 2008
Posts: 12
Original Poster
Rep:
|
Well, I simply did not express the file system... and it worked.
And about the root - I prefer to be the root user myself. Cannot explain why, but maybe the feeling to be just an user in my computer is depressing me...
|
|
|
|
09-26-2009, 02:55 PM
|
#10
|
|
Member
Registered: Nov 2003
Distribution: Ubuntu
Posts: 217
Rep:
|
Yes, it worked without the type specified, because you have reiserfs. Note the fsck output. At least I'm guessing that is why 'fsck' used 'fsck.reiserfs', but I don't know why there was an error on it.
Anyway, I'm glad the mount idea without type worked. You were specifying ext2; so it couldn't mount - wrong fs type.
Not a dude, but a dudette, btw.
Last edited by ajlewis2; 09-26-2009 at 02:57 PM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 12:58 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|