How to create partitions for using Linux from Scratch [on hold]











up vote
-1
down vote

favorite












I am creating my OS using Linux from Scratch. I have installed Puppy Linux on my current hard disk (A). I want to create LFS on second drive (B). Can someone brief me a little on how partitioning has to be done as I am not completely able to understand the manual. I am a little confused as many types of partitions have been mentioned there. Do I have to create partitions mentioned in article 2.4.1 (root,swap and grub bios) or those mentioned in 2.4.1.4 (/boot, /home, /usr, /tmp and /usr/src) or both.










share|improve this question









New contributor




Sam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











put on hold as too broad by Rui F Ribeiro, Christopher, thrig, sam, Romeo Ninov 2 days ago


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.











  • 1




    Hello and welcome to the U&L stack exchange site! Please review the Help Center to get information on how to best post to this site. To get to your question, please edit it to include additional context. What do you mean when you say you are confused? What step specifically are you having an issue with?
    – kemotep
    2 days ago










  • It is not clear what you are saying about your current state; Are you saying “I have installed another Gnu/Linux on to my hard-disk, now I am trying to install Linux from Scratch as a 2nd Gnu/Linux.”
    – ctrl-alt-delor
    2 days ago















up vote
-1
down vote

favorite












I am creating my OS using Linux from Scratch. I have installed Puppy Linux on my current hard disk (A). I want to create LFS on second drive (B). Can someone brief me a little on how partitioning has to be done as I am not completely able to understand the manual. I am a little confused as many types of partitions have been mentioned there. Do I have to create partitions mentioned in article 2.4.1 (root,swap and grub bios) or those mentioned in 2.4.1.4 (/boot, /home, /usr, /tmp and /usr/src) or both.










share|improve this question









New contributor




Sam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











put on hold as too broad by Rui F Ribeiro, Christopher, thrig, sam, Romeo Ninov 2 days ago


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.











  • 1




    Hello and welcome to the U&L stack exchange site! Please review the Help Center to get information on how to best post to this site. To get to your question, please edit it to include additional context. What do you mean when you say you are confused? What step specifically are you having an issue with?
    – kemotep
    2 days ago










  • It is not clear what you are saying about your current state; Are you saying “I have installed another Gnu/Linux on to my hard-disk, now I am trying to install Linux from Scratch as a 2nd Gnu/Linux.”
    – ctrl-alt-delor
    2 days ago













up vote
-1
down vote

favorite









up vote
-1
down vote

favorite











I am creating my OS using Linux from Scratch. I have installed Puppy Linux on my current hard disk (A). I want to create LFS on second drive (B). Can someone brief me a little on how partitioning has to be done as I am not completely able to understand the manual. I am a little confused as many types of partitions have been mentioned there. Do I have to create partitions mentioned in article 2.4.1 (root,swap and grub bios) or those mentioned in 2.4.1.4 (/boot, /home, /usr, /tmp and /usr/src) or both.










share|improve this question









New contributor




Sam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I am creating my OS using Linux from Scratch. I have installed Puppy Linux on my current hard disk (A). I want to create LFS on second drive (B). Can someone brief me a little on how partitioning has to be done as I am not completely able to understand the manual. I am a little confused as many types of partitions have been mentioned there. Do I have to create partitions mentioned in article 2.4.1 (root,swap and grub bios) or those mentioned in 2.4.1.4 (/boot, /home, /usr, /tmp and /usr/src) or both.







linux lfs puppy-linux






share|improve this question









New contributor




Sam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Sam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 2 days ago





















New contributor




Sam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 2 days ago









Sam

12




12




New contributor




Sam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Sam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Sam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




put on hold as too broad by Rui F Ribeiro, Christopher, thrig, sam, Romeo Ninov 2 days ago


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.






put on hold as too broad by Rui F Ribeiro, Christopher, thrig, sam, Romeo Ninov 2 days ago


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.










  • 1




    Hello and welcome to the U&L stack exchange site! Please review the Help Center to get information on how to best post to this site. To get to your question, please edit it to include additional context. What do you mean when you say you are confused? What step specifically are you having an issue with?
    – kemotep
    2 days ago










  • It is not clear what you are saying about your current state; Are you saying “I have installed another Gnu/Linux on to my hard-disk, now I am trying to install Linux from Scratch as a 2nd Gnu/Linux.”
    – ctrl-alt-delor
    2 days ago














  • 1




    Hello and welcome to the U&L stack exchange site! Please review the Help Center to get information on how to best post to this site. To get to your question, please edit it to include additional context. What do you mean when you say you are confused? What step specifically are you having an issue with?
    – kemotep
    2 days ago










  • It is not clear what you are saying about your current state; Are you saying “I have installed another Gnu/Linux on to my hard-disk, now I am trying to install Linux from Scratch as a 2nd Gnu/Linux.”
    – ctrl-alt-delor
    2 days ago








1




1




Hello and welcome to the U&L stack exchange site! Please review the Help Center to get information on how to best post to this site. To get to your question, please edit it to include additional context. What do you mean when you say you are confused? What step specifically are you having an issue with?
– kemotep
2 days ago




Hello and welcome to the U&L stack exchange site! Please review the Help Center to get information on how to best post to this site. To get to your question, please edit it to include additional context. What do you mean when you say you are confused? What step specifically are you having an issue with?
– kemotep
2 days ago












It is not clear what you are saying about your current state; Are you saying “I have installed another Gnu/Linux on to my hard-disk, now I am trying to install Linux from Scratch as a 2nd Gnu/Linux.”
– ctrl-alt-delor
2 days ago




It is not clear what you are saying about your current state; Are you saying “I have installed another Gnu/Linux on to my hard-disk, now I am trying to install Linux from Scratch as a 2nd Gnu/Linux.”
– ctrl-alt-delor
2 days ago










2 Answers
2






active

oldest

votes

















up vote
1
down vote













/



The root directory is the top of the hierarchy, the point where the primary filesystem is mounted and from which all other filesystems stem. All files and directories appear under the root directory /, even if they are stored on different physical devices. The contents of the root filesystem must be adequate to boot, restore, recover, and/or repair the system. Therefore, certain directories under / are not candidates for separate partitions.
The / partition or root partition is necessary and it is the most important. The other partitions can be replaced by it.



Warning: Directories essential for booting (except for /boot) must be on the same partition as / or mounted in early userspace by the initramfs.



/boot



The /boot directory contains the kernel and ramdisk images as well as the bootloader configuration file and bootloader stages. It also stores data that is used before the kernel begins executing user-space programs. /boot is not required for normal system operation, but only during boot and kernel upgrades (when regenerating the initial ramdisk).



A separate /boot partition is only needed if your boot loader cannot access your root filesystem. For example, if the boot loader does not have a filesystem driver for it, or if / is on software RAID, a encrypted volume or a LVM volume.



If booting using UEFI boot loaders that do not have drivers for other file systems it is recommended to mount EFI system partition to /boot.
A suggested size for /boot is 200 MiB unless you are using EFI system partition as /boot, in which case 550 MiB is recommended.



/home



The /home directory contains user-specific configuration files, caches, application data and media files.
Separating out /home allows / to be re-partitioned separately.



Swap



A swap partition provides memory that can be used as virtual RAM. A swap file should be considered too, as they do not have any performance overhead compared to a partition but are much easier to resize as needed. A swap partition can potentially be shared between operating systems, but not if hibernation is used.



For a detailed explanation of partitioning look here:
https://wiki.archlinux.org/index.php/Partitioning






share|improve this answer






























    up vote
    0
    down vote













    It can be all the same device, or separate.
    You can put the new OS into just one partition: no need for /boot (in the old days PCs could not boot to large partitions, so one would need a small partition for boot). Other partitions are for experts only (do it if you have a reason).



    You may want a separate partition for /home, this separates the OS for your files. This makes upgrading to a new OS easier, as you can keep the /home partition.



    Consider also



    Consider installing into Virtual-box, it slower for gaming (you won't notice much for other use cases). However is is much easier as you can not break your current OS and you can run both OSs at the same time.






    share|improve this answer




























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      1
      down vote













      /



      The root directory is the top of the hierarchy, the point where the primary filesystem is mounted and from which all other filesystems stem. All files and directories appear under the root directory /, even if they are stored on different physical devices. The contents of the root filesystem must be adequate to boot, restore, recover, and/or repair the system. Therefore, certain directories under / are not candidates for separate partitions.
      The / partition or root partition is necessary and it is the most important. The other partitions can be replaced by it.



      Warning: Directories essential for booting (except for /boot) must be on the same partition as / or mounted in early userspace by the initramfs.



      /boot



      The /boot directory contains the kernel and ramdisk images as well as the bootloader configuration file and bootloader stages. It also stores data that is used before the kernel begins executing user-space programs. /boot is not required for normal system operation, but only during boot and kernel upgrades (when regenerating the initial ramdisk).



      A separate /boot partition is only needed if your boot loader cannot access your root filesystem. For example, if the boot loader does not have a filesystem driver for it, or if / is on software RAID, a encrypted volume or a LVM volume.



      If booting using UEFI boot loaders that do not have drivers for other file systems it is recommended to mount EFI system partition to /boot.
      A suggested size for /boot is 200 MiB unless you are using EFI system partition as /boot, in which case 550 MiB is recommended.



      /home



      The /home directory contains user-specific configuration files, caches, application data and media files.
      Separating out /home allows / to be re-partitioned separately.



      Swap



      A swap partition provides memory that can be used as virtual RAM. A swap file should be considered too, as they do not have any performance overhead compared to a partition but are much easier to resize as needed. A swap partition can potentially be shared between operating systems, but not if hibernation is used.



      For a detailed explanation of partitioning look here:
      https://wiki.archlinux.org/index.php/Partitioning






      share|improve this answer



























        up vote
        1
        down vote













        /



        The root directory is the top of the hierarchy, the point where the primary filesystem is mounted and from which all other filesystems stem. All files and directories appear under the root directory /, even if they are stored on different physical devices. The contents of the root filesystem must be adequate to boot, restore, recover, and/or repair the system. Therefore, certain directories under / are not candidates for separate partitions.
        The / partition or root partition is necessary and it is the most important. The other partitions can be replaced by it.



        Warning: Directories essential for booting (except for /boot) must be on the same partition as / or mounted in early userspace by the initramfs.



        /boot



        The /boot directory contains the kernel and ramdisk images as well as the bootloader configuration file and bootloader stages. It also stores data that is used before the kernel begins executing user-space programs. /boot is not required for normal system operation, but only during boot and kernel upgrades (when regenerating the initial ramdisk).



        A separate /boot partition is only needed if your boot loader cannot access your root filesystem. For example, if the boot loader does not have a filesystem driver for it, or if / is on software RAID, a encrypted volume or a LVM volume.



        If booting using UEFI boot loaders that do not have drivers for other file systems it is recommended to mount EFI system partition to /boot.
        A suggested size for /boot is 200 MiB unless you are using EFI system partition as /boot, in which case 550 MiB is recommended.



        /home



        The /home directory contains user-specific configuration files, caches, application data and media files.
        Separating out /home allows / to be re-partitioned separately.



        Swap



        A swap partition provides memory that can be used as virtual RAM. A swap file should be considered too, as they do not have any performance overhead compared to a partition but are much easier to resize as needed. A swap partition can potentially be shared between operating systems, but not if hibernation is used.



        For a detailed explanation of partitioning look here:
        https://wiki.archlinux.org/index.php/Partitioning






        share|improve this answer

























          up vote
          1
          down vote










          up vote
          1
          down vote









          /



          The root directory is the top of the hierarchy, the point where the primary filesystem is mounted and from which all other filesystems stem. All files and directories appear under the root directory /, even if they are stored on different physical devices. The contents of the root filesystem must be adequate to boot, restore, recover, and/or repair the system. Therefore, certain directories under / are not candidates for separate partitions.
          The / partition or root partition is necessary and it is the most important. The other partitions can be replaced by it.



          Warning: Directories essential for booting (except for /boot) must be on the same partition as / or mounted in early userspace by the initramfs.



          /boot



          The /boot directory contains the kernel and ramdisk images as well as the bootloader configuration file and bootloader stages. It also stores data that is used before the kernel begins executing user-space programs. /boot is not required for normal system operation, but only during boot and kernel upgrades (when regenerating the initial ramdisk).



          A separate /boot partition is only needed if your boot loader cannot access your root filesystem. For example, if the boot loader does not have a filesystem driver for it, or if / is on software RAID, a encrypted volume or a LVM volume.



          If booting using UEFI boot loaders that do not have drivers for other file systems it is recommended to mount EFI system partition to /boot.
          A suggested size for /boot is 200 MiB unless you are using EFI system partition as /boot, in which case 550 MiB is recommended.



          /home



          The /home directory contains user-specific configuration files, caches, application data and media files.
          Separating out /home allows / to be re-partitioned separately.



          Swap



          A swap partition provides memory that can be used as virtual RAM. A swap file should be considered too, as they do not have any performance overhead compared to a partition but are much easier to resize as needed. A swap partition can potentially be shared between operating systems, but not if hibernation is used.



          For a detailed explanation of partitioning look here:
          https://wiki.archlinux.org/index.php/Partitioning






          share|improve this answer














          /



          The root directory is the top of the hierarchy, the point where the primary filesystem is mounted and from which all other filesystems stem. All files and directories appear under the root directory /, even if they are stored on different physical devices. The contents of the root filesystem must be adequate to boot, restore, recover, and/or repair the system. Therefore, certain directories under / are not candidates for separate partitions.
          The / partition or root partition is necessary and it is the most important. The other partitions can be replaced by it.



          Warning: Directories essential for booting (except for /boot) must be on the same partition as / or mounted in early userspace by the initramfs.



          /boot



          The /boot directory contains the kernel and ramdisk images as well as the bootloader configuration file and bootloader stages. It also stores data that is used before the kernel begins executing user-space programs. /boot is not required for normal system operation, but only during boot and kernel upgrades (when regenerating the initial ramdisk).



          A separate /boot partition is only needed if your boot loader cannot access your root filesystem. For example, if the boot loader does not have a filesystem driver for it, or if / is on software RAID, a encrypted volume or a LVM volume.



          If booting using UEFI boot loaders that do not have drivers for other file systems it is recommended to mount EFI system partition to /boot.
          A suggested size for /boot is 200 MiB unless you are using EFI system partition as /boot, in which case 550 MiB is recommended.



          /home



          The /home directory contains user-specific configuration files, caches, application data and media files.
          Separating out /home allows / to be re-partitioned separately.



          Swap



          A swap partition provides memory that can be used as virtual RAM. A swap file should be considered too, as they do not have any performance overhead compared to a partition but are much easier to resize as needed. A swap partition can potentially be shared between operating systems, but not if hibernation is used.



          For a detailed explanation of partitioning look here:
          https://wiki.archlinux.org/index.php/Partitioning







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 2 days ago

























          answered 2 days ago









          Spoiler

          214




          214
























              up vote
              0
              down vote













              It can be all the same device, or separate.
              You can put the new OS into just one partition: no need for /boot (in the old days PCs could not boot to large partitions, so one would need a small partition for boot). Other partitions are for experts only (do it if you have a reason).



              You may want a separate partition for /home, this separates the OS for your files. This makes upgrading to a new OS easier, as you can keep the /home partition.



              Consider also



              Consider installing into Virtual-box, it slower for gaming (you won't notice much for other use cases). However is is much easier as you can not break your current OS and you can run both OSs at the same time.






              share|improve this answer

























                up vote
                0
                down vote













                It can be all the same device, or separate.
                You can put the new OS into just one partition: no need for /boot (in the old days PCs could not boot to large partitions, so one would need a small partition for boot). Other partitions are for experts only (do it if you have a reason).



                You may want a separate partition for /home, this separates the OS for your files. This makes upgrading to a new OS easier, as you can keep the /home partition.



                Consider also



                Consider installing into Virtual-box, it slower for gaming (you won't notice much for other use cases). However is is much easier as you can not break your current OS and you can run both OSs at the same time.






                share|improve this answer























                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  It can be all the same device, or separate.
                  You can put the new OS into just one partition: no need for /boot (in the old days PCs could not boot to large partitions, so one would need a small partition for boot). Other partitions are for experts only (do it if you have a reason).



                  You may want a separate partition for /home, this separates the OS for your files. This makes upgrading to a new OS easier, as you can keep the /home partition.



                  Consider also



                  Consider installing into Virtual-box, it slower for gaming (you won't notice much for other use cases). However is is much easier as you can not break your current OS and you can run both OSs at the same time.






                  share|improve this answer












                  It can be all the same device, or separate.
                  You can put the new OS into just one partition: no need for /boot (in the old days PCs could not boot to large partitions, so one would need a small partition for boot). Other partitions are for experts only (do it if you have a reason).



                  You may want a separate partition for /home, this separates the OS for your files. This makes upgrading to a new OS easier, as you can keep the /home partition.



                  Consider also



                  Consider installing into Virtual-box, it slower for gaming (you won't notice much for other use cases). However is is much easier as you can not break your current OS and you can run both OSs at the same time.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 2 days ago









                  ctrl-alt-delor

                  10k41955




                  10k41955















                      Popular posts from this blog

                      Accessing regular linux commands in Huawei's Dopra Linux

                      Can't connect RFCOMM socket: Host is down

                      Kernel panic - not syncing: Fatal Exception in Interrupt