Greetings!

I've just moved all the filesystems in my box to ext3... or at least, I 
thought I had...

This is a box I've just built to test a few things on quickly.. however, I 
thought I'd set up ext3 quickly first, because I've only done it a few 
times before and a bit of practice never hurts....

What I've done is this:

A) Recompiled kernel, making sure the ext3 support is compiled straigh 
into the kernel, not as a module
B) run tune2fs on the partitions to create the journal, edited /etc/fstab 
to set all fstypes to 'auto', rebooted

If I now run mount, I get this (trimed for brevity):

[root@bigmark /root]# mount
/dev/sda6 on / type ext3 (rw)
/dev/sda2 on /boot type ext3 (rw)

this information is the same as in mtab:

[root@bigmark /root]# cat /etc/mtab
/dev/sda6 / ext3 rw 0 0
/dev/sda2 /boot ext3 rw 0 0

however, looking at /proc/mounts, i get this:

[root@bigmark /root]# cat /proc/mounts
/dev/root / ext2 rw 0 0
/dev/sda2 /boot ext3 rw 0 0


this raises two questions:

A) wtf is /dev/root? 
[root@bigmark /dev]# ls root
ls: root: No such file or directory

it's not anything that exists, that i can see

Secondly, is it ext2 or ext3?

I asked in #slug, someone pointed me to a URL which I don't have handy at 
the moment... however, points to note (and points which mean that that 
post is not relevant to me):

* This is a custom-compiled kernel (although admittedly based on RH7.1's 
default config, witha all the stuff i don't need stripped out)
* I don't have ext3 is a module, it's built into the kernel.. This 
precludes the obvious suggestion that the root FS is ext2 because the ext3 
driver isn't loaded
* I'm not looking at /etc/fstab to determine that i'm using ext3 - i'm 
relying on /proc/mounts and /etc/mtab to determine what FS i'm using...

It would appear that /proc/mounts is to be believed in this instance... 
I'm awatre taht /etc/mtab can be incorrect (you can easily, for instance, 
force mount(8) not to lis the fs i loads into /etc/mtab)... 

but if /proc/mounts is to be believed, then why am I using ext2 rather 
than ext3?

Any pointers anyone can give are greatly appreciated




-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to