Add internal storage (VM)

Hi !
I’m a beginner and install a debian vm on a Win 10 “server”

Expected behaviour

I want use the physical drive of my Server to add space on my ownCloud.
My ownCloud is installed on a vmWare Virtual Machine, in debian 11.4.
My debian is installed on a virtual disk.
My debian is on “Bridge” Network configuration, then be see and see my Server (on Win 10)

Actual behaviour

I can’t use the second disk (sdb) on my debian11 to extend the storage of my ownCloud.

Server configuration

Operating system: Debian 11.4
Web server: Apache 2.4.54
Database: 10.5.15-MariaDB
PHP version: 7.4.30
ownCloud version: 10.10.0

Updated from an Fresh Install

Where did you install ownCloud from:
→ Owncloud installed directly with the official documentation

The content of config/config.php:

$CONFIG = array (
‘updatechecker’ => false,
‘instanceid’ => ‘ocyh25hbnda3’,
‘passwordsalt’ => ‘xxxxxxxxxxxxxxxxxxxxxx’,
‘secret’ => ‘xxxxxxxxxxxxxxxxxxxxxxx’,
‘trusted_domains’ =>
array (
0 => ‘localhost’,
1 => ‘’,
2 => ‘’,
3 => ‘local’,
‘datadirectory’ => ‘/var/www/owncloud/data’,
‘overwrite.cli.url’ => ‘http://localhost’,
‘dbtype’ => ‘mysql’,
‘version’ => ‘’,
‘dbname’ => ‘ownclouddb’,
‘dbhost’ => ‘localhost’,
‘dbtableprefix’ => ‘oc_’,
‘mysql.utf8mb4’ => true,
‘dbuser’ => ‘xxxxxx’,
‘dbpassword’ => ‘xxxxxx’,
‘allow_user_to_change_mail_address’ => ‘’,
‘logtimezone’ => ‘UTC’,
‘apps_paths’ =>
array (
0 =>
array (
‘path’ => ‘/var/www/owncloud/apps’,
‘url’ => ‘/apps’,
‘writable’ => false,
1 =>
array (
‘path’ => ‘/var/www/owncloud/apps-external’,
‘url’ => ‘/apps-external’,
‘writable’ => true,
‘installed’ => true,
‘allow_user_to_change_display_name’ => true,

List of activated apps:

  • External Storage: FTP
  • Web

Are you using external storage, if yes which one:
→ No

Are you using encryption:
→ No

@COnimus68 As you are saying “extend” the storage of your Owncloud… I believe this is not an OC issue but more of a general server storage question.

You have made disk sdb available. Did you mount it? Did you establish a filesystem on it? Are you already using LVM? LVM - Debian Wiki

Rather than extending, If your sdb is big enough on its own, you could move the data directory to the new drive and symlink it from /var/www/owncloud/data.

1 Like