ubuntu自动挂载windows磁盘

电脑装的win7和ubuntu双系统

之前一直使用dropbox来同步两个系统的工作文件,最近dropbox登不上,工作文件没法同步

就想直接在ubuntu中挂载windows磁盘,把工作路径设为windows的工作路径,这样两个系统就可以使用一个工作区间了


这样为了方便就得设置iubuntu启动自动挂载windows磁盘


ubuntu分区挂载的配置文件为:/etc/fastab


查看原始配置文件:sudo vi /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).
#
#              
# / was on /dev/sda4 during installation
UUID=20485b5a-5362-4054-bd24-6886335962a7 /             ext4    errors=remount-ro 0       1

# /boot was on /dev/sda3 during installation
UUID=e97d7d1c-8c1f-41a3-80ef-e97319f19ca3 /boot           ext4    defaults     
# swap was on /dev/sda9 during installation
UUID=dc82ad16-e9fd-45bb-969b-c8b081fff386 none            swap    sw              0       0



现在要加上要挂载的windows磁盘


查看windows磁盘挂载信息

sudo blkid


把要挂载的盘的信息记下,按照上面的格式写入fstab中即可

你可能感兴趣的:(电脑问题,win7,ubuntu,磁盘,ext4)