Creating Partitions In Linux Using fdisk (and other tools)

Поделиться
HTML-код
  • Опубликовано: 21 авг 2024

Комментарии • 73

  • @Skeleton-wn2zu
    @Skeleton-wn2zu 2 года назад +31

    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.

    • @dougtilaran3496
      @dougtilaran3496 2 года назад +1

      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 ;-)

  • @jaxxarmstrong
    @jaxxarmstrong 2 года назад +43

    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!

    • @leonbishop7404
      @leonbishop7404 Год назад

      i guess only excuse for swap partition is that it arguably is easier to encrypt

  • @Jore__
    @Jore__ 2 года назад +8

    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!

  • @driden1987
    @driden1987 2 года назад +2

    This series of basic tools is great DT. Love them!

  • @russellbrooks3622
    @russellbrooks3622 2 года назад +2

    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.

  • @HeroSnowman
    @HeroSnowman 2 года назад +8

    The saviour of college students

  • @seta16
    @seta16 Год назад

    just my comment your videos are like 200% times more engaging than the ones from the linux foundation in coursera

  • @jessevas5222
    @jessevas5222 2 года назад

    I love these Professor Messer courses. Thanks, Jam..., I mean DT!

  • @ljupconewman9357
    @ljupconewman9357 2 года назад

    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.

  • @Soochoup
    @Soochoup Месяц назад

    You’re a life saver

  • @holyhelga
    @holyhelga 2 года назад +3

    if you continue at the warning it actually converts that drive to gpt

  • @Winnetou17
    @Winnetou17 2 года назад +1

    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.

  • @cloudytea3121
    @cloudytea3121 5 месяцев назад

    Thank dude, imagine if the rest of the arch install was this easy 😂

  • @Blorguehad
    @Blorguehad 2 года назад

    Thanks DT!

  • @yuvvrajkperson
    @yuvvrajkperson 2 года назад +4

    What about the grub partition?

    • @rustombhesania7265
      @rustombhesania7265 2 года назад +1

      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

    • @0babul0
      @0babul0 2 года назад +1

      @@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.

  • @blahaj___
    @blahaj___ 9 месяцев назад

    better than the wiki

  • @send2gl
    @send2gl 2 года назад

    Nicely explained.

  • @BEfirebone
    @BEfirebone 2 года назад +4

    Hey DT think of m for manual? 😉

  • @kingofbubbles6220
    @kingofbubbles6220 2 года назад

    And to think this was an issue that I was struggling with working on just a week ago.

  • @mikechappell4156
    @mikechappell4156 2 года назад +2

    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?

    • @lingux_yt
      @lingux_yt 2 года назад

      my swap is in partition 2
      1 for boot, 3 for system, 4 for files
      now I'm thinking why 😂 size, maybe

    • @supafiyalaito
      @supafiyalaito 2 года назад +1

      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.

    • @lieryan9137
      @lieryan9137 2 года назад

      I'd recommend against creating extended partition. If you need more than 4 partitions, just use GPT. It makes your life much simpler.

  • @houssemgherissi7310
    @houssemgherissi7310 2 месяца назад

    Great thank you

  • @jayst
    @jayst 2 года назад +2

    Lol the guy who said “second” was first, and the guy who said “first” was second

  • @danduby8416
    @danduby8416 2 года назад +2

    I always had better luck with G-Parted

  • @Imran-cw7jc
    @Imran-cw7jc 2 года назад +3

    300+ plus views but only 4 comments, why?

    • @blogattacker
      @blogattacker 2 года назад +2

      Refreshing matters

    • @lingux_yt
      @lingux_yt 2 года назад +1

      those counters update separately

  • @nevoyu
    @nevoyu 2 года назад +2

    I'll be honest, I've use parted

  • @typingcat
    @typingcat 11 месяцев назад

    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?

  • @solarwolf678
    @solarwolf678 2 года назад +1

    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

    • @theodiscusgaming3909
      @theodiscusgaming3909 2 года назад +4

      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.

  • @prajhualak
    @prajhualak 2 года назад +1

    3:07 i guess 'm' refers to manual

  • @anantgupta1188
    @anantgupta1188 2 года назад

    I think cfdisk is also great!

  • @guilherme5094
    @guilherme5094 2 года назад

    Nice.

  • @Bonez0r
    @Bonez0r 27 дней назад

    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?

  • @wisnoskij
    @wisnoskij 2 года назад

    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?

  • @gamingvignesh9729
    @gamingvignesh9729 2 года назад

    Hey DT,what tool you use to empty your trash in your main production machine?

  • @peterbutler5597
    @peterbutler5597 2 года назад

    I wonder whether in "m for help" the m is short for mayday (m'aidez) ie - Help Me! Was the creator French?

  • @janlam3344
    @janlam3344 Год назад

    Why does fdisk -l show a bunch of loop files instead of /dev/nvme1 on my Ubuntu system? Should I worry about it ?

  • @dragonboyjazz
    @dragonboyjazz 2 года назад

    i would assume M would be "Manpage/Manual"

  • @dhruvadrhu3991
    @dhruvadrhu3991 2 года назад +5

    second

    • @DistroTube
      @DistroTube  2 года назад +7

      First, actually. But if you don't want your 'first' then I'll give it someone else. ;)

    • @Imran-cw7jc
      @Imran-cw7jc 2 года назад +2

      Thats kinda rude.

    • @lingux_yt
      @lingux_yt 2 года назад

      @@Imran-cw7jc the little ;-) was nice

  • @PaniacThrilla
    @PaniacThrilla 2 года назад

    "DOS partition table format cannot be used on drives for volumes larger than..." The absolute state of DistroTube...

  • @Aditya-ce4iu
    @Aditya-ce4iu 2 года назад

    Please make video on global menu bar with polybar ....
    Please 🙏🙏🙏🙏🙏🙏

  • @avondsch3805
    @avondsch3805 2 года назад +1

    hey dt! what are you upto?

  • @97ynoT91
    @97ynoT91 4 месяца назад

    Probably "m" for manual, I'm assuming...

  • @killistan
    @killistan 2 года назад

    beware non-linux fdisks -- the flags can be different so always check.

  • @bleighhh
    @bleighhh 2 года назад

    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

  • @scientiac
    @scientiac 2 года назад

    Hey DT, what happened to your Gemini Capsule?

    • @Tn5421Me
      @Tn5421Me 2 года назад

      I think it got replaced with his org-mode website

  • @therealchonk
    @therealchonk 2 года назад

    ext4 doesn't stand for 'extent 4', it actually stands for 'fourth extended filesystem' or 'extended 4'

  • @rootminusonerootminusone9532
    @rootminusonerootminusone9532 2 года назад

    why using fdisk where cfdisk is more easy to use?

  • @Epsilonsama
    @Epsilonsama 2 года назад +1

    /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.

  • @LukieHZX
    @LukieHZX 2 года назад +2

    1

    • @Imran-cw7jc
      @Imran-cw7jc 2 года назад +3

      Ur 2nd and the guy saying second is first..

  • @lieryan9137
    @lieryan9137 2 года назад +1

    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
      @Tn5421Me 2 года назад

      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

    • @lieryan9137
      @lieryan9137 2 года назад +2

      @@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.

    • @CathrineMacNiel
      @CathrineMacNiel 2 года назад

      @@lieryan9137 those who want to install Linux Desktop on their machine will use gparted anyway :)

    • @redrush-hp9li
      @redrush-hp9li 2 года назад

      @@CathrineMacNiel no cfdisk

  • @andrzejandrzejski229
    @andrzejandrzejski229 Год назад

    Why does it have to be that complex? It takes like 2 clicks in windows. :(

    • @xX_Lol6_Xx
      @xX_Lol6_Xx Год назад +1

      As if Windows users partition their disks LMAO.

  • @redrush-hp9li
    @redrush-hp9li 2 года назад

    Cfdisk ist much better then fdisk

  • @gfmhd1280
    @gfmhd1280 2 года назад

    RIP. Gone too soon.