LinuxQuestions.org
Visit Jeremy's Blog.
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 08-14-2011, 03:11 PM   #46
igadoter
Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: slack 12.2, debian-Trinity , openbsd
Posts: 729

Rep: Reputation: 56

Sorry, I copied and pasted from the terminal of my computer. Ok, if dd works you can try to verify your filesystem
Code:
# fsck.ext4 -v /dev/sda1
and the same command for /dev/sda2 and /dev/sda3. By default OpenSuse uses ext4 filesystem. This command will check partitions. There is a hope your problems are related to a broken filesystem.
Nevertheless fixing ext4 also can be difficult.
 
Old 08-14-2011, 03:18 PM   #47
Glaedr
Member
 
Registered: Jun 2011
Distribution: OpenSuse 11.4
Posts: 64

Original Poster
Rep: Reputation: Disabled
Sda1 gives me:
Quote:
knoppix@Microknoppix:~$ fsck.ext4 -v /dev/sda1
e2fsck 1.41.12 (17-May-2010)
fsck.ext4: Superblock invalid, trying backup blocks...
fsck.ext4: Bad magic number in super-block while trying to open /dev/sda1

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>
...Even though I typed ext4.

Sda2 gives me:
Quote:
knoppix@Microknoppix:~$ fsck.ext4 -v /dev/sda2
e2fsck 1.41.12 (17-May-2010)
fsck.ext4: Attempt to read block from filesystem resulted in short read while trying to open /dev/sda2
Could this be a zero-length partition?
Sda3 gives me:
Quote:
knoppix@Microknoppix:~$ fsck.ext4 -v /dev/sda3
e2fsck 1.41.12 (17-May-2010)
fsck.ext4: Attempt to read block from filesystem resulted in short read while trying to open /dev/sda3
Could this be a zero-length partition?
Adding sudo to the beginning gives the same errors. Does that mean they're gone? Is the line sda1 suggested safe to try?

I can still see them with this:

Quote:
knoppix@Microknoppix:~$ sudo fdisk -l

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000ebc96

Device Boot Start End Blocks Id System
/dev/sda1 1 262 2103296 82 Linux swap / Solaris
Partition 1 does not end on cylinder boundary.
/dev/sda2 * 262 2873 20972544 83 Linux
/dev/sda3 2873 38914 289494016 83 Linux

Last edited by Glaedr; 08-14-2011 at 03:22 PM.
 
Old 08-14-2011, 03:28 PM   #48
Glaedr
Member
 
Registered: Jun 2011
Distribution: OpenSuse 11.4
Posts: 64

Original Poster
Rep: Reputation: Disabled
Sorry for the double post, edit takes so long to come up you'd probably have missed the changes if I edited again. I just found THIS PAGE. These are the numbers for reference:

Quote:
knoppix@Microknoppix:~$ mke2fs -n /dev/sda1
mke2fs 1.41.12 (17-May-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
131648 inodes, 525824 blocks
26291 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=541065216
17 block groups
32768 blocks per group, 32768 fragments per group
7744 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912

knoppix@Microknoppix:~$ mke2fs -n /dev/sda2
mke2fs 1.41.12 (17-May-2010)
warning: 256 blocks unused.

Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
1313280 inodes, 5242880 blocks
262156 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
160 block groups
32768 blocks per group, 32768 fragments per group
8208 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000

knoppix@Microknoppix:~$ mkefs -n /dev/sda3
bash: mkefs: command not found
knoppix@Microknoppix:~$ mke2fs -n /dev/sda3
mke2fs 1.41.12 (17-May-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
18096128 inodes, 72373504 blocks
3618675 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
2209 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616

knoppix@Microknoppix:~$
Just want to check that following the page won't wipe any files.

Last edited by Glaedr; 08-14-2011 at 03:30 PM.
 
Old 08-14-2011, 03:31 PM   #49
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo
Posts: 15,438
Blog Entries: 2

Rep: Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001
I can only repeat, before doing anything else, make an image of the partition with your data, if your data is important to you. Just to be on the safe side.

While it really "only" may be a filesystem error (and we hope so, a hardware error is much more expensive) it also may be a failing drive. And stressing a failing drive can result in even more data loss, even to the point where the drive is dead at all.
 
Old 08-14-2011, 04:59 PM   #50
Glaedr
Member
 
Registered: Jun 2011
Distribution: OpenSuse 11.4
Posts: 64

Original Poster
Rep: Reputation: Disabled
It's making an image backup now. It's found 29 bad blocks so far. But the file has appeared and the numbers are moving so it looks like there's something there at least.
 
Old 08-17-2011, 10:08 AM   #51
Glaedr
Member
 
Registered: Jun 2011
Distribution: OpenSuse 11.4
Posts: 64

Original Poster
Rep: Reputation: Disabled
Quick update. - The Knoppix partition was not big enough to hold the img file. It took up 9.something GB despite only having recovered 1.2 GBg so far. So I bought a caddy to replace the broken one in which I keep my external harddrive. I'd Kept meaning to replace it anyway - it was the reason these most recent files weren't backed up yet. It arrived this morning and I have put the external harddrive into it. It lights up so I know it's connecting but I can't work out what the name of the device is so that I can mount it. And if I can't mount sda1-3, if it even will mount. I have tried using GParted to adjust the parition sizes but it's taking a very long time to search for devices. I'm not sure if it just takes a long time or if it's hung while scanning. I'll leave it running for as long as I can just in case. But in the meantime, does anybody know how I can tell what the name of the usb drive might be?

Last edited by Glaedr; 08-17-2011 at 10:25 AM.
 
Old 08-17-2011, 10:21 AM   #52
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo
Posts: 15,438
Blog Entries: 2

Rep: Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001
Code:
sudo fdisk -l
should show up all partitions.
 
Old 08-17-2011, 10:25 AM   #53
Glaedr
Member
 
Registered: Jun 2011
Distribution: OpenSuse 11.4
Posts: 64

Original Poster
Rep: Reputation: Disabled
I tried that and it only displays the original three.

EDIT:

Nevermind, I think I have it. Forgot the sudo.

GParted finally finished scanning, and sda2 and sda3 have a warning icon next to them. I clicked on "information" and it says:

Quote:
Warning:
Unable to detect file system! Possible reasons are:
-The file system is damaged
-The file system is unknown to GParted
-There is no file system (unformatted)
input/output error during read on /dev/sda
input/output error during read on /dev/sda
input/output error during read on /dev/sda
input/output error during read on /dev/sda
on sda3, and on sda2:

Quote:
Unable to detect file system! Possible reasons are:
-The file system is damaged
-The file system is unknown to GParted
-There is no file system (unformatted)
input/output error during read on /dev/sda
input/output error during read on /dev/sda

Last edited by Glaedr; 08-17-2011 at 10:37 AM.
 
Old 08-18-2011, 05:13 PM   #54
Glaedr
Member
 
Registered: Jun 2011
Distribution: OpenSuse 11.4
Posts: 64

Original Poster
Rep: Reputation: Disabled
Ok I've backed up as much as I can, and I've tried to wipe/reinstall. I put the CD in and got up to 60% "Searching for Linux partitions". And it just hangs there. Previously tried the rescue option on the cd and it gave me an error while loading which said something like boot.clock and the same superblock / i/o errors. Would using something like dban work or is there a way to get around it? Last time I had to use it on another harddrive it took hours and then gave me errors. The time is saved by a particular chip isn't it?
 
Old 08-18-2011, 05:20 PM   #55
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo
Posts: 15,438
Blog Entries: 2

Rep: Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001Reputation: 4001
Before trying a re-install make sure that the disk is not faulty. A faulty disk can cause such errors.
To test the harddisk download the manufacturers diagnosis tool or use the Hitachi Drive Fitness Test. This can test disks from all manufacturers.
 
Old 08-19-2011, 05:22 AM   #56
igadoter
Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: slack 12.2, debian-Trinity , openbsd
Posts: 729

Rep: Reputation: 56
If you want to reinstall you may try W$, or other systems. I suspect that in the case W$ also fails is really something wrong. You can also try OpenBSD. Of course these are all tests only. I don't suggest to do a true installation. At least you will know - that it impossible to install any operational system. Then it may be it is disk borken or a notebook need to be repaired. One of the reason a disk fails is a temperature. A hard drive can warm up to 50 or more Celsius if is extensively used. So a notebook can be really hot.
 
Old 10-25-2011, 12:32 PM   #57
Glaedr
Member
 
Registered: Jun 2011
Distribution: OpenSuse 11.4
Posts: 64

Original Poster
Rep: Reputation: Disabled
Sorry it took such a long time to reply. I tried everything that was suggested but nothing was working, and eventually I persuaded WD to replace the harddrive and used a LiveCD when I needed to use the laptop for something. My new harddrive has just arrived so now I'm in the process of re-installing everything. I didn't get the minor error messages when I installed Suse this time either and the firmware tests were all fine. Thanks for all your help.
 
  


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
No operating system found walthi Linux - Newbie 3 04-13-2010 10:52 AM
test how much mem the operating system has free in C smeezekitty Programming 7 10-18-2009 06:32 PM
'Operating system not found' Any operating system installed wont work. TechniSlave Linux - Newbie 55 02-09-2009 11:02 AM
operating system not found plotty Linux - Software 4 01-19-2006 09:52 PM
Operating system not found domon#1 Linux - Hardware 20 07-01-2005 12:40 PM


All times are GMT -5. The time now is 07:25 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