Hi
After I managed to upgrade flawlessly from FC11 to FC12 (using preupgrade command) I was trying to move my root file system from ext3 to ext4, mainly based on
http://ext4.wiki.kernel.org/index.ph...running_Fedora but also using other sources.
1. First I have modified /etc/fstab and replaced ext3 to ext4 for '/' (not '/boot').
2. Then I run:
# tune2fs -O extents,uninit_bg,dir_index /dev/dm-0
After that I got a message advising to run e2fsck (I got a bit confused, why e2fsck, not fsck).
3. I was to run fsck -pDf when saw the warning that this needs to be run with unmounted volume. Then I read again some information, and indeed it is said, it must be unmounted. I did NOT proceed here with fsck!
4. Trying to search for unmounting '/' and being unable to do that I did press hard reset on my PC.
5. After rebooting, I got errors (don't know if because of the hard reset or that tune2fs command without fsck -df issued) and '/' was not mounted. I was advised by system to run fsck manually. I was happy that I got on a stage where '/' is unmounted so I can run missing fsck -df (or pDf). But the system explicitly said that -p option cannot be used.
So I run pure fsck and got back working system (I hope).
Now, this is the output of
#tune2fs -l /dev/dm-0
tune2fs 1.41.9 (22-Aug-2009)
Filesystem volume name: <none>
Last mounted on: /
Filesystem UUID: 9fc5140f-eeb8-47b7-be0a-b55ac7e49c4d
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery extent sparse_super large_file uninit_bg
Filesystem flags: signed_directory_hash
Default mount options: user_xattr acl
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 12264000
Block count: 12263424
Reserved block count: 613171
Free blocks: 7661368
Free inodes: 11971124
First block: 0
Block size: 4096
Fragment size: 4096
Reserved GDT blocks: 1021
Blocks per group: 32768
Fragments per group: 32768
Inodes per group: 32704
Inode blocks per group: 1022
Filesystem created: Sat Mar 8 09:44:05 2008
Last mount time: Sun Jan 10 09:34:28 2010
Last write time: Sun Jan 10 09:09:52 2010
Mount count: 6
Maximum mount count: -1
Last checked: Sun Jan 10 05:26:24 2010
Check interval: 0 (<none>)
Lifetime writes: 797 MB
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 128
Journal inode: 8
First orphan inode: 9320802
Default directory hash: tea
Directory Hash Seed: 1c0dd393-2296-4d49-94b6-e482c90c7a82
Journal backup: inode blocks
Also, is it normal, when I issue the same command as Non root, to get this?
$ tune2fs -l /dev/dm-0
tune2fs 1.41.9 (22-Aug-2009)
tune2fs: Permission denied while trying to open /dev/dm-0
Couldn't find valid filesystem superblock.
Now my Fedora seems to be working ok, but I am not sure if I have converted ext3 to ext4. The question is how can I verify that?
And yet. My latest DVD with Fedora is FC10. It fails, when trying to mount a file system in rescue mode. I was obsessed to get my '/' unmounted to run fsck -df. So then I downloaded and burned Fedora-12-i686-Live.iso but it also fails to mount my file system (it seems to be trying to mount it as ext3).