LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 11-06-2019, 02:03 PM   #1
frankfenderbender
LQ Newbie
 
Registered: Jan 2012
Location: Earth
Distribution: Ubuntu
Posts: 17

Rep: Reputation: Disabled
pre-install partitioning in Fedora v. Ubuntu


In Ubuntu I can partition a HD (to be entirely used for Ubuntu) before I install. The installer sees the partitions and installs into them rather than into its singular [default] "OS" partition.

That is particularly slick because the install process remains automated, rather than interactively slow and more open to typos during an interactive full-install.

Some advantages of this 'modular' partitioning of '/':
1) my /var/ folder can have its own partition so that I can have a database installed and developed in there; if I have to re-install Ubuntu, that process will preserve my database.
2) my /home/ with all of its users' dot-files and specifics will not be lost.
3) all of my locally-installed (downloaded, installed, licensed, and configured) local tools will remain safe.
4) I can backup single partitions on a schedule based upon the access to and use of that partition's content.

So, I'm looking at Fedora and am uncertain if the same pre-partitioning is viewed by the installer?

Restating, can I partition before a Fedora installation, or, does the install just give a 'choice' between me either accepting its default partitions or doing my partitioning through the installer's interactive steps?

Thanks,
"frank"

Last edited by frankfenderbender; 11-06-2019 at 03:14 PM. Reason: tweaked some puncuation and spelling
 
Old 11-06-2019, 02:20 PM   #2
captain_sensible
Member
 
Registered: Apr 2010
Posts: 352

Rep: Reputation: 145Reputation: 145
i 've never used Fedora (yet) but mostly every time i do a new Slackware installation I set up partitons for types (swap) ext4, ext3 and sizes . In my experience doing a slackware installation , during installation the installer simply says "swap" recognizes , do you want to format , check it bad blocks yes ,no etc.

Partition added to fstab.

So nothing unusual there.
 
Old 11-07-2019, 07:43 AM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,492

Rep: Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488
The Fedora Project site has extremely detailed instructions on installation. If you don't want the standard install and want to set up partitions, you will have the option to select "I will configure partitions" which is shown in Figure 12 at their site at the link below.

https://docs.fedoraproject.org/en-US...sing_Anaconda/
 
Old 11-07-2019, 07:48 AM   #4
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
I have not seen an installer that does not let you partition it out however one wants. but lets not forget that it an be changed after an install anyways. it's called "flexibility"
 
Old 11-14-2019, 05:10 PM   #5
frankfenderbender
LQ Newbie
 
Registered: Jan 2012
Location: Earth
Distribution: Ubuntu
Posts: 17

Original Poster
Rep: Reputation: Disabled
Thanks yancek. I agree. Fedora does have great doc, unlike FreeBSD.
As well, its installer is flexible.
Link appreciated.

Thanks,
"frank"
 
Old 11-14-2019, 05:43 PM   #6
frankfenderbender
LQ Newbie
 
Registered: Jan 2012
Location: Earth
Distribution: Ubuntu
Posts: 17

Original Poster
Rep: Reputation: Disabled
Thanks BW-userx! My Fedora install went well. Both the sda (Ubuntu 18.04) and sdb (Fedora 31) came up in my menu list. The sdc (FreeBSD 12) install came up initially but was not availed after a reboot. W/r/t multi-boot, it is poorly documented, as is finding with today's made-useless [Google-dominate] search engines any documentation specifically dealing with multi-booting OSs all on separate internal disks and Grub 2.

So, after deleting sdc partitions and data, my working plan is to disconnect both ada and sdc before installing FreeBSD onto sdc, so that it will not mess with either Ubuntu or Fedora in any way. Then I will reinstall Ubuntu and Grub onto sda, with hopes that it will see and configure for both Fedora and FreeBSD bootloaders found in their own boot partitions, pulling the correct lines into the lone Grub (on sda).

I would think that each drive/OS needs both an EFI and boot partition (for its specific bootloader) and that only the reinstalled sda (Ubuntu) will have the knowledge in its Grub menu where all system OS bootloaders reside.

Doc regarding how to prevent he 2nd-3rd-etc. installations from overwriting grub with themselves only is the hazy zone for me. Also, if I have to stuff bootloader or EFI lines from the 2nd-3rd-etc. installed OSs into the default Grub and/or /etc/grub.d/40_custom files, where I am supposed to find the parameters (and which args to even send) is a mystery as well.

Too many web sources do not match the conditions if their conditions are even disclosed, and, few have OSs on their own drives rather than sharing a drive with multiple OSs.

Any pointers, example code, and/or commands to find the menuentry parameters is greatly-appreciated.

best wishes,
"frank"
 
Old 11-14-2019, 05:55 PM   #7
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by frankfenderbender View Post
Thanks BW-userx! My Fedora install went well. Both the sda (Ubuntu 18.04) and sdb (Fedora 31) came up in my menu list. The sdc (FreeBSD 12) install came up initially but was not availed after a reboot. W/r/t multi-boot, it is poorly documented, as is finding with today's made-useless [Google-dominate] search engines any documentation specifically dealing with multi-booting OSs all on separate internal disks and Grub 2.

So, after deleting sdc partitions and data, my working plan is to disconnect both ada and sdc before installing FreeBSD onto sdc, so that it will not mess with either Ubuntu or Fedora in any way. Then I will reinstall Ubuntu and Grub onto sda, with hopes that it will see and configure for both Fedora and FreeBSD bootloaders found in their own boot partitions, pulling the correct lines into the lone Grub (on sda).

I would think that each drive/OS needs both an EFI and boot partition (for its specific bootloader) and that only the reinstalled sda (Ubuntu) will have the knowledge in its Grub menu where all system OS bootloaders reside.

Doc regarding how to prevent he 2nd-3rd-etc. installations from overwriting grub with themselves only is the hazy zone for me. Also, if I have to stuff bootloader or EFI lines from the 2nd-3rd-etc. installed OSs into the default Grub and/or /etc/grub.d/40_custom files, where I am supposed to find the parameters (and which args to even send) is a mystery as well.

Too many web sources do not match the conditions if their conditions are even disclosed, and, few have OSs on their own drives rather than sharing a drive with multiple OSs.

Any pointers, example code, and/or commands to find the menuentry parameters is greatly-appreciated.

best wishes,
"frank"
so you're booting efi? all of them?
simple enough. I do suppose, I got my freeBSD on partition 7 boot efi via slackware grub.
40_custom
Code:
menuentry "FreeBSD" {
set root='(hd0,7)'
chainload /boot/loader.efi
}
the hd is 0 = 1st drive, 1 = 2nd drive, 2 = 3rd drive, partition numbering, is 1,2,3,,4 etc...

you can use Linux wto open gparted and figure out what partition freeBSD is on.

mbr booting if not gpt partiton table.
Code:
menuentry "FreeBSD" {
    set root='(hd2,1)'
    kfreebsd /boot/loader
}
this is a maybe because it is a separate drive but still numbering may change.
two if you disconnect your dries then install then boot, expect to fail to single user mode.
Code:
mount -u /      # re-mount root as read/write
mount -a -u ufs # mount all UFS filesystems
vi or nano if you got to install that or whatever else to edit /etc/fstab. then change your mount points, and if you did not know, FreeBSD HAS to be on a primary partition to boot.

Last edited by BW-userx; 11-14-2019 at 06:04 PM.
 
Old 11-24-2019, 01:14 AM   #8
frankfenderbender
LQ Newbie
 
Registered: Jan 2012
Location: Earth
Distribution: Ubuntu
Posts: 17

Original Poster
Rep: Reputation: Disabled
Much appreciated!
Sorry that it took me over a week to get back to the forum and your reply.

I've been replacing 1TB internal drives (containing Ubuntu) with 2TB drives this week.
I'm using a Restore flash put together by Dell for my two Dell Precision 5820s, which originally came with the AMD 2100X graphics card and Dell frozen-out AMD drivers. AMD sold them the cards before the drivers were available and supported by Canonical and Ubuntu 16.04. Hence, the "login loop" issue. The addition of multiple sources of hardware/software/firmware makes a code freeze very susceptible to issues when communication and full testing get tabled, reduced, and/or eliminated to meet engineering's schedule deadlines and/or to sustain the business' cash flow: a "perfect storm" brewing ever more when so many (Canonical, Dell, AMD) are so integrally-involved.

So, I keep wondering why the Ubuntu installer always slams 1M before my first partition? MBR?
I have been using the following:

? mbr mbr partition scheme* legacy_boot "legacy bios bootable" is checked
/dev/sda1 fat32 /boot/efi efi system* boot, esp
/dev/sda2 fat32 /biosgrub bios boot* bios_grub, legacy_boot "legacy bios bootable" is checked
/dev/sda3 ext4 /boot extended boot*
/dev/sda4 ext4 / linux root* "x86_64" is selected over "x86"
/dev/sda5 ext4 swap linux swap*
/dev/sda6 ext4 /tmp
/dev/sda7 ext4 /usr
/dev/sda8 ext4 /usr/local
/dev/sda9 ext4 /usr/ports
/dev/sda10 ext4 /var
/dev/sda11 ext4 /home /home*
unallocated (free space)

* = flagged and/or labelled

I had no difficulties with one system, however, the second started to boot up the GUI (in low-res graphics mode, always done before filtering-up through the graphics card into high-res) and then went off into an unresponsive "(initramfs)" command line mode where even an "exit" wouldn't elicit a response. Sop, I did a full disk erase-based install in the installer's default partitioning scheme. That worked, however, I want parttioning over a giant clump. I started up another install - this time doing the partitioning while inside the install procedure, rather than doing it with gparted from another OS's drive, beforehand. It worked and I am at the setup phase in hi-res about to set static ipAddress, admin passwd, etc. ... and, with all of my beloved partitions. Hurrah!

thanks again for the thoughtful support and patient guidance,
"frank"
 
Old 11-24-2019, 01:49 AM   #9
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,799
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
Quote:
Originally Posted by frankfenderbender View Post
I keep wondering why the Ubuntu installer always slams 1M before my first partition? MBR?
It's a convention most partitioning tools have been using for over a decade. It serves two purposes I'm aware of: 1-keeps partitions aligned on 4k boundaries for the benefit of performance on rotating rust with 4k sectors internally; & 2-provides ample space on the boot "track" for bootloader code.

Quote:
...I started up another install - this time doing the partitioning while inside the install procedure, rather than doing it with gparted from another OS's drive, beforehand.
Beforehand is the only way I ever partition, using a 5-way cross-platform tool that logs what it does. I use the logs to track what is located where across multiple multi-multi-boot PCs.

As to:
Quote:
overwriting grub with themselves only is the hazy zone
I limit grub to installing on partitions only, with a master grub on a primary on MBR disks that is never mounted to /boot. On GPT/UEFI disks I don't mount the ESP except in the sole distro on which I have grub installed, where I use custom.cfg via /etc/grub.d/06_CUSTOM to make os-prober irrelevant except as a convenience for booting prior kernels. Really, there is only one bootloader needed per Gnu/Linux PC. Having more than one is an unneeded complication.
 
Old 11-24-2019, 02:48 AM   #10
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,345

Rep: Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588
2TB drives requires a gpt type disk label. This partition is needed when booting a gpt type disk in legacy mode using the grub bootloader. The 1M is used on a gpt disk for grub to put it's boot code that use to go in the space between the mbr and first partition on a msdos type disk. This space doesn't exist on a gpt type disk. The lilo bootloader doesn't need this partition to work on a gpt disk in legacy mode
Why the installer does it when booting in efi mode, I don't know unless it is to allow to boot the disk in legacy mode with grub if the need arises.

Last edited by colorpurple21859; 11-24-2019 at 03:02 AM.
 
Old 11-24-2019, 04:29 AM   #11
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,799
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
Quote:
Originally Posted by colorpurple21859 View Post
2TB drives requires a gpt type disk label.
Greater than 2TiB (4,294,967,295 or 2^32-1 512 byte sector) drives require a GPT disk label (for full access to the entirety of the drive by common tools and operating systems).
Code:
# fdisk -l /dev/sda
Disk /dev/sda: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x00000000

Device     Boot Start        End    Sectors  Size Id Type
/dev/sda1        2048 3907028991 3907026944  1.8T 83 Linux
2 TB = 1.818989404 TiB
 
  


Reply

Tags
install



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
(Pre)-Upgrade from Fedora 7 to Fedora 9...? camel125 Fedora 4 07-06-2008 09:38 AM
How do I boot pre-installed Fedora/Ubuntu from installation CD? petrosrainwalker Linux - Newbie 4 10-05-2007 08:53 PM
Pre-emptive vs. Non-pre-emptive kernel jhwilliams Linux - General 7 09-05-2007 09:06 PM
LXer: Pre-Installed Linux | Ubuntu | Fedora | OpenSUSE | Multi-Boot LXer Syndicated Linux News 0 05-24-2007 06:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 03:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration