New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

Only one partition...

Got problems with your B2 or B3? Share and get helped!
Post Reply
switchgott
Posts: 21
Joined: 12 Jun 2014, 17:00

Only one partition...

Post 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
Gordon
Posts: 1464
Joined: 10 Aug 2011, 03:18

Re: Only one partition...

Post 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
switchgott
Posts: 21
Joined: 12 Jun 2014, 17:00

Re: Only one partition...

Post 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?
Gordon
Posts: 1464
Joined: 10 Aug 2011, 03:18

Re: Only one partition...

Post 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
switchgott
Posts: 21
Joined: 12 Jun 2014, 17:00

Re: Only one partition...

Post by switchgott »

Ahh,

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