ubuntu 擦除磁盘_如何在Linux中格式化(擦除)DVD + RW / DVD-RW磁盘

本文详细说明了在Linux(以Ubuntu为例)的命令行界面中如何擦除、格式化DVD+RW和DVD-RW光盘。首先确定DVD/CD+RW驱动器的设备路径,通常为/dev/sr0。接着,如果尚未安装,安装cdrkit工具。之后,使用wodim工具进行格式化或擦除操作。同时提供了使用cdrecord擦除CD+RW磁盘的命令。
摘要由CSDN通过智能技术生成

ubuntu 擦除磁盘

This post introduces how to erase / blank / format a DVM+RW media on Linux in the command line.

这篇文章介绍了如何在命令行上在Linux上擦除/空白/格式化DVM + RW介质。

First, you need to find out the device of the DVD/CD+RW drive on your Linux box. For example, on my box with Linux 3.3.4 kernel, my DVD/CD+RW drive is /dev/sr0. You can also see what the /dev/cdrom links to to find out the device path for the DVD/CD+RW drive. For example:

首先,您需要在Linux机器上找到DVD / CD + RW驱动器的设备。 例如,在装有Linux 3.3.4内核的盒子上,我的DVD / CD + RW驱动器为/dev/sr0 。 您还可以查看/dev/cdrom链接到的内容,以找到DVD / CD + RW驱动器的设备路径。 例如:


# ls /dev/cdrom  -l
lrwxrwxrwx. 1 root root 3 Aug  1 17:00 /dev/cdrom -> sr0

To format/erase a DVD+RW disk, we need the dvd+rw-tools tool. Install it if it has not installed yet:

要格式化/擦除DVD + RW磁盘,我们需要dvd+rw-tools工具 。 如果尚未安装,请安装:


# yum install dvd+rw-tools

Then we can format/erase the DVD+RW (actually no need to blank them explicitly)/DVD-RW disk using the dvd+rw-format tool after inserting it into the drive:

然后,在将DVD + RW插入驱动器后,可以使用dvd+rw-format工具格式化/擦除DVD + RW(实际上无需显式地将其清空)/ DVD-RW磁盘:


# dvd+rw-format -force /dev/sr0 

BTW: the command to erase a CD+RW disk using cdrecord (provided by wodim):

BTW:使用cdrecord擦除CD + RW磁盘的命令(由wodim提供):


# cdrecord dev=/dev/sr0 blank=fast

翻译自: https://www.systutorials.com/linux-format-erase-dvdrw-disks/

ubuntu 擦除磁盘

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值