Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can I disable the huge_file feature without reformatting?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Shining Arcanine
Veteran
Veteran


Joined: 24 Sep 2009
Posts: 1110

PostPosted: Sun Feb 28, 2010 3:48 am    Post subject: Can I disable the huge_file feature without reformatting? Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 27780
Location: 56N 3W

PostPosted: Sun Feb 28, 2010 1:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
Shining Arcanine
Veteran
Veteran


Joined: 24 Sep 2009
Posts: 1110

PostPosted: Sun Feb 28, 2010 4:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
Shining Arcanine
Veteran
Veteran


Joined: 24 Sep 2009
Posts: 1110

PostPosted: Sun Feb 28, 2010 6:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum