Ubuntu 与 Windows双系统分区挂载 - iiishooter's Blog - Attitude is Altitude
Ubuntu 与 Windows双系统分区挂载
简单介绍
1.硬盘分区表示方法
/dev/hda hda:hd表示dard disk,IDE接口; a表示硬盘号
/dev/sda sda:sd表示SCSI dsk,IDE以外接口的硬盘
例:/dev/sdb1表示SCSI接口的第二快硬盘上的第一个分区
注意:kernel 2.6.19之后已经都使用/dev/sdx来表示了。
grub中所有硬盘都用hdx表示,x从0开始。(hd1,1)表示地2块硬盘 的第二个分区。
2. /etc/fstab介绍
格式:
设备名 挂载点 格式 挂载选项 是否备份 检查顺序
/dev/sdx /home ext4 defaults 0 2
/etc/fstab文件范例如下:
# /etc/fstab: static file system information. # # Use 'blkid -o value -s UUID' 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> proc /proc proc nodev,noexec,nosuid 0 0 # / was on /dev/sda9 during installation UUID=a313b7a0-d75f-47ff-b2bb-98bea74c9d53 / ext4 errors=remount-ro 0 1 # /home was on /dev/sda10 during installation UUID=43546a9e-17d8-424a-bf64-08e09c1ba911 /home ext4 defaults 0 2 # /opt was on /dev/sda11 during installation UUID=a58c24f0-9e75-40bc-9940-91a8b5d9eb3a /opt ext4 defaults 0 2 # /usr/local was on /dev/sda12 during installation UUID=26fbdda1-5077-42dc-a749-186e29a52640 /usr/local ext4 defaults 0 2 # swap was on /dev/sda13 during installation UUID=67e87cd9-47fc-42f9-b19a-da81cb0c491b none swap sw 0 0 #windows partation /dev/sda1 /media/System ntfs defaults 0 2 /dev/sda5 /media/Application ntfs defaults 0 2 /dev/sda6 /media/Software ntfs defaults 0 2 /dev/sda7 /media/Network ntfs defaults 0 2 /dev/sda8 /media/VMWare ntfs defaults 0 2
如此设置,即可在Ubuntu启动时挂载windows分区,而不必在每次进入windows分区时输入密码。
可以使用$sudo fdisk -l命令查看整个硬盘分区
2022年9月14日 13:17
The board experts have given Class 2 Environmental Studies Exam Sample Papers for all of the course's languages and subjects. Downloadable practise questions with preparatory advice are available to all students. CBSE Class 2 Evs Sample Paper For all examination tests, there is a CBSE STD-2 EVS Sample Paper 2023 Pdf Download accessible. Download the solved question bank for the CBSE Class 2 EVS Sample Paper 2023 from the previous year's exam.