外部硬盘 + Google Drive(Ubuntu 14.04)

外部硬盘 + Google Drive(Ubuntu 14.04)

我刚刚安装了 Ubuntu 14.04。除了默认硬盘之外,我还有一个外部硬盘,我想在上面安装 Google Drive。我该怎么做?

我读了 有可用的 Google Drive 客户端吗? 但我不知道如何更改位置(从内部硬盘到外部硬盘)?

的结果:

sudo blkid; sudo parted -l

请参阅下文。它是波兰语的 ;)

/dev/sda1: UUID="98c61393-a17a-4c01-ab52-49b62a33a3ff" TYPE="ext4" 
/dev/sda5: UUID="cefb2e69-872b-4832-9ef5-7576d5082af9" TYPE="swap" 
/dev/sdb1: LABEL="DATA" UUID="6A5AA8035AA7CA61" TYPE="ntfs"  

Model: ATA PLEXTOR PX-128M6 (scsi) 
Dysk /dev/sda: 128GB 
Rozmiar sektora (logiczny/fizyczny): 512B/512B Tablica partycji: msdos

Numer  Początek  Koniec  Rozmiar  Typ       System plików   Flaga  1  
1049kB    120GB   120GB    primary   ext4            ładowalna  2    
120GB     128GB   8479MB   extended  5     120GB     128GB   8479MB  
logical   linux-swap(v1)


Model: ASMT 2105 (scsi) Dysk /dev/sdb: 1000GB Rozmiar sektora
(logiczny/fizyczny): 512B/512B Tablica partycji: msdos

Numer  Początek  Koniec  Rozmiar  Typ      System plików  Flaga  1    
1049kB    1000GB  1000GB   primary  ntfs

的结果

cat /etc/fstab

# /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).

#<file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation 
UUID=98c61393-a17a-4c01-ab52-49b62a33a3ff /               ext4   errors=remount-ro 0       1
# swap was on /dev/sda5 during installation 
UUID=cefb2e69-872b-4832-9ef5-7576d5082af9 none            swap    sw   0       0 
UUID=6A5AA8035AA7CA61 /home/suzk/Drive ntfs-3g rw,exec,uid=,gid=,umask=0022 
UUID=6A5AA8035AA7CA61 /home/suzk/Drive ntfs-3g rw,exec,uid=,gid=,umask=0022 
UUID=6A5AA8035AA7CA61 /home/suzk/Drive ntfs-3g rw,exec,uid=,gid=,umask=0022
UUID=6A5AA8035AA7CA61 /home/suzk/Drive ntfs-3g rw,exec,uid=1000,gid=1000,umask=0022 
UUID=6A5AA8035AA7CA61 /home/suzk/Drive ntfs-3g rw,exec,uid=1000,gid=1000,umask=0022 
UUID=6

答案1

据我所知,Grive 应用程序使用~/Google Drive(例如/home/suz/Drive)作为同步文件夹。您可以在~/Drive(或该文件夹中的某个文件夹)安装外部磁盘。您需要/etc/fstab对此进行编辑,并确保每次 grive 启动时外部磁盘都已连接。

~/Google Drive您可以使用以下命令安装外部驱动器:

mkdir -p ~/Google\ Drive
sudo umount /dev/sdb1
sudo sed -i.bak '/6A5AA8035AA7CA61/d' /etc/fstab
sudo tee -a /etc/fstab <<EOF
UUID=6A5AA8035AA7CA61 $HOME/Google\040Drive ntfs-3g rw,exec,uid=$(id -u),gid=$(id -u),umask=0022
EOF
sudo mount ~/Google\ Drive

这将使用正确的权限安装您的外部磁盘~/Google Drive

相关内容