Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: ubuntu server installation and existing partition

  1. #1
    Join Date
    Oct 2019
    Beans
    6

    ubuntu server installation and existing partition

    I need to install ubuntu server on a disk where partitions are already present.
    What I want to do is not to lose the sdb6 partition, then install ubuntu on the remaining disk and then after installation do the sdb6 mount.
    But during the installation I can't set the partitions.
    Help?

    Thanks
    Last edited by emanuelemx; October 15th, 2019 at 08:41 AM.

  2. #2
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: ubuntu server installation and existing partition

    What brand/model system?
    Post this:
    sudo parted -l
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  3. #3
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: ubuntu server installation and existing partition

    We need much more data and facts to help. How are we supposed to know what sda7 is?

    Boot into a Live-Boot desktop environment and install "boot repair". Don't let it actually perform any repair. THAT IS IMPORTANT! Center bottom of the screen, there is a "gather info" button. Press that and post the URL back here.

    If here is anything you don't want to lose, be certain to make a backup. Dealing with partitions is a common way to wipe entire disks by accident.

    If you are new to Linux, it would be safer to use virtualization. This doesn't risk your current partitions and if properly tuned, you can get 90-95% of the performance that running directly on the hardware would provide. Just depends on the hardware and settings. I first started running Linux inside VMs around 2006 at home. It is a great way to learn more about Linux with very little risk (zero?).

  4. #4
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: ubuntu server installation and existing partition

    Quote Originally Posted by emanuelemx View Post
    But during the installation I can't set the partitions.
    The installer has an option (the one at the bottom of the list) that lets you specify exactly how and where you want the system to be installed.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  5. #5
    Join Date
    Oct 2019
    Beans
    6

    Re: ubuntu server installation and existing partition

    Ubuntu server 18.04

    parted -l

    num---- start-------end ---------dimension -------type------ file sys
    1 ------512B ------526MB-- ---- 526MB---------- prim------ ext3
    2 ----- 526MB- -- 17,7GB------ 17,2GB------- - prim------ linux-swap
    3 ------17,7GB--- 36,6GB-- --- 18,9GB-------- prim
    4 ----- 36,6GB--- 1000GB ----- 964GB-------- extend
    5 ----- 36,6GB---- 115GB------ 78,7GB------- logic-------- ext4
    6 ----- 115GB ---- 1000GB----- 885GB------- logic ------- ext4
    Last edited by emanuelemx; October 15th, 2019 at 08:44 AM.

  6. #6
    Join Date
    Oct 2019
    Beans
    6

    Re: ubuntu server installation and existing partition

    in the installer it allows me to choose manual partitioning, but only to personally create partitions, without showing me the existing partitions

  7. #7
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: ubuntu server installation and existing partition

    Looks like you need to shrink at least one of the logical partitions to make room for 1 ,2, 3, or more partitions for the new installs. The size of sda4 is the limiting factor. sda5 and higher numbered partitions must fit inside sda4. That's a limitation of using MSDOS partition tables, like it appears this system does.

    About that huge swap ....

    BTW, 17G is way, way, way too large for swap. 4.1G is the size needed, pretty much always. The old rules about 2-3x RAM for swap was valid when systems had 8MB of RAM. As more and more RAM became common, the sizing of swap became less and less important.

    There are 2 reasons to have more 4.1G of swap:
    a) you run a VPS and don't like your customers much, so you over-subscribe the users to the available RAM by a huge amount.
    b) you use hibernation (which only makes sense for desktops, inside a controlled, physical, location). Never use hibernation for a laptop, if you care anything about security.

    IMHO.
    Last edited by TheFu; October 15th, 2019 at 08:36 PM.

  8. #8
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: ubuntu server installation and existing partition

    Quote Originally Posted by emanuelemx View Post
    num---- start-------end ---------dimension -------type------ file sys
    1 ------512B ------526MB-- ---- 526MB---------- prim------ ext3
    2 ----- 526MB- -- 17,7GB------ 17,2GB------- - prim------ linux-swap
    3 ------17,7GB--- 36,6GB-- --- 18,9GB-------- prim
    4 ----- 36,6GB--- 1000GB ----- 964GB-------- extend
    5 ----- 36,6GB---- 115GB------ 78,7GB------- logic-------- ext4
    6 ----- 115GB ---- 1000GB----- 885GB------- logic ------- ext4
    If you boot this system and run "df" we can see the mount points and the amount of space in use. I'm guessing sda1 is boot and sda3 is the root filesystem?

    What's in /dev/sda5 and /dev/sda6?

    I forgot you were installing the server edition which is text-only and doesn't offer as much flexibility as the GUI installer. You might consider booting from a desktop version and running gparted to examine the drive graphically. Then you can decide whether to lop off some of /dev/sda6 and create a new partition.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  9. #9
    Join Date
    Oct 2019
    Beans
    6

    Re: ubuntu server installation and existing partition

    I have no problem deleting all the partitions, except sda6, that would keep it intact.

  10. #10
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: ubuntu server installation and existing partition

    Quote Originally Posted by emanuelemx View Post
    I have no problem deleting all the partitions, except sda6, that would keep it intact.
    Before you do anything, please make backups of anything that cannot be lost. From here, we cannot tell what any of those partitions holds except the swap.

    Backups are needed anyways.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •