Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problems when mounting JFS partition
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Bepcyc
Tux's lil' helper
Tux's lil' helper


Joined: 07 May 2004
Posts: 130
Location: Moscow, Russia

PostPosted: Sun Mar 20, 2005 6:22 am    Post subject: problems when mounting JFS partition Reply with quote

Each time I boot gentoo I can't mount one of my JFS partitions
Quote:

# mount /dev/hda8 /mnt/tmp/
mount: wrong fs type, bad option, bad superblock on /dev/hda8,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so



then I do fsck.jfs /dev/hda8 and it mounts clean
but I need to do it each boot

what's the strange behaviour?
Back to top
View user's profile Send private message
ZhenJuan
n00b
n00b


Joined: 15 Jan 2006
Posts: 44
Location: The Stealth Building

PostPosted: Sun Jan 15, 2006 4:26 am    Post subject: Reply with quote

Can you post your fstab file, as well as the output from dmesg | tail ?

Also, do you have jfsutils installed?
Back to top
View user's profile Send private message
emdej
n00b
n00b


Joined: 04 Feb 2004
Posts: 70
Location: Wrocław, PL

PostPosted: Wed May 24, 2006 1:32 pm    Post subject: Reply with quote

I've the same problem (I think so).
The message appears while booting. When I'm trying to mount it manually after boot it also gives that message. I've to manually fsck the partition and then mount it - then it works.
I think, fstab doesn't affect this problem. Jfsutils is of course [fsck.jfs works] installed.

It is on kernel 2.4.28-gentoo-r9 and 2.6.16-gentoo-r7
Back to top
View user's profile Send private message
col
l33t
l33t


Joined: 08 May 2002
Posts: 820
Location: Melbourne - Australia

PostPosted: Fri May 26, 2006 11:31 pm    Post subject: Reply with quote

I have this problem to....after a crash it refuses to mount until I manually fsck it....very annoying.
Back to top
View user's profile Send private message
col
l33t
l33t


Joined: 08 May 2002
Posts: 820
Location: Melbourne - Australia

PostPosted: Wed May 31, 2006 3:51 am    Post subject: Reply with quote

After a bit of googling I found this jfs mount option:

errors=continue

which I have added to my fstab:

/dev/sda2 /mnt/mythtv jfs errors=continue 0 0

If this works then I will notify here.
Back to top
View user's profile Send private message
col
l33t
l33t


Joined: 08 May 2002
Posts: 820
Location: Melbourne - Australia

PostPosted: Tue Jun 06, 2006 10:46 am    Post subject: Reply with quote

no errors=continue does not help...I am probably going to reformat & use reiser instead.
Back to top
View user's profile Send private message
emdej
n00b
n00b


Joined: 04 Feb 2004
Posts: 70
Location: Wrocław, PL

PostPosted: Mon Jun 19, 2006 10:57 am    Post subject: Reply with quote

Is it really impossible to solve that ? Doesn't anybody have the problem too ?
Back to top
View user's profile Send private message
voytas
Apprentice
Apprentice


Joined: 31 Mar 2004
Posts: 203
Location: Poland, Lodz

PostPosted: Mon Jun 19, 2006 11:02 am    Post subject: Reply with quote

emdej wrote:
Is it really impossible to solve that ? Doesn't anybody have the problem too ?
once had same problem, reformated using reiserfs, because jfs is too buggy to use it...
should you loose power, you'll end up with corrupted fs :!:
_________________
LAPTOP: ThinkPad T530
Back to top
View user's profile Send private message
emdej
n00b
n00b


Joined: 04 Feb 2004
Posts: 70
Location: Wrocław, PL

PostPosted: Mon Jun 19, 2006 11:12 am    Post subject: Reply with quote

Well, I haven't experienced the bugs of jfs, I've never lost my data from jfs partition, and jfs is very fast with many small files... I felt a huge difference (in speed) when changed fs from reiserfs.
Back to top
View user's profile Send private message
voytas
Apprentice
Apprentice


Joined: 31 Mar 2004
Posts: 203
Location: Poland, Lodz

PostPosted: Mon Jun 19, 2006 11:23 am    Post subject: Reply with quote

emdej wrote:
Well, I haven't experienced the bugs of jfs, I've never lost my data from jfs partition
it seems that you're the lucky one :)
emdej wrote:
and jfs is very fast with many small files... I felt a huge difference (in speed) when changed fs from reiserfs.
again it is very strange because reiserfs is the best when dealing with small files... maybe you didn't add notail option to your fstab when using reiserfs :?:

I used jfs on my old lapy (Pentium 233 MMX), because all the people said it does not utilize so much CPU power as reiserfs, but I didn't like to check my root partition every few mounts because it complained about being corrupted...

I'll never use JFS again, there's no sense...
if you want speed - go for reiserfs (or even reiser4, but not tried that)
if you want real stability - go for ext3 (as it is the most stable fs)
if you do not care about journalling (stability) and want speed - go for ext2...

JFS IS BUGGY :!:
_________________
LAPTOP: ThinkPad T530
Back to top
View user's profile Send private message
col
l33t
l33t


Joined: 08 May 2002
Posts: 820
Location: Melbourne - Australia

PostPosted: Tue Jun 20, 2006 9:32 am    Post subject: Reply with quote

I use JFS on my mythtv box & is very fast at deleting big files....maybe 5-10* faster than ext3....since I often record & delete huge mpeg files with mythtv it seems like the pefect file system.

I have had no problem with corruption...just this irritating thing with the file system not mounting after a crash. Perhaps kernel 2.6.17 will work better ?
Back to top
View user's profile Send private message
ennservogt
n00b
n00b


Joined: 27 May 2004
Posts: 32

PostPosted: Tue Jul 25, 2006 8:07 am    Post subject: [solved] Reply with quote

The sixth and last field in the /etc/fstab file, tells the fschk program which paritions to check on bootup. If it is zero, the partition never gets checked. If a JFS partition was not cleanly umounted you can not mount it till a check has been run on it (I think that's also the case with most other filesystems). So you have to do that manually or let fschk do that for you on bootup. But fschk only does this for you of the sixth field is '1' or '2'.

man fstab:

Quote:

<...>
The sixth field, (fs_passno), is used by the fsck(8) program to determine the order in which filesystem checks
are done at reboot time. The root filesystem should be specified with a fs_passno of 1, and other filesystems
should have a fs_passno of 2.
Filesystems within a drive will be checked sequentially, but filesystems on
different drives will be checked at the same time to utilize parallelism available in the hardware. If the
sixth field is not present or zero, a value of zero is returned and fsck will assume that the filesystem does
not need to be checked.

<...>


my /etc/fstab:

Code:

<...>
/dev/sda6               /                  jfs             noatime                                          0 1
/dev/sda8               /mnt/data      vfat           defaults,rw,uid=christoph,gid=users     0 0

# LVM2 volumes
/dev/vg/usr             /usr          jfs     noatime         0 2
/dev/vg/home          /home       jfs     noatime         0 2
/dev/vg/opt            /opt          jfs     noatime         0 2
/dev/vg/var            /var          jfs     noatime         0 2
/dev/vg/tmp           /tmp         jfs     noatime         0 2
/dev/vg/scripts       /scripts     jfs      noatime         0 2
<...>



Ennservogt


Words for the search database: jfs crash corrupt filesystem automically check parition boot bootup
Back to top
View user's profile Send private message
col
l33t
l33t


Joined: 08 May 2002
Posts: 820
Location: Melbourne - Australia

PostPosted: Fri Aug 11, 2006 9:48 am    Post subject: Reply with quote

cool I had to manually fsck the other day....I will try noatime 0 2
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum