大网数据广告活动
服务器运维问答

Not able to format root partition in Arch Linux installation because already labelled

· 52CE 我爱测

I am installing Arch Linux on a previously Windows machine. I have created the partitions, with root on sda1, and now I am trying to format it with mkfs.ext4 /dev/sda1 , but it's not liking that. Apparently the partition already …

问题原文

原帖链接 · Shivashriganesh Mahato · CC BY-SA 3.0

I am installing Arch Linux on a previously Windows machine. I have created the partitions, with root on sda1, and now I am trying to format it with mkfs.ext4 /dev/sda1, but it's not liking that. Apparently the partition already has a label "RECOVERY", and the command doesn't execute with the error: /dev/sda1 is apparently in use by the system; will not make a filesystem here!. What is going on and what should I do to fix this?

已采纳解答

原帖链接 · Spooler · CC BY-SA 3.0

It's almost certainly mounted, probably by FUSE as part of a graphical file manager you're using (such as nautilus).

You can see what's mounted via the mount command. No arguments are required. You'll probably find sda1 in that list along with its mount point. Use umount /path/to/mount/point to release it, then feel free to smash it with an mkfs.ext4 /dev/sda1 command.

It's also possible that you're seeing the block device which contains your Arch installer. Make sure you're not doing that when you look at your mount command. If /dev/sda1 is mounted to something like / or /boot, that's not the disk you're looking for.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-04-29)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。