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.
The feller is damn good aint he ! I never even got decent a typing so being a lazy bassid I use a lot of GUI. UNTIL...well y'all know. Derek reminds me of stuff I forgot since the 90'z 2000'z. Hell. I'm so old they asked me my dads full name so I had to go find my Hatching Certificate. Man that thing is one heavy piece of stone ;-)
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!
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.
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.
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.
For efi u don't have to make a grub partition u install grub in the Boot partition For mbr install grub in root partition because it has mainly one one big partition
@@rustombhesania7265 Also I like rEFInd boot manager, it's really nice, so no need for grub if you use EFI. I slapped that on separate partition and tried different linux distributions. What's great is turns out that if I reinstalled different distributions on my linux partition (re-formatted or even re-partitioned drives), I didn't even had to touch EFI partition or update settings, it auto detected new distro and it appeared in launch menu. And I can safely completely wipe Linux partition without ever breaking Windows. So good.
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?
Had actually accidentally erased my system hard disk drive once when trying to make a boot disk, thankfully it didn't go beyond my EFI and swap partition so with my partition table still intact on the system I can just reformat the EFI and swap partitions.
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
I'm a linux noob who uses an old laptop to learn to use linux. I used fdisk and saw that none of my partitions are flagged as bootable. And yet the laptop boots from this ssd, so what is the boot flag needed for and why does my system boot without it?
/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.
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.
@@Tn5421Me Sure maybe there's no reason to do partitioning in virtual machines, but presumably this tutorial is meant to be to help people who want to install Linux Desktop on their machine, which means those users are going to do set up in their real machine, which means that they would need partitions. Also, any compatibility issues with GPT are outdated. DOS partitions are much more likely to cause problems these days than GPT.
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.
The feller is damn good aint he ! I never even got decent a typing so being a lazy bassid I use a lot of GUI. UNTIL...well y'all know. Derek reminds me of stuff I forgot since the 90'z 2000'z. Hell. I'm so old they asked me my dads full name so I had to go find my Hatching Certificate. Man that thing is one heavy piece of stone ;-)
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!
i guess only excuse for swap partition is that it arguably is easier to encrypt
I literally yesterday was installing arch and wondering what all these partitions are about. Well I know soon enough. Thank you DT for your work!
This series of basic tools is great DT. Love them!
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.
The saviour of college students
just my comment your videos are like 200% times more engaging than the ones from the linux foundation in coursera
I love these Professor Messer courses. Thanks, Jam..., I mean DT!
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.
You’re a life saver
if you continue at the warning it actually converts that drive to gpt
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.
Thank dude, imagine if the rest of the arch install was this easy 😂
Thanks DT!
What about the grub partition?
For efi u don't have to make a grub partition u install grub in the Boot partition
For mbr install grub in root partition because it has mainly one one big partition
@@rustombhesania7265 Also I like rEFInd boot manager, it's really nice, so no need for grub if you use EFI. I slapped that on separate partition and tried different linux distributions. What's great is turns out that if I reinstalled different distributions on my linux partition (re-formatted or even re-partitioned drives), I didn't even had to touch EFI partition or update settings, it auto detected new distro and it appeared in launch menu. And I can safely completely wipe Linux partition without ever breaking Windows. So good.
better than the wiki
Nicely explained.
Hey DT think of m for manual? 😉
And to think this was an issue that I was struggling with working on just a week ago.
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?
my swap is in partition 2
1 for boot, 3 for system, 4 for files
now I'm thinking why 😂 size, maybe
Had actually accidentally erased my system hard disk drive once when trying to make a boot disk, thankfully it didn't go beyond my EFI and swap partition so with my partition table still intact on the system I can just reformat the EFI and swap partitions.
I'd recommend against creating extended partition. If you need more than 4 partitions, just use GPT. It makes your life much simpler.
Great thank you
Lol the guy who said “second” was first, and the guy who said “first” was second
I always had better luck with G-Parted
300+ plus views but only 4 comments, why?
Refreshing matters
those counters update separately
I'll be honest, I've use parted
Why position SWAP at the beginning of the disk? Isn't it better to position it at the end of the disk, so that you could resize it?
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
the point of command line partition tools is when you're doing an arch/gentoo minimal install. Plus command line tools can be more easily automated.
3:07 i guess 'm' refers to manual
I think cfdisk is also great!
Nice.
I'm a linux noob who uses an old laptop to learn to use linux. I used fdisk and saw that none of my partitions are flagged as bootable. And yet the laptop boots from this ssd, so what is the boot flag needed for and why does my system boot without it?
With all the RAM you can get cheaply nowadays do swap partitions even make sense? At a certain point dont you simply have enough RAM?
Hey DT,what tool you use to empty your trash in your main production machine?
I wonder whether in "m for help" the m is short for mayday (m'aidez) ie - Help Me! Was the creator French?
Why does fdisk -l show a bunch of loop files instead of /dev/nvme1 on my Ubuntu system? Should I worry about it ?
i would assume M would be "Manpage/Manual"
second
First, actually. But if you don't want your 'first' then I'll give it someone else. ;)
Thats kinda rude.
@@Imran-cw7jc the little ;-) was nice
"DOS partition table format cannot be used on drives for volumes larger than..." The absolute state of DistroTube...
Please make video on global menu bar with polybar ....
Please 🙏🙏🙏🙏🙏🙏
hey dt! what are you upto?
Probably "m" for manual, I'm assuming...
beware non-linux fdisks -- the flags can be different so always check.
I need some help with doom emacs/vim, where can i find some support? i did not find it on google so i may have to speak with somebody
Hey DT, what happened to your Gemini Capsule?
I think it got replaced with his org-mode website
ext4 doesn't stand for 'extent 4', it actually stands for 'fourth extended filesystem' or 'extended 4'
why using fdisk where cfdisk is more easy to use?
/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.
1
Ur 2nd and the guy saying second is first..
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.
It's not worth it to set up a GPT partition table in a virtual machine, it's just wasted space that can cause compatibility problems
@@Tn5421Me Sure maybe there's no reason to do partitioning in virtual machines, but presumably this tutorial is meant to be to help people who want to install Linux Desktop on their machine, which means those users are going to do set up in their real machine, which means that they would need partitions.
Also, any compatibility issues with GPT are outdated. DOS partitions are much more likely to cause problems these days than GPT.
@@lieryan9137 those who want to install Linux Desktop on their machine will use gparted anyway :)
@@CathrineMacNiel no cfdisk
Why does it have to be that complex? It takes like 2 clicks in windows. :(
As if Windows users partition their disks LMAO.
Cfdisk ist much better then fdisk
RIP. Gone too soon.