Hi there, I tried to setup my linux box with an ext3 root file system. That failed because of wrong initrd settings. Sorry. Now the filesystem is marked having a journal but there is no /.journal file anyway. I tried to buikd that journal by hand (tune2fs -j /dev/hda3 - in my case). That fails also. :-( /sbin/tune2fs -l /dev/hda3 says: ... Journal UUID: <none> Journal inode: 8 Journal device: 0x0000 ... How could I convert an Ext3 down to an Ext2, so having the chance to work by hand? Help appritiated!!! Thanks Torsten Finke -- ------------------------------------------------------------------------ Dr.-Ing. Torsten Finke Ingenieurgemeinschaft IgHJ Heinz-Baecker-Str. 34 D-45356 Essen Tel.: +49 201 / 61 99 31 Fax.: +49 201 / 61 98 36 E-mail: torsten.finke@igh-essen.com ------------------------------------------------------------------------
Hi, On Fri, Feb 22, 2002 at 07:00:11PM +0100, Dr.-Ing. Torsten Finke wrote:> I tried to setup my linux box with an ext3 root file system. > That failed because of wrong initrd settings. Sorry. > Now the filesystem is marked having a journal but there > is no /.journal file anyway. I tried to buikd that > journal by hand (tune2fs -j /dev/hda3 - in my case). > That fails also. :-( > > /sbin/tune2fs -l /dev/hda3 > > says: > > ... > Journal UUID: <none> > Journal inode: 8 > Journal device: > 0x0000 > ...That's all fine. The filesystem has a journal on its hidden inode number 8. It does not need the journal to be visible in /.journal. ext3 should work quite happily in this state. Cheers, Stephen
On Feb 22, 2002 19:00 +0100, Dr.-Ing. Torsten Finke wrote:> I tried to setup my linux box with an ext3 root file system. > That failed because of wrong initrd settings. Sorry.Yes, a common problem.> Now the filesystem is marked having a journal but there > is no /.journal file anyway. I tried to buikd that > journal by hand (tune2fs -j /dev/hda3 - in my case). > That fails also. :-( > > /sbin/tune2fs -l /dev/hda3 > > says: > > ... > Journal UUID: <none> > Journal inode: 8 > Journal device: > 0x0000 > ... > > How could I convert an Ext3 down to an Ext2, so having the > chance to work by hand?You are using SuSE with 2.4.10 kernel? It is broken when creating a journal on a mounted filesystem. To remove the existing journal "chattr -i /.journal; rm /.journal". To create a new journal you either need to boot to another kernel version, or boot from a CD or floppy, and "tune2fs -j /dev/hda3". Cheers, Andreas -- Andreas Dilger http://sourceforge.net/projects/ext2resize/ http://www-mddsp.enel.ucalgary.ca/People/adilger/
Hi, On Fri, Feb 22, 2002 at 11:28:46AM -0700, Andreas Dilger wrote:> On Feb 22, 2002 19:00 +0100, Dr.-Ing. Torsten Finke wrote: > > ... > > Journal UUID: <none> > > Journal inode: 8 > > Journal device: > > 0x0000 > > ... > > > > How could I convert an Ext3 down to an Ext2, so having the > > chance to work by hand? > > You are using SuSE with 2.4.10 kernel? It is broken when creating a > journal on a mounted filesystem.The 2.4.10 bug would lead to loss of the superblock info, but according to tune2fs -l, the journal reference in the superblock is fine. Cheers, Stephen
On Fri, Feb 22, 2002 at 07:00:11PM +0100, Dr.-Ing. Torsten Finke wrote:> > How could I convert an Ext3 down to an Ext2, so having the > chance to work by hand?You don't need to do anything. The journal file was properly created, as other people have said; it's merely invisible (which is actually preferable, since it avoids it getting unnecessarily seen by backup programs, and it avoids disasters caused by less-than-clueful system administrators). A filesystem with a journal will also work just fine under ext2, so there's no reason to downgrade to a journal-less filesystem just because you might want to use that filesystem on an ext2-only system. That being said, if you're desparate to reclaim the few megabytes of space consumed by the journal inode, you can get rid of the inode by using "tune2fs -O ^has_journal /dev/hdXXX" while the filesystem is unmounted. But in general, there's no real reason why you need to downgrade your filesystem unless you're desparate for that space back. - Ted