Mount disk is gone after reboot

Discussion in 'Installation/Configuration' started by pecka33, Dec 13, 2021.

  1. pecka33

    pecka33 Member


    my server have two disks, both 1 TB. For system i am using /dev/sdb1, seccond disk is sda1. I need to connect my seccond disk so i used command
    mount /dev/sda1 /mnt
    and i can see this disks everywhere, in ispconfig etc with mnt directory. But when i reboot server, this mounted disk dissapear and have to add it again.

    Where is the problem? With command cfdisk for sda disk i can see and after reboot is not mounted.

     Disk: /dev/sda
               Size: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
                           Label: dos, identifier: 0xdc9952f5
        Device      Boot      Start        End    Sectors   Size Id Type
    >>  /dev/sda1   *          2048 1951522815 1951520768 930.6G 83 Linux
        /dev/sda2        1951524862 1953523711    1998850   976M  5 Extended
        └─/dev/sda5      1951524864 1953523711    1998848   976M 82 Linux swap / Sol
     x Partition type: Linux (83)                                                 x
     x     Attributes: 80                                                         x
     xFilesystem UUID: bbc2f6df-7fd3-44e8-8615-486f3f860463                       x
     x     Filesystem: ext3                                                       x
     x     Mountpoint: /mnt (mounted)                                             x
    Maybe i should add it in fstab? Because i am not sure why without any problems, in my fstab file is now

    # /etc/fstab: static file system information.
    # Use 'blkid' to print the universally unique identifier for a
    # device; this may be used with UUID= as a more robust way to name devices
    # that works even if disks are added and removed. See fstab(5).
    # systemd generates mount units based on this file, see systemd.mount(5).
    # Please run 'systemctl daemon-reload' after making changes here.
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    # / was on /dev/sda1 during installation
    UUID=712891ea-aae0-43e1-8b6e-6b352be59b84 /               ext4    errors=remount-ro,usrjquota=quota.user,,jqfmt=vfsv0 0       1
    # swap was on /dev/sda5 during installation
    UUID=32d73d03-0507-4894-819f-956d3c9580e0 none            swap    sw              0       0
    /dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0
    /var/log/ispconfig/httpd/domain2 /var/www/clients/client0/web1/log    none    bind,nofail    0 0
    /var/log/ispconfig/httpd/domain3 /var/www/clients/client0/web2/log    none    bind,nofail    0 0
    /var/log/ispconfig/httpd/domain /var/www/clients/client0/web3/log    none    bind,nofail    0 0
    Any idea please?
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Modify file /etc/fstab so the disk is mounted at boot. Info on Interwebs on how to add disk is findable using Internet Search Engines.
    I realised on the previous thread I already found for you a disk adding tutorial, and there it says:
    Did you not read that tutorial? If that particular tutorial is unsuitable, try to find better ones.

Share This Page