Ask Your Question

Fedora Disable Home Partition in Kickstart

asked 2015-06-08 15:53:12 -0500

afyr gravatar image

updated 2015-06-09 09:41:18 -0500

As described here: Fedora 15 creates a / and /home partition by default.

I would like to disable this so /home resides on the / partition. I've tried to specify / as follows: part / --size 4096 --grow --fstype ext4

but how do you specify no /home partition in an automated fasion?

Will 'part' commands be used if the user specifies 'Use all space' from the 'Install to Hard Drive' GUI?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2015-06-08 20:06:17 -0500

sideburns gravatar image

All you have to do is tell anaconda, the Fedora installation program, to use all of your available space in one partition mounted at / and you've got what you want.

However, there are good reasons to have /home on its own partition, because if you ever need to reinstall, you can just select the same partition for /home and skip reformatting it.

edit flag offensive delete link more


Thanks for the answer. I should clarify that this installation is a custom livecd and I'm trying to automate as much as I can as it will be used on hundreds of laptops. Also those performing the installation aren't very savvy with such things which is all the more reason to automate the process.

afyr gravatar imageafyr ( 2015-06-08 23:41:24 -0500 )edit

If you're making a custom image, you shouldn't be using Fedora 15, as that's several years out of date. Use the latest version, Fedora 22.

sideburns gravatar imagesideburns ( 2015-06-09 12:34:42 -0500 )edit

It's a long story, but we're stuck on 15 for the driver support from our 3rd party vendor. In general, I agree.

afyr gravatar imageafyr ( 2015-06-09 18:33:30 -0500 )edit

answered 2015-06-11 19:31:49 -0500

afyr gravatar image

I put the below commands in a script which runs on the first boot after installation at run level 3 (at run level 5 there are issues with gnome using /home and some commands will fail):

<backup home directory to temp>
umount /home
lvremove -vf --autobackup n /dev/mapper/VolGroup-lv_home
pvresize /dev/sda2      
lvextend /dev/mapper/VolGroup-lv_root -l+100%FREE
resize2fs /dev/mapper/VolGroup-lv_root
<restore home directory from temp>


edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-06-08 15:53:12 -0500

Seen: 182 times

Last updated: Jun 11 '15