Linux开机自动挂载Windows分区

本文介绍如何在Linux系统中自动挂载Windows分区。通过使用blkid命令查找分区的UUID或LABEL,并修改/etc/fstab文件实现开机自动挂载。文章提供了具体的fstab配置示例。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >


title: Linux开机自动挂载Windows分区
date: 2017-11-08 22:09:28
tags: linux
categories: linux


教程以archlinux为例。

查找分区的UUID或LABEL

使用blkid查看分区的label和uuid信息。

sudo blkid

返回可能类似下面这样:

61194385.jpg

如果你想得到关于分区大小的信息,可以运行

sudo fdisk --list

修改自动挂载文件

sudo vim /etc/fstab

你可以使用LABELUUID来定位你要挂载的分区。
使用man fstab获取文件的详细配置信息。
下面是我的fstab内容:

UUID=0008-1C51                            /boot/efi      vfat    defaults,noatime 0 2
UUID=44a05151-a639-4e64-82ea-320085e7d1ba /              ext4    defaults,noatime,discard 0 1
tmpfs                                     /tmp           tmpfs   defaults,noatime,mode=1777 0 0
LABEL=OS                                  /home/lxp/OS   ntfs    defaults,noatime 0 0
LABEL=SSD                                 /home/lxp/SSD  ntfs    defaults,noatime 0 0
UUID=FCF2FA11F2F9D03E                    /home/lxp/E ntfs  defaults,noatime 0 0
UUID=000FBF060008A44E                   /home/lxp/F  ntfs    defaults,noatime 0 0
UUID=000DB56E000E40C4                  /home/lxp/G   ntfs     defaults,noatime 0 0

转载于:https://www.cnblogs.com/lepeCoder/p/7844853.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值