Add new disk to debian

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

  1. pecka33

    pecka33 Member

    Hello,
    I am using Debian 11, server ProLiant DL320e Gen8 v2, E3-1231v3, 32 GB, 2x1 TB. During install i used manuall settings for disk - for beginners and was added disk with name sda1 - second is with name sdb. In my debian, ispconfig etc. i can see only first added disk sda1.

    Is here any easy way without lost data how can i add second disk to use it? I have to boot debian from ISO file and there choose something like recovery mode, go to settings disk in non graphical settings and there add second disk? I have no access to bios.

    I am not sure why here is disks sdb and sda with the same used space.
    Code:
    root@hd518:~# fdisk -l
    Disk /dev/sdb: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
    Disk model: MB1000GCWCV
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: dos
    Disk identifier: 0xdc9952f5
    
    Device     Boot      Start        End    Sectors   Size Id Type
    /dev/sdb1  *          2048 1951522815 1951520768 930.6G 83 Linux
    /dev/sdb2       1951524862 1953523711    1998850   976M  5 Extended
    /dev/sdb5       1951524864 1953523711    1998848   976M 82 Linux swap / Solaris
    
    
    Disk /dev/sda: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
    Disk model: MB1000GCWCV
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: dos
    Disk identifier: 0x9767542d
    
    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 / Solaris
    
    In ispconfig i can see
    Code:
    udev    devtmpfs    16G    0    16G    0%    /dev
    tmpfs    tmpfs    3.2G    680K    3.2G    1%    /run
    /dev/sda1    ext4    915G    3.6G    865G    1%    /
    
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    What shows
    Code:
    df -hT
    If that sdb disk is not used in any way, i.e. not mounted and not part of RAID pack, you can mount it to suitable mountpoint, /srv or /opt for example.
    You could have done this during installation of Debian, the disk setup part shows all disks and allows choosing file system and mount point.
    Found this using Internet Search Engines:
    https://www.debiantutorials.com/how...-or-partition-using-uuid-and-ext4-filesystem/
     
  3. pecka33

    pecka33 Member

    Thank you. I will check it. This command shows me

    Code:
    Filesystem     Type      Size  Used Avail Use% Mounted on
    udev           devtmpfs   16G     0   16G   0% /dev
    tmpfs          tmpfs     3.2G  660K  3.2G   1% /run
    /dev/sdb1      ext4      915G  3.6G  865G   1% /
    tmpfs          tmpfs      16G     0   16G   0% /dev/shm
    tmpfs          tmpfs     5.0M     0  5.0M   0% /run/lock
    tmpfs          tmpfs     3.2G     0  3.2G   0% /run/user/0
    
    I am using for my installation of debian sdb1 as i can see in ispconfig, so i have to add sda
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Use:

    crontab -e -u getmail
     
  5. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    I think @till answer is for another thread?
     
    till likes this.
  6. pecka33

    pecka33 Member

    Yes, but this was correct, i found it and solved it, found it in vim file
     
  7. pecka33

    pecka33 Member

    I check my disks and not sure why there is same space and quota for sda and sdb. At all most probably my system is on sdb1, so maybe i should try to format sda and try to follow manual which sent Taleman.

    Or do you think that is better way to load iso file of debian and in any rescue mode try to add and choose file system and mount point for sda?
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

  9. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    If you are unsure about mounting disks, I would suggest installing the system fresh and paying attention in the disk setup part to set file systems on both disks and mount them to suitable places. If one disk is mouted at / then you have to decide where the other is mounted. Preferably a directory where you need 900 GB disk space.
    If you can not re-install:
    No. It might be possible that way but very complicated.
     
  10. pecka33

    pecka33 Member

    I solved it. Just used mount command and choose folder for this disk, /mnt, for sda is /
     
    till likes this.

Share This Page