Results 1 to 10 of 10

Thread: Create new partitions from existing ext4 partition

  1. #1
    Join Date
    May 2013
    Beans
    33

    Create new partitions from existing ext4 partition

    Greetings,

    I want to make 1 maybe 2 new partitions from an existing partition, my system has 1 NTFS partition with Windows (for games), 1 swap partition, 1 Ubuntu partition and 1 ext4 partition for my files.

    I would like to create 1-2 new partitions from my "files" partition, what is the best course of action? I could back up the partition, then delete it and create new partitions but is there a way to make new partitions from my files partition without losing my files? As in resize it and use the free space for making new partitions? I am thinking that backing up my files, deleting partition, creating new ones and restoring my files is safer and easier. If I do that will I have to manually add new partitions to fstab? Should I use live CD with gparted or using gparted directly from Ubuntu is good enough?

    I want to make those new partition(s) in order to have LTS and other versions of Ubuntu installed at the same time.
    Last edited by Jack Harper; August 15th, 2014 at 11:26 AM.

  2. #2
    Join Date
    Aug 2006
    Beans
    13,354
    Distro
    Ubuntu Mate 20.04 Focal Fossa

    Re: Create new partitions from existing ext4 partition

    You should add a screenshort of Gparted (doesn't matter from where), as the original discription lacks in info.

  3. #3
    Join Date
    Nov 2004
    Location
    Maine
    Beans
    2,420
    Distro
    Kubuntu

    Re: Create new partitions from existing ext4 partition

    Hi Jack Harper Welcome to Ubuntu and the World of Linux.
    You can do what you want with partitions , BUT I ALWAYS WARN BACK UP ANY IMPORTANT DATA FIRST TO EXTERNAL MEDIA - JUST IN CASE.

    Here is a tutorial on how to do what you want. Good Luck!
    Last edited by kc1di; August 15th, 2014 at 12:14 PM.
    Wireless script
    Dave
    Registered Linux User #462608
    Morse Code an early Digital Mode.

  4. #4
    Join Date
    May 2013
    Beans
    33

    Re: Create new partitions from existing ext4 partition

    Quote Originally Posted by kc1di View Post
    Hi Jack Harper Welcome to Ubuntu and the World of Linux.
    You can do what you want with partitions , BUT I ALWAYS WARN BACK UP ANY IMPORTANT DATA FIRST TO EXTERNAL MEDIA - JUST IN CASE.

    Here is a tutorial on how to do what you want. Good Luck!
    Thanks I will check the tutorial. I think I will opt for backuping the partition and then deleting it and creating new partitions instead of resizing, because I need to backup files when resizing as well, as you noted yourself, and "clean" partitioning seems like a better choice to me than resizing

  5. #5
    Join Date
    Nov 2004
    Location
    Maine
    Beans
    2,420
    Distro
    Kubuntu

    Re: Create new partitions from existing ext4 partition

    I think that may be a good move

    Remember you can only have 4 primary partition on a machine. So you'll need to use an extended partion to make more than four
    Wireless script
    Dave
    Registered Linux User #462608
    Morse Code an early Digital Mode.

  6. #6
    Join Date
    Sep 2007
    Location
    Oklahoma, USA
    Beans
    2,378
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: Create new partitions from existing ext4 partition

    Jack already has four partitions, so once he removes that "files" partition he's going to have to replace it with an extended partition in order to keep going.

    But that's ONLY if his system uses the old standard MBR format; many if not most newer machines use GPT format instead (sometimes called EFI; they're not the same but often show up together). With GPT, the four-partition limit no longer applies, but modification gets quite complicated. OldFred is the most knowledgeable of the folk hereabouts when it comes to EFI/GPT matters...

    Jack: this "extended partition" we're mentioning is simply a container, not a true partition. It occupies one slot in the quite small Master Boot Record's partition table, and points to another table that can hold many more true partition entries. The MBR table's small size dates from the very first hard-drive-equipped IBM PC some 30-plus years ago; memories were much smaller then and saving space was essential to making things work at all. Since then, we've been saddled with "backward compatibility" until drives got so huge that a totally new design became necessary.
    --
    Jim Kyle in Oklahoma, USA
    Linux Counter #259718
    Howto mark thread: https://wiki.ubuntu.com/UnansweredPo.../SolvedThreads

  7. #7
    Join Date
    May 2013
    Beans
    33

    Re: Create new partitions from existing ext4 partition

    What I worry about more than partitioning is how to configure multiboot properly as I never had more than 2 operating systems installed, I always had Windows for games and Ubuntu for everything else, now I will add another Ubuntu installation and possibly one more installation for experimentation with other distributions. Any good step by step tutorials on how to do that? As in what to do with Grub when installing second and third distribution, how to make LTS handle the booting process etc. Thanks

  8. #8
    Join Date
    Sep 2007
    Location
    Oklahoma, USA
    Beans
    2,378
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: Create new partitions from existing ext4 partition

    Grub should handle all the different systems for you automagically; each time you run update-grub the program will scan all partitions and add each bootable o/s that it finds to its menu. The only tricky part is making sure which copy of Grub is launched at boot time, since each different distribution you install will include its own copy (and run update-grub as the final step of that installation process), and there are a number of different versions out that may or may not be totally compatible with each other. There are configuration settings you can tweak to force selection of your desired version at boot time, but I'm not totally familiar with them so someone else will have to provide the details of using them...
    --
    Jim Kyle in Oklahoma, USA
    Linux Counter #259718
    Howto mark thread: https://wiki.ubuntu.com/UnansweredPo.../SolvedThreads

  9. #9
    Join Date
    May 2013
    Beans
    33

    Re: Create new partitions from existing ext4 partition

    Quote Originally Posted by JKyleOKC View Post
    Grub should handle all the different systems for you automagically; each time you run update-grub the program will scan all partitions and add each bootable o/s that it finds to its menu. The only tricky part is making sure which copy of Grub is launched at boot time, since each different distribution you install will include its own copy (and run update-grub as the final step of that installation process), and there are a number of different versions out that may or may not be totally compatible with each other. There are configuration settings you can tweak to force selection of your desired version at boot time, but I'm not totally familiar with them so someone else will have to provide the details of using them...
    Thanks for the information on grub, I would like LTS to handle multiboot if possible, I will wait for a link to a detailed tutorial or someone with experience in this to provide more information as I would like to play it safe, dont want to mess up my existing Ubuntu installation or end up with a system that wont boot anything

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

    Re: Create new partitions from existing ext4 partition

    You will need to learn about grub as you can greatly simplify booting with mulitple systems. But you need to edit grub and modify where second installs of grub are installed and where grub updates automatically reinstall to.

    I really only know Ubuntu which is Debian based, so other Debian based system should apply.

    You always want to install with Something Else so you have a choice on the partitioning screen on where to install grub. If you have a working grub in the MBR, then you may want to install second install's grub to a partition which otherwise is never recommended. It is more as a throwaway so not really used. But Ubuntu does not give a choice not to install grub.

    How to: Create a Customized GRUB2 Screen that is Maintenance Free.- Cavsfan
    https://help.ubuntu.com/community/Ma...tomGrub2Screen
    http://ubuntuforums.org/showthread.php?t=2076205
    https://help.ubuntu.com/community/Grub2/Displays

    If after the fact you can change grub2's default reinstall.

    http://askubuntu.com/questions/50341.../503446#503446
    #To see what drive grub2 uses see this line - grub-pc/install_devices:
    sudo debconf-show grub-pc
    sudo grub-probe -t device /boot/grub

    #to get grub2 to remember where to reinstall on updates:
    sudo dpkg-reconfigure grub-pc or dpkg-reconfigure grub-efi-amd64
    #Enter thru first pages,spacebar to choose/unchoose drive, enter to accept, do not choose partitions
    http://ubuntuforums.org/showthread.php?t=2189643
    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.

Tags for this Thread

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
  •