VehiclesFashionRecipesBlogsHuntTravelsSportFunHandmadeITEducation
Mini-Games
x

x
zakruti.com » IT - Software » IT, programs, coding
Creating Partitions In Linux Using fdisk (and other tools) DistroTube

Creating Partitions In Linux Using fdisk (and other tools) DistroTube

FBTwitterReddit

video description

Rating: 4.0; Vote: 1
Creating Partitions In Linux Using fdisk (and other tools) DistroTube When it comes to command line installations of Linux (and other operating systems), the scariest part for most people is partitioning and formatting your drives. But it's not that complicated, and tools like fdisk make it really simple. In this video, I show the basics of fdisk, mkswap, mkfs and related command line tools
Date: 2022-03-30

Comments and reviews: 10


I'm confused by this tutorial. This tutorial is released in 2021, but it's talking about fdisk, DOS partition, Legacy Boot, ext4 filesystem, etc. These are all legacy technologies with serious limitations for daily usage, which IMO, we should've by now deleted from daily conversations in favor of newer, better techs, and to avoid misleading new users into those legacy traps.
Nowadays there's no reason to use legacy partition, most physical machines you'll ever see and pretty much any virtual machine managers, would've supported GPT and UEFI. fdisk is also kinda an old and user unfriendly compared to other more modern partitioning tools, and if you're setting up new filesystem, there's usually more sensible choices than ext4, like btrfs for example, or zfs if that's your fancy. ext4 has its uses, but it really should no longer be your first choice.
Also, we should also recommend LVM (Logical Volume Manager) for most users. I don't think I hear LVM being mentioned here anywhere, maybe I missed them.

reply

/dev/sdx is not about SSD is about SCSI drives. /dev/hdx is about old IDE drives. Gotta make sure you do the reasearch about the terms before making the video. Also is important that before any partition table is created to verify it with either p command or v just in case you chose the wrong drive. While fdisk will send a warning if you are creating a partition table on a used drive it's always good practice to double check. Also in case you want to set up a Linux Distro test drive on a MBR disk is good practice to create an extended partition table to mount the / and /home mount point while keeping /boot and swap partition as primary partitions.
reply

We think alike. For years, I have kept a separate partition called storage that all of my personal files of any type are kept on, as well as VMs. That way, I don't have to back up anything to reinstall my OS, or change my OS. Nice instruction on fdisk. I've never really done that kind of stuff from the command line. Always use GParted or whatever is built into the graphical installer I'm running. I've always preferred GUI over command line. I use the options menu in gnome-disks to set up auto-mounting of my storage drive.
reply

Great video on the basics of 'fdisk', but I'd like to add a few things:
- Most old dogs have been using 'cfdisk' since before Y2K, except when you need a quick list of the partitions.
- Swap files are preferred over swap partitions these days due to the ease of maintenance/expansion.
- I would have added a quick explaination between 'MBR' and 'GPT', which is very important when we're talking partitions.
Keep up the good work, sir!

reply

Soooo, a couple of questions:
- if I have a SSD and a HDD, both of 1 TB and non-NVME, how do I differentiate between them ?
- if I install Linux on sdb and later I remove the drive that is now sda, when I boot back into Linux, would it still be sdb, or it would be sda ? How does consistency between drives, when swapping is a thing, work ? Edit: ok, finished viewing the video, this is done using UUID.

reply

Because of the hard limit of 4 primary partitions on dos partition tables, I'd have probably done an extended partition. Also worth mentioning,
[sudo] umount /mnt/music
[sudo] mount -a # assuming defaults includes auto - probably standard
In lieu of a reboot to test changes to /etc/fstab.
Is there a particular reason to make the swap as the first partition, or was it just done for simplicity?

reply

I was literally looking for a partitioning tutorial from you two days ago when I changed from Windows to Ubuntu! I found it today.
The reason why is because my 10yo laptop has an SSD and HDD. Now previously the whole C drive was on the SSD and the rest on the HDD, but now I installed Ubuntu and don't know where the OS is installed.

reply

I dont see the point of command line partition tools like fdisk because most of the time you partition once or twice and never really partition unless you reinstall the OS so the time saved by using something like fdisk over cfdisk would've been already taken up by the time learning how to use fdisk
reply

/dev/sdXY doesn't actually denote solid state drives vs. mechanical hard drives; it was originally used for SCSI devices (to distinguish from IDE devices, which use /dev/hdXY) and now SATA devices.
reply

We fell into his trap, he tricked us into seeing that arch isn't that hard to install.
In all seriousness thank you for the video and thank you for the nice, informative, clean content.

reply
Add a review, comment






Other channel videos