Linux Crash Course - The /etc/fstab file

แชร์
ฝัง

ความคิดเห็น • 158

  • @fentiger865
    @fentiger865 ปีที่แล้ว +14

    Thanks for this. I find your explanations simple to understand but not in any way patronising. It's nice to have a basic understanding of how it works rather than the 'just write this and it will work' style of some other content providers. A new subscriber

  • @gibsonswe
    @gibsonswe 6 หลายเดือนก่อน +6

    Anyone else who came here after messing up their /etc/fstab file? :D
    Great video as always Jay!

    • @GustavAgar
      @GustavAgar 3 หลายเดือนก่อน

      xdddddddddddd

  • @jonathanrider4417
    @jonathanrider4417 2 ปีที่แล้ว +9

    This was tremendously helpful for me - I have been using linux for more than 10 years and have never gotten my head around fstab. I recently added a 4TB drive and partitioned it into 4 - mounting until now as media - now finally I can mount the drive at startup. I would like to see a video about managing multiple drives on a PC that has 2 or more OS. You videos are the best because you explain things very well and include peripheral information along the way which is extremely useful for people like me!

  • @Not-THAT-ChrisPratt
    @Not-THAT-ChrisPratt 3 ปีที่แล้ว +6

    Thank you so very much! You have de-mystified fstab for me in a very patient yet non-condescending manner. You even explained what the final two digits (0 0) in each line meant. Again, thank you.

  • @kakarroto007
    @kakarroto007 3 ปีที่แล้ว +2

    Thank you SO much! While I found this information online, and probably could have bumbled my way through editing F-Stab, I still wouldn't have understood _why_ I was doing it.

  • @Jazztache
    @Jazztache 2 ปีที่แล้ว +31

    21:30 `lsblk -f` would be much better to run here, because it shows the UUIDs with the names, and the partition type, all in one table. This is super useful to get all of your information in one place.

    • @samuelitooooo
      @samuelitooooo ปีที่แล้ว

      Thanks for this. The presentation is cleaner too.

  • @opps5915
    @opps5915 ปีที่แล้ว +1

    This channel better than university.. you are my love ❤❤

  • @johncook8402
    @johncook8402 7 วันที่ผ่านมา

    I appreciate the content very much. I am equally impressed by the fact that I can read the contents of the windows. Most of the supposed tech vids have massively blurry content windows from people whose English is severely broken.(No offense intended)

  • @CyperN077
    @CyperN077 2 ปีที่แล้ว +2

    Thanks Jay this is a very good video. I like how you reiterate how cautious you must be in order to use the feature.

  • @dankerman321
    @dankerman321 3 ปีที่แล้ว +2

    Thanks for explaining the fstab file... I was struggling with installing a 2nd HD in my laptop... the fstab file had errors which I could now fix. HD works now!

  • @peterjansen4826
    @peterjansen4826 3 ปีที่แล้ว +10

    This is essential knowledge for every Linux-user, no exception.

  • @packetcreeper
    @packetcreeper 7 หลายเดือนก่อน

    I used the last video and this one to add a secondary NVMe drive in Arch! Thank you for a fantastic instructional video!

  • @rickforges8918
    @rickforges8918 3 ปีที่แล้ว +2

    Just became a supporter on patron , always found your vids. great. Appreciate the detail , as sometimes the 'LITTLE' missed things get us 'Stuck' . Good content for newbie and intermediate as well. See you soon Jay !

    • @LearnLinuxTV
      @LearnLinuxTV  3 ปีที่แล้ว +2

      Thank you so much, I appreciate the support!

  • @MurangShaBu_MahalNaBiGas
    @MurangShaBu_MahalNaBiGas 2 ปีที่แล้ว

    Thank you Jay! I love Linux. Next week I'm gonna have a Linux admin technical interview and one on of the topic is mounting samba and configuration of fstab.
    This is perfect refresher.

  • @magicmanj32
    @magicmanj32 3 ปีที่แล้ว +9

    Great video for a new Linux user, know how and why is a great learning tool, thanks

  • @trapOrdoom
    @trapOrdoom 2 ปีที่แล้ว

    Yesss!! Thank goodness you started the video saying exactly what I needed to hear!!

  • @ArchTechUws1542
    @ArchTechUws1542 2 ปีที่แล้ว

    Thank you for the videos, these 2 videos resume my classes into 1 hour.. great work.

  • @edbouhl3100
    @edbouhl3100 2 ปีที่แล้ว

    Thanks!

  • @MattiasMagnusson
    @MattiasMagnusson ปีที่แล้ว

    Thanks! You really made my day, forgot to setup the second drive as /var on my initial setup of my server, all sorts of crazy things happened in my homelab before that xD

  • @TedCorriveau
    @TedCorriveau 3 ปีที่แล้ว +2

    Thank you sir! I've been a linux user (not a guru) for a number of years, and have struggled to understand why even after adding the lines to the fstab, my local shares sometimes populate, and sometimes don't. Until I saw your video It didn't dawn on me that I was using a user-specific mount point /user/me/desktop/folder instead of /mnt .. feels stupid, but nice to know the real answer :) Thank You

    • @Ranblv
      @Ranblv 3 ปีที่แล้ว

      samba shares are not block devices. you can mount them from anywhere. I usually prefer /samba

  • @sussusamogus7831
    @sussusamogus7831 ปีที่แล้ว

    The order is a bit messy in the playlist. For instance, groups come before users, this comes before the "Formatting & Mounting" video, even though those videos come after the videos they are mentioned in.
    Anyways, great video as always!

  • @markh2827
    @markh2827 3 ปีที่แล้ว +2

    Thanks Jay, very informative and easy to understand. Keep it up. Cheers 🙂

  • @youneeck
    @youneeck 3 หลายเดือนก่อน

    Lovely walk through of the mounting system. Gonna watch all the other videos now too, incase I have missed anything important over the years heh

  • @GoldenAdhesive
    @GoldenAdhesive 7 หลายเดือนก่อน

    great help thanks, i tried to do this myself prior and managed to panic my kernel haha. Thankfully I kept a live boot usb at hand and reverted the file. Good guide very through

  • @TR1ckY_TV
    @TR1ckY_TV 3 ปีที่แล้ว +6

    Great Tutorial! 🔥
    please more of these sir 🙏🏻

    • @LearnLinuxTV
      @LearnLinuxTV  3 ปีที่แล้ว +3

      I have several more on the way, being edited right now. I'm thinking by the end of next week or sooner, I'll have another tutorial in this series out. I probably have 4-5 of these still on my hard disk waiting to be edited.

  • @marshallr.8121
    @marshallr.8121 หลายเดือนก่อน

    thanks mate, this just helped me a lot
    especially the mount-a
    helped me figure out that i overlooked a " when copying my uuid ^^

  • @ogungbeopeyemi2684
    @ogungbeopeyemi2684 ปีที่แล้ว

    Thank you so much for this… I really struggle starting my VM because of error in fstab.. this really helps 👍

  • @GuyManley
    @GuyManley 2 ปีที่แล้ว

    thanks. i built new pc and put arch on my old one. couldn't figure out how to add my 2nd HDD to it until i watch your 2 videos. cheers

  • @matheusquagliato6320
    @matheusquagliato6320 8 หลายเดือนก่อน

    I think this is one reaaaaally good lab. Thanks man

  • @Nixima81
    @Nixima81 2 ปีที่แล้ว

    Thank you for this. One more baby step in my Linux journey.

  • @chromerims
    @chromerims ปีที่แล้ว

    Thank you for showing how to obtain UUID info to load into /etc/fstab
    👍

  • @daverawson123
    @daverawson123 3 ปีที่แล้ว

    So that’s what the 0s and 1s at the end of the lines mean🤔. Another brilliant vid Jay👏

  • @jstjohn11
    @jstjohn11 5 วันที่ผ่านมา

    Great Video Jay!

  • @duncan-mcrae
    @duncan-mcrae 2 ปีที่แล้ว

    Thanks. Such a good format for leaning Linux. Much appreciated

  • @samuelitooooo
    @samuelitooooo ปีที่แล้ว +1

    16:00 After hitting enter, I got the message:
    `mount: (hint) your fstab has been modified, but systemd still uses the old version; use 'systemctl daemon-reload' to reload.`
    At least the mounting worked, according to lsblk.
    21:13 WOW You were right. Before unmounting, my test flash drive was sdd1; it became sde1 when I mounted it again. 😅

  • @TON-vz3pe
    @TON-vz3pe 2 ปีที่แล้ว

    Your explanation is perfect.

  • @peterjantzer4767
    @peterjantzer4767 2 ปีที่แล้ว +1

    When working with system:
    Step one: Type in command
    Step two: REMOVE HANDS FROM KEYBOARD
    Step three: Verify command you typed is correct
    Step four (optional): Say short prayer
    Step five: Hit enter key

  • @wildmanjeff42
    @wildmanjeff42 ปีที่แล้ว

    Thanks for the video Jay !

  • @scottspa74
    @scottspa74 ปีที่แล้ว

    Excellent explainer and tutorial! Thank you.

  • @RonaldModesitt
    @RonaldModesitt 2 ปีที่แล้ว

    Very well and thoroughly presented! Many thanks.

  • @Hanagigi
    @Hanagigi 2 ปีที่แล้ว

    THANK YOU for helping me understand what the heck "^" meant! How could I even fathom that it means ctrl?
    Something new every day...

  • @G3Number
    @G3Number 9 หลายเดือนก่อน

    Thanks for the video! Learned a lot❤

  • @janmartens3313
    @janmartens3313 2 หลายเดือนก่อน

    I am starting to understand linux. Thanx

  • @rossgeography
    @rossgeography ปีที่แล้ว

    exceptional tutorial - thank you!

  • @dragonek_gnu_linux_pl
    @dragonek_gnu_linux_pl 3 ปีที่แล้ว

    very important knowelage like always :). Mounting of disks are difrent than we have on windows so its good to know and understand it :)

  • @BrucesWorldofStuff
    @BrucesWorldofStuff 3 ปีที่แล้ว

    Love the Linux Essentials videos... Thanks for the series, they are very helpful for a 4 year linux still new user... :-)
    HaHAHa I have done Oops thing several times because I for got a ( " ) here or there... Then have to USB in to fix it... Lol
    Thanks for the tips... I have to say the UUID is the best way to go.
    I have had drives change and cause all kinds of
    Thanks for the video Jay!
    LLAP

  • @AndresLeonRangel
    @AndresLeonRangel 3 ปีที่แล้ว

    i had to write an incident report because of an issue with mounting an AWS EBS volume. I used the LABEL in the cloud-init script. Once you mount is OK, once you reboot that volume never mounts again.
    the PostgreSQL data was thought to be gone. But thank God issue was found and I fixed it.
    Always use the UUID

  • @epicc1355
    @epicc1355 2 หลายเดือนก่อน

    So funny story . I have two different Linux OS on my rig. I mounted my new drive into the main OS I use amd all was well (thank you for your video!) I created a directory on my other OS and created the path with the UUID and long story short it wouldn't let me boot! Thank goodness I am running two systems because it let me access the other and fix the fstab file I messed up!

  • @parthachoudhury4152
    @parthachoudhury4152 ปีที่แล้ว

    Great explanation. Thank you so much.

  • @kapiteinslaapkop7640
    @kapiteinslaapkop7640 2 ปีที่แล้ว

    very helpfull and comprehensive lesson !

  • @piuser-4-500-zero
    @piuser-4-500-zero 18 วันที่ผ่านมา

    Really informative and useful, thanks. I also have nfs shared directories in fstab to auto mount but, as they are not volumes, they do not seem to have a uuid and I suppose would not need a uuid because their origin path will not change. I'd be interested in more information about shared directories in fstab.

  • @FurikuriYugi
    @FurikuriYugi 3 ปีที่แล้ว

    Thanks, never thought to do that.

  • @user-ano-x5c
    @user-ano-x5c 2 ปีที่แล้ว

    Very informative and clear ..
    Can you please explain more Linux Storage topics? things like LVM and LUK

  • @nicolasdavid6970
    @nicolasdavid6970 ปีที่แล้ว

    Great video, learned a lot!

  • @k4tipunb4yani12
    @k4tipunb4yani12 3 ปีที่แล้ว

    This is really helpful. Thank you.

  • @DanJackielz
    @DanJackielz 2 ปีที่แล้ว

    Thank you! Really helpful video.

  • @timschalau8425
    @timschalau8425 5 หลายเดือนก่อน

    big difference here to other tutorials i`ve seen, is that even when i resize yt to 1/4 of my 27" 2k monitor, the progress is still readable. tyvm

  • @k.chriscaldwell4141
    @k.chriscaldwell4141 18 วันที่ผ่านมา

    If you remove a drive posted in fstab or it fails, you PC may not boot. Or be very slow to boot.
    Add “nofail” to the fstab line. Better: nofail,x-systemd.device-timeout=10s
    Always use the UUID in the fstab.

  • @YannMetalhead
    @YannMetalhead 7 หลายเดือนก่อน

    Good guide, thank you.

  • @comahrn
    @comahrn ปีที่แล้ว

    such a good tutorial, thank you :)

  • @ardeny100
    @ardeny100 3 ปีที่แล้ว

    Love your videos, keep it up

  • @humzamuddasar1298
    @humzamuddasar1298 2 ปีที่แล้ว

    Great video. Thanks

  • @bytemylife
    @bytemylife ปีที่แล้ว

    this was awesome! thanks. I can't wait for you to do one on ZFS?!

  • @Douglas-hw8is
    @Douglas-hw8is ปีที่แล้ว

    Great vid - many thanks 👍

  • @muthukannanmurugachockalin7321
    @muthukannanmurugachockalin7321 2 ปีที่แล้ว

    great lecture

  • @Kaneo_3987
    @Kaneo_3987 7 หลายเดือนก่อน

    Top notch!

  • @heckyes
    @heckyes ปีที่แล้ว

    Amazing content.

  • @BeeRich33
    @BeeRich33 2 ปีที่แล้ว +3

    Might want to provide some clarity on UUID vs PARTUUID. I've also seen 8-character UUIDs.

  • @debeeriz
    @debeeriz 3 ปีที่แล้ว +1

    l got caught out thinking the uuid was hard coded into the disks, saved the fstab file, reinstalled mint and compared the saved and new fstab files and the uuid's were completely different.

  • @EUPescar
    @EUPescar 3 ปีที่แล้ว

    Great tutorial!

  • @chiforce
    @chiforce 9 หลายเดือนก่อน

    Thanks Jay. I'm new to Linux and really appreciate your style of education. Please explain to me how you get the I between $ mount I grep sbd. I can not find that character on my keyboard

  • @Tomfoolery8869
    @Tomfoolery8869 2 หลายเดือนก่อน

    I hate Linux, but love your hard work :)

  • @stevefiorito5379
    @stevefiorito5379 10 หลายเดือนก่อน

    Thanks for this video. I've had a hard time trying to wrap my head around how a computer identifies a particular drive: there is the OS assigned label (sda), the label that I give to the drive (my home drive), and the UUID. Knowing which to use has been more than confusing. I recently lost an external drive due to a power surge in our home electricity. I had to replace the drive and restore the files using a backup. The problem was that all of my custom folder icons were no longer working (my custom folder icon images are located on my boot drive, not my external drive). I thought that the solution was to simply "name" my new external drive as the failed drive was named. That did NOT work. So, the custom folder icon links are using something other than the user-assigned-name.

  • @abodawead9039
    @abodawead9039 2 ปีที่แล้ว +1

    i got confuse about something , when i set the "ro" option to a volume that I use for back-up , how it will do the back-up ? I think i messed something in the video .
    thank you very much , great video and very useful one . 😁

    • @StaceyJenkinsdc
      @StaceyJenkinsdc 2 ปีที่แล้ว

      I’m also confused on the ro option. Is it read only for users other than root?

    • @abodawead9039
      @abodawead9039 2 ปีที่แล้ว

      I try my best to find solution .
      but for now , set ro option for partitions managed by root user only . 😁

    • @chillnacho
      @chillnacho 2 ปีที่แล้ว

      I think the "ro" option is for only a computer that you don't want to allow to make changes to that volume. You aren't making changes to the USB drive itself. You can write to it on one computer and then plug it into another computer and it will be read only. At least that was my take on it. I was a little confused by how he said it too.

    • @Gaius__
      @Gaius__ 4 หลายเดือนก่อน

      @@StaceyJenkinsdc Yes, precisely. _rw_ and _ro_ only affect user access, not root access. A typical use case would be a backup drive: root can execute backup onto that partition, using rsync or whatever backup method he/she prefers ... and users cannot inadvertently delete a backup, because they lack write permission for that partition.

  • @wolfganggosejacob779
    @wolfganggosejacob779 3 ปีที่แล้ว +1

    good explanation, your system has crypted filesystems but your new sdb storage has not. can you explain (automatic) mounting of crypted fs because of the passwords?
    also mounting of samba shares and other network shares... with sense of internal or password files?
    thank you

  • @Yasinarbi
    @Yasinarbi ปีที่แล้ว

    Thank you

  • @ShankarDada010
    @ShankarDada010 2 ปีที่แล้ว +1

    Haa how to take backup for cd /etc/fstab i want backup for fstab how to take please help with command ?

  • @ArmenBakir
    @ArmenBakir 3 หลายเดือนก่อน

    "I prefer vim" nice save dude

  • @alexandersemigrodskikh8400
    @alexandersemigrodskikh8400 2 ปีที่แล้ว

    Good one.

  • @LoveAnim3
    @LoveAnim3 ปีที่แล้ว

    thank you!

  • @NoEgg4u
    @NoEgg4u 3 ปีที่แล้ว +2

    From where does the "blkid" command derive the "UUID" value?
    How does the "UUID" value get chosen?
    Is the UUID some unique serial number that manufacturers put on their storage devices?
    If you buy 10 identical flash drives, your computer will somehow be able to tell them apart from each other, as each one will have a unique UUID.
    But how does your computer know which flash drive is which? What is it reading on the flash drive to determine which one has which UUID?
    Thank you.

    • @tomashley9246
      @tomashley9246 2 ปีที่แล้ว +3

      Each drive has a small PCB that has the UUID embedded. It's like a MAC address. Unique to each piece of hardware.

    • @Gaius__
      @Gaius__ 4 หลายเดือนก่อน

      @@tomashley9246 lol, what nonsense, on both items, UUID and MAC address. Why not just keep quiet, if you have no idea what you are talking about?

  • @JoseLopez-oz1xm
    @JoseLopez-oz1xm 2 ปีที่แล้ว

    Very good vid, I would ask if you have done a video on OMV and how to mount nfs files auto into linux. Is it the same as this video?

  • @TheGnomophobe
    @TheGnomophobe 3 ปีที่แล้ว

    thx worked for me

  • @Shohan11d
    @Shohan11d 10 หลายเดือนก่อน

    Hello, I have a drive that is Bitlocker encrypted.
    It doesn't show the UUID of the drive using blkid cmd.
    it shows the partuuid but using partuuid doesn't work from my attempt.
    Is there any way I can mount Bitlocker drive at startup?

  • @cesarantonio1884
    @cesarantonio1884 ปีที่แล้ว

    Good afternoon,
    Wanted to know if you can recommend a good Linux administrator course LCFS. I've been looking at different one but don't know much of it. Thanks

  • @symbioticparasite6268
    @symbioticparasite6268 ปีที่แล้ว +1

    O man did I F up, needed to get the data of an NTFS drive ..... days of transfers, so I did it in steps, so I automatically mounted it in fstab, when I was done I needed to repartition the NTFS drive, I did, then forgot to delete the line in the fstab ..... it wasn't the same so when I rebooted..... I was locked out of my system because it couldn't find the F inga drive which was nonexistent by now ......

  • @skrach37
    @skrach37 3 ปีที่แล้ว

    Thanks for the tutorial, very well explained. The thing is that my hard drive has a problem with superblock. Do you know where to find information to solve this? Been looking and there is to much information.

  • @zeebpc
    @zeebpc 4 หลายเดือนก่อน

    I'm using Arch, and every single time I unplug backup drives or extra SSD's or unplug my main drive, and replug them, upon booting I get a Grub rescue error message that says normal.mod not found. The only way ive found to fix it is to use a live USB and chroot into my system and reinstall grub. So annoying! I'm hoping something in this video can help me, I'm not really sure where to start to fix this awful issue!

  • @puppy_BYTE
    @puppy_BYTE 3 ปีที่แล้ว

    thanks, excellent, automounting a ssd drive, is it a good idea to make it default,noatime?

  • @nexus384
    @nexus384 2 ปีที่แล้ว

    how u mount a folder from the home directory
    like download

  • @davidwayne9982
    @davidwayne9982 3 ปีที่แล้ว

    QUESTION-- I have a USB stick (thumb drive-= whatever you like to call it) 134 GIG that I was going to install VENTOY to make a MULTI-BOOT drive-- and it refuses to format. I can run the formatter and it says "formatted successfully- but when I put it in the machine- it shows 125 gig- and will not allow the software I want to download. Ive redone it in EXFAT (which they recommend) -with same result--- SUGGESTIONS???? I can't find anything on this and no one to ask.

  • @DavidKHill
    @DavidKHill ปีที่แล้ว

    Great video by the way. I have a question regarding the no auto. Can this feature benefit the wear and tear on disk? That is, if we run mount from within the script just during the time the backups are run, the umount the volume after the back ups are completed. This would shave wear and tear cycles off of the disk if it's not running. So having an unmounted disk connected to a server when it's no mounted, do you know if they're spun down during this time?
    Thanks.

  • @derelbenkoenig
    @derelbenkoenig 2 ปีที่แล้ว

    Very helpful video! One thing I am still wondering about is how disk encryption works here. I guess the system has to unlock the encrypted partition before being able to mount file systems but I am not sure how to accomplish that automatically on startup. Is that something also configured via fstab or elsewhere?

  • @obfuscateidentity2329
    @obfuscateidentity2329 2 ปีที่แล้ว

    What about auto mounting a CD/.iso image ?

  • @AirborneVision
    @AirborneVision 3 ปีที่แล้ว +1

    hey Jay! some experts say that it is better to create a new file and not edit the actual fstab file. What do you say about it? Thanks for your great content btw.

    • @parthachoudhury4152
      @parthachoudhury4152 ปีที่แล้ว

      It's always recommended to create a backup and then modify the original. Not just fstab but for any other file. You can always restore if required.

  • @jbgrenouille2527
    @jbgrenouille2527 3 ปีที่แล้ว

    Greetings, I have tried many times to create automounts for disks in local network and it does not work for me, any advice?

  • @clivesgarage
    @clivesgarage 2 ปีที่แล้ว

    this is sooooo frustrating. I cannot find the previous video you talking about. I've searched everywhere. What is the title of the video please?

  • @eriksundell1400
    @eriksundell1400 3 ปีที่แล้ว

    Hmmm... if /etc/fstab is where the computer knows what storage to mount during startup, where is that file actually located?

  • @stephanc7192
    @stephanc7192 3 ปีที่แล้ว

    Good video

  • @Anbualex
    @Anbualex 3 ปีที่แล้ว

    Are you looking over my shoulder? lol I was looking at the fstab file last night.