AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / computer / 问题 / 1857527
Accepted
quickblueblur
quickblueblur
Asked: 2024-10-02 23:38:12 +0800 CST2024-10-02 23:38:12 +0800 CST 2024-10-02 23:38:12 +0800 CST

使用 shell 安装 FreeBSD 并手动分区

  • 772

我正在尝试FreeBSD 14使用进行安装ZFS,但我不想使用完整磁盘,因此我使用该Shell选项。我遵循了这些说明。

A. Boot FreeBSD install DVD or USB Memstick
B. Select Install, and answer questions such as keyboard layout and hostname
C. When prompted to partition the disk:
  i. If you do not want to use the entire disk, skip to the Partition Creation section
  ii. choose the 'shell' option
  iii. Determine which disk you wish to use: camcontrol devlist
  iv. Create a fresh partition table: gpart destroy ada0

问题出在步骤 C.4。我进入Partitioning安装部分并选择Shell。我使用它camcontrol devlist查看我的设备,然后运行,gpart destroy nda0结果返回错误Device busy。

# gpart destroy nda0
gpart: Device busy

我尝试运行该gpart destroy nda0命令而不运行该camcontrol devlist命令以防它执行某些操作,并且还尝试重新启动并运行安装程序,但没有成功。

这是否意味着设备已安装?这对我来说有点奇怪,当我检查时似乎并非如此df:

df
Filesystem                   Mounted On
/dev/ufs/FreeBSD_Install     /
devfs                        /dev
tmpfs                        /tmp
tmpfs                        /var

下一个猜测是驱动器的驱动程序存在问题?经过一番搜索,我看到了这篇文章,其中提到将以下内容添加到loader.conf:

nvme_load="YES"
nvd_load="YES"

但我不确定从 运行时该怎么做USB。一旦我进入 ,有没有办法加载正确的驱动程序Shell?

partitioning
  • 1 1 个回答
  • 67 Views

1 个回答

  • Voted
  1. Best Answer
    quickblueblur
    2024-10-02T23:54:41+08:002024-10-02T23:54:41+08:00

    我发现了这个问题。来自gpart 手册:

       Deleting Partitions and Destroying the Partitioning Scheme
           If  a Device busy error is shown when trying to destroy a partition ta-
           ble, remember that all of the partitions must be deleted first with the
           delete action.  In this example, da0 has three partitions:
    
             /sbin/gpart delete -i 3 da0
             /sbin/gpart delete -i 2 da0
             /sbin/gpart delete -i 1 da0
             /sbin/gpart destroy da0
    
           Rather than deleting each partition and then destroying the  partition-
           ing  scheme,  the  -F option can be given with destroy to delete all of
           the partitions before destroying  the  partitioning  scheme.   This  is
           equivalent to the previous example:
    
             /sbin/gpart destroy -F da0
    

    我被这条消息误导了。我只见过Device Busy表示设备已安装或正在使用的消息。即使是搜索也让我走上了这条路。正是这个老错误指引我找到了正确的方向。

    如果需要删除,请随意,但请在此处发布解决方案,以防它对其他人有帮助。

    • 3

相关问题

  • 更改分区的(类型)GUID?

  • 在未分配空间的备份硬盘中安装 ubuntu

  • 如何完全擦除笔记本电脑磁盘以进行全新的 Ubuntu 安装?

  • 分区大小 128GB 但仅检测到 64GB [重复]

  • 我应该对用于存储的辅助(非操作系统)SSD 进行分区吗?[关闭]

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何减少“vmmem”进程的消耗?

    • 11 个回答
  • Marko Smith

    从 Microsoft Stream 下载视频

    • 4 个回答
  • Marko Smith

    Google Chrome DevTools 无法解析 SourceMap:chrome-extension

    • 6 个回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Martin Hope
    Vickel Firefox 不再允许粘贴到 WhatsApp 网页中? 2023-08-18 05:04:35 +0800 CST
  • Martin Hope
    Saaru Lindestøkke 为什么使用 Python 的 tar 库时 tar.xz 文件比 macOS tar 小 15 倍? 2021-03-14 09:37:48 +0800 CST
  • Martin Hope
    CiaranWelsh 如何减少“vmmem”进程的消耗? 2020-06-10 02:06:58 +0800 CST
  • Martin Hope
    Jim Windows 10 搜索未加载,显示空白窗口 2020-02-06 03:28:26 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve