| View previous topic :: View next topic |
| Author |
Message |
Shining Arcanine Veteran

Joined: 24 Sep 2009 Posts: 1110
|
Posted: Sun Feb 28, 2010 3:48 am Post subject: Can I disable the huge_file feature without reformatting? |
|
|
| I would like to disable the huge file feature on my ext4 partitions. Is there any way I can do this without doing a reformat? |
|
| Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 27780 Location: 56N 3W
|
Posted: Sun Feb 28, 2010 1:41 pm Post subject: |
|
|
Shining Arcanine,
Look at man tune2fs see if it has that option. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
| Back to top |
|
 |
Shining Arcanine Veteran

Joined: 24 Sep 2009 Posts: 1110
|
Posted: Sun Feb 28, 2010 4:13 pm Post subject: |
|
|
I just googled "tune2fs huge_file" and found:
http://www.nkuttler.de/2009/09/14/filesystem-with-huge-files-cannot-be-mounted-read-write-without-config_lbdaf/
It has instructions on how to do this. Unfortunately, the drives need to be either offline or mounted as read only, so I now need to either get my LiveDVD or figure out how to remount my root drive as read only from inside of Gentoo.
In case anything happens to that blog, here are the commands I used for my /boot/ drive for future reference:
| Code: | umount /boot
tune2fs -O ^huge_file /dev/sda1
fsck /dev/sda1 |
I should probably reconfigure /etc/fstab so that /boot is not mounted at the system boot, but I have a tendency to recompile my kernel often, so I have been waiting for that to change before I change /etc/fstab. |
|
| Back to top |
|
 |
Shining Arcanine Veteran

Joined: 24 Sep 2009 Posts: 1110
|
Posted: Sun Feb 28, 2010 6:22 pm Post subject: |
|
|
A small update. I went to the commandline and ran this procedure. I do not remember the exact steps I took because the first few tries did not work because the root filesystem was mounted read/write. I originally discovered that my ext4 filesystems had huge_file enabled because I disabled CONFIG_LBDAF in the kernel, so I recompiled my kernel without CONFIG_LBDAF and rebooted. My system booted without a problem, which indicates to me that huge_file support has been removed from both of my partitions.
I am now recompiling the kernel with CONFIG_LBDAF so if someone hands me a USB key with huge_file enabled on it, I will be able to write to it. |
|
| Back to top |
|
 |
|