You are not logged in.

#1 2010-02-24 15:48:58

Maximalminimalist
Member
Registered: 2009-09-20
Posts: 112

[Solved] Unable to mount /home (JFS)

Hi!

fsck fails on boot and the the computer freezes on boot. I'm thinking about using jfsrec but there is a warning so I wanna ask first what is best to do.

mount -t jfs /dev/sda4 /temp
mount: wrong fs type, bad option, bad superblock on /dev/sda4,
missing codepage or helper program, or other error.[...]

(There is no backup for the data. I was just reading about stuff like rsync and thinking about how doing backup but I haven't done it before. -.- )

Last edited by Maximalminimalist (2010-04-05 21:50:47)

Offline

#2 2010-02-24 16:07:25

jimburnettva
Member
From: Virginia, USA
Registered: 2010-02-12
Posts: 48
Website

Re: [Solved] Unable to mount /home (JFS)

I would check to see if a partition is really there using fdisk. fdisk /dev/sda  and do a "p" to print off a list of parts. Don't make any changes though and don't type "w" to exit!  This way you can at least know for a fact the partition is there and go from there.

[root@myhost jim]# fdisk /dev/sda

Command (m for help): p
  Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104422   83  Linux
/dev/sda2              14          79      530145   82  Linux swap / Solaris
/dev/sda3              80        1036     7687102+  83  Linux
/dev/sda4            1037        9729    69826522+  83  Linux

You can also try to dd the partition to a file image.

dd if=/dev/sda4 of=/sda4-backup.img

Last edited by jimburnettva (2010-02-24 16:08:53)


My Linux & Progamming Blog - Jimmy Burnett

Offline

#3 2010-02-24 16:19:55

Maximalminimalist
Member
Registered: 2009-09-20
Posts: 112

Re: [Solved] Unable to mount /home (JFS)

fdisk tells me that sda4 really exists.

What is the point in making the partition to a file image?

Offline

#4 2010-02-24 16:27:00

Maximalminimalist
Member
Registered: 2009-09-20
Posts: 112

Re: [Solved] Unable to mount /home (JFS)

Thinking about a bit gave me the answer myself. I can save the data. That's good but it would be useful to read the data as well. What is the best?

Last edited by Maximalminimalist (2010-02-24 16:27:19)

Offline

#5 2010-02-24 19:06:25

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

Re: [Solved] Unable to mount /home (JFS)

I have come across that one before, so much, infact, that I now do 'fsck -t jfs' upon each boot (/etc/rc.local).
Never had any problems since ... ;-)

Offline

#6 2010-02-24 19:13:47

Maximalminimalist
Member
Registered: 2009-09-20
Posts: 112

Re: [Solved] Unable to mount /home (JFS)

I wish I had read the wiki-article before doing anything but it's too late now.

Yesterday I made a fresh archlinux install and I fucked it up in the same way. Either google-chrome or ion3 made the reboot impossible. (I'm not sure but I guess that one of them need seriously a fix.)

EDIT: My computer crashes already after a installation of X. So X is the problem.

Last edited by Maximalminimalist (2010-02-26 15:36:56)

Offline

#7 2010-02-24 20:44:16

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

Re: [Solved] Unable to mount /home (JFS)

Are you using jfs for all your partitions or just /home?

I'm not trying to start a flamewar here - and I'm sure there as as many opinions as to what is best as there are filesystems.
However, I always look for certain 'concepts' before I choose one - such as:
1) For a normal desktop, I do not need the newest and fastest. There's not really much point.
2) I want a fs that is - most of all - stable
3) I want a fs that doesn't take all day to delete many files or making a new filesystem
4) For the root filesystem I need something that can handle many small files well
5) For music, videos, photos I need something that handles larger files well.

So where does all this take me? 'reiserfs'! I have used it for years (at least 5!) and the only things that have disrupted it is when I've had a complete diskcrash. For multimedia, I generally go with 'xfs' - ymmv.
I like 'ext3' (see the phoronix tests!!), but to me its too slow for point 3) above - otherwise it probably would have been my fs of choice.

So - everybody that just _must_ have ext4 or btrfs or nintfs - yes, that's fine, but use it on an experimental partition where it doesn't matter if things get screwed up once in a while.
(stepping off of my soapbox) Sorry, just couldn't help it!!

Offline

#8 2010-02-25 17:22:24

Maximalminimalist
Member
Registered: 2009-09-20
Posts: 112

Re: [Solved] Unable to mount /home (JFS)

I was a complete noob on linux so I made exactly the same as in the beginners guide. wink

ReiserFS is on my /var ... but not on my /home tongue

Can anyone help me how I can use my NAS directly by plug it in the computer on the network port?
This could raise the speed of dd... (I have only a 100mbit switch.)

Offline

#9 2010-02-25 18:46:40

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

Re: [Solved] Unable to mount /home (JFS)

Nah - I don't believe you can do that - unless you set up your pc as a router (in which case you need two eth-adapters) and also must use it as a dhcp-server (for the NAS)
Too much hassle when you can buy a gigabit switch for 30-40 bucks

All that being said and done - I stand corrected ... not ever having tried it!

Offline

#10 2010-02-25 19:39:27

Maximalminimalist
Member
Registered: 2009-09-20
Posts: 112

Re: [Solved] Unable to mount /home (JFS)

Thanks for your help and fast support even though I haven't done a lot of progress yet. smile

Offline

#11 2010-02-26 16:52:20

mandog
Member
From: Peru
Registered: 2008-09-17
Posts: 218

Re: [Solved] Unable to mount /home (JFS)

I run all my arch disrtros on JFS never had a problem unless I have to kill the computer, then I get the bad superbloc rubbish. but it is simple I boot up partmagic perform a disk check reboot
and Bobs your uncle never lost any data.


I'm dyslexic Please do not complain about puntuation or spelling and remember most dyslexic people have above average iq.

Offline

#12 2010-02-26 19:09:18

jimburnettva
Member
From: Virginia, USA
Registered: 2010-02-12
Posts: 48
Website

Re: [Solved] Unable to mount /home (JFS)

If you dd /dev/sda4 to an image file you can mount it using a loop device.

dd if=/dev/sda4 of=sda4.img

mount -o loop sda4.img  ./somefolder

Copy files from ./somefolder


My Linux & Progamming Blog - Jimmy Burnett

Offline

#13 2010-02-27 01:30:08

Maximalminimalist
Member
Registered: 2009-09-20
Posts: 112

Re: [Solved] Unable to mount /home (JFS)

I will do it as soon as possible. Thanks. wink

My computer seems like vomiting archlinux. On a new arch installation X crashes and the computer freezes. The installation of X and openbox is fine but the reboot is fatal. wink

The beginning of the trouble was when my X-server suddenly strangely crashed (and was frozen) and then the filesystem was broken ...

Last edited by Maximalminimalist (2010-02-27 01:30:36)

Offline

#14 2010-04-05 22:14:26

Maximalminimalist
Member
Registered: 2009-09-20
Posts: 112

Re: [Solved] Unable to mount /home (JFS)

Even though there is already a wiki I will maybe repeat some things that could help somebody else...

It was hard work but finally I could manage to recover all my files! smile

1. If the computer doesn't boot, don't try to do fsck. Try to mount it with another system ASAP. (like a usbstick with 2009.08 arch usb.img on it)
(I did this step wrong. That's why I had to to all other steps. big_smile )

2. Make an image of the partition you want to recover with ddrescue. Be careful not to use dd_rescue or dd_rhelp. They are kind of old...The developper of dd_rhelp recommends the use of ddrescue.
(If you use ubuntu the paket is named gddrescue. I lost so **** much time to understand this... -.- )

3. Get jfsrec-svn with yaourt.
(I put ubuntu on my computer for a while because arch didn't work with a X-server. I was not able to compile jfsrec. Maybe you are a more advanced user than me but it was easier with arch... )

4. Read through this homepage carefully. I used jfsrec on a 900GB< drive so it took a bit time...
If jfsrec fails and the computer crashes, don't give up, jfsrec is only at it's 7th subversion...

The reading of the inodes is the longest part and also the most critical one. I had to restart it multiple times. There was also once also an input/output error after (forced) reboot for jfsrec. So I had the idea to compile jfsrec again and it continued!

Finally I got all my files back. smile (Even though I'm a b00n especially for an average archlinux user. big_smile )

I also want to say thanks to everyone for your help! smile

Last edited by Maximalminimalist (2010-04-05 22:22:15)

Offline

Board footer

Powered by FluxBB