Help choosing config_driveid for Onedrive remote

What is the problem you are having with rclone?

I'm setting up rclone for the first time (actually the second, as I was in an old version of rclone when I did the first remote config, so I deleted the first config and started again). I configured a Onedrive remote. For config_driveid, I chose the default, but I am not sure if I chose right. Does anyone now why I have so many drives and what they mean? Did I make the right choice?

My main concern is loosing data; I am relying on Onedrive version history and I want that to be preserved in all circumstances. Any help to avoid risk of data loss is also appreciated.

Run the command 'rclone version' and share the full output of the command.

rclone v1.72.0

* os/version: linuxmint 22.2 (64 bit)
* os/kernel: 6.14.0-36-generic (x86_64)
* os/type: linux
* os/arch: amd64
* go/version: go1.25.4
* go/linking: static
* go/tags: none

Which cloud storage system are you using? (eg Google Drive)

Microsoft Onedrive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone config

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[onedrive]
type = onedrive
token = XXX
drive_id = XXX
drive_type = personal
### Double check the config for sensitive info before posting publicly

A log from the command that you were trying to run with the -vv flag

I did not run it with -vv but it should be fine. I don't think it makes sense to repeat it with -vv. Also, I had no issues or fails. I redacted the hashes with XXX but some are repeating, so I numbered the repeating ones so that you can follow (e.g. XXX1). In particular, XXX1 correspond to the drive_id in the config.

rclone config
Current remotes:

Name                 Type
====                 ====
OneDmain             onedrive

e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q> d

Select remote.
Choose a number from below, or type in an existing value.
 1 > OneDmain
remote> 1


No remotes found, make a new one?
n) New remote
s) Set configuration password
q) Quit config
n/s/q> n

Enter name for new remote.
name> onedrive

Option Storage.
Type of storage to configure.
Choose a number from below, or type in your own value.
 1 / 1Fichier
   \ (fichier)
 2 / Akamai NetStorage
   \ (netstorage)
 3 / Alias for an existing remote
   \ (alias)
 4 / Amazon S3 Compliant Storage Providers including AWS, Alibaba, ArvanCloud, Ceph, ChinaMobile, Cloudflare, Cubbit, DigitalOcean, Dreamhost, Exaba, FileLu, FlashBlade, GCS, Hetzner, HuaweiOBS, IBMCOS, IDrive, Intercolo, IONOS, Leviia, Liara, Linode, LyveCloud, Magalu, Mega, Minio, Netease, Outscale, OVHcloud, Petabox, Qiniu, Rabata, RackCorp, Rclone, Scaleway, SeaweedFS, Selectel, Servercore, SpectraLogic, StackPath, Storj, Synology, TencentCOS, Wasabi, Zata, Other
   \ (s3)
 5 / Backblaze B2
   \ (b2)
 6 / Better checksums for other remotes
   \ (hasher)
 7 / Box
   \ (box)
 8 / Cache a remote
   \ (cache)
 9 / Citrix Sharefile
   \ (sharefile)
10 / Cloudinary
   \ (cloudinary)
11 / Combine several remotes into one
   \ (combine)
12 / Compress a remote
   \ (compress)
13 / DOI datasets
   \ (doi)
14 / Dropbox
   \ (dropbox)
15 / Encrypt/Decrypt a remote
   \ (crypt)
16 / Enterprise File Fabric
   \ (filefabric)
17 / FTP
   \ (ftp)
18 / FileLu Cloud Storage
   \ (filelu)
19 / Files.com
   \ (filescom)
20 / Gofile
   \ (gofile)
21 / Google Cloud Storage (this is not Google Drive)
   \ (google cloud storage)
22 / Google Drive
   \ (drive)
23 / Google Photos
   \ (google photos)
24 / HTTP
   \ (http)
25 / Hadoop distributed file system
   \ (hdfs)
26 / HiDrive
   \ (hidrive)
27 / ImageKit.io
   \ (imagekit)
28 / In memory object storage system.
   \ (memory)
29 / Internet Archive
   \ (internetarchive)
30 / Jottacloud
   \ (jottacloud)
31 / Koofr, Digi Storage and other Koofr-compatible storage providers
   \ (koofr)
32 / Linkbox
   \ (linkbox)
33 / Local Disk
   \ (local)
34 / Mail.ru Cloud
   \ (mailru)
35 / Mega
   \ (mega)
36 / Microsoft Azure Blob Storage
   \ (azureblob)
37 / Microsoft Azure Files
   \ (azurefiles)
38 / Microsoft OneDrive
   \ (onedrive)
39 / OpenDrive
   \ (opendrive)
40 / OpenStack Swift (Rackspace Cloud Files, Blomp Cloud Storage, Memset Memstore, OVH)
   \ (swift)
41 / Oracle Cloud Infrastructure Object Storage
   \ (oracleobjectstorage)
42 / Pcloud
   \ (pcloud)
43 / PikPak
   \ (pikpak)
44 / Pixeldrain Filesystem
   \ (pixeldrain)
45 / Proton Drive
   \ (protondrive)
46 / Put.io
   \ (putio)
47 / QingCloud Object Storage
   \ (qingstor)
48 / Quatrix by Maytech
   \ (quatrix)
49 / Read archives
   \ (archive)
50 / SMB / CIFS
   \ (smb)
51 / SSH/SFTP
   \ (sftp)
52 / Sia Decentralized Cloud
   \ (sia)
53 / Storj Decentralized Cloud Storage
   \ (storj)
54 / Sugarsync
   \ (sugarsync)
55 / Transparently chunk/split large files
   \ (chunker)
56 / Uloz.to
   \ (ulozto)
57 / Union merges the contents of several upstream fs
   \ (union)
58 / Uptobox
   \ (uptobox)
59 / WebDAV
   \ (webdav)
60 / Yandex Disk
   \ (yandex)
61 / Zoho
   \ (zoho)
62 / iCloud Drive
   \ (iclouddrive)
63 / premiumize.me
   \ (premiumizeme)
64 / seafile
   \ (seafile)
Storage> 38

Option client_id.
OAuth Client Id.
Leave blank normally.
Enter a value. Press Enter to leave empty.
client_id> 

Option client_secret.
OAuth Client Secret.
Leave blank normally.
Enter a value. Press Enter to leave empty.
client_secret> 

Option region.
Choose national cloud region for OneDrive.
Choose a number from below, or type in your own value of type string.
Press Enter for the default (global).
 1 / Microsoft Cloud Global
   \ (global)
 2 / Microsoft Cloud for US Government
   \ (us)
 3 / Microsoft Cloud Germany (deprecated - try global region first).
   \ (de)
 4 / Azure and Office 365 operated by Vnet Group in China
   \ (cn)
region> 

Option tenant.
ID of the service principal's tenant. Also called its directory ID.
Set this if using
- Client Credential flow
Enter a value. Press Enter to leave empty.
tenant> 

Edit advanced config?
y) Yes
n) No (default)
y/n> 

Use web browser to automatically authenticate rclone with remote?
 * Say Y if the machine running rclone has a web browser you can use
 * Say N if running rclone on a (remote) machine without web browser access
If not sure try Y. If Y failed, try N.

y) Yes (default)
n) No
y/n> 

2025/12/09 14:11:34 NOTICE: Make sure your Redirect URL is set to "http://localhost:53682/" in your custom config.
2025/12/09 14:11:34 NOTICE: If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=XXX
2025/12/09 14:11:34 NOTICE: Log in and authorize rclone for access
2025/12/09 14:11:34 NOTICE: Waiting for code...
2025/12/09 14:11:39 NOTICE: Got code
Option config_type.
Type of connection
Choose a number from below, or type in an existing value of type string.
Press Enter for the default (onedrive).
 1 / OneDrive Personal or Business
   \ (onedrive)
 2 / Root Sharepoint site
   \ (sharepoint)
   / Sharepoint site name or URL
 3 | E.g. mysite or https://contoso.sharepoint.com/sites/mysite
   \ (url)
 4 / Search for a Sharepoint site
   \ (search)
 5 / Type in driveID (advanced)
   \ (driveid)
 6 / Type in SiteID (advanced)
   \ (siteid)
   / Sharepoint server-relative path (advanced)
 7 | E.g. /teams/hr
   \ (path)
config_type> 1

Option config_driveid.
Select drive you want to use
Choose a number from below, or type in your own value of type string.
Press Enter for the default (XXX1).
 1 / Bundles_XXX (personal)
   \ (XXX1)
 2 / ODCMetadataArchive (personal)
   \ (XXX2_XXX)
 3 / OneDrive (personal)
   \ (XXX1)
 4 / XXX (personal)
   \ (XXX2_XXX)
 5 / XXX (personal)
   \ (XXX2_XXX)
config_driveid> 

Drive OK?

Found drive "root" of type "personal"
URL: https://onedrive.live.com?cid=XXX1&id=XXX

y) Yes (default)
n) No
y/n> 

Configuration complete.
Options:
- type: onedrive
- token: XXX
- drive_id: XXX1
- drive_type: personal
Keep this "onedrive" remote?
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d> 

Current remotes:

Name                 Type
====                 ====
onedrive             onedrive

e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q> q

welcome to the forum,

that would not seem to be a valid reason to delete a rclone config file. unless there is additional reason you have not mentioned?
perhaps recover that working config from your backups?


create a remote for each one, see what is inside and then you will know
log into the onedrive webinterface, see what files are there and see with rclone config shows the same files.

New info

These are details that I did not consider before that might be relevant:
I did try to use rclone previously from another pc.
I don't understand why there are all these drives in Onedrive as I don't think I ever did any weird configuration. But I did use different apps to connect to Onedrive, so I don't know.

I have investigated all the drives one by one, thanks for the suggestion.

Result of trying to add all drives as remotes

All hash removed, as before corresponding hashes that repeat have been numbered (e.g XXX1)

The drives


Option config_driveid.

Select drive you want to use

Choose a number from below, or type in your own value of type string.

Press Enter for the default (XXX1).

1 / Bundles_XXX (personal)

\ (XXX1)

2 / ODCMetadataArchive (personal)

\ (XXX2_XXX3)

3 / OneDrive (personal)

\ (XXX1)

4 / XXX (personal)

\ (XXX2_XXX4)

5 / XXX (personal)

\ (XXX2_XXX5)

1


Option config_driveid.

Select drive you want to use

Choose a number from below, or type in your own value of type string.

Press Enter for the default (XXX1).

1 / Bundles_XXX (personal)

\ (XXX1)

2 / ODCMetadataArchive (personal)

\ (XXX2_XXX3)

3 / OneDrive (personal)

\ (XXX1)

4 / XXX (personal)

\ (XXX2_XXX4)

5 / XXX (personal)

\ (XXX2_XXX5)


config_driveid>

Drive OK?

Found drive "root" of type "personal"

URL: https://onedrive.live.com?cid=XXX1&id=XXX9

This one is the remote I called onedrive

2


config_driveid> 2

Failed to query root for drive "XXX2_XXX3": HTTP error 400 (400 Bad Request) returned body: "{\"error\":{\"code\":\"invalidRequest\",\"message\":\"ObjectHandle is Invalid\",\"innerError\":{\"date\":\"2025-12-09T16:39:03\",\"request-id\":\"XXX6\",\"client-request-id\":\"XXX6\"}}}"

3


config_driveid> 3

Drive OK?

Found drive "root" of type "personal"

URL: https://onedrive.live.com?cid=XXX1&id=XXX9

This is the remote I called onedrive3

4


config_driveid> 4

Failed to query root for drive "XXX2_XXX4": HTTP error 400 (400 Bad Request) returned body: "{\"error\":{\"code\":\"invalidRequest\",\"message\":\"ObjectHandle is Invalid\",\"innerError\":{\"date\":\"2025-12-09T16:41:27\",\"request-id\":\"XXX7\",\"client-request-id\":\"XXX7\"}}}"

5


config_driveid> 5

Failed to query root for drive "XXX2_XXX5": HTTP error 400 (400 Bad Request) returned body: "{\"error\":{\"code\":\"invalidRequest\",\"message\":\"ObjectHandle is Invalid\",\"innerError\":{\"date\":\"2025-12-09T16:41:44\",\"request-id\":\"XXX8\",\"client-request-id\":\"XXX8\"}}}"

Final config with redacted


[onedrive]

type = onedrive

token = XXX

drive_id = XXX

drive_type = personal

[onedrive3]

type = onedrive

token = XXX

drive_id = XXX

drive_type = personal

### Double check the config for sensitive info before posting publicly

My questions

The drive_id is the same in both remotes. I did a rclone check onedrive: onedrive3: --exclude='/Vault personale/**' -vv which determined that everything was the same. Is it the same drive shown multiple times? It has the same id, so is that enough to ensure that it's the same? Which one should I use and why? What are the other 3 drives that I cannot access?

Further explaining

Why do you assume I am leaving out additional relevant information?

I have spent some time to give you all the info below in the hope that you will trust me and help me. I believe they are not relevant, but so be it.
I first installed rclone from the linux mint repo with sudo apt install rclone. When I went to make this post the template mentioned to write the version and to use the command rclone config redacted which did not work in the version from the repo, which is this down below.

rclone v1.60.1-DEV
- os/version: linuxmint 22.2 (64 bit)
- os/kernel: 6.14.0-36-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.22.2
- go/linking: dynamic
- go/tags: none

So, I installed the new version following the procedure in the site (from Install). For good measure, I deleted the original config and started again. Here is the original config, manually redacted as the command rclone config redacted does not exist in that version. And basically the same as the new one.

[OneDmain]
type = onedrive
token = TOKEN
drive_id = XXX1
drive_type = personal

welcome


perhaps contact microsoft tech support or forum.


this is a forum about rclone.
so, if you have a direct question about rclone and its implementation, i would be glad to help you.


that was my intention. i am just a forum member volunteering my time.
hopefully, some other forum member can better accommodate your needs. good luck...