 |
 |
 |
 |
| Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum. |

16th July 2012, 06:52 PM
|
|
Registered User
|
|
Join Date: Jan 2009
Posts: 27

|
|
|
[SOLVED] ext3 -> ext4 conversion of "/" and old Grub
Hi,
I am running F17 with / and /boot mounted as ext3. I want to convert / to ext4 to gain some performance, but I still have GRUB in my MBR installed from the F15 times (and GRUB2 package installed but unused). I had bad experience with GRUB2 and don't want to switch to GRUB2 yet.
Will GRUB be able to boot my system after the conversion? (I am going to convert the filesystem offline of course from some boot media)
At
https://ext4.wiki.kernel.org/index.p...system_to_ext4
they say
Quote:
|
If you convert your root filesystem ("/") to ext4, and you use the GRUB boot loader, you will need to install a version of GRUB which understands ext4. Your system may boot OK the first time, but when your kernel is upgraded, it will become unbootable (press Alt+F+F to check the filesystem).
|
But I don't have GRUB installed. Will it work or am I asking for trouble?
Met
Last edited by merilius; 19th July 2012 at 12:24 PM.
Reason: solved now
|

16th July 2012, 07:14 PM
|
|
Guest
|
|
Posts: n/a

|
|
|
Re: ext3 -> ext4 conversion of "/" and old Grub
As far as I remember F15 grub is EXT4 aware.
Don't forget to change the fstab / mount type to ext4 and redo initramfs afterwards
Code:
su
mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-backup.img
dracut /boot/initramfs-$(uname -r).img $(uname -r)
Last edited by Yellowman; 16th July 2012 at 07:19 PM.
|

16th July 2012, 08:18 PM
|
|
Registered User
|
|
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,105

|
|
|
Re: ext3 -> ext4 conversion of "/" and old Grub
You won't really gain any performance.
The performance improvement comes from files containing extents. So until such files are created, there won't be any performance improvements...
Also note, once extents ARE used, you can't go back to ext3.
|

16th July 2012, 08:45 PM
|
|
Registered User
|
|
Join Date: Jan 2009
Posts: 27

|
|
|
Re: ext3 -> ext4 conversion of "/" and old Grub
@Yellowman: Thanks. Are ext4/3/2 drivers compiled into the kernel statically in Fedora? lsmod does not show any such modules in use.
I have already mounted my ext3 "/" with ext4 driver (it is compatible this way).
Does grub look at kernel image + initramdisk only, which resides on separate /boot partition in my case, or actually looks at "/" too? I have no need to convert /boot :-)
@jpollard: Yes, I am aware of this. But updates will come and eventually files will be overwritten. I hope to gain improvement over time.
Last edited by merilius; 16th July 2012 at 08:47 PM.
|

17th July 2012, 11:42 AM
|
|
Registered User
|
|
Join Date: Dec 2006
Posts: 1,718

|
|
|
Re: ext3 -> ext4 conversion of "/" and old Grub
Do you have a SSD? The only improvement is the support for the trim command ;-)
|

19th July 2012, 12:23 PM
|
|
Registered User
|
|
Join Date: Jan 2009
Posts: 27

|
|
|
Re: ext3 -> ext4 conversion of "/" and old Grub
So, I performed the conversion. Edited fstab, recreated initramfs, booted from some rescue CD based on Gentoo and executed tune2fs and e2fsck. All seems to work fine. Have an impression that yum works faster now (maybe it is not a placebo effect).
|

19th July 2012, 04:40 PM
|
|
Official Gnome 3 Sales Rep. (and Adminstrator)
|
|
Join Date: Jul 2011
Location: Leamington Spa, UK
Age: 30
Posts: 1,711

|
|
|
Re: ext3 -> ext4 conversion of "/" and old Grub
It might do, as yum is modifying files and installing new ones, so extents may come into play. However, it's worth noting that in recent Fedora kernels, the ext4 driver is used for ext2/3 mounts too. On the whole, it's still worth enabling full ext4 features though.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 06:16 (Friday, 24-05-2013)
|
|
 |
 |
 |
 |
|
|