Page 1 of 1

Only one partition...

Posted: 06 Sep 2014, 07:38
by switchgott
Hi,
is it possible to create a minimal os with only one partition?
I dont like the lvm volume with /home.

Any how can i do this with installer?

Thanks for help

Re: Only one partition...

Posted: 06 Sep 2014, 08:20
by Gordon
Anything is possible. But obviously the installer won't do it any other way than with the LVM. It's not that hard to convert though. Simply create a regular file system and mount that one as /home. However if you do plan to wipe al data in /home, you'd probably want to repartition the disk, moving the swap partition forward to become /dev/sda2

Yes, this is still a three partition scheme. Moving to one partition only will require you to run without swap space, or create a swap file. Steps would be:
  1. boot the rescue system
  2. repartition the disk
  3. create an ext3 file system on the disk
  4. mount disk
  5. create a boot folder on the disk and copy uImage in that folder
  6. create a swap file using dd and run mkswap to create a swap file system inside it
  7. untar the payload file (it's gzipped) to the disk root
  8. edit etc/fstab to remove /home mount and use the swap file for swap

Re: Only one partition...

Posted: 06 Sep 2014, 10:23
by switchgott
Thanks
this is what i tried out but with swap partition...
B3 wont boot inside os .-(

So i will try your work around.
But why i cant use swap parttion /dev/sda1 and data for /dev/sda2?

Re: Only one partition...

Posted: 06 Sep 2014, 11:25
by Gordon
U-boot in flash expects /boot/uImage to be in /dev/sda1. The B3 will not boot if it is not there. Further more the comandline parameters also tell the kernel that the root partition is /dev/sda1, so if you're using a stock kernel the basic file system has to be on /dev/sda1.

BTW Having a swap file instead of a swap partition is not the recommended way to install Linux

Re: Only one partition...

Posted: 06 Sep 2014, 13:13
by switchgott
Ahh,

thanks for this info!
So i could use /dev/sda1 for data and /dev/sda2 for swap..