LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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

Reply
 
Search this Thread
Old 01-14-2011, 07:10 AM   #1
dofod
LQ Newbie
 
Registered: Oct 2010
Posts: 14

Rep: Reputation: 0
Question unable to mount main linux jfs partition


Hey. I Am Having Problem With My JFS Partition On Which Ubuntu Is Installed. It Is Not Mounting. The Bootscreen Says There Is Serious Problem With Mounting The Partition And It Does Not Load Linux. I Tried jfs_fsck -p and -a But With No Success. I Also Tried Checking For Errors Using GParted.
The Logscreen Said logredo failed and unrecoverable error reading M from /dev/sda5/ CANNOT CONTINUE. Is There Any Way I Can Repair This.....Or Atleast Get My Data Back?
 
Old 01-14-2011, 07:23 AM   #2
cin_
Member
 
Registered: Dec 2010
Posts: 264

Rep: Reputation: 23
The Kernel?

Did you configure your kernel with jfs support?

Last edited by cin_; 01-20-2011 at 01:46 PM. Reason: gramm'err
 
Old 01-14-2011, 07:29 AM   #3
dofod
LQ Newbie
 
Registered: Oct 2010
Posts: 14

Original Poster
Rep: Reputation: 0
Yeah I Think So.......Because Ubuntu Used To Run Before On It.....But Suddenly One Day I Think Some Sector On HDD Got Corrupted......And It Stopped Working
 
Old 01-14-2011, 07:39 AM   #4
cin_
Member
 
Registered: Dec 2010
Posts: 264

Rep: Reputation: 23
dual'ish boot

When you say mounting do you mean your boot loader can not mount the harddrive, or have you tried booting another linux instance and then trying to mount the drive?
Booting from another partition, or a LiveCD or USBLive?

Last edited by cin_; 01-20-2011 at 01:46 PM. Reason: gramm'err
 
Old 01-14-2011, 07:47 AM   #5
dofod
LQ Newbie
 
Registered: Oct 2010
Posts: 14

Original Poster
Rep: Reputation: 0
Either Doesnt Work.....First The Main Linux Installed In My HD Cannot Mount It By Itself So I Tried To Mount It By Terminal, No Success.....So It Itself Doesnt Run.....Secondly I Downloaded GParted ISO.. Tried Repair.....No Success Still.....

Last edited by dofod; 01-14-2011 at 08:12 AM.
 
Old 01-14-2011, 02:29 PM   #6
cin_
Member
 
Registered: Dec 2010
Posts: 264

Rep: Reputation: 23
Boot Loader

what boot loader are you using?
 
Old 01-16-2011, 08:11 AM   #7
dofod
LQ Newbie
 
Registered: Oct 2010
Posts: 14

Original Poster
Rep: Reputation: 0
GRUB............
 
Old 01-17-2011, 11:53 PM   #8
cin_
Member
 
Registered: Dec 2010
Posts: 264

Rep: Reputation: 23
errors

There are a few things to know that might help...
(i) How many disks do you have for you box?
(ii)How many partitions do you have on your disk with the corrupted jfs partition?
(iii)What, if any, other OSs are installed on what partitions?
(iv)Do you have a stock kernel or did you configure your own?
(v)When you say you were trying to mount it, what process did you take? What arguments did you send with mount()?

(vi)What do you think caused the corruption? Silly, I know, but try to think about the last time it worked and any possibility for the corruption. Alike software install'removal, or physcal'electrical harm to the box...

If no other OS are installed on the box:
And if you have a CD'DVD drive, or USBboot support in your BIOS, you can try booting from CD'DVD and from here retrieve the data. If this works then it would be a kernel issue, and you should configure a new kernel or replace the old with one from the CD'DVD'USB you are booting from.
Some distributions, like Slackware, in their Live boots there is the option to choose which drive to boot into.
Once booted you are given the opportunity to type in a command to choose the kernel. Doing nothing will boot the hugesmp.s to the LiveBootable, but you can, and it is shown by example, choose to boot from the LiveBootable's kernel, to your specified partition.
Code:
boot: hugesmp.s root=/dev/YOUR_DESIRED_PARTITION rdinit= ro
If there is another OS on the drive:
Boot into this OS, and use the command...
Code:
# cd /mnt
# mkdir corr
# mount -vs -t jfs -o ro,nointegrity,errors=remount-ro /dev/YOUR_PARTITION /mnt/corr
# cd /mnt/corr
#
or you could also try...
Code:
# cd /mnt
# mkdir corr
# mount -vsf -t jfs -o ro,nointegrity,errors=remount-ro /dev/YOUR_PARTITION /mnt/corr
check your man mount... the -f fakes the mount so you can view the error messages without actually mounting...
(vii) What error messages are you receiving if you have tried this?

Last edited by cin_; 01-18-2011 at 12:06 AM. Reason: gramm'err
 
1 members found this post helpful.
Old 01-20-2011, 10:00 AM   #9
dofod
LQ Newbie
 
Registered: Oct 2010
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks cin_........I Will Try To Do The Same.....
Here Are The Answers To Yr Queries:

(i) How many disks do you have for you box?
40gb hd- 2 partions-xp on one and seven on other
250gb hd- 3 partitions-ntfs, jfs(the corrupted one), linux swap.


(iii)What, if any, other OSs are installed on what partitions?
Windows 7 And XP

(iv)Do you have a stock kernel or did you configure your own?
Stock Kernel....The One That Comes With Ubuntu....
(v)When you say you were trying to mount it, what process did you take? What arguments did you send with mount()?

sudo mkdir hd
sudo mount /dev/sda5/ hd


(vi)What do you think caused the corruption? Silly, I know, but try to think about the last time it worked and any possibility for the corruption. Alike software install'removal, or physcal'electrical harm to the box...
No Such Harm That I Remember....Though I Installed A Few Softwares To It......
 
Old 01-20-2011, 01:46 PM   #10
cin_
Member
 
Registered: Dec 2010
Posts: 264

Rep: Reputation: 23
mount()

Well, no physical harm is encouraging.

Let me know what results or errors you receive when you try those two options using mount() with the specified arguments.

Last edited by cin_; 01-20-2011 at 01:46 PM. Reason: gramm'err
 
Old 01-20-2011, 02:51 PM   #11
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
If you can type normally, Why Do You Insist On Typing Like This ? It Is Annoying, And I Imagine It Also Takes More Work, Hitting The Shift Key Before Every Word.

Also, this may be a duplicate:
http://www.linuxquestions.org/questi...rtiton-856302/
 
Old 01-20-2011, 03:09 PM   #12
cin_
Member
 
Registered: Dec 2010
Posts: 264

Rep: Reputation: 23
H_TeXMeX_H... do you know of any jfs specific vulnerabilities?

Perhaps it is something other than corruption... in what order did you install Ubuntu, 7, and XP? Due to MSFT procedure it is usually best to install it first in order of release... XP, 7, Linux.
If you installed in a different order, you could just run...
Code:
# grub-install
#
...again from the Linux partition to create a update and re'orient the boot loader. The menu.lst...GRUBLegacy..., or grub.cfg...GRUB2...will remain unchanged.

Last edited by cin_; 01-21-2011 at 01:34 PM. Reason: gramm'err
 
Old 01-21-2011, 01:05 PM   #13
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
I don't know of any JFS vulnerabilities.

I wouldn't rule out corruption, it certain is possible, maybe bad blocks or something. See other thread.
 
Old 01-21-2011, 01:27 PM   #14
cin_
Member
 
Registered: Dec 2010
Posts: 264

Rep: Reputation: 23
Quote:
From the dubious vicky:
A journaling file system is a file system that keeps track of the changes that will be made in a journal (usually a circular log in a dedicated area of the file system) before committing them to the main file system. In the event of a system crash or power failure, such file systems are quicker to bring back online and less likely to become corrupted.
...Just silly.

dofod,
Just make sure you add that '-t jfs' argument to mount().

More perhaps...
Code:
# dmesg | grep -i jfs
*BOOT LOG SEARCHED FOR INSTANCES OF JFS -iGNORING OF CASE
# modprobe jfs
*LOAD JFS KERNEL MODULE
#
You could try going to http://jfs.sourceforge.net/, then their 'Get the Source' tab and download the tarball and self install...

Last edited by cin_; 01-21-2011 at 01:29 PM. Reason: gramm'err
 
Old 01-24-2011, 10:21 PM   #15
dofod
LQ Newbie
 
Registered: Oct 2010
Posts: 14

Original Poster
Rep: Reputation: 0
Here IS THE GPARTED LOG:
[QUOTE]
GParted 0.6.2

Libparted 2.3
Check and repair file system (jfs) on /dev/sdb5 00:02:37 ( ERROR )

calibrate /dev/sdb5 00:00:00 ( SUCCESS )

path: /dev/sdb5
start: 425515008
end: 485513215
size: 59998208 (28.61 GiB)
check file system on /dev/sdb5 for errors and (if possible) fix them 00:02:37 ( ERROR )

jfs_fsck -f /dev/sdb5

jfs_fsck version 1.1.12, 24-Aug-2007
processing started: 1/25/2011 9.21.11
The current device is: /dev/sdb5
Block size in bytes: 4096
Filesystem size in blocks: 7499776
**Phase 0 - Replay Journal Log
logredo failed (rc=-242). fsck continuing.
**Phase 1 - Check Blocks, Files/Directories, and Directory Entries
Unrecoverable error reading M from /dev/sdb5. CANNOT CONTINUE.
ujfs_rw_diskblocks: read 0 of 4096 bytes at offset 4596625408
ujfs_rw_diskblocks: read 12288 of 16384 bytes at offset 4596613120

========================================
[QUOTE]
 
  


Reply

Tags
fsckerror, harddisk, jfs, partition


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
unable to mount extended partition linux_newbie86 Linux - Newbie 2 07-29-2008 07:17 AM
GRUB unable to mount partition Amuro-Ray2020 Linux - Newbie 7 05-15-2007 08:40 AM
ext3 partition unable to mount majalee Linux - Hardware 4 07-17-2006 10:54 PM
unable to mount ntfs partition capnp72 Fedora 6 03-02-2006 07:37 AM
How do I convert an empty ext3 partition to a jfs partition? lothario Linux - Software 3 02-28-2006 10:40 AM


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