Automatically mount Linux partitions with fstab

  Рет қаралды 23,595

BeginLinux Guru

BeginLinux Guru

Күн бұрын

Пікірлер: 50
@bennemsi
@bennemsi 4 жыл бұрын
Was my first time to manipulate 'fstab' thanks to your guidance. My windows drive is monted to Linux now, great!
@beginlinuxguru7354
@beginlinuxguru7354 4 жыл бұрын
Many thanks. Glad I could help!
@firstuser5448
@firstuser5448 2 жыл бұрын
Great video dude. Learnt something new. Thanks!
@frankzeppelin
@frankzeppelin 5 жыл бұрын
Man, what a great video. I'm new to Linux and very nervous about anything that could lose my data or brick my system, but this worked like a charm. Had to get files off my old Windows 10 disk and had no idea where to start. I watched several videos and read several articles on mounting but this was the only one that I'd recommend. It's a one stop shop. It covers everything you need in a clear, streamlined presentation, plus some key extras with the optional settings. At least one other video out there said you had to be super careful with fstab or you're in for a world of hurt, but didn't really explain what it was, or more importantly how to prevent it by testing with mount -a. Again, you broke it all down so it makes sense to noobs. Got all my files. Thanks dude, you saved the day. Like and sub! In case anyone else is in the same boat, I read that using ntfs-3g is preferred over ntfs)for the file system type if you're mounting a drive that was used for Windows. I guess it's a newer driver...? A little out of my depth and outside the scope for this tutorial but hope it helps someone.
@beginlinuxguru7354
@beginlinuxguru7354 5 жыл бұрын
I appreciate the kind words, and am glad that I could help.
@thepianist123
@thepianist123 10 ай бұрын
00:19:00 There is a way, there is a way. Copy and paste works between other apps and Vim. In Vim press i to switch into insert mode and then paste using "Ctrl + Shift + v" shortcut to paste from the clipboard. You just need to add an extra shift key. This is the way we can also Paste in the terminal. So, it is not a Vim specific though.
@beginlinuxguru7354
@beginlinuxguru7354 10 ай бұрын
Yeah, the real difference isn't with vim, but with the different desktop environments. I normally use lxterminal on Fedora with LXDE, and with it I can paste into vim with just the normal right-click menu. But my video creation machine is loaded with Lubuntu, which uses another terminal that doesn't work like that. Unfortunately, I wasn't prepared for that when I made this video.
@alphabanks
@alphabanks 3 жыл бұрын
Thanks for taking time to make a very informative video this really helped me.
@LordPhan
@LordPhan 4 жыл бұрын
You can use the program 'Disks' to edit the fstab file for you also. Click a button and it sets it. You can also choose what it is displayed as, and can change the mount point. What I did was created mount points(folders) in /mnt such as 'storage' and chose to mount my storage drive to that folder in /mnt/storage another
@beginlinuxguru7354
@beginlinuxguru7354 4 жыл бұрын
Yeah, there are some graphical utilities that can help out. In fact, that might be a good idea for a new video.
@janiceadriana6830
@janiceadriana6830 4 жыл бұрын
Great tuturial. It helps me a lot.
@beginlinuxguru7354
@beginlinuxguru7354 4 жыл бұрын
Many thanks! I do appreciate the kind words.
@shater1164
@shater1164 6 жыл бұрын
Good one Donny, cheers!
@beginlinuxguru7354
@beginlinuxguru7354 6 жыл бұрын
Many thanks!
@shater1164
@shater1164 6 жыл бұрын
My pleasure.
@Tech-Dev
@Tech-Dev 3 жыл бұрын
Cheers for this.
@afzaalawan
@afzaalawan 5 жыл бұрын
Excellent stuff.. very intelligent and spot on.. thanks
@go4sens600
@go4sens600 3 жыл бұрын
Amazing! Subbed
@grey_squirrel
@grey_squirrel 5 жыл бұрын
Great video, thank you!
@mohamedhany2539
@mohamedhany2539 5 жыл бұрын
Perfect man, thanks
@beginlinuxguru7354
@beginlinuxguru7354 5 жыл бұрын
Many thanks! I appreciate the kind words.
@jjock3239
@jjock3239 3 жыл бұрын
Thanks for an excellent, logical, straightforward, tutorial on mounting a HD in Linux. I have been away from doing any work using the terminal for a long time, and this brought everything back quickly. I have one question, should I add the HD to the fstab if I don't want to mount that disk every time. Bob
@beginlinuxguru7354
@beginlinuxguru7354 3 жыл бұрын
Thanks for the kind words. And no, don't add an HD to the fstab if you don't want it to mount every time. Instead, just mount it manually with the "mount" command whenever you need it.
@jjock3239
@jjock3239 3 жыл бұрын
@@beginlinuxguru7354 Thanks, i eventually remembered what i needed to do to set it up
@jjock3239
@jjock3239 3 жыл бұрын
@@beginlinuxguru7354 My computer is a strange beast, because the hard drives are swapable. I have the hard drive for my linux, or win os, and three other ports for data drives. I will do some experimenting this winter, to figure out how I want to permanently configure the system. The joy of Linux, is that it is so flexible.
@paulm3416
@paulm3416 5 жыл бұрын
Thanks for the good video. I'm a bit confused tho regarding the file systems. What happens if we already created a partition on a hard drive and formatted it for FAT file system for example, but inside fstab , we mount it for EXT4 type file system. Which file system will actually be used for the partition?
@beginlinuxguru7354
@beginlinuxguru7354 5 жыл бұрын
Hmmm. . . Great question. I've never tried that, but I would imagine that you'd get an error message about trying to mount the wrong type of filesystem.
@TrueSanataniOm
@TrueSanataniOm 4 жыл бұрын
You Saved Me👍❤🕉
@rraudales
@rraudales 5 жыл бұрын
Good info, i been researching how to do this for a while. Does it work the same with LV and XFS file system partitions?
@beginlinuxguru7354
@beginlinuxguru7354 5 жыл бұрын
It does work pretty much the same, regardless of filesystem. The only real differences are: 1. With LVs, you won't use a UUID number. Instead, just use the regular designator for the Logical Volume. (In other words, somethin in the form of "/dev/volumegroup/logicalvolume". 2. The other difference is that the different filesystem types have different mounting options. Of course, that's a moot point if all you need is to set "defaults" as the option. But, if you need anything different, just look at the mount options for the different filesystems in the "mount" man page. Anyway, I hope that helps!
@rraudales
@rraudales 5 жыл бұрын
BeginLinux Guru thank for the reply. I did notice that the entries already in /etc/fstab where named as follow: /dev/mapper/sda/Vol_Group/root But when I run: lvdisplay it shows as /dev/sda/Vol_Group/root Where does “mapper” come from? When I added the partitions that I created, I was able to add them to /etc/fstab without added mapper. Cant figure out where and why mapper was added to the partitions created when the system was build.
@beginlinuxguru7354
@beginlinuxguru7354 5 жыл бұрын
Oh, yeah. I forgot about the "mapper" thing. Anyway, if you look in the "/dev/mapper" directory and do an "ls -l" command, you'll see that the normal "/dev/volumegroup/logicalvolume" names are just symbolic links to the underlying logical volume device files. So, you can use the "mapper" designations in an fstab file if you want to, but it isn't necessary.
@saptarshiray531
@saptarshiray531 4 жыл бұрын
Hi can you please make video for LUKS
@beginlinuxguru7354
@beginlinuxguru7354 4 жыл бұрын
I'll put that on the agenda.
@PeterMaddison2483
@PeterMaddison2483 4 жыл бұрын
Don't know if anyone has already mentioned it but you can still use dev/sda1 or whatever in the fstab.
@beginlinuxguru7354
@beginlinuxguru7354 4 жыл бұрын
That is true. But, the current recommended way is to use UUIDs.
@PeterMaddison2483
@PeterMaddison2483 4 жыл бұрын
@@beginlinuxguru7354 I say, whichever way works best for the individual.
@ejvandijk
@ejvandijk 3 жыл бұрын
A huge shout out to nano for the ability to paste copied text! 😁
@drygordspellweaver8761
@drygordspellweaver8761 3 жыл бұрын
curious why you don't set your user to not require a password when using sudo?
@beginlinuxguru7354
@beginlinuxguru7354 3 жыл бұрын
It's not good security practice. In a real life business setting, you'll never see that.
@drmabusedesporte2285
@drmabusedesporte2285 4 жыл бұрын
Another great video, thank you, I've watched half the playlist and I think I'm gonna benefit from watching it to the end. One idea: isn't it possible to boot into the lower target, like rescue or something like that, and then somehow fix it?... well, actually this one: ```emergency.target A special target unit that starts an emergency shell on the main console. This target does not pull in any services or mounts.```? (didn't try it myself though and I hope I won't ever have to :-D)
@drmabusedesporte2285
@drmabusedesporte2285 4 жыл бұрын
* I mean so that an extra live-media won't be necessary to fix the things
@beginlinuxguru7354
@beginlinuxguru7354 4 жыл бұрын
Hi there! First, I do appreciate the kind words. And yes, it is possible to boot into a lower target to fix certain things, such as a lost password. But, I've never tried doing that to fix an fstab problem, so I don't know if it will work. I'll have to experiment with that, to see what I can do with it.
@alphabennyrosy5068
@alphabennyrosy5068 4 жыл бұрын
You could have just appended the UUID into fstab, no reason to copy or use a mouse or use ssh into machine.
@janne-mans8295
@janne-mans8295 7 ай бұрын
how to know how many spacebar taps are required in text editor to divide columns ? Before explaining complicated matters, pls first address the simple ones, otherwise we all drive an Indy 500 car, yet pushing it without rubber
@beginlinuxguru7354
@beginlinuxguru7354 Ай бұрын
There's no set number of spaces that you need to place between columns. If you can line things up so that they look good, that's all that matters.
Logical Volumes--The Basics
2:42
BeginLinux Guru
Рет қаралды 1,2 М.
Linux Crash Course - The /etc/fstab file
30:29
Learn Linux TV
Рет қаралды 111 М.
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
Linux fstab File Basics | What you need to know
34:24
Joe Collins (EzeeLinux)
Рет қаралды 13 М.
Linux Crash Course - Formatting & Mounting Storage Volumes
32:28
Learn Linux TV
Рет қаралды 269 М.
Create Linux Partitions with fdisk
25:54
BeginLinux Guru
Рет қаралды 21 М.
Demystifying firewalld
22:45
BeginLinux Guru
Рет қаралды 16 М.
Setting the Correct Permissions on Linux Mountpoints
14:40
theurbanpenguin
Рет қаралды 10 М.
Step-by-Step Guide: Mounting a New Hard Drive in Linux
6:01
Zoned For Geeks
Рет қаралды 16 М.
How to Partition and Format a Disk in Linux
13:57
Gary Explains
Рет қаралды 93 М.
Learning the Linux File System
25:09
Joe Collins (EzeeLinux)
Рет қаралды 1,2 МЛН