ฉันมี Ubuntu 20.04 บนคลาวด์อินสแตนซ์ อินสแตนซ์นี้อยู่บน Oracle Cloud Infrastructure (OCI) ฉันสร้างที่เก็บข้อมูลวัตถุที่ฉันเพิ่มด้วยตนเองโดยใช้คำสั่งต่อไปนี้
s3fs WTX-Cotton-bucket /home/ubuntu/wtx_cotton_storage -o passwd_file=${HOME}/.passwd-s3fs -o url=https://axrpuscetkut.compat.objectstorage.us-ashburn-1.oraclecloud.com/ - onomultipart -o use_path_request_style -o endpoint=us-ashburn-1 -o ไม่ว่างเปล่า
เมื่อฉันรีบูตอินสแตนซ์ ไม่ได้ติดตั้งที่เก็บข้อมูล ดังนั้นฉันต้องเพิ่มลงใน /etc/fstab เพื่อติดตั้งทุกครั้งที่พีซีบูท นี่คือรหัสปัจจุบันของฉันที่จะเพิ่ม:
WTX-Cotton-bucket /home/ubuntu/wtx_cotton_storage fuse.s3fs use_path_request_style,passwd_file=/home/ubuntu/.passwd-s3fs,url=https://axrpuscetkut.compat.objectstorage.us-ashburn-1.oraclecloud.com, endpoint=us-ashburn-1 kernel_cache,multipart_size=128,parallel_count=50,multireq_max=100,max_background=1000,_netdev
เหล่านี้เป็น คำแนะนำ จากไซต์ oracle:
<bucket_name> /path/to/<local_directory_name> fuse.s3fs use_path_request_style,passwd_file=/root/.s3fs-password,url=https://<namespace_name>.compat.objectstorage.<region_ID>.oraclecloud.com,endpoint= <region_ID> kernel_cache,multipart_size=128,parallel_count=50,multireq_max=100,max_background=1000,_netdev{code}
หลังจากเพิ่มไปยัง /etc/fstab. ฉันทำ sudo เมานต์ -a
และฉันได้รับข้อความแสดงข้อผิดพลาดนี้:
เมานต์: / etc / fstab: ข้อผิดพลาดในการแยกวิเคราะห์ที่บรรทัด 25 - ละเว้น
cat -v /etc/fstab
WTX-Cotton-bucket /home/ubuntu/wtx_cotton_storage fuse.s3fs use_path_request_style,passwd_file=/home/ubuntu/.passwd-s3fs,url=https://axrpuscetkut.compat.objectstorage.us-ashburn-1.oraclecloud.com, endpoint=us-ashburn-1 kernel_cache,multipart_size=128,parallel_count=50,multireq_max=100,max_background=1000,_netdev