How to Partition, Format, and auto Mount Disk on Ubuntu 20.04

Поділитися
Вставка
  • Опубліковано 3 гру 2024

КОМЕНТАРІ • 104

  • @TechGuides
    @TechGuides  4 роки тому +5

    Thanks for watching guys! Please check out IPVanish if you're interested in getting a VPN: techguides.yt/ipvanish
    If you do so, you will also greatly support my channel by helping me to get more content out for you!

    • @uksuperrascal
      @uksuperrascal 3 роки тому

      Can you help - Partition OK. The USB IDE drive mounts ok but says I do not have permission - I can not make or save any folders or files on the USB IDE HDD

  • @kojack57
    @kojack57 3 роки тому +5

    You really need to keep making content like this series. Everyday Linux usage is much needed. I was NOT aware of the mhddfs/fuse function and I watch a LOT of Linux content. Thanks.

    • @TechGuides
      @TechGuides  3 роки тому +1

      Good to hear, I've got a lot of Linux tutorials lined up :) Btw I would rather recommend to use mergeFS over mhddfs (works basically identically) because mhddfs started to become a bit unstable as of recently!

    • @kojack57
      @kojack57 3 роки тому +1

      @@TechGuides Thank you for the heads up. I'm learning that half the battle with Linux is knowing your packages and what is available.
      As the the future Linux content, thank you. It is most welcome. You are a very talented guy and the way you get a ton load of really helpful Linux material into such a small time frame is amazing.
      It really helps that you deliver your content really well. Half the battle with learning is being able to listen to the person teaching and showing you old, new, cool and interesting ways of making Linux FUN and computing FUN. Now I am waffling. Thank you and really looking forward to more learning.

  • @Alex-rx5cp
    @Alex-rx5cp 3 роки тому +7

    The file /dev/sda4 does not exist and no size was specified. this shows up after i try to format it with mkfs.ext4

  • @Hebrews_412_KJV
    @Hebrews_412_KJV 2 місяці тому

    This really helped. I installed proxmox for a bit and then wanted to go back to Ubuntu but the install kept failing until I blew the disk away. Now Ubuntu is up and running!

  • @paulmitchell5786
    @paulmitchell5786 3 роки тому

    Tech Guides, I just started watching this video. I like doing this because within a few seconds it is quite easy to gauge the customer relations (lack of arrogance) , ability and forthright information style of the presenter. Tech Guides (at least this man in the video) your attitude just wants me to keep on watching. Kudos. I just had to say this. Back to work...:)

    • @paulmitchell5786
      @paulmitchell5786 3 роки тому

      Having said that, I can't find "fdisk -l" from terminal command. This is the second time today either my terminal command was not accepted or well known system commands (as presented in video) don't work. Happening frequently. I think it's time to reinstall. Thanks.

    • @TechGuides
      @TechGuides  3 роки тому

      what distribution of Linux are you using (Ubuntu?). If that command fails, do "sudo fdisk -l"

    • @paulmitchell5786
      @paulmitchell5786 3 роки тому

      @@TechGuides Hi again. I'm using Ubuntu 21.10 (Ubuntu Mate updated.)
      I tried using that terminal command earlier to no effect (it worked now when I tried it) so tomorrow after I rest a bit I'll return to your tutorial and retry..
      Every time I boot up the computer I get system error notifications (*some times I have to canecel several times to stop the window opening) and very often while I am using the system. I think the 21.10 is a beta version. I'm very new too Linux so I might have screwed something up.
      I had installed the system from a USB install I had made using Rufus. It worked beautifully the first time I installed but I really feel I've been hacked?
      Today when I tried to reinstall the system doesn't even recognise the boot disk (and I remade a disk using Rufus) o I've definitely have a system problem. Now I can't even seem to reinstall (and for a Linux I find a clean install the best option).
      I'm using a relatively new Lenova, ThinkCentre - M93p
      Thanks for your attention.
      Cheers, Paul

  • @NgirgisFayez
    @NgirgisFayez 6 місяців тому

    Thank you for your nice video about (how to Partition, Format, and auto Mount Disk on Ubuntu 20.04)

  • @TheAvisionary
    @TheAvisionary 3 роки тому +2

    I notice that at 2:40 you show a mount point for cloud1. Is it necessary to create this mount point before you mkfs.ext4?
    Will you explain why you created the mount point in the first place? Thanks for the videos btw.

    • @singhmose23
      @singhmose23 Рік тому

      i needed that explanation too, anyone

  • @dlcrdz00
    @dlcrdz00 3 роки тому +1

    Great content Tech Guides!! How can I partition a hard drive that already has an OS on it? I want to split the drive and reuse part of the space on the drive that isnt being used

  • @NobleVibez
    @NobleVibez 2 роки тому

    I have created a Raid 0 with two 5tb HDDs. My issue is that when I shared a folder from it, I am unable to access it from Windows like I can when I share a folder from my main HDD. Is there any way around this?

  • @kthfriend
    @kthfriend 4 роки тому +1

    Thanks for the guides.
    I am looking forward to the nextcloud tutorial....

    • @TechGuides
      @TechGuides  4 роки тому +1

      Thank you! Will be coming soon :)

  • @arman4chok
    @arman4chok 4 роки тому +1

    Very comprehensive explanation. Visited ip vanish. Thanks for the 0 log info. As a hint to what might be also interesting: 1) Backing up data to prevent data loss with two disks or smthing. Maybe a simple script to activate once in a while 2)Some videos on security and routine disk management.

  • @VajtanShanava
    @VajtanShanava 3 роки тому

    I have contracted 1000 gb but in the plesk I only have 5 gb. How do I fix that? From what I understand it is about disk partition

  • @ralfman5
    @ralfman5 4 роки тому +2

    How did you learn to use Linux?? I want to learn but don’t know the route or classes to take to learn. thanks, new subscriber

    • @TechGuides
      @TechGuides  4 роки тому +2

      Welcome :) I simply learned it by doing while at work. Having your own server (or just a raspberry pi) is probably the best way to learn Linux imo since you can experiment a lot and if something gets messed up you can just roll it all back. Also, most of the stuff I'm learning is from blog posts but you gotta make sure to check other sources too because not everything that's written is actually correct ;)

  • @kabeermustafa1524
    @kabeermustafa1524 3 роки тому +1

    does it work after installation

  • @Billy-pn3fq
    @Billy-pn3fq 3 роки тому

    Need help I have a external hard drive that's ext3 format and can't get it to read in my computer folder and it reads in disk management and device manager also how can I transfer files to it I'm using windows 10 thanks

  • @ExistentialDawn
    @ExistentialDawn 11 місяців тому

    Hello, i have an issue when i go to computer folder and try to enter my samsung ssd 1t it says unable to mount, but then again i go to disk management and it says it is mounted, can you tell me how to fix this, so that i can place my files to my ssd?

  • @fjofficial1248
    @fjofficial1248 2 роки тому

    Really impressiv content you've got!!

  • @dirgosalga
    @dirgosalga 3 роки тому

    So doing it like this manages the space on the drives automatically? If I keep writing to locations that were originally in my disk1 (which is now at 90% capacity), at some point, this is going to get written to disk2 (fresh disk)?
    Also if two folders have similar paths, how does the program decide in which drive to save it?

  • @utpaldeka7392
    @utpaldeka7392 4 роки тому

    Awesome!! Was waiting for this video for d last one month!!

    • @TechGuides
      @TechGuides  4 роки тому +1

      Thanks, I got plenty more coming very soon :)

  • @feralshad0w
    @feralshad0w 4 роки тому +1

    im a complete noob to linux, it took me a long time to figure out that when mounting the drives with the "mount -a" that I have to first create the cloud folders in mnt folder in the root directory. I was trying to create them in the default directory of my name... I kept getting an error that said they did not exist

  • @fjofficial1248
    @fjofficial1248 2 роки тому

    i have a singl e worry, I am trying to convert my i5 laptop into a server and it has just one hard drive in it...please how ca i mount it?
    Thank you in advance!!

  • @mason8714
    @mason8714 Рік тому

    after putting the partition on the hard drive and creating the directory at /mnt/ssd1 i can go to the directory but cant add files or do anything unless i use sudo. do i need to change some permissions on ssd1 directory? it reads it as 240gb drive but have to do sudo for anything.

  • @monkiedeinhau557
    @monkiedeinhau557 3 роки тому

    The drive combining method fails for me when I tried to save a huge file. I have Sun F40 which is a 4x100Gb SSD. However I need to store a single 200Gb file and the method of fusing file as mentioned caused an error and failed to write anything beyond the capacity a drive could hold. Am I doing anything wrong, is there anyway to fix my issue? PS: writing bunch of small files work but writing a big file that is bigger than a single drive capacity does not work.

  • @stalingrad4848
    @stalingrad4848 3 роки тому

    sudo fdisk -l outputs >fdisk: cannot open /proc/partitions: No such file directory. Any ideas what's going on here?

  • @kalaiarasan1682
    @kalaiarasan1682 4 роки тому

    I was waiting for this video ! Great videos keep going bro !!✌️

  • @SangNguyenQuang-pj1xt
    @SangNguyenQuang-pj1xt 7 місяців тому

    Sir, after deleted the old partitions, i want to merge that disk with the disk cotain linux system into 1 disk, can you help me ?

  • @Alex-rx5cp
    @Alex-rx5cp 3 роки тому

    i have just one sda drive with sda1,sda2,sda3 devices. sda1 contains boot bios and the other two linux files. can i partion it? please help!

  • @Alex-rx5cp
    @Alex-rx5cp 3 роки тому

    /dev/sda3 is apparently in use by the system; will not make a filesystem here! ...this shows up. what should i do?

  • @GamersToTheMax2
    @GamersToTheMax2 4 роки тому +1

    Question, can I later add or remove another drive to that fused virtual drive?

    • @TechGuides
      @TechGuides  4 роки тому +1

      You can add but not really remove because some files might be on the drive that you want to remove

  • @Jack_Ranold
    @Jack_Ranold Рік тому

    Does anyone know how to add the disk to the file manager side bar and not in the other locations on Ubuntu, I have already mounted all the disk/partitons please please help before I switch to another linux.

  • @sweolimar7535
    @sweolimar7535 4 роки тому

    In fact, just what I was looking for :)

  • @beckster181
    @beckster181 3 роки тому

    this is a little out of date as of 13 feb 2020 in the fstab uuid section BUT if you copy the already listed drives for your OS drive and list it as shown the rest is same it is that you have to add more than just uuid= before you include the uuid

  • @leonoliveira8652
    @leonoliveira8652 2 роки тому

    This really was the most painless way of adding a hard drive to my OS. Old one was dying on me, so before it fully dies, new disk and try to backup stuff asap.

  • @svenkee1347
    @svenkee1347 2 роки тому

    very helpful video, thank you!

  • @radoslawkosicki
    @radoslawkosicki 4 роки тому

    Having this done i tried to configure Raid 1 using. sudo mdadm --examine /dev/sdb1 /dev/sdc1 but i got error “Device or resource busy”. Any clues what might be wrong.

  • @datawolk
    @datawolk 3 роки тому

    I followed your tutorial and everything is working properly. However in my fstab file is see this:
    #
    # / was on /dev/sda2 during curtin installation
    /dev/disk/by-uuid/f7ad638c-6745-4cd0-896d-5290bddfe32e / ext4 defaults 0 0
    # /boot/efi was on /dev/sda1 during curtin installation
    What does it mean and is it a problem?

  • @theexperience6360
    @theexperience6360 3 роки тому

    Can you help me i have bought a new Aura ssd pcie ssd and it's not showing up in my macbook air . How can I fix this problem.

    • @TechGuides
      @TechGuides  3 роки тому

      I cant help you with Mac OS Im afraid

  • @pavlob2
    @pavlob2 3 роки тому +1

    Great content and really nicely explained. Is there a way to manually set up VPN on Ubuntu Server?

  • @gargoyled_drake
    @gargoyled_drake 3 роки тому +1

    is this also possible using the disks app ?

    • @andyb112358
      @andyb112358 3 роки тому

      Good question, did you figure this out yet? I'm interested as well. Thanks.

    • @gargoyled_drake
      @gargoyled_drake 3 роки тому

      it is, can't really remember what this video is about anymore 🤣or at least the reason why i was watching this specificly, but yes, it's possible to set up your drives just using the disk app and also way faster unless you can do it in terminal with a oneline command

  • @RezwanulIslamRifat
    @RezwanulIslamRifat 3 роки тому

    I have a 500GB SSD. now I'm using windows 10. and wanna shift ubuntu. what will be best for me. in one partition for all? or one for the system and another for home? please help me. thanks

    • @TechGuides
      @TechGuides  3 роки тому

      Do you mean for a regular desktop machine? Id just use one partition for everything

  • @ox3965
    @ox3965 3 роки тому

    Can anyone help please? I have 4 x 3tb drives and only seem to be able to add only 3 of them and even then only 8tb shows up

  • @Renegade19099299
    @Renegade19099299 3 роки тому

    I have 3 disks mounted in mnt/cloud directory (cloud1, cloud2, cloud3), only for nexcloud data.
    how can i replace one of the full hard drives with a bigger one ? can you help or make a tutorial.
    I want replace cloud1 hdd for one bigger.
    Thanks for all your videos and tutorials

    • @TechGuides
      @TechGuides  3 роки тому

      Just install a new, larger drive, then rsync all the contents from the drive that you want replace onto the new one and change the mhddfs line in your fstab file to point to the new drive instead.

    • @Renegade19099299
      @Renegade19099299 3 роки тому +1

      @@TechGuides thanks, i will try, im new in ubuntu server.

  • @guywhoplaysbass
    @guywhoplaysbass 2 роки тому

    How did he get the /mnt/cloud$ thing to pop up in blue? He just says "okay for the next step..." And he's in a different window...?

  • @drygordspellweaver8761
    @drygordspellweaver8761 3 роки тому

    How to change eye font color to blue?

  • @Taylormeyer
    @Taylormeyer 4 роки тому +1

    When running the sudo mount -a, im getting "Cant find UUID" i double checked the data in the fstab was correct. Any ideas?

  • @venzislavsimeonov4545
    @venzislavsimeonov4545 3 роки тому

    Something must’ve went completely south while i was following your instructions because when i rebooted my machine it now doesn’t want to boot or go into bios either. Just turns on and simply stays like that.

    • @TechGuides
      @TechGuides  3 роки тому

      Oh dear did you accidentally partition the boot drive?

  • @mdshaadmanlodhi3648
    @mdshaadmanlodhi3648 4 роки тому

    i have a ubuntu booted in my hard disk which i was using in my old spare CPU(Dual Core)
    after a years when i booted it for the first time i found that all the usb port are not detecting any device
    (no mouse,no pendrive ,no light)
    i have a keyboard with ( PS/2 port 6-pin mini-DIN) which is detectable, but no mouse the i can use
    so i think if i somehow boot the window in HDD it should work
    but I think the Motherboard may have a problem
    pls can anybody help me ...
    thank you

    • @kishananuraag
      @kishananuraag 3 роки тому +1

      I got the same problem. i installed ubuntu server using two hdds via sata connectors. but I'm struggling now how to partion a 1 tb drive, one for the boot(less space) and remaining all for cloud

  • @caioalmeida3213
    @caioalmeida3213 2 роки тому

    Ty!

  • @jaygeeantonio6625
    @jaygeeantonio6625 Рік тому

    running into the issue i litterally have 13 loops ifykyk im so dumb i dont know which is which

  • @abdelbassetlabbi852
    @abdelbassetlabbi852 4 роки тому

    when i write sudo fdisk -l should i type pswd
    cos i can't type it

    • @TechGuides
      @TechGuides  4 роки тому

      yes you have to enter your admin password in order to "sudo" anything ;)

  • @Ihavenoideawhatimdoing502
    @Ihavenoideawhatimdoing502 4 роки тому

    If I fuse two drives together and one crashes, is the data recoverable from the crashed drive?

    • @TechGuides
      @TechGuides  4 роки тому

      What do you mean by crashing? mhddfs simply fills up one drive after the other so if one drive dies you will still have ALL of the data from the other drives but NONE from the one that died. So make sure to always have a backup!

  • @djliquidsmoke
    @djliquidsmoke 3 роки тому

    man epic fail for me, That last part binding drives, could not get it working. I can’t save my fstab file edits… not sure why

  • @gideonbennett4187
    @gideonbennett4187 Рік тому

    Thank you

  • @ashwath23
    @ashwath23 4 роки тому

    Optimization guide for horizon zero dawn pc please.

    • @TechGuides
      @TechGuides  4 роки тому

      Thanks for the recommendation! However, I currently have a whole bunch of other videos planned so it will have to wait

  • @siddhartha-555
    @siddhartha-555 4 роки тому

    Why I'm getting sudo: fdisc: command not found

    • @TechGuides
      @TechGuides  4 роки тому

      You mean "sudo fdisk -l"?

    • @siddhartha-555
      @siddhartha-555 4 роки тому

      @@TechGuides yeah after entering sudo fdisc -l I got sudo: fdisc: command not found.

    • @TechGuides
      @TechGuides  4 роки тому +1

      you mean "fdisk" not "fdisc"?

    • @NikhilKumar-qj4tn
      @NikhilKumar-qj4tn 3 роки тому

      @@TechGuides it was at this moment he knew he fkd up 😂😂😂

  • @monkiedeinhau557
    @monkiedeinhau557 3 роки тому

    How to unmount them?

  • @kazekagesama92
    @kazekagesama92 3 роки тому

    thanks

  • @yourpcmd
    @yourpcmd 3 роки тому

    The problem with this "software raid" is if a disk dies, you lose all data. You should use hotswap drives or better yet, a real server and hardware raid. That way, if a disk dies, you simply swap the dead drive with a new one and let it rebuild.

    • @TechGuides
      @TechGuides  3 роки тому

      That's why I've implemented ZFS "RAID 10" in a subsequent video. This was just for the purpose of showing how to do basic operations

    • @yourpcmd
      @yourpcmd 3 роки тому

      @@TechGuides raid 5 would be a better option. But I'll take a look at that other video. I just don't trust software raid.

    • @TechGuides
      @TechGuides  3 роки тому

      Both speed and reliability are excellent with that setup, wouldn't want to miss it really ;)

  • @sidetraksidetrak879
    @sidetraksidetrak879 3 роки тому

    /dev/sde file dose not exist Thats what i got. Trying to put in a second drive, and then a third

  • @johnnysparkleface3096
    @johnnysparkleface3096 2 роки тому

    Do you have a version of this which uses a disk utility, so I can visually see what I'm doing? No exaggeration, I don't know a single command line command in Linux (I do in Windows), but I know the command line is powerful and a newbie can completely hose their computer with one misstep. Sorry, the command line isn't for everyone.
    I hope you take this as a suggestion and not a criticism. The whole reason Linux as taken forever to catch on as a commonly used desktop OS, is it's too scary and foreign and techy for the common person.

    • @TechGuides
      @TechGuides  2 роки тому +1

      I'm sorry but I don't have a GUI running on my server. I also have only very little experience with GUI utility tools on Linux so I would really be able to teach you much ;) The command line really isn't that scary once you've used it a few times

  • @sarasonbol3923
    @sarasonbol3923 2 роки тому

    that is just so complicated isn't there an easier way? I just want to install windows 11 instead

  • @wilsoncardoso150
    @wilsoncardoso150 3 роки тому

    The file /dev/sda4 does not exist and no size was specified. this shows up after i try to format it with mkfs.ext4

    • @TechGuides
      @TechGuides  3 роки тому

      the number in /dev/sda depends on the number of drives that you have attached to your machine. Check your disks using sudo fdisk -l

    • @wilsoncardoso150
      @wilsoncardoso150 3 роки тому

      @@TechGuides hi, thanks for your answer, so despite creating a partition the partion was not reflecting on the system, so we need to inform kernel about the changes made to the disk by running sudo partprob -s