https://wiki.archlinux.org/api.php?action=feedcontributions&user=Doubhua&feedformat=atomArchWiki - User contributions [en]2024-03-28T16:25:08ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=File_manager_functionality_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)&diff=74106File manager functionality (简体中文)2009-08-18T12:12:14Z<p>Doubhua: </p>
<hr />
<div>[[Category:守护进程和系统服务]]<br />
[[Category:HOWTOs (简体中文)]]<br />
[[Category:简体中文]]<br />
<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|FAM}}<br />
{{i18n_entry|Italiano|FAM (Italiano)}}<br />
{{i18n_entry|Русский|FAM (Русский)}}<br />
{{i18n_entry|简体中文|FAM (简体中文)}}<br />
{{i18n_links_end}}<br />
<br />
文件变更监视器(File Alteration Monitor,FAM)用于桌面环境,比如GNOME、Xfce还有KDE,作用是监视并报告文件系统的变化。<br />
<br />
例如,FAM可以:<br />
* 当有新程序安装时,自动更新程序菜单<br />
* 当一个文件夹的内容改变时,刷新文件管理器的列表<br />
<br />
警告:FAM已经非常陈旧了,请使用[[Gamin]]代替。Gamin重新实现了FAM标准,它更新得到的维护更多,而且设置更简便。<br />
<br />
====安装====<br />
# pacman -S fam<br />
<br />
====配置====<br />
要在启动时自动载入FAM守护进程,必须把它添加到DAEMONS列表。编辑''/etc/rc.conf'':<br />
# nano /etc/rc.conf<br />
在DAEMON列表里加上'''fam''',例如:<br />
DAEMONS=(syslog-ng powersaved dhcdbd networkmanager '''fam''' ...)<br />
保存,退出然后重启。<br />
<br />
====手动启动/停止====<br />
如果你希望不重启就启动FAM,只要打开终端并以root身份输入:<br />
# /etc/rc.d/fam start<br />
停止:<br />
# /etc/rc.d/fam stop</div>Doubhuahttps://wiki.archlinux.org/index.php?title=File_manager_functionality_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)&diff=74103File manager functionality (简体中文)2009-08-18T12:10:59Z<p>Doubhua: </p>
<hr />
<div>[[Category:守护进程和系统服务]]<br />
[[Category:HOWTOs (简体中文)]]<br />
[[Category:简体中文]]<br />
<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|FAM}}<br />
{{i18n_entry|Italiano|FAM (Italiano)}}<br />
{{i18n_entry|Русский|FAM (Русский)}}<br />
{{i18n_entry|简体中文|FAM (简体中文)}}<br />
{{i18n_links_end}}<br />
<br />
文件变更监视器(File Alteration Monitor,FAM)用于桌面环境,比如GNOME、Xfce还有KDE,作用是监视并报告文件系统的变化。<br />
<br />
例如,FAM可以:<br />
* 当有新程序安装时,自动更新程序菜单<br />
* 当一个文件夹的内容改变时,刷新文件管理器的列表<br />
<br />
{{警告|FAM已经非常陈旧了,请使用[[Gamin]]代替。<br />
Gamin重新实现了FAM标准,它更新得到的维护更多,而且设置更简便。}}<br />
<br />
====安装====<br />
# pacman -S fam<br />
<br />
====配置====<br />
要在启动时自动载入FAM守护进程,必须把它添加到DAEMONS列表。编辑''/etc/rc.conf'':<br />
# nano /etc/rc.conf<br />
在DAEMON列表里加上'''fam''',例如:<br />
DAEMONS=(syslog-ng powersaved dhcdbd networkmanager '''fam''' ...)<br />
保存,退出然后重启。<br />
<br />
====手动启动/停止====<br />
如果你希望不重启就启动FAM,只要打开终端并以root身份输入:<br />
# /etc/rc.d/fam start<br />
停止:<br />
# /etc/rc.d/fam stop</div>Doubhuahttps://wiki.archlinux.org/index.php?title=Openbox_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)&diff=50987Openbox (简体中文)2008-10-12T14:18:29Z<p>Doubhua: </p>
<hr />
<div>[[Category:简体中文]]<br />
<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|Openbox}}<br />
{{i18n_entry|Italiano|Openbox_(Italiano)}}<br />
{{i18n_entry|Русский|Openbox (Русский)}}<br />
{{i18n_entry|Español|Openbox (Español)}}<br />
{{i18n_entry|简体中文|Openbox(简体中文)}}<br />
{{i18n_links_end}}<br />
<br />
= 说明 =<br />
<br />
Openbox 是一个轻量级、可高度定制以及支持大量标准的窗口管理器。它的功能在 [http://icculus.org/openbox/ 官方网站] 有详细的文档说明。这篇文章是关于在 Arch Linux 下 运行 Openbox。<br />
<br />
= 安装 =<br />
Openbox 可以从 Archlinux 的仓库里得到:<br />
# pacman -S openbox<br />
<br />
一旦安装完毕, pacman 会指导你拷贝默认 <tt>menu.xml</tt> & <tt>rc.xml</tt> 配置文件到 <tt>~/.config/openbox/</tt> 目录下, 示例如下:<br />
<br />
$ mkdir -p ~/.config/openbox/<br />
$ cp /etc/xdg/openbox/rc.xml ~/.config/openbox/rc.xml<br />
$ cp /etc/xdg/openbox/menu.xml ~/.config/openbox/menu.xml<br />
'''''注意:''' 使用一般用户而不是 root 来做上述操作。''<br />
<br />
<tt>rc.xml</tt> 是 Openbox 的核心配置文件。它一般负责快捷键,主题,虚拟桌面和其他的作用。<br />
<br />
<tt>menu.xml</tt> 控制 Openbox 的应用程序菜单,这个菜单在你点击桌面的时候会出现。默认情况下这个菜单相当简单,但是你可以很容易的修改它来达到你的要求。具体方法参见下面菜单一节,或者访问 [http://icculus.org/openbox/ 官方网站].<br />
<br />
= 让我们开始吧 =<br />
<br />
== 使用 Openbox ==<br />
要单独运行 Openbox, 只需要在 ~/.xinitrc 中加入下面一行:<br />
exec openbox-session<br />
<br />
== 在GNOME中使用Openbox ==<br />
#如果你使用GDM,请选择"GNOME/Openbox"登录选项<br />
#如果你使用startx,添加'''exec openbox-gnome-session''' 至 ~/.xinitrc中<br />
#在shell中:<br />
xinit /usr/bin/openbox-gnome-session<br />
<br />
== 在KDE中使用Openbox ==<br />
# 如果你使用GDM,请选择"KDE/Openbox"登录选项<br />
# 如果你使用startx,添加exec openbox-kde-session 至 ~/.xinitrc中<br />
# 在shell中:<br />
$ xinit /usr/bin/openbox-kde-session<br />
<br />
== 在Xfce4中使用Openbox ==<br />
登录到普通的 Xfce4 会话,在你选择的终端中输入:<br />
<br />
$ killall xfwm4 ; openbox & exit<br />
<br />
这样会终止 wfwm4,启动 Openbox,最后会关闭终端。<br />
注销,确定选中了 "Save session for future logins" 选项<br />
在下一次登录后,Xfce4 就会使用 Openbox 作为它的窗口管理器。<br />
<br />
To be able to exit the session using xfce4-session, open your file ~/.config/openbox/menu.xml (if it isn't there, copy it from /etc/xdg/openbox/menu.xml). <br />
<br />
Look for the entry:<br />
<br />
<item label="Exit Openbox"><br />
<action name="Exit"><br />
<prompt>yes</prompt><br />
</action><br />
</item><br />
<br />
and change it to:<br />
<br />
<item label="Exit Openbox"><br />
<action name="Exit"><br />
<prompt>yes</prompt><br />
<command>xfce4-session-logout</command><br />
</action><br />
</item><br />
<br />
Otherwise, using the "Exit" entry of the root-menu will cause Openbox to terminate its execution, leaving you without a window manager.<br />
<br />
If you have an issue changing between virtual desktops with the mouse wheel skipping over virtual desktops, open your ~/.config/openbox/rc.xml file and move the mouse binds with actions "DesktopPrevious" and "DesktopNext" from the context "Desktop" to the context "Root" (you may need to define the Root context).<br />
<br />
If you want to use the Openbox root-menu instead of Xfce's, you may terminate Xfdesktop by running the following command in a terminal:<br />
<br />
$ xfdesktop --quit<br />
<br />
However, Xfdesktop manages the wallpaper and desktop icons, requiring you to use other utilities, such as ROX, for these functions.<br />
<br />
(When terminating Xfdesktop, the above issue with the virtual desktops is no longer a problem.)<br />
<br />
= 配置 =<br />
<br />
== 偏好 ==<br />
Currently, there are two options for configuring the core Openbox preferences; manually edit the '''rc.xml''', or use the ObConf tool.<br />
<br />
=== 手动设定偏好 ===<br />
<br />
To configure Openbox manually, simply edit '''~/.config/openbox/rc.xml''' with your favourite text editor. The config file provides plenty of comments throughout, and [http://icculus.org/openbox/index.php/Help:Contents full documentation] is available at the official website.<br />
<br />
=== 使用ObConf设定偏好 ===<br />
<br />
[http://icculus.org/openbox/index.php/ObConf:About ObConf] is GUI-based Openbox configuration tool, which can be used to set most preferences including themes, virtual desktops, window properties and desktop margins.<br />
<br />
To install ObConf, run:<br />
# pacman -S obconf<br />
<br />
'''''Note:''''' ObConf cannot be used to configure keyboard shortcuts and some other advanced features. For these modifications, you must edit '''rc.xml''' manually (see above.)<br />
<br />
== 菜单管理 ==<br />
<br />
The default Openbox menu includes a variety of applications to get you started, but you'll probably want to customize this at some point. There are a number of ways to do so:<br />
<br />
=== 手动 ===<br />
Similar to the '''rc.xml''' file, you can edit '''~/.config/openbox/menu.xml''' with your favourite text editor. Although many of the settings are self-explanatory, [http://icculus.org/openbox/index.php/Help:Menus full documentation] is available.<br />
<br />
=== MenuMaker ===<br />
[http://menumaker.sourceforge.net/ MenuMaker] is a powerful tool that creates XML-based menus for a variety of Window Managers, including Openbox. MenuMaker will search your computer for executable programs and create an XML menu based on the results. It can be configured to exclude Legacy X, GNOME, KDE, or Xfce applications if the user desires.<br />
<br />
MenuMaker is available from the [http://aur.archlinux.org/packages.php?ID=10894 AUR]. <br />
<br />
Once installed, you can generate a complete menu by running:<br />
$ mmaker -v OpenBox3<br />
<br />
By default, MenuMaker will not overwrite an existing menu.xml. To do so, run it with the -f (force) argument:<br />
<br />
$ mmaker -vf OpenBox3<br />
<br />
To see a full list of options, run '''mmaker --help'''<br />
<br />
This will give you a pretty thorough menu. Now you can modify the menu.xml by hand, or simply regenerate the list whenever you install new software.<br />
<br />
=== Obmenu ===<br />
Obmenu is a GUI-based menu editor for Openbox. For those who don't enjoy editing XML source code, this is probably the best option for you.<br />
<br />
It is available in the community repository:<br />
# pacman -S obmenu<br />
<br />
Once installed, simply run '''obmenu''' and add or remove the desired applications.<br />
<br />
==== obm-xdg ====<br />
<tt>obm-xdg</tt> is a command-line tool that comes with Obmenu. It can generate a categorized sub-menu of installed GTK/GNOME applications.<br />
<br />
To use obm-xdg, add the following line to '''~/.config/openbox/menu.xml''':<br />
<br />
<menu execute="obm-xdg" id="xdg-menu" label="xdg"/><br />
<br />
Then run '''openbox --reconfigure''' to refresh the Openbox menu. You should now see a sub-menu labeled '''xdg''' in your menu.<br />
<br />
'''''NOTE:''' If you do not have GNOME installed, then you need to install '''gnome-menus''' package for obm-xdg to work.''<br />
<br />
== Startup Programs ==<br />
Openbox features support for running programs at startup. This is provided by the "openbox-session" command.<br />
<br />
There are two ways to enable autostart:<br />
# If you use startx to log into your X session, change the line that executes ''openbox'' to execute '''openbox-session''' instead.<br />
# If you log in with GDM/KDM, then select the ''Openbox'' session and it will automatically use autostart.<br />
<br />
Startup programs are managed in '''~/.config/openbox/autostart.sh'''. Full instructions and best practices for how to do this are available at the [http://icculus.org/openbox/index.php/Help:Autostart Openbox website].<br />
<br />
== Per-application settings ==<br />
Openbox features per-application settings, allowing you to define rules for your programs. For example, you can:<br />
* load your web browser on a certain desktop<br />
* load your terminal without a window border<br />
* load your torrent client at a certain position on your screen<br />
<br />
These are defined in '''~/.config/openbox/rc.xml'''. As you might expect, the instructions are well-documented within the file itself. Full details can also be found here: http://icculus.org/openbox/index.php/Help:Applications<br />
<br />
== 主题和外观 ==<br />
With the exception of the Openbox Themes topic, the following section is intended for users who have configured Openbox to run as a standalone desktop, without the assistance of GNOME, KDE or Xfce.<br />
<br />
=== Openbox 主题 ===<br />
Openbox themes control the appearance of window borders, including the titlebar and titlebar buttons. They also determine the appearance of the application menu and on-screen display (OSD). <br />
<br />
Additional themes are available from the standard repositories:<br />
<br />
# pacman -S openbox-themes<br />
<br />
This package is by no means definitive. You can download more themes at websites such as:<br />
*[http://www.box-look.org/index.php?xcontentmode=7402 box-look.org]<br />
*[http://customize.org/browse/tags/openbox customize.org]<br />
*http://www.minuslab.net/themes/<br />
*http://celo.wordpress.com/themes/<br />
*http://vault.openmonkey.com/pages/openbox<br />
*http://hewphoria.com/?p=submission&type=theme&cat=7<br />
<br />
Downloaded themes should be extracted to '''~/.themes''' and can be installed or selected with the [[Openbox#Preferences|ObConf]] tool.<br />
<br />
Creating new themes is fairly easy and again [http://icculus.org/openbox/index.php/Help:Themes well-documented].<br />
<br />
=== 桌面墙纸 ===<br />
<br />
Openbox itself does not include a way to change the wallpaper. This can be done easily with programs like [[Feh]] or [[Nitrogen]]. Other options include ImageMagick, hsetroot and xsetbg.<br />
<br />
=== GTK 主题 ===<br />
===== GTK2/GTK+ =====<br />
GTK+ themes can be managed easily with the ''[[LXDE | lxappearance]]'', ''gtk-chtheme'', or ''switch2'' utilities. To install, run:<br />
# pacman -S lxappearance<br />
and/or<br />
# pacman -S gtk-chtheme<br />
and/or<br />
# pacman -S gtk-theme-switch2<br />
<br />
Now you can simply run '''lxappearance''', '''gtk-chtheme''' or '''switch2''' to set the desired theme.<br />
<br />
===== GTK1 =====<br />
For legacy GTK1 themes, install the '''gtk-theme-switch''' package:<br />
# pacman -S gtk-theme-switch<br />
Then run '''''switch''''' to select a desired theme.<br />
<br />
=== GTK 字体 ===<br />
===== 手动编辑配置文件 =====<br />
If you want to change the type and size of your fonts, add the following to '''~/.gtkrc.mine''':<br />
style "user-font"<br />
{<br />
font_name = "[font-name] [size]"<br />
}<br />
widget_class "*" style "user-font"<br />
gtk-font-name = "[font-name] [size]"<br />
<br />
where [font-name] [size] is the desired font and point size. For example:<br />
style "user-font"<br />
{<br />
font_name = "DejaVu Sans 8"<br />
}<br />
widget_class "*" style "user-font"<br />
gtk-font-name = "DejaVu Sans 8"<br />
<br />
Both <tt>font_name</tt> and <tt>gtk-font-name</tt> fields are required for backwards compatibility.<br />
===== 使用GUI工具 =====<br />
You can use '''gtk-chtheme''' or '''lxappearance''' to set GTK font settings. Please refer to the above section.<br />
<br />
=== GTK 图标 ===<br />
First, extract the desired icon theme to '''/usr/share/icons''' (system-wide access) or '''~/.icons''' (local user access), then:<br />
===== Manually edit the config file =====<br />
Add the following to ~/.gtkrc.mine: <br />
gtk-icon-theme-name = "[name-of-icon-theme]"<br />
<br />
where [name-of-icon-theme] is the name of the icon theme directory. For example:<br />
gtk-icon-theme-name = "Tango"<br />
<br />
Ensure ~/.gtkrc-2.0 is configured to parse ~/.gtkrc.mine:<br />
<br />
# ~/.gtkrc-2.0<br />
# -- THEME AUTO-WRITTEN DO NOT EDIT<br />
include "/usr/share/themes/Rezlooks-Gilouche/gtk-2.0/gtkrc"<br />
include "/home/username/.gtkrc.mine"<br />
# -- THEME AUTO-WRITTEN DO NOT EDIT<br />
===== Use GUI tools =====<br />
You can use '''lxappearance''' to choose GTK icon themes. Please refer to the above section.<br />
<br />
=== Mouse cursor themes ===<br />
Extract the desired Xcursor theme to either '''/usr/share/icons''' (system-wide access) or '''~/.icons''' (local user access).<br />
<br />
Add this to ~/.Xdefaults:<br />
Xcursor.theme: [name-of-cursor-theme]<br />
where [name-of-cursor-theme] is the name of the cursor theme directory. For example:<br />
Xcursor.theme: Vanilla-DMZ-AA<br />
To change the size:<br />
Xcursor.size: [size]<br />
<br />
=== 桌面图标 ===<br />
Openbox does not provide a means to display icons on the desktop. PcmanFM, [http://rox.sourceforge.net ROX], [http://idesk.sourceforge.net iDesk], or even Nautilus (and the gnome-settings-daemon) can provide this function. <br />
<br />
ROX and PCmanFM have the additional advantage of being lightweight file managers.<br />
<br />
= Tips & Tricks =<br />
<br />
== 推荐程序 == <br />
<br />
=== 登录管理器 ===<br />
[http://slim.berlios.de/ SLiM] provides a lightweight and elegant graphical login solution for standalone Openbox configurations. Refer to Arch's [[SLiM]] wiki for detailed instructions.<br />
<br />
=== Composite Desktop ===<br />
[[Xcompmgr]] is a lightweight composite manager capable of rendering drop shadows, fading and simple window transparency within Openbox and other window managers.<br />
<br />
=== 应用程序启动器 ===<br />
==== dmenu ====<br />
Set-up dmenu as described in the [[dmenu]] wiki article.<br />
<br />
Then, add the following entry to the <keyboard> section '''~/.config/openbox/rc.xml''' to enable a shortcut to launch dmenu:<br />
<keybind key="W-p"><br />
<action name="Execute"><br />
<command>~/path/to/your/dmenu-script</command><br />
</action><br />
</keybind><br />
<br />
==== Gmrun ====<br />
[http://sourceforge.net/projects/gmrun gmrun] provides an excellent Run dialog box, similar to the Alt+F2 features found in Gnome and KDE:<br />
pacman -S gmrun<br />
Add the following entry to the <keyboard> section '''~/.config/openbox/rc.xml''' to enable Alt+F2 functionality:<br />
<keybind key="A-F2"><br />
<action name="execute"><execute>gmrun</execute></action><br />
</keybind><br />
<br />
=== 文件管理器 ===<br />
<br />
There are many possibilities, but the most popular lightweight file managers are:<br />
* [http://thunar.xfce.org Thunar]. Thunar supports auto-mount features and other plugins. <br />
pacman -S thunar<br />
Thunar may be started in daemon mode for tighter desktop integration. For instance, inserting a USB pendrive will invoke a Thunar window to popup, with the drive contents listed in the window. <br />
<br />
To start Thunar in daemon mode, edit ~/.config/openbox/autostart.sh and add:<br />
thunar --daemon &<br />
<br />
* [http://rox.sourceforge.net ROX] (ROX provides desktop icons)<br />
pacman -S rox<br />
* [http://pcmanfm.sourceforge.net PCMan] (pcmanfm also provides desktop icons)<br />
pacman -S pcmanfm<br />
For even lighter options, consider [http://www.obsession.se/gentoo/ Gentoo] or [http://emelfm.sourceforge.net/ emelFM], both of which use the familiar 'Midnight Commander' two pane layout (these two require gtk 1.2.x).<br />
<br />
Of course, you can also use GNOME's Nautilus. Although slower than the above solutions, it has the additional advantage of VFS support (e.g. remote SSH, FTP and Samba connections).<br />
<br />
=== Clipboard Managers and copy/paste===<br />
You may wish to install a clipboard manager for feature rich copy/paste ability. '''xfce4-clipman-plugin, parcellite,''' or '''glipper-old''' may be installed via pacman. Add your choice to autostart.sh. From the terminal, Ctrl+Insert as copy and Shift+Insert as paste generally works as well. You may also copy from terminal with Ctrl+Shift+C, and paste with mouse middle click.<br />
=== Panels, Trays, and Pagers ===<br />
<br />
There are quite a lot of utilities available that provide a panel (taskbar), system tray, and pager to Openbox. The most common are:<br />
<br />
'''Panels'''<br />
* [http://wiki.archlinux.org/index.php/PyPanel PyPanel]<br />
* [http://nsf.110mb.com/bmpanel/ bmpanel]<br />
* [http://code.google.com/p/ttm/ Tint]<br />
* [http://sourceforge.net/projects/lxpanel LXPanel]<br />
* [http://fbpanel.sourceforge.net fbpanel]<br />
* [http://perlpanel.org/ PerlPanel]<br />
* [http://www.chatjunkies.org/fspanel/ fspanel]<br />
* [http://www.xfce.org/projects/xfce4-panel/ xfce4-panel]<br />
* [http://developer.gnome.org/arch/gnome/corecomponents/panel/ gnome-panel]<br />
* [http://code.google.com/p/avant-window-navigator/ avant-window-navigator]<br />
* [http://developer.berlios.de/projects/cairo-dock/ cairo-dock]<br />
<br />
'''Trays'''<br />
* [http://stalonetray.sourceforge.net/ Stalonetray]<br />
* [http://download.gna.org/fvwm-crystal/trayer/1.0/ Trayer]<br />
<br />
'''Pagers'''<br />
* [http://projects.l3ib.org/trac/visibility Visibility]<br />
* [http://bbtools.sourceforge.net/ bbpager]<br />
* [http://aur.archlinux.org/packages.php?ID=970 netwmpager]<br />
* [http://useperl.ru/ipager/index.en.html IPager]<br />
<br />
Make your choice and add it to your startup file.<br />
<br />
== Get xprop values for per-app settings quickly ==<br />
If you use per-application settings frequently, you might find this bash alias handy:<br />
<br />
alias xp='xprop | grep "WM_WINDOW_ROLE\|WM_CLASS" && echo "WM_CLASS(STRING) = \"NAME\", \"CLASS\""'<br />
<br />
To use, run '''xp''' and click on the running program that you'd like to define with per-app settings. The result will display only the info that Openbox requires, namely the WM_WINDOW_ROLE and WM_CLASS (name and class) values:<br />
<br />
[thayer@dublin:~] $ xp<br />
WM_WINDOW_ROLE(STRING) = "roster"<br />
WM_CLASS(STRING) = "gajim.py", "Gajim.py"<br />
WM_CLASS(STRING) = "NAME", "CLASS"<br />
<br />
== Linking the menu to a command ==<br />
Some people would want to link the Openbox main menu, or any other, to a command. This is useful for creating a menu button in a panel, for example. Although Openbox doesn't support this, a very simple script , xdotool, can simulate a keypress by running a command. Xdotool is available on AUR [http://aur.archlinux.org/packages.php?do_Details=1&ID=14789&O=0&L=0&C=0&K=xdotool&SB=n&SO=a&PP=25&do_MyPackages=0&do_Orphans=0&SeB=nd here]. To use it, simply add the following code to the <keyboard> section of your rc.xml:<br />
<keybind key="A-C-q"><br />
<action name="ShowMenu"><br />
<menu>root-menu</menu><br />
</action><br />
</keybind><br />
Restart/reconfigure Openbox. You can now magically summon your menu at your cursor position by running the following command:<br />
# xdotool key ctrl+alt+q<br />
Of course, you can change the shortcut to your liking.<br />
<br />
== Urxvt in the background == <br />
With Openbox, running a terminal as desktop background is easy. You won't need '''devilspie''' here.<br />
<br />
First you must enable transparency, open your '''.Xdefaults''' file (if it doesn't exist yet, create it in your home folder).<br />
URxvt*transparent:true<br />
URxvt*scrollBar:false<br />
URxvt*geometry:124x24 #I don't use the whole screen, if you want a full screen term don't bother with this and see below.<br />
URxvt*borderLess:true<br />
URxvt*foreground:Black #Font color. My wallpaper is White, you may wish to change this to White.<br />
<br />
Then edit your '''.config/openbox/rc.xml''' file :<br />
<application name="urxvt"><br />
<decor>no</decor><br />
<focus>yes</focus><br />
<position><br />
<x>center</x><br />
<y>20</y><br />
</position><br />
<layer>below</layer><br />
<desktop>all</desktop><br />
<maximized>true</maximized> #Only if you want a full size terminal.<br />
</application><br />
<br />
The ''magic'' comes from the '''<layer>below</layer>''' line, which place the application under all others. Here Urxvt is displayed on all desktops, change it to your convenience.<br />
<br />
= 附加资源 =<br />
* [http://icculus.org/openbox/ Openbox Website] - The official website<br />
* [http://planetob.openmonkey.com/ Planet Openbox] - Openbox news portal<br />
* [http://www.box-look.org/ Box-Look.org] - A good resource for themes and related artwork<br />
* [http://archux.com/page/application-recommendations Application recommendations]</div>Doubhuahttps://wiki.archlinux.org/index.php?title=CD_Burning_(Italiano)&diff=50073CD Burning (Italiano)2008-09-26T07:22:11Z<p>Doubhua: </p>
<hr />
<div>[[Category:Optical (Italiano)]]<br />
[[Category:Utilities (Italiano)]]<br />
[[Category:HOWTOs (Italiano)]]<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|CD Burning Tips}}<br />
{{i18n_entry|Italiano|CD Burning Tips (Italiano)}}<br />
{{i18n_entry|简体中文|光盘刻录技巧}}<br />
{{i18n_links_end}}<br />
<br />
Questo documento introduce diversi metodi utili alla masterizzazione.<br />
<br />
==Masterizzare da console== <br />
===Installazione dei cd-burning utilities===<br />
<br />
# pacman -Sy cdrkit<br />
<br />
Inoltre se si è interessati a utilizzare <tt>cdrdao</tt> (per masterizzare file cue/bin in un cd), installare anche:<br />
<br />
# pacman -S cdrdao<br />
<br />
===Impostazione dei permessi===<br />
Gli utenti che devono poter utilizzare i vari tool per la masterizzazione devono avere i permessi di accesso alle device fisiche. Se si sta utilizzando [[udev]] (default sul kernel di Arch Linux), basta aggiungere l'utente interessato al gruppo optical:<br />
<br />
# gpasswd -a <username> optical<br />
<br />
===Modificare il CD-RW===<br />
Per il resto di questa guida assumiamo che il nome della device che utilizzate per masterizzare sia /dev/cdrw. Se non è il vostro caso modificate di volta in volta i comandi forniti. Per scrivere su un CD questo non deve essere monatto. Se lo è ricevere un errore da <code>wodim</code>.<br />
<br />
===Formattare un CD-RW===<br />
I CD-RW normalmente devono essere formattati prima di poter essere utilizzati. Per formattare un cd riscrivibile usare il comando:<br />
<br />
wodim -v dev=/dev/cdrw -blank=fast<br />
<br />
Questo comando formatta in maniera rapida, è possibile però utilizzare altre opzioni. Provare a sostituire la parola ''fast'' con:<br />
<br />
;all : formatta l'intero disco<br />
;disc : formatta l'intero disco<br />
;disk : formatta l'intero disco<br />
;fast : formatta l'intero disco in maniera rapida (PMA, TOC, pregap)<br />
;minimal : formatta l'intero disco in maniera rapida (PMA, TOC, pregap)<br />
;track : formatta una traccia<br />
;unreserve : fa l'unreserve di una traccia<br />
;trtail : formatta la coda di una traccia<br />
;unclose : apre l'ultima sessione<br />
;session : formatta l'ultima sessione<br />
<br />
===Masterizzare un'immagine iso===<br />
Per masterizzare un'immagine ISO:<br />
<br />
wodim -v dev=/dev/cdrw isoimage.iso<br />
<br />
===Masterizzare un'immagine bin/cue===<br />
<br />
Per masterizzare un'immagine bin/cue:<br />
cdrdao write --device /dev/cdrw image.cue<br />
<br />
===Creare un'immagine ISO da un CD esistente===<br />
Per copiare un CD eseguire semplicemente:<br />
<br />
dd if=/dev/cdrw of=/home/user/isoimage.iso<br />
<br />
O ancora più semplicemente:<br />
<br />
cat /dev/cdrw > isoimage.iso<br />
<br />
O ancora utilizzate il tool readcd, anch'esso nel pacchetto cdrtools:<br />
<br />
readcd -v dev=/dev/cdrw -f isoimage.iso<br />
<br />
Se il CD sorgente è avviabile l'immagine sarà a sua volta avviabile.<br />
<br />
===Creare un'immagine ISO da file esistenti sul disco rigido===<br />
Per creare un'immagine ISO copiate tutti i file desiderati in una cartella e digitate:<br />
<br />
mkisofs -V volume_name -J -r -o isoimage.iso ~/folder<br />
<br />
===Montare un'immagine ISO===<br />
Per montare un'immagine ISO (come fosse un disco fisico):<br />
<br />
mount -t iso9660 -o ro,loop=/dev/loop0 cd_image /cdrom<br />
<br />
==Masterizzare CD da interfaccia grafica==<br />
Esistono moltissime applicazioni che permettono di masterizzare CD e DVD, nella stragrande maggiornaza dei casi questi programmi si spiegano da soli.<br />
<br />
===Nero Linux===<br />
Esattamente lo stesso che trovate su Windows. [http://www.nero.com/eng/NeroLINUX.html Official link]|[http://aur.archlinux.org/packages.php?do_Details=1&ID=2153 AUR package]<br />
<br />
Non è FREE e l'interfaccia grafica non è strutturata bene come su windows. Inoltre la versione 3.0.0 beta non masterizza correttamente CD avviabili.<br />
<br />
Se volete un tool per masterizzare DVD non supportato da dvd+rw-tools, Nero è l'unica soluzione.<br />
<br />
===K3B===<br />
K3B usa le librerie [[wikipedia:Qt (toolkit)|QT]], di conseguenza è la soluzione migliore per chi utilizza KDE.<br />
* Installate K3B con pacman.<br />
<br />
# pacman -Sy k3b<br />
<br />
* Da root, eseguite <code>k3bsetup</code><br />
* Qua potete impostare i settaggi relativi ai permessi, ecc.<br />
* Eseguite <code>k3b</code> da utente semplice per eseguire il programma<br />
<br />
===Brasero===<br />
Brasero è una delle soluzioni possibili per masterizzare se state usando [[Gnome]].<br />
<br />
* Installare brasero con pacman.<br />
<br />
# pacman -Sy brasero<br />
<br />
* Eseguite <code>brasero</code> da utente semplice per avviare il programma.<br />
<br />
===Graveman===<br />
Graveman è un semplice tool, senza necessità di altre dipendenze (Gnome, KDE, ecc.) per masterizzare.<br />
<br />
* Installate Graveman con pacman.<br />
<br />
# pacman -Sy graveman<br />
<br />
* Come root, eseguite graveman, andate nel menù File > Preferences... > Devices e aggiungete i vostri masterizzatori CD.<br />
* Eseguite <code>graveman</code> per avviare il programma.</div>Doubhuahttps://wiki.archlinux.org/index.php?title=CD_Burning_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)&diff=50070CD Burning (简体中文)2008-09-26T02:08:42Z<p>Doubhua: /* 图形界面的光盘刻录软件 */</p>
<hr />
<div>[[Category:Optical (English)]]<br />
[[Category:Utilities (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|CD Burning Tips}}<br />
{{i18n_entry|Italiano|CD Burning Tips (Italiano)}}<br />
{{i18n_entry|简体中文|光盘刻录技巧}}<br />
{{i18n_links_end}}<br />
{{translateme}}<br />
<br />
本文描述了一些光盘刻录的技巧。<br />
<br />
== 命令行的光盘刻录工具 == <br />
===安装光盘刻录工具集===<br />
<br />
# pacman -Sy cdrkit<br />
<br />
如果你希望使用<tt>cdrdao</tt> (把文件cue/bin写到光盘上)<br />
# pacman -S cdrdao<br />
<br />
===设置权限===<br />
如果希望使用cd/dvd烧录设备的话必须要有它们的访问权限。如果要使用[[udev]](Archlinux内核的默认值),你只需要把这个(或多个)用户加入到optical组中:<br />
# gpasswd -a <username> optical<br />
然后别忘了注销后再登录一次。<br />
<br />
===修改CD-RW中的内容===<br />
本节假设你的刻录设备是/dev/cdrw。如果你不是这种情况,那么请对命令做相应的修改。为了能在光盘中写入内容必须先卸载。如果没有卸载,<code>wodim</code>会给出错误提示。<br />
<br />
===擦除CD-RW中的内容===<br />
CD-RW往往需要先擦除已经存在的内容然后再写入新的数据。使用以下命令来清空cd-rw中的内容:<br />
wodim -v dev=/dev/cdrw -blank=fast<br />
正如你可能猜想的,这个命令可以很快的清空光盘,但是你还可以使用一些其它的选项,只需把''fast''替换为下面的即可:<br />
<br />
;all : 清空整个光盘<br />
;disc : 清空整个光盘<br />
;disk:清空整个光盘<br />
;fast:最低限度的清空整个光盘(PMA,TOC,pregap)<br />
;minimal:最低限度的清空整个光盘(PMA,TOC,pregap)<br />
;track:清空一个磁道<br />
;unreserve:unreserve a track<br />
;trtail:blank a track tail<br />
;unclose:unclose last session<br />
;session:blank last session<br />
<br />
===刻录一个iso镜像===<br />
要刻录一个iso镜像,运行:<br />
wodim -v dev=/dev/cdrw isoimage.iso<br />
<br />
===刻录bin/cue===<br />
<br />
要刻录bin/cue,运行:<br />
cdrdao write --device /dev/cdrw image.cue<br />
<br />
===从光盘生成一个iso镜像===<br />
要复制一个光盘只需键入:<br />
dd if=/dev/cdrw of=/home/user/isoimage.iso<br />
或者使用更简单的输入:<br />
cat /dev/cdrw > isoimage.iso<br />
<br />
或者使用程序readcd(同样在cdrkit包中)<br />
readcd -v dev=/dev/cdrw -f isoimage.iso<br />
<br />
如果原光盘是能够启动电脑的,那么生成的镜像也是能够启动电脑的。<br />
<br />
===从硬盘上的文件生成一个iso镜像===<br />
<br />
要生成iso镜像只需要拷贝需要的文件到一个文件夹,然后输入:<br />
mkisofs -V volume_name -J -r -o isoimage.iso ~/folder<br />
<br />
===挂载iso镜像===<br />
<br />
要测试iso镜像是否是正确的,你先要挂载它(用root身份):<br />
mount -t iso9660 -o ro,loop=/dev/loop0 cd_image /cdrom<br />
<br />
你首先需要装入loop模块:<br />
modprobe loop<br />
<br />
===转换成iso镜像===<br />
<br />
为了转换一个 .img / ccd 镜像,你需要使用ccd2iso:<br />
<br />
pacman -Sy ccd2iso<br />
<br />
ccd2iso /home/archman/image.img /home/archman/image.iso<br />
<br />
== 图形界面的光盘刻录软件 ==<br />
<br />
在图形环境中有一些软件可以用于光盘刻录。这些软件的使用方法都是很直观的。<br />
===Nero Linux版===<br />
它和Windows上面的Nero一样,[http://www.nero.com/eng/NeroLINUX.html 官方连接]|[http://aur.archlinux.org/packages.php?do_Details=1&ID=2153 AUR包]<br />
<br />
它不是免费的,而且界面也没有windows版本的好。3.0.0 beta版还不能正确的制作可启动电脑的文件光盘。<br />
<br />
如果你恰好有一个不被dvd+rw工具集支持的刻录光驱(也包括k3b和其它所有免费的图形界面工具),那么nero也许就是你唯一的选择。<br />
<br />
===K3B===<br />
根据[http://www.k3b.org http://www.k3b.org],k3b是为KDE优化的CD/DVD制作工具(“CD/DVD Kreator for Linux”)。K3B使用 [[wikipedia:Qt (toolkit)|QT]] 工具集。<br />
* 使用pacman来安装k3b<br />
<br />
# pacman -Sy k3b<br />
<br />
* 在root下,运行<code>k3bsetup</code>,<br />
* 现在你可以设置你的权限等。<br />
* 运行<code>k3b</code>来执行主程序。<br />
<br />
====本地化====<br />
当运行K3B时,如果出现下面的提示信息:<br />
<br />
System locale charset is ANSI_X3.4-1968<br />
Your system's locale charset (i.e. the charset used to encode filenames) is <br />
set to ANSI_X3.4-1968. It is highly unlikely that this has been done intentionally.<br />
Most likely the locale is not set at all. An invalid setting will result in<br />
problems when creating data projects.Solution: To properly set the locale <br />
charset make sure the LC_* environment variables are set. Normally the distribution <br />
setup tools take care of this.<br />
<br />
就意味着你的本地化设置不正确。<br />
<br />
通过下面的步骤来改正:<br />
* 删除 <code>/etc/locale.gen</code><br />
# rm /etc/locale.gen<br />
* 重新安装 <code>glibc</code><br />
# pacman -Sy glibc<br />
* 修改 <code>/etc/locale.gen</code>, 为了兼容,取消注释<code>en_US</code>和所有与你的语言相关的行<br />
# nano /etc/locale.gen<br />
<br />
en_US.UTF-8 UTF-8<br />
en_US ISO-8859-1<br />
<br />
* 使用<code>locale-gen</code>来重新生成档案<br />
# locale-gen<br />
<br />
Generating locales...<br />
en_US.UTF-8... done<br />
en_US.ISO-8859-1... done<br />
pt_BR.UTF-8... done<br />
pt_BR.ISO-8859-1... done<br />
Generation complete.<br />
<br />
更多的信息请参考 [http://bbs.archlinux.org/viewtopic.php?pid=251512%29; 这里]<br />
<br />
==== K3B 报告没有光盘刻录设备 ====<br />
一个常见的原因是因为用户没有访问刻录设备的权限。<br />
你可以尝试:<br />
* 添加用户到<code>optical</code>组 (记住添加后要重新登录使之生效)<br />
gpasswd -a <user> optical<br />
* 设置访问权限<br />
chmod 777 /dev/dvd*<br />
chmod 777 /dev/cd*<br />
<br />
其它原因,步骤,请参考当前指南 (;<br />
<br />
===Gnomebaker===<br />
<br />
Gnomebaker is a solution to CD burning if you are using [[Gnome]].<br />
'''Gnomebaker is no longer maintained upstream as the author of the program has indicated. Consider using [http://wiki.archlinux.org/index.php/CD_Burning_Tips#Brasero Brasero] instead.'''<br />
<br />
* Install gnomebaker with pacman.<br />
<br />
<br />
# pacman -Sy gnomebaker<br />
<br />
<br />
* Run <code>gnomebaker</code> to run the main program.<br />
<br />
===Brasero===<br />
<br />
Brasero is another solution to CD burning if you are using [[Gnome]].<br />
<br />
* Install brasero with pacman.<br />
<br />
<br />
# pacman -Sy brasero<br />
<br />
<br />
* Run <code>brasero</code> to run the main program.<br />
<br />
===Graveman===<br />
Graveman is a simple and almost dependency-free application for burning CDs.<br />
<br />
* Install graveman with pacman.<br />
<br />
<br />
# pacman -Sy graveman<br />
<br />
<br />
* As root, run graveman, go to menu File > Preferences... > Devices and add your CD burners.<br />
* Note that you may have to manually add your own device in Graveman's preferences and point it at /dev/cdrom instead of /dev/hdc<br />
* Run <code>graveman</code> to run the main program.<br />
<br />
===Bashburn===<br />
<br />
Alternatively theres also [http://bashburn.sourceforge.net/ Bashburn] in [http://aur.archlinux.org/packages.php?do_Details=1&ID=3658&O=0&L=0&C=0&K=bashburn&SB=n&SO=a&PP=25&do_MyPackages=0&do_Orphans=0&SeB=nd AUR] as a semi-gui solution. BashBurn is the new name for the cd burning shell script Magma. It's not the best looking CD-burning application out there, but it does what you want it to do.<br />
<br />
==故障处理方法==<br />
<br />
===PATA and SATA problems around 2.6.20/2.6.21===<br />
<br />
For some kernels on some machines, CD burning works very unreliably. This is not fully diagnosed but appears to be related to DMA and having SATA Hard Drives and older IDE CD/DVD Burners and is possibly more prevalent on PIIX Motherboards. On newer kernels there is a new driver whereby the CD/DVD Burner behaves as if it is a SCSI drive, even though it isn't. <br />
<br />
The symptom for this problem is an almost total refusal to burn anything at all. It 'seems' to work fine, but if you verify the burn it invariably fails. If this is happening to you and you have an IDE burner try this fix.<br />
<br />
You will need to install mkinitcpio as described here,[[Configuring_mkinitcpio]] so you can rebuild the kernel. You now need to reconfigure your /etc/mkinitcpio.conf file to reuse the old IDE drivers.<br />
<br />
gedit /etc/mkinitcpio.conf<br />
<br />
Find the line:<br />
<br />
MODULES="ata_generic ata_piix"<br />
<br />
and change it to (insert piix in the front)<br />
<br />
MODULES="piix ata_generic ata_piix"<br />
<br />
Then, find the line:<br />
<br />
HOOKS="base udev autodetect pata scsi sata usbinput keymap filesystems"<br />
<br />
and change that to (replace pata with ide)<br />
<br />
HOOKS="base udev autodetect ide scsi sata usbinput keymap filesystems"<br />
<br />
Use mkinitcpio to rebuild the kernel as described in it's own wiki page, and reboot. In brief :<br />
<br />
mkinitcpio -g /boot/kernel26.img</div>Doubhuahttps://wiki.archlinux.org/index.php?title=CD_Burning_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)&diff=50051CD Burning (简体中文)2008-09-25T15:57:16Z<p>Doubhua: /* Nero Linux版 */</p>
<hr />
<div>[[Category:Optical (English)]]<br />
[[Category:Utilities (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|CD Burning Tips}}<br />
{{i18n_entry|Italiano|CD Burning Tips (Italiano)}}<br />
{{i18n_entry|简体中文|光盘刻录技巧}}<br />
{{i18n_links_end}}<br />
{{translateme}}<br />
<br />
本文描述了一些光盘刻录的技巧。<br />
<br />
== 命令行的光盘刻录工具 == <br />
===安装光盘刻录工具集===<br />
<br />
# pacman -Sy cdrkit<br />
<br />
如果你希望使用<tt>cdrdao</tt> (把文件cue/bin写到光盘上)<br />
# pacman -S cdrdao<br />
<br />
===设置权限===<br />
如果希望使用cd/dvd烧录设备的话必须要有它们的访问权限。如果要使用[[udev]](Archlinux内核的默认值),你只需要把这个(或多个)用户加入到optical组中:<br />
# gpasswd -a <username> optical<br />
然后别忘了注销后再登录一次。<br />
<br />
===修改CD-RW中的内容===<br />
本节假设你的刻录设备是/dev/cdrw。如果你不是这种情况,那么请对命令做相应的修改。为了能在光盘中写入内容必须先卸载。如果没有卸载,<code>wodim</code>会给出错误提示。<br />
<br />
===擦除CD-RW中的内容===<br />
CD-RW往往需要先擦除已经存在的内容然后再写入新的数据。使用以下命令来清空cd-rw中的内容:<br />
wodim -v dev=/dev/cdrw -blank=fast<br />
正如你可能猜想的,这个命令可以很快的清空光盘,但是你还可以使用一些其它的选项,只需把''fast''替换为下面的即可:<br />
<br />
;all : 清空整个光盘<br />
;disc : 清空整个光盘<br />
;disk:清空整个光盘<br />
;fast:最低限度的清空整个光盘(PMA,TOC,pregap)<br />
;minimal:最低限度的清空整个光盘(PMA,TOC,pregap)<br />
;track:清空一个磁道<br />
;unreserve:unreserve a track<br />
;trtail:blank a track tail<br />
;unclose:unclose last session<br />
;session:blank last session<br />
<br />
===刻录一个iso镜像===<br />
要刻录一个iso镜像,运行:<br />
wodim -v dev=/dev/cdrw isoimage.iso<br />
<br />
===刻录bin/cue===<br />
<br />
要刻录bin/cue,运行:<br />
cdrdao write --device /dev/cdrw image.cue<br />
<br />
===从光盘生成一个iso镜像===<br />
要复制一个光盘只需键入:<br />
dd if=/dev/cdrw of=/home/user/isoimage.iso<br />
或者使用更简单的输入:<br />
cat /dev/cdrw > isoimage.iso<br />
<br />
或者使用程序readcd(同样在cdrkit包中)<br />
readcd -v dev=/dev/cdrw -f isoimage.iso<br />
<br />
如果原光盘是能够启动电脑的,那么生成的镜像也是能够启动电脑的。<br />
<br />
===从硬盘上的文件生成一个iso镜像===<br />
<br />
要生成iso镜像只需要拷贝需要的文件到一个文件夹,然后输入:<br />
mkisofs -V volume_name -J -r -o isoimage.iso ~/folder<br />
<br />
===挂载iso镜像===<br />
<br />
要测试iso镜像是否是正确的,你先要挂载它(用root身份):<br />
mount -t iso9660 -o ro,loop=/dev/loop0 cd_image /cdrom<br />
<br />
你首先需要装入loop模块:<br />
modprobe loop<br />
<br />
===转换成iso镜像===<br />
<br />
为了转换一个 .img / ccd 镜像,你需要使用ccd2iso:<br />
<br />
pacman -Sy ccd2iso<br />
<br />
ccd2iso /home/archman/image.img /home/archman/image.iso<br />
<br />
== 图形界面的光盘刻录软件 ==<br />
<br />
在图形环境中有一些软件可以用于光盘刻录。使用这些软件的方法都是很直观的。<br />
===Nero Linux版===<br />
和Windows上面的Nero一样。[http://www.nero.com/eng/NeroLINUX.html 官方连接]|[http://aur.archlinux.org/packages.php?do_Details=1&ID=2153 AUR包]<br />
<br />
它不是免费的,而且界面也没有windows版本的好。3.0.0 beta版还不能正确的制作可启动电脑的文件光盘。<br />
<br />
如果你恰好有一个不被dvd+rw工具集支持的刻录光驱(也包括k3b和其它所有免费的图形界面工具),那么nero也许就是你唯一的选择。<br />
<br />
===K3B===<br />
根据[http://www.k3b.org http://www.k3b.org],k3b是为KDE优化的CD/DVD制作工具(“CD/DVD Kreator for Linux”)。K3B使用 [[wikipedia:Qt (toolkit)|QT]] 工具集。<br />
* 使用pacman来安装k3b<br />
<br />
# pacman -Sy k3b<br />
<br />
* 在root下,运行<code>k3bsetup</code>,<br />
* 现在你可以设置你的权限等。<br />
* 运行<code>k3b</code>来执行主程序。<br />
<br />
====本地化====<br />
当运行K3B时,如果出现下面的提示信息:<br />
<br />
System locale charset is ANSI_X3.4-1968<br />
Your system's locale charset (i.e. the charset used to encode filenames) is <br />
set to ANSI_X3.4-1968. It is highly unlikely that this has been done intentionally.<br />
Most likely the locale is not set at all. An invalid setting will result in<br />
problems when creating data projects.Solution: To properly set the locale <br />
charset make sure the LC_* environment variables are set. Normally the distribution <br />
setup tools take care of this.<br />
<br />
就意味着你的本地化设置不正确。<br />
<br />
通过下面的步骤来改正:<br />
* 删除 <code>/etc/locale.gen</code><br />
# rm /etc/locale.gen<br />
* 重新安装 <code>glibc</code><br />
# pacman -Sy glibc<br />
* 修改 <code>/etc/locale.gen</code>, 为了兼容,取消注释<code>en_US</code>和所有与你的语言相关的行<br />
# nano /etc/locale.gen<br />
<br />
en_US.UTF-8 UTF-8<br />
en_US ISO-8859-1<br />
<br />
* 使用<code>locale-gen</code>来重新生成档案<br />
# locale-gen<br />
<br />
Generating locales...<br />
en_US.UTF-8... done<br />
en_US.ISO-8859-1... done<br />
pt_BR.UTF-8... done<br />
pt_BR.ISO-8859-1... done<br />
Generation complete.<br />
<br />
更多的信息请参考 [http://bbs.archlinux.org/viewtopic.php?pid=251512%29; 这里]<br />
<br />
==== K3B 报告没有光盘刻录设备 ====<br />
一个常见的原因是因为用户没有访问刻录设备的权限。<br />
你可以尝试:<br />
* 添加用户到<code>optical</code>组 (记住添加后要重新登录使之生效)<br />
gpasswd -a <user> optical<br />
* 设置访问权限<br />
chmod 777 /dev/dvd*<br />
chmod 777 /dev/cd*<br />
<br />
其它原因,步骤,请参考当前指南 (;<br />
<br />
===Gnomebaker===<br />
<br />
Gnomebaker is a solution to CD burning if you are using [[Gnome]].<br />
'''Gnomebaker is no longer maintained upstream as the author of the program has indicated. Consider using [http://wiki.archlinux.org/index.php/CD_Burning_Tips#Brasero Brasero] instead.'''<br />
<br />
* Install gnomebaker with pacman.<br />
<br />
<br />
# pacman -Sy gnomebaker<br />
<br />
<br />
* Run <code>gnomebaker</code> to run the main program.<br />
<br />
===Brasero===<br />
<br />
Brasero is another solution to CD burning if you are using [[Gnome]].<br />
<br />
* Install brasero with pacman.<br />
<br />
<br />
# pacman -Sy brasero<br />
<br />
<br />
* Run <code>brasero</code> to run the main program.<br />
<br />
===Graveman===<br />
Graveman is a simple and almost dependency-free application for burning CDs.<br />
<br />
* Install graveman with pacman.<br />
<br />
<br />
# pacman -Sy graveman<br />
<br />
<br />
* As root, run graveman, go to menu File > Preferences... > Devices and add your CD burners.<br />
* Note that you may have to manually add your own device in Graveman's preferences and point it at /dev/cdrom instead of /dev/hdc<br />
* Run <code>graveman</code> to run the main program.<br />
<br />
===Bashburn===<br />
<br />
Alternatively theres also [http://bashburn.sourceforge.net/ Bashburn] in [http://aur.archlinux.org/packages.php?do_Details=1&ID=3658&O=0&L=0&C=0&K=bashburn&SB=n&SO=a&PP=25&do_MyPackages=0&do_Orphans=0&SeB=nd AUR] as a semi-gui solution. BashBurn is the new name for the cd burning shell script Magma. It's not the best looking CD-burning application out there, but it does what you want it to do.<br />
<br />
==故障处理方法==<br />
<br />
===PATA and SATA problems around 2.6.20/2.6.21===<br />
<br />
For some kernels on some machines, CD burning works very unreliably. This is not fully diagnosed but appears to be related to DMA and having SATA Hard Drives and older IDE CD/DVD Burners and is possibly more prevalent on PIIX Motherboards. On newer kernels there is a new driver whereby the CD/DVD Burner behaves as if it is a SCSI drive, even though it isn't. <br />
<br />
The symptom for this problem is an almost total refusal to burn anything at all. It 'seems' to work fine, but if you verify the burn it invariably fails. If this is happening to you and you have an IDE burner try this fix.<br />
<br />
You will need to install mkinitcpio as described here,[[Configuring_mkinitcpio]] so you can rebuild the kernel. You now need to reconfigure your /etc/mkinitcpio.conf file to reuse the old IDE drivers.<br />
<br />
gedit /etc/mkinitcpio.conf<br />
<br />
Find the line:<br />
<br />
MODULES="ata_generic ata_piix"<br />
<br />
and change it to (insert piix in the front)<br />
<br />
MODULES="piix ata_generic ata_piix"<br />
<br />
Then, find the line:<br />
<br />
HOOKS="base udev autodetect pata scsi sata usbinput keymap filesystems"<br />
<br />
and change that to (replace pata with ide)<br />
<br />
HOOKS="base udev autodetect ide scsi sata usbinput keymap filesystems"<br />
<br />
Use mkinitcpio to rebuild the kernel as described in it's own wiki page, and reboot. In brief :<br />
<br />
mkinitcpio -g /boot/kernel26.img</div>Doubhuahttps://wiki.archlinux.org/index.php?title=CD_Burning_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)&diff=50050CD Burning (简体中文)2008-09-25T15:55:29Z<p>Doubhua: /* 本地化 */</p>
<hr />
<div>[[Category:Optical (English)]]<br />
[[Category:Utilities (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|CD Burning Tips}}<br />
{{i18n_entry|Italiano|CD Burning Tips (Italiano)}}<br />
{{i18n_entry|简体中文|光盘刻录技巧}}<br />
{{i18n_links_end}}<br />
{{translateme}}<br />
<br />
本文描述了一些光盘刻录的技巧。<br />
<br />
== 命令行的光盘刻录工具 == <br />
===安装光盘刻录工具集===<br />
<br />
# pacman -Sy cdrkit<br />
<br />
如果你希望使用<tt>cdrdao</tt> (把文件cue/bin写到光盘上)<br />
# pacman -S cdrdao<br />
<br />
===设置权限===<br />
如果希望使用cd/dvd烧录设备的话必须要有它们的访问权限。如果要使用[[udev]](Archlinux内核的默认值),你只需要把这个(或多个)用户加入到optical组中:<br />
# gpasswd -a <username> optical<br />
然后别忘了注销后再登录一次。<br />
<br />
===修改CD-RW中的内容===<br />
本节假设你的刻录设备是/dev/cdrw。如果你不是这种情况,那么请对命令做相应的修改。为了能在光盘中写入内容必须先卸载。如果没有卸载,<code>wodim</code>会给出错误提示。<br />
<br />
===擦除CD-RW中的内容===<br />
CD-RW往往需要先擦除已经存在的内容然后再写入新的数据。使用以下命令来清空cd-rw中的内容:<br />
wodim -v dev=/dev/cdrw -blank=fast<br />
正如你可能猜想的,这个命令可以很快的清空光盘,但是你还可以使用一些其它的选项,只需把''fast''替换为下面的即可:<br />
<br />
;all : 清空整个光盘<br />
;disc : 清空整个光盘<br />
;disk:清空整个光盘<br />
;fast:最低限度的清空整个光盘(PMA,TOC,pregap)<br />
;minimal:最低限度的清空整个光盘(PMA,TOC,pregap)<br />
;track:清空一个磁道<br />
;unreserve:unreserve a track<br />
;trtail:blank a track tail<br />
;unclose:unclose last session<br />
;session:blank last session<br />
<br />
===刻录一个iso镜像===<br />
要刻录一个iso镜像,运行:<br />
wodim -v dev=/dev/cdrw isoimage.iso<br />
<br />
===刻录bin/cue===<br />
<br />
要刻录bin/cue,运行:<br />
cdrdao write --device /dev/cdrw image.cue<br />
<br />
===从光盘生成一个iso镜像===<br />
要复制一个光盘只需键入:<br />
dd if=/dev/cdrw of=/home/user/isoimage.iso<br />
或者使用更简单的输入:<br />
cat /dev/cdrw > isoimage.iso<br />
<br />
或者使用程序readcd(同样在cdrkit包中)<br />
readcd -v dev=/dev/cdrw -f isoimage.iso<br />
<br />
如果原光盘是能够启动电脑的,那么生成的镜像也是能够启动电脑的。<br />
<br />
===从硬盘上的文件生成一个iso镜像===<br />
<br />
要生成iso镜像只需要拷贝需要的文件到一个文件夹,然后输入:<br />
mkisofs -V volume_name -J -r -o isoimage.iso ~/folder<br />
<br />
===挂载iso镜像===<br />
<br />
要测试iso镜像是否是正确的,你先要挂载它(用root身份):<br />
mount -t iso9660 -o ro,loop=/dev/loop0 cd_image /cdrom<br />
<br />
你首先需要装入loop模块:<br />
modprobe loop<br />
<br />
===转换成iso镜像===<br />
<br />
为了转换一个 .img / ccd 镜像,你需要使用ccd2iso:<br />
<br />
pacman -Sy ccd2iso<br />
<br />
ccd2iso /home/archman/image.img /home/archman/image.iso<br />
<br />
== 图形界面的光盘刻录软件 ==<br />
<br />
在图形环境中有一些软件可以用于光盘刻录。使用这些软件的方法都是很直观的。<br />
===Nero Linux版===<br />
和Windows上面的Nero一样。[http://www.nero.com/eng/NeroLINUX.html Official link]|[http://aur.archlinux.org/packages.php?do_Details=1&ID=2153 AUR package]<br />
<br />
它不是免费的,而且界面也没有windows版本的好。3.0.0 beta版还不能正确的制作可启动电脑的文件光盘。<br />
<br />
如果你恰好有一个不被dvd+rw工具集支持的刻录光驱(也包括k3b和其它所有免费的图形界面工具),那么nero也许就是你唯一的选择。<br />
<br />
===K3B===<br />
根据[http://www.k3b.org http://www.k3b.org],k3b是为KDE优化的CD/DVD制作工具(“CD/DVD Kreator for Linux”)。K3B使用 [[wikipedia:Qt (toolkit)|QT]] 工具集。<br />
* 使用pacman来安装k3b<br />
<br />
# pacman -Sy k3b<br />
<br />
* 在root下,运行<code>k3bsetup</code>,<br />
* 现在你可以设置你的权限等。<br />
* 运行<code>k3b</code>来执行主程序。<br />
<br />
====本地化====<br />
当运行K3B时,如果出现下面的提示信息:<br />
<br />
System locale charset is ANSI_X3.4-1968<br />
Your system's locale charset (i.e. the charset used to encode filenames) is <br />
set to ANSI_X3.4-1968. It is highly unlikely that this has been done intentionally.<br />
Most likely the locale is not set at all. An invalid setting will result in<br />
problems when creating data projects.Solution: To properly set the locale <br />
charset make sure the LC_* environment variables are set. Normally the distribution <br />
setup tools take care of this.<br />
<br />
就意味着你的本地化设置不正确。<br />
<br />
通过下面的步骤来改正:<br />
* 删除 <code>/etc/locale.gen</code><br />
# rm /etc/locale.gen<br />
* 重新安装 <code>glibc</code><br />
# pacman -Sy glibc<br />
* 修改 <code>/etc/locale.gen</code>, 为了兼容,取消注释<code>en_US</code>和所有与你的语言相关的行<br />
# nano /etc/locale.gen<br />
<br />
en_US.UTF-8 UTF-8<br />
en_US ISO-8859-1<br />
<br />
* 使用<code>locale-gen</code>来重新生成档案<br />
# locale-gen<br />
<br />
Generating locales...<br />
en_US.UTF-8... done<br />
en_US.ISO-8859-1... done<br />
pt_BR.UTF-8... done<br />
pt_BR.ISO-8859-1... done<br />
Generation complete.<br />
<br />
更多的信息请参考 [http://bbs.archlinux.org/viewtopic.php?pid=251512%29; 这里]<br />
<br />
==== K3B 报告没有光盘刻录设备 ====<br />
一个常见的原因是因为用户没有访问刻录设备的权限。<br />
你可以尝试:<br />
* 添加用户到<code>optical</code>组 (记住添加后要重新登录使之生效)<br />
gpasswd -a <user> optical<br />
* 设置访问权限<br />
chmod 777 /dev/dvd*<br />
chmod 777 /dev/cd*<br />
<br />
其它原因,步骤,请参考当前指南 (;<br />
<br />
===Gnomebaker===<br />
<br />
Gnomebaker is a solution to CD burning if you are using [[Gnome]].<br />
'''Gnomebaker is no longer maintained upstream as the author of the program has indicated. Consider using [http://wiki.archlinux.org/index.php/CD_Burning_Tips#Brasero Brasero] instead.'''<br />
<br />
* Install gnomebaker with pacman.<br />
<br />
<br />
# pacman -Sy gnomebaker<br />
<br />
<br />
* Run <code>gnomebaker</code> to run the main program.<br />
<br />
===Brasero===<br />
<br />
Brasero is another solution to CD burning if you are using [[Gnome]].<br />
<br />
* Install brasero with pacman.<br />
<br />
<br />
# pacman -Sy brasero<br />
<br />
<br />
* Run <code>brasero</code> to run the main program.<br />
<br />
===Graveman===<br />
Graveman is a simple and almost dependency-free application for burning CDs.<br />
<br />
* Install graveman with pacman.<br />
<br />
<br />
# pacman -Sy graveman<br />
<br />
<br />
* As root, run graveman, go to menu File > Preferences... > Devices and add your CD burners.<br />
* Note that you may have to manually add your own device in Graveman's preferences and point it at /dev/cdrom instead of /dev/hdc<br />
* Run <code>graveman</code> to run the main program.<br />
<br />
===Bashburn===<br />
<br />
Alternatively theres also [http://bashburn.sourceforge.net/ Bashburn] in [http://aur.archlinux.org/packages.php?do_Details=1&ID=3658&O=0&L=0&C=0&K=bashburn&SB=n&SO=a&PP=25&do_MyPackages=0&do_Orphans=0&SeB=nd AUR] as a semi-gui solution. BashBurn is the new name for the cd burning shell script Magma. It's not the best looking CD-burning application out there, but it does what you want it to do.<br />
<br />
==故障处理方法==<br />
<br />
===PATA and SATA problems around 2.6.20/2.6.21===<br />
<br />
For some kernels on some machines, CD burning works very unreliably. This is not fully diagnosed but appears to be related to DMA and having SATA Hard Drives and older IDE CD/DVD Burners and is possibly more prevalent on PIIX Motherboards. On newer kernels there is a new driver whereby the CD/DVD Burner behaves as if it is a SCSI drive, even though it isn't. <br />
<br />
The symptom for this problem is an almost total refusal to burn anything at all. It 'seems' to work fine, but if you verify the burn it invariably fails. If this is happening to you and you have an IDE burner try this fix.<br />
<br />
You will need to install mkinitcpio as described here,[[Configuring_mkinitcpio]] so you can rebuild the kernel. You now need to reconfigure your /etc/mkinitcpio.conf file to reuse the old IDE drivers.<br />
<br />
gedit /etc/mkinitcpio.conf<br />
<br />
Find the line:<br />
<br />
MODULES="ata_generic ata_piix"<br />
<br />
and change it to (insert piix in the front)<br />
<br />
MODULES="piix ata_generic ata_piix"<br />
<br />
Then, find the line:<br />
<br />
HOOKS="base udev autodetect pata scsi sata usbinput keymap filesystems"<br />
<br />
and change that to (replace pata with ide)<br />
<br />
HOOKS="base udev autodetect ide scsi sata usbinput keymap filesystems"<br />
<br />
Use mkinitcpio to rebuild the kernel as described in it's own wiki page, and reboot. In brief :<br />
<br />
mkinitcpio -g /boot/kernel26.img</div>Doubhuahttps://wiki.archlinux.org/index.php?title=CD_Burning_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)&diff=50049CD Burning (简体中文)2008-09-25T15:52:00Z<p>Doubhua: /* K3B */</p>
<hr />
<div>[[Category:Optical (English)]]<br />
[[Category:Utilities (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|CD Burning Tips}}<br />
{{i18n_entry|Italiano|CD Burning Tips (Italiano)}}<br />
{{i18n_entry|简体中文|光盘刻录技巧}}<br />
{{i18n_links_end}}<br />
{{translateme}}<br />
<br />
本文描述了一些光盘刻录的技巧。<br />
<br />
== 命令行的光盘刻录工具 == <br />
===安装光盘刻录工具集===<br />
<br />
# pacman -Sy cdrkit<br />
<br />
如果你希望使用<tt>cdrdao</tt> (把文件cue/bin写到光盘上)<br />
# pacman -S cdrdao<br />
<br />
===设置权限===<br />
如果希望使用cd/dvd烧录设备的话必须要有它们的访问权限。如果要使用[[udev]](Archlinux内核的默认值),你只需要把这个(或多个)用户加入到optical组中:<br />
# gpasswd -a <username> optical<br />
然后别忘了注销后再登录一次。<br />
<br />
===修改CD-RW中的内容===<br />
本节假设你的刻录设备是/dev/cdrw。如果你不是这种情况,那么请对命令做相应的修改。为了能在光盘中写入内容必须先卸载。如果没有卸载,<code>wodim</code>会给出错误提示。<br />
<br />
===擦除CD-RW中的内容===<br />
CD-RW往往需要先擦除已经存在的内容然后再写入新的数据。使用以下命令来清空cd-rw中的内容:<br />
wodim -v dev=/dev/cdrw -blank=fast<br />
正如你可能猜想的,这个命令可以很快的清空光盘,但是你还可以使用一些其它的选项,只需把''fast''替换为下面的即可:<br />
<br />
;all : 清空整个光盘<br />
;disc : 清空整个光盘<br />
;disk:清空整个光盘<br />
;fast:最低限度的清空整个光盘(PMA,TOC,pregap)<br />
;minimal:最低限度的清空整个光盘(PMA,TOC,pregap)<br />
;track:清空一个磁道<br />
;unreserve:unreserve a track<br />
;trtail:blank a track tail<br />
;unclose:unclose last session<br />
;session:blank last session<br />
<br />
===刻录一个iso镜像===<br />
要刻录一个iso镜像,运行:<br />
wodim -v dev=/dev/cdrw isoimage.iso<br />
<br />
===刻录bin/cue===<br />
<br />
要刻录bin/cue,运行:<br />
cdrdao write --device /dev/cdrw image.cue<br />
<br />
===从光盘生成一个iso镜像===<br />
要复制一个光盘只需键入:<br />
dd if=/dev/cdrw of=/home/user/isoimage.iso<br />
或者使用更简单的输入:<br />
cat /dev/cdrw > isoimage.iso<br />
<br />
或者使用程序readcd(同样在cdrkit包中)<br />
readcd -v dev=/dev/cdrw -f isoimage.iso<br />
<br />
如果原光盘是能够启动电脑的,那么生成的镜像也是能够启动电脑的。<br />
<br />
===从硬盘上的文件生成一个iso镜像===<br />
<br />
要生成iso镜像只需要拷贝需要的文件到一个文件夹,然后输入:<br />
mkisofs -V volume_name -J -r -o isoimage.iso ~/folder<br />
<br />
===挂载iso镜像===<br />
<br />
要测试iso镜像是否是正确的,你先要挂载它(用root身份):<br />
mount -t iso9660 -o ro,loop=/dev/loop0 cd_image /cdrom<br />
<br />
你首先需要装入loop模块:<br />
modprobe loop<br />
<br />
===转换成iso镜像===<br />
<br />
为了转换一个 .img / ccd 镜像,你需要使用ccd2iso:<br />
<br />
pacman -Sy ccd2iso<br />
<br />
ccd2iso /home/archman/image.img /home/archman/image.iso<br />
<br />
== 图形界面的光盘刻录软件 ==<br />
<br />
在图形环境中有一些软件可以用于光盘刻录。使用这些软件的方法都是很直观的。<br />
===Nero Linux版===<br />
和Windows上面的Nero一样。[http://www.nero.com/eng/NeroLINUX.html Official link]|[http://aur.archlinux.org/packages.php?do_Details=1&ID=2153 AUR package]<br />
<br />
它不是免费的,而且界面也没有windows版本的好。3.0.0 beta版还不能正确的制作可启动电脑的文件光盘。<br />
<br />
如果你恰好有一个不被dvd+rw工具集支持的刻录光驱(也包括k3b和其它所有免费的图形界面工具),那么nero也许就是你唯一的选择。<br />
<br />
===K3B===<br />
根据[http://www.k3b.org http://www.k3b.org],k3b是为KDE优化的CD/DVD制作工具(“CD/DVD Kreator for Linux”)。K3B使用 [[wikipedia:Qt (toolkit)|QT]] 工具集。<br />
* 使用pacman来安装k3b<br />
<br />
# pacman -Sy k3b<br />
<br />
* 在root下,运行<code>k3bsetup</code>,<br />
* 现在你可以设置你的权限等。<br />
* 运行<code>k3b</code>来执行主程序。<br />
<br />
====本地化====<br />
当运行K3B时,如果出现下面的提示信息:<br />
<br />
System locale charset is ANSI_X3.4-1968<br />
Your system's locale charset (i.e. the charset used to encode filenames) is <br />
set to ANSI_X3.4-1968. It is highly unlikely that this has been done intentionally.<br />
Most likely the locale is not set at all. An invalid setting will result in<br />
problems when creating data projects.Solution: To properly set the locale <br />
charset make sure the LC_* environment variables are set. Normally the distribution <br />
setup tools take care of this.<br />
<br />
就意味着你的本地化设置不正确。<br />
<br />
通过下面的步骤来改正:<br />
* 删除 <code>/etc/locale.gen</code><br />
# rm /etc/locale.gen<br />
* 重新安装 <code>glibc</code><br />
# pacman -Sy glibc<br />
* 修改 <code>/etc/locale.gen</code>, 为了兼容,取消注释<code>en_US</code>和所有与你的语言相关的行<br />
# nano /etc/locale.gen<br />
<br />
en_US.UTF-8 UTF-8<br />
en_US ISO-8859-1<br />
<br />
* 使用<code>locale-gen</code>来重新生成档案<br />
# locale-gen<br />
<br />
Generating locales...<br />
en_US.UTF-8... done<br />
en_US.ISO-8859-1... done<br />
pt_BR.UTF-8... done<br />
pt_BR.ISO-8859-1... done<br />
Generation complete.<br />
<br />
更多的信息请参考 [http://bbs.archlinux.org/viewtopic.php?pid=251512%29; here]<br />
<br />
==== K3B 报告没有光盘刻录设备 ====<br />
一个常见的原因是因为用户没有访问刻录设备的权限。<br />
你可以尝试:<br />
* 添加用户到<code>optical</code>组 (记住添加后要重新登录使之生效)<br />
gpasswd -a <user> optical<br />
* 设置访问权限<br />
chmod 777 /dev/dvd*<br />
chmod 777 /dev/cd*<br />
<br />
其它原因,步骤,请参考当前指南 (;<br />
<br />
===Gnomebaker===<br />
<br />
Gnomebaker is a solution to CD burning if you are using [[Gnome]].<br />
'''Gnomebaker is no longer maintained upstream as the author of the program has indicated. Consider using [http://wiki.archlinux.org/index.php/CD_Burning_Tips#Brasero Brasero] instead.'''<br />
<br />
* Install gnomebaker with pacman.<br />
<br />
<br />
# pacman -Sy gnomebaker<br />
<br />
<br />
* Run <code>gnomebaker</code> to run the main program.<br />
<br />
===Brasero===<br />
<br />
Brasero is another solution to CD burning if you are using [[Gnome]].<br />
<br />
* Install brasero with pacman.<br />
<br />
<br />
# pacman -Sy brasero<br />
<br />
<br />
* Run <code>brasero</code> to run the main program.<br />
<br />
===Graveman===<br />
Graveman is a simple and almost dependency-free application for burning CDs.<br />
<br />
* Install graveman with pacman.<br />
<br />
<br />
# pacman -Sy graveman<br />
<br />
<br />
* As root, run graveman, go to menu File > Preferences... > Devices and add your CD burners.<br />
* Note that you may have to manually add your own device in Graveman's preferences and point it at /dev/cdrom instead of /dev/hdc<br />
* Run <code>graveman</code> to run the main program.<br />
<br />
===Bashburn===<br />
<br />
Alternatively theres also [http://bashburn.sourceforge.net/ Bashburn] in [http://aur.archlinux.org/packages.php?do_Details=1&ID=3658&O=0&L=0&C=0&K=bashburn&SB=n&SO=a&PP=25&do_MyPackages=0&do_Orphans=0&SeB=nd AUR] as a semi-gui solution. BashBurn is the new name for the cd burning shell script Magma. It's not the best looking CD-burning application out there, but it does what you want it to do.<br />
<br />
==故障处理方法==<br />
<br />
===PATA and SATA problems around 2.6.20/2.6.21===<br />
<br />
For some kernels on some machines, CD burning works very unreliably. This is not fully diagnosed but appears to be related to DMA and having SATA Hard Drives and older IDE CD/DVD Burners and is possibly more prevalent on PIIX Motherboards. On newer kernels there is a new driver whereby the CD/DVD Burner behaves as if it is a SCSI drive, even though it isn't. <br />
<br />
The symptom for this problem is an almost total refusal to burn anything at all. It 'seems' to work fine, but if you verify the burn it invariably fails. If this is happening to you and you have an IDE burner try this fix.<br />
<br />
You will need to install mkinitcpio as described here,[[Configuring_mkinitcpio]] so you can rebuild the kernel. You now need to reconfigure your /etc/mkinitcpio.conf file to reuse the old IDE drivers.<br />
<br />
gedit /etc/mkinitcpio.conf<br />
<br />
Find the line:<br />
<br />
MODULES="ata_generic ata_piix"<br />
<br />
and change it to (insert piix in the front)<br />
<br />
MODULES="piix ata_generic ata_piix"<br />
<br />
Then, find the line:<br />
<br />
HOOKS="base udev autodetect pata scsi sata usbinput keymap filesystems"<br />
<br />
and change that to (replace pata with ide)<br />
<br />
HOOKS="base udev autodetect ide scsi sata usbinput keymap filesystems"<br />
<br />
Use mkinitcpio to rebuild the kernel as described in it's own wiki page, and reboot. In brief :<br />
<br />
mkinitcpio -g /boot/kernel26.img</div>Doubhuahttps://wiki.archlinux.org/index.php?title=CD_Burning_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)&diff=50048CD Burning (简体中文)2008-09-25T15:38:04Z<p>Doubhua: /* K3B */</p>
<hr />
<div>[[Category:Optical (English)]]<br />
[[Category:Utilities (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|CD Burning Tips}}<br />
{{i18n_entry|Italiano|CD Burning Tips (Italiano)}}<br />
{{i18n_entry|简体中文|光盘刻录技巧}}<br />
{{i18n_links_end}}<br />
{{translateme}}<br />
<br />
本文描述了一些光盘刻录的技巧。<br />
<br />
== 命令行的光盘刻录工具 == <br />
===安装光盘刻录工具集===<br />
<br />
# pacman -Sy cdrkit<br />
<br />
如果你希望使用<tt>cdrdao</tt> (把文件cue/bin写到光盘上)<br />
# pacman -S cdrdao<br />
<br />
===设置权限===<br />
如果希望使用cd/dvd烧录设备的话必须要有它们的访问权限。如果要使用[[udev]](Archlinux内核的默认值),你只需要把这个(或多个)用户加入到optical组中:<br />
# gpasswd -a <username> optical<br />
然后别忘了注销后再登录一次。<br />
<br />
===修改CD-RW中的内容===<br />
本节假设你的刻录设备是/dev/cdrw。如果你不是这种情况,那么请对命令做相应的修改。为了能在光盘中写入内容必须先卸载。如果没有卸载,<code>wodim</code>会给出错误提示。<br />
<br />
===擦除CD-RW中的内容===<br />
CD-RW往往需要先擦除已经存在的内容然后再写入新的数据。使用以下命令来清空cd-rw中的内容:<br />
wodim -v dev=/dev/cdrw -blank=fast<br />
正如你可能猜想的,这个命令可以很快的清空光盘,但是你还可以使用一些其它的选项,只需把''fast''替换为下面的即可:<br />
<br />
;all : 清空整个光盘<br />
;disc : 清空整个光盘<br />
;disk:清空整个光盘<br />
;fast:最低限度的清空整个光盘(PMA,TOC,pregap)<br />
;minimal:最低限度的清空整个光盘(PMA,TOC,pregap)<br />
;track:清空一个磁道<br />
;unreserve:unreserve a track<br />
;trtail:blank a track tail<br />
;unclose:unclose last session<br />
;session:blank last session<br />
<br />
===刻录一个iso镜像===<br />
要刻录一个iso镜像,运行:<br />
wodim -v dev=/dev/cdrw isoimage.iso<br />
<br />
===刻录bin/cue===<br />
<br />
要刻录bin/cue,运行:<br />
cdrdao write --device /dev/cdrw image.cue<br />
<br />
===从光盘生成一个iso镜像===<br />
要复制一个光盘只需键入:<br />
dd if=/dev/cdrw of=/home/user/isoimage.iso<br />
或者使用更简单的输入:<br />
cat /dev/cdrw > isoimage.iso<br />
<br />
或者使用程序readcd(同样在cdrkit包中)<br />
readcd -v dev=/dev/cdrw -f isoimage.iso<br />
<br />
如果原光盘是能够启动电脑的,那么生成的镜像也是能够启动电脑的。<br />
<br />
===从硬盘上的文件生成一个iso镜像===<br />
<br />
要生成iso镜像只需要拷贝需要的文件到一个文件夹,然后输入:<br />
mkisofs -V volume_name -J -r -o isoimage.iso ~/folder<br />
<br />
===挂载iso镜像===<br />
<br />
要测试iso镜像是否是正确的,你先要挂载它(用root身份):<br />
mount -t iso9660 -o ro,loop=/dev/loop0 cd_image /cdrom<br />
<br />
你首先需要装入loop模块:<br />
modprobe loop<br />
<br />
===转换成iso镜像===<br />
<br />
为了转换一个 .img / ccd 镜像,你需要使用ccd2iso:<br />
<br />
pacman -Sy ccd2iso<br />
<br />
ccd2iso /home/archman/image.img /home/archman/image.iso<br />
<br />
== 图形界面的光盘刻录软件 ==<br />
<br />
在图形环境中有一些软件可以用于光盘刻录。使用这些软件的方法都是很直观的。<br />
===Nero Linux版===<br />
和Windows上面的Nero一样。[http://www.nero.com/eng/NeroLINUX.html Official link]|[http://aur.archlinux.org/packages.php?do_Details=1&ID=2153 AUR package]<br />
<br />
它不是免费的,而且界面也没有windows版本的好。3.0.0 beta版还不能正确的制作可启动电脑的文件光盘。<br />
<br />
如果你恰好有一个不被dvd+rw工具集支持的刻录光驱(也包括k3b和其它所有免费的图形界面工具),那么nero也许就是你唯一的选择。<br />
<br />
===K3B===<br />
根据[http://www.k3b.org http://www.k3b.org],k3b是为KDE优化的CD/DVD制作工具(“CD/DVD Kreator for Linux”)。K3B使用 [[wikipedia:Qt (toolkit)|QT] 工具集。K3B uses the [[wikipedia:Qt (toolkit)|QT]] toolkit.<br />
* 使用pacman来安装k3b<br />
<br />
# pacman -Sy k3b<br />
<br />
* 在root下,运行<code>k3bsetup</code>,<br />
* 现在你可以设置你的权限等。<br />
* 运行<code>k3b</code>来执行主程序。<br />
<br />
====本地化====<br />
When running K3B, if the following message appears<br />
<br />
System locale charset is ANSI_X3.4-1968<br />
Your system's locale charset (i.e. the charset used to encode filenames) is <br />
set to ANSI_X3.4-1968. It is highly unlikely that this has been done intentionally.<br />
Most likely the locale is not set at all. An invalid setting will result in<br />
problems when creating data projects.Solution: To properly set the locale <br />
charset make sure the LC_* environment variables are set. Normally the distribution <br />
setup tools take care of this.<br />
<br />
It means that your locale is not set well.<br />
<br />
To fix it,<br />
* Remove <code>/etc/locale.gen</code><br />
# rm /etc/locale.gen<br />
* Re-install <code>glibc</code><br />
# pacman -Sy glibc<br />
* Edit <code>/etc/locale.gen</code>, uncommenting all lines lines that corresponds to your language AND the <code>en_US</code> options, for compatibility.<br />
# nano /etc/locale.gen<br />
<br />
en_US.UTF-8 UTF-8<br />
en_US ISO-8859-1<br />
<br />
* Re-generate the profiles with <code>locale-gen</code><br />
# locale-gen<br />
<br />
Generating locales...<br />
en_US.UTF-8... done<br />
en_US.ISO-8859-1... done<br />
pt_BR.UTF-8... done<br />
pt_BR.ISO-8859-1... done<br />
Generation complete.<br />
<br />
More info [http://bbs.archlinux.org/viewtopic.php?pid=251512%29; here]<br />
<br />
==== K3B 报告没有光盘刻录设备 ====<br />
A common cause of this is the current user have no privileges for that.<br />
You can try to:<br />
* Add the user to the group <code>optical</code> (remember to re-login after this)<br />
gpasswd -a <user> optical<br />
* Set permissions to devices<br />
chmod 777 /dev/dvd*<br />
chmod 777 /dev/cd*<br />
<br />
Other causes, steps, look on the current guide (;<br />
<br />
===Gnomebaker===<br />
<br />
Gnomebaker is a solution to CD burning if you are using [[Gnome]].<br />
'''Gnomebaker is no longer maintained upstream as the author of the program has indicated. Consider using [http://wiki.archlinux.org/index.php/CD_Burning_Tips#Brasero Brasero] instead.'''<br />
<br />
* Install gnomebaker with pacman.<br />
<br />
<br />
# pacman -Sy gnomebaker<br />
<br />
<br />
* Run <code>gnomebaker</code> to run the main program.<br />
<br />
===Brasero===<br />
<br />
Brasero is another solution to CD burning if you are using [[Gnome]].<br />
<br />
* Install brasero with pacman.<br />
<br />
<br />
# pacman -Sy brasero<br />
<br />
<br />
* Run <code>brasero</code> to run the main program.<br />
<br />
===Graveman===<br />
Graveman is a simple and almost dependency-free application for burning CDs.<br />
<br />
* Install graveman with pacman.<br />
<br />
<br />
# pacman -Sy graveman<br />
<br />
<br />
* As root, run graveman, go to menu File > Preferences... > Devices and add your CD burners.<br />
* Note that you may have to manually add your own device in Graveman's preferences and point it at /dev/cdrom instead of /dev/hdc<br />
* Run <code>graveman</code> to run the main program.<br />
<br />
===Bashburn===<br />
<br />
Alternatively theres also [http://bashburn.sourceforge.net/ Bashburn] in [http://aur.archlinux.org/packages.php?do_Details=1&ID=3658&O=0&L=0&C=0&K=bashburn&SB=n&SO=a&PP=25&do_MyPackages=0&do_Orphans=0&SeB=nd AUR] as a semi-gui solution. BashBurn is the new name for the cd burning shell script Magma. It's not the best looking CD-burning application out there, but it does what you want it to do.<br />
<br />
==故障处理方法==<br />
<br />
===PATA and SATA problems around 2.6.20/2.6.21===<br />
<br />
For some kernels on some machines, CD burning works very unreliably. This is not fully diagnosed but appears to be related to DMA and having SATA Hard Drives and older IDE CD/DVD Burners and is possibly more prevalent on PIIX Motherboards. On newer kernels there is a new driver whereby the CD/DVD Burner behaves as if it is a SCSI drive, even though it isn't. <br />
<br />
The symptom for this problem is an almost total refusal to burn anything at all. It 'seems' to work fine, but if you verify the burn it invariably fails. If this is happening to you and you have an IDE burner try this fix.<br />
<br />
You will need to install mkinitcpio as described here,[[Configuring_mkinitcpio]] so you can rebuild the kernel. You now need to reconfigure your /etc/mkinitcpio.conf file to reuse the old IDE drivers.<br />
<br />
gedit /etc/mkinitcpio.conf<br />
<br />
Find the line:<br />
<br />
MODULES="ata_generic ata_piix"<br />
<br />
and change it to (insert piix in the front)<br />
<br />
MODULES="piix ata_generic ata_piix"<br />
<br />
Then, find the line:<br />
<br />
HOOKS="base udev autodetect pata scsi sata usbinput keymap filesystems"<br />
<br />
and change that to (replace pata with ide)<br />
<br />
HOOKS="base udev autodetect ide scsi sata usbinput keymap filesystems"<br />
<br />
Use mkinitcpio to rebuild the kernel as described in it's own wiki page, and reboot. In brief :<br />
<br />
mkinitcpio -g /boot/kernel26.img</div>Doubhuahttps://wiki.archlinux.org/index.php?title=CD_Burning_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)&diff=50047CD Burning (简体中文)2008-09-25T15:33:24Z<p>Doubhua: </p>
<hr />
<div>[[Category:Optical (English)]]<br />
[[Category:Utilities (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|CD Burning Tips}}<br />
{{i18n_entry|Italiano|CD Burning Tips (Italiano)}}<br />
{{i18n_entry|简体中文|光盘刻录技巧}}<br />
{{i18n_links_end}}<br />
{{translateme}}<br />
<br />
本文描述了一些光盘刻录的技巧。<br />
<br />
== 命令行的光盘刻录工具 == <br />
===安装光盘刻录工具集===<br />
<br />
# pacman -Sy cdrkit<br />
<br />
如果你希望使用<tt>cdrdao</tt> (把文件cue/bin写到光盘上)<br />
# pacman -S cdrdao<br />
<br />
===设置权限===<br />
如果希望使用cd/dvd烧录设备的话必须要有它们的访问权限。如果要使用[[udev]](Archlinux内核的默认值),你只需要把这个(或多个)用户加入到optical组中:<br />
# gpasswd -a <username> optical<br />
然后别忘了注销后再登录一次。<br />
<br />
===修改CD-RW中的内容===<br />
本节假设你的刻录设备是/dev/cdrw。如果你不是这种情况,那么请对命令做相应的修改。为了能在光盘中写入内容必须先卸载。如果没有卸载,<code>wodim</code>会给出错误提示。<br />
<br />
===擦除CD-RW中的内容===<br />
CD-RW往往需要先擦除已经存在的内容然后再写入新的数据。使用以下命令来清空cd-rw中的内容:<br />
wodim -v dev=/dev/cdrw -blank=fast<br />
正如你可能猜想的,这个命令可以很快的清空光盘,但是你还可以使用一些其它的选项,只需把''fast''替换为下面的即可:<br />
<br />
;all : 清空整个光盘<br />
;disc : 清空整个光盘<br />
;disk:清空整个光盘<br />
;fast:最低限度的清空整个光盘(PMA,TOC,pregap)<br />
;minimal:最低限度的清空整个光盘(PMA,TOC,pregap)<br />
;track:清空一个磁道<br />
;unreserve:unreserve a track<br />
;trtail:blank a track tail<br />
;unclose:unclose last session<br />
;session:blank last session<br />
<br />
===刻录一个iso镜像===<br />
要刻录一个iso镜像,运行:<br />
wodim -v dev=/dev/cdrw isoimage.iso<br />
<br />
===刻录bin/cue===<br />
<br />
要刻录bin/cue,运行:<br />
cdrdao write --device /dev/cdrw image.cue<br />
<br />
===从光盘生成一个iso镜像===<br />
要复制一个光盘只需键入:<br />
dd if=/dev/cdrw of=/home/user/isoimage.iso<br />
或者使用更简单的输入:<br />
cat /dev/cdrw > isoimage.iso<br />
<br />
或者使用程序readcd(同样在cdrkit包中)<br />
readcd -v dev=/dev/cdrw -f isoimage.iso<br />
<br />
如果原光盘是能够启动电脑的,那么生成的镜像也是能够启动电脑的。<br />
<br />
===从硬盘上的文件生成一个iso镜像===<br />
<br />
要生成iso镜像只需要拷贝需要的文件到一个文件夹,然后输入:<br />
mkisofs -V volume_name -J -r -o isoimage.iso ~/folder<br />
<br />
===挂载iso镜像===<br />
<br />
要测试iso镜像是否是正确的,你先要挂载它(用root身份):<br />
mount -t iso9660 -o ro,loop=/dev/loop0 cd_image /cdrom<br />
<br />
你首先需要装入loop模块:<br />
modprobe loop<br />
<br />
===转换成iso镜像===<br />
<br />
为了转换一个 .img / ccd 镜像,你需要使用ccd2iso:<br />
<br />
pacman -Sy ccd2iso<br />
<br />
ccd2iso /home/archman/image.img /home/archman/image.iso<br />
<br />
== 图形界面的光盘刻录软件 ==<br />
<br />
在图形环境中有一些软件可以用于光盘刻录。使用这些软件的方法都是很直观的。<br />
===Nero Linux版===<br />
和Windows上面的Nero一样。[http://www.nero.com/eng/NeroLINUX.html Official link]|[http://aur.archlinux.org/packages.php?do_Details=1&ID=2153 AUR package]<br />
<br />
它不是免费的,而且界面也没有windows版本的好。3.0.0 beta版还不能正确的制作可启动电脑的文件光盘。<br />
<br />
如果你恰好有一个不被dvd+rw工具集支持的刻录光驱(也包括k3b和其它所有免费的图形界面工具),那么nero也许就是你唯一的选择。<br />
<br />
===K3B===<br />
根据[http://www.k3b.org http://www.k3b.org],k3b是为KDE优化的CD/DVD制作工具(“CD/DVD Kreator for Linux”)。K3B使用 [[wikipedia:Qt (toolkit)|QT] 工具集。<br />
* 使用pacman来安装k3b<br />
<br />
# pacman -Sy k3b<br />
<br />
* 在root下,运行<code>k3bsetup</code>,<br />
* 现在你可以设置你的权限等。<br />
* 运行<code>k3b</code>来执行主程序。<br />
<br />
====本地化====<br />
When running K3B, if the following message appears<br />
<br />
System locale charset is ANSI_X3.4-1968<br />
Your system's locale charset (i.e. the charset used to encode filenames) is <br />
set to ANSI_X3.4-1968. It is highly unlikely that this has been done intentionally.<br />
Most likely the locale is not set at all. An invalid setting will result in<br />
problems when creating data projects.Solution: To properly set the locale <br />
charset make sure the LC_* environment variables are set. Normally the distribution <br />
setup tools take care of this.<br />
<br />
It means that your locale is not set well.<br />
<br />
To fix it,<br />
* Remove <code>/etc/locale.gen</code><br />
# rm /etc/locale.gen<br />
* Re-install <code>glibc</code><br />
# pacman -Sy glibc<br />
* Edit <code>/etc/locale.gen</code>, uncommenting all lines lines that corresponds to your language AND the <code>en_US</code> options, for compatibility.<br />
# nano /etc/locale.gen<br />
<br />
en_US.UTF-8 UTF-8<br />
en_US ISO-8859-1<br />
<br />
* Re-generate the profiles with <code>locale-gen</code><br />
# locale-gen<br />
<br />
Generating locales...<br />
en_US.UTF-8... done<br />
en_US.ISO-8859-1... done<br />
pt_BR.UTF-8... done<br />
pt_BR.ISO-8859-1... done<br />
Generation complete.<br />
<br />
More info [http://bbs.archlinux.org/viewtopic.php?pid=251512%29; here]<br />
<br />
==== K3B 报告没有光盘刻录设备 ====<br />
A common cause of this is the current user have no privileges for that.<br />
You can try to:<br />
* Add the user to the group <code>optical</code> (remember to re-login after this)<br />
gpasswd -a <user> optical<br />
* Set permissions to devices<br />
chmod 777 /dev/dvd*<br />
chmod 777 /dev/cd*<br />
<br />
Other causes, steps, look on the current guide (;<br />
<br />
===Gnomebaker===<br />
<br />
Gnomebaker is a solution to CD burning if you are using [[Gnome]].<br />
'''Gnomebaker is no longer maintained upstream as the author of the program has indicated. Consider using [http://wiki.archlinux.org/index.php/CD_Burning_Tips#Brasero Brasero] instead.'''<br />
<br />
* Install gnomebaker with pacman.<br />
<br />
<br />
# pacman -Sy gnomebaker<br />
<br />
<br />
* Run <code>gnomebaker</code> to run the main program.<br />
<br />
===Brasero===<br />
<br />
Brasero is another solution to CD burning if you are using [[Gnome]].<br />
<br />
* Install brasero with pacman.<br />
<br />
<br />
# pacman -Sy brasero<br />
<br />
<br />
* Run <code>brasero</code> to run the main program.<br />
<br />
===Graveman===<br />
Graveman is a simple and almost dependency-free application for burning CDs.<br />
<br />
* Install graveman with pacman.<br />
<br />
<br />
# pacman -Sy graveman<br />
<br />
<br />
* As root, run graveman, go to menu File > Preferences... > Devices and add your CD burners.<br />
* Note that you may have to manually add your own device in Graveman's preferences and point it at /dev/cdrom instead of /dev/hdc<br />
* Run <code>graveman</code> to run the main program.<br />
<br />
===Bashburn===<br />
<br />
Alternatively theres also [http://bashburn.sourceforge.net/ Bashburn] in [http://aur.archlinux.org/packages.php?do_Details=1&ID=3658&O=0&L=0&C=0&K=bashburn&SB=n&SO=a&PP=25&do_MyPackages=0&do_Orphans=0&SeB=nd AUR] as a semi-gui solution. BashBurn is the new name for the cd burning shell script Magma. It's not the best looking CD-burning application out there, but it does what you want it to do.<br />
<br />
==故障处理方法==<br />
<br />
===PATA and SATA problems around 2.6.20/2.6.21===<br />
<br />
For some kernels on some machines, CD burning works very unreliably. This is not fully diagnosed but appears to be related to DMA and having SATA Hard Drives and older IDE CD/DVD Burners and is possibly more prevalent on PIIX Motherboards. On newer kernels there is a new driver whereby the CD/DVD Burner behaves as if it is a SCSI drive, even though it isn't. <br />
<br />
The symptom for this problem is an almost total refusal to burn anything at all. It 'seems' to work fine, but if you verify the burn it invariably fails. If this is happening to you and you have an IDE burner try this fix.<br />
<br />
You will need to install mkinitcpio as described here,[[Configuring_mkinitcpio]] so you can rebuild the kernel. You now need to reconfigure your /etc/mkinitcpio.conf file to reuse the old IDE drivers.<br />
<br />
gedit /etc/mkinitcpio.conf<br />
<br />
Find the line:<br />
<br />
MODULES="ata_generic ata_piix"<br />
<br />
and change it to (insert piix in the front)<br />
<br />
MODULES="piix ata_generic ata_piix"<br />
<br />
Then, find the line:<br />
<br />
HOOKS="base udev autodetect pata scsi sata usbinput keymap filesystems"<br />
<br />
and change that to (replace pata with ide)<br />
<br />
HOOKS="base udev autodetect ide scsi sata usbinput keymap filesystems"<br />
<br />
Use mkinitcpio to rebuild the kernel as described in it's own wiki page, and reboot. In brief :<br />
<br />
mkinitcpio -g /boot/kernel26.img</div>Doubhuahttps://wiki.archlinux.org/index.php?title=CD_Burning_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)&diff=50046CD Burning (简体中文)2008-09-25T15:26:56Z<p>Doubhua: /* Burning CDs with a GUI */</p>
<hr />
<div>[[Category:Optical (English)]]<br />
[[Category:Utilities (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|CD Burning Tips}}<br />
{{i18n_entry|Italiano|CD Burning Tips (Italiano)}}<br />
{{i18n_entry|简体中文|光盘刻录技巧}}<br />
{{i18n_links_end}}<br />
{{translateme}}<br />
<br />
本文描述了一些光盘刻录的技巧。<br />
<br />
== 命令行的光盘刻录工具 == <br />
===安装光盘刻录工具集===<br />
<br />
# pacman -Sy cdrkit<br />
<br />
如果你希望使用<tt>cdrdao</tt> (把文件cue/bin写到光盘上)<br />
# pacman -S cdrdao<br />
<br />
===设置权限===<br />
如果希望使用cd/dvd烧录设备的话必须要有它们的访问权限。如果要使用[[udev]](Archlinux内核的默认值),你只需要把这个(或多个)用户加入到optical组中:<br />
# gpasswd -a <username> optical<br />
然后别忘了注销后再登录一次。<br />
<br />
===修改CD-RW中的内容===<br />
本节假设你的刻录设备是/dev/cdrw。如果你不是这种情况,那么请对命令做相应的修改。为了能在光盘中写入内容必须先卸载。如果没有卸载,<code>wodim</code>会给出错误提示。<br />
<br />
===擦除CD-RW中的内容===<br />
CD-RW往往需要先擦除已经存在的内容然后再写入新的数据。使用以下命令来清空cd-rw中的内容:<br />
wodim -v dev=/dev/cdrw -blank=fast<br />
正如你可能猜想的,这个命令可以很快的清空光盘,但是你还可以使用一些其它的选项,只需把''fast''替换为下面的即可:<br />
<br />
;all : 清空整个光盘<br />
;disc : 清空整个光盘<br />
;disk:清空整个光盘<br />
;fast:最低限度的清空整个光盘(PMA,TOC,pregap)<br />
;minimal:最低限度的清空整个光盘(PMA,TOC,pregap)<br />
;track:清空一个磁道<br />
;unreserve:unreserve a track<br />
;trtail:blank a track tail<br />
;unclose:unclose last session<br />
;session:blank last session<br />
<br />
===刻录一个iso镜像===<br />
要刻录一个iso镜像,运行:<br />
wodim -v dev=/dev/cdrw isoimage.iso<br />
<br />
===刻录bin/cue===<br />
<br />
要刻录bin/cue,运行:<br />
cdrdao write --device /dev/cdrw image.cue<br />
<br />
===从光盘生成一个iso镜像===<br />
要复制一个光盘只需键入:<br />
dd if=/dev/cdrw of=/home/user/isoimage.iso<br />
或者使用更简单的输入:<br />
cat /dev/cdrw > isoimage.iso<br />
<br />
或者使用程序readcd(同样在cdrkit包中)<br />
readcd -v dev=/dev/cdrw -f isoimage.iso<br />
<br />
如果原光盘是能够启动电脑的,那么生成的镜像也是能够启动电脑的。<br />
<br />
===从硬盘上的文件生成一个iso镜像===<br />
<br />
要生成iso镜像只需要拷贝需要的文件到一个文件夹,然后输入:<br />
mkisofs -V volume_name -J -r -o isoimage.iso ~/folder<br />
<br />
===挂载iso镜像===<br />
<br />
要测试iso镜像是否是正确的,你先要挂载它(用root身份):<br />
mount -t iso9660 -o ro,loop=/dev/loop0 cd_image /cdrom<br />
<br />
你首先需要装入loop模块:<br />
modprobe loop<br />
<br />
===转换成iso镜像===<br />
<br />
为了转换一个 .img / ccd 镜像,你需要使用ccd2iso:<br />
<br />
pacman -Sy ccd2iso<br />
<br />
ccd2iso /home/archman/image.img /home/archman/image.iso<br />
<br />
== 使用图形界面的软件来刻录光盘 ==<br />
<br />
在图形环境中有一些软件可以用于光盘刻录。使用这些软件的方法都是很直观的。<br />
===Nero Linux版===<br />
和Windows上面的Nero一样。[http://www.nero.com/eng/NeroLINUX.html Official link]|[http://aur.archlinux.org/packages.php?do_Details=1&ID=2153 AUR package]<br />
<br />
它不是免费的,而且界面也没有windows版本的好。3.0.0 beta版还不能正确的制作可启动电脑的文件光盘。<br />
<br />
如果你恰好有一个不被dvd+rw工具集支持的刻录光驱(也包括k3b和其它所有免费的图形界面工具),那么nero也许就是你唯一的选择。<br />
<br />
===K3B===<br />
根据[http://www.k3b.org http://www.k3b.org],k3b是为KDE优化的“CD/DVD Kreator for Linux”。K3B使用[[wikipedia:Qt (toolkit)|QT]工具集。<br />
* 使用pacman来安装k3b<br />
<br />
# pacman -Sy k3b<br />
<br />
* 在root下,运行<code>k3bsetup</code>,<br />
* 现在你可以设置你的权限等。<br />
* 运行<code>k3b</code>来执行主程序。<br />
<br />
====About Locale====<br />
When running K3B, if the following message appears<br />
<br />
System locale charset is ANSI_X3.4-1968<br />
Your system's locale charset (i.e. the charset used to encode filenames) is <br />
set to ANSI_X3.4-1968. It is highly unlikely that this has been done intentionally.<br />
Most likely the locale is not set at all. An invalid setting will result in<br />
problems when creating data projects.Solution: To properly set the locale <br />
charset make sure the LC_* environment variables are set. Normally the distribution <br />
setup tools take care of this.<br />
<br />
It means that your locale is not set well.<br />
<br />
To fix it,<br />
* Remove <code>/etc/locale.gen</code><br />
# rm /etc/locale.gen<br />
* Re-install <code>glibc</code><br />
# pacman -Sy glibc<br />
* Edit <code>/etc/locale.gen</code>, uncommenting all lines lines that corresponds to your language AND the <code>en_US</code> options, for compatibility.<br />
# nano /etc/locale.gen<br />
<br />
en_US.UTF-8 UTF-8<br />
en_US ISO-8859-1<br />
<br />
* Re-generate the profiles with <code>locale-gen</code><br />
# locale-gen<br />
<br />
Generating locales...<br />
en_US.UTF-8... done<br />
en_US.ISO-8859-1... done<br />
pt_BR.UTF-8... done<br />
pt_BR.ISO-8859-1... done<br />
Generation complete.<br />
<br />
More info [http://bbs.archlinux.org/viewtopic.php?pid=251512%29; here]<br />
<br />
==== K3B says that there's no Burning Devices ====<br />
A common cause of this is the current user have no privileges for that.<br />
You can try to:<br />
* Add the user to the group <code>optical</code> (remember to re-login after this)<br />
gpasswd -a <user> optical<br />
* Set permissions to devices<br />
chmod 777 /dev/dvd*<br />
chmod 777 /dev/cd*<br />
<br />
Other causes, steps, look on the current guide (;<br />
<br />
===Gnomebaker===<br />
<br />
Gnomebaker is a solution to CD burning if you are using [[Gnome]].<br />
'''Gnomebaker is no longer maintained upstream as the author of the program has indicated. Consider using [http://wiki.archlinux.org/index.php/CD_Burning_Tips#Brasero Brasero] instead.'''<br />
<br />
* Install gnomebaker with pacman.<br />
<br />
<br />
# pacman -Sy gnomebaker<br />
<br />
<br />
* Run <code>gnomebaker</code> to run the main program.<br />
<br />
===Brasero===<br />
<br />
Brasero is another solution to CD burning if you are using [[Gnome]].<br />
<br />
* Install brasero with pacman.<br />
<br />
<br />
# pacman -Sy brasero<br />
<br />
<br />
* Run <code>brasero</code> to run the main program.<br />
<br />
===Graveman===<br />
Graveman is a simple and almost dependency-free application for burning CDs.<br />
<br />
* Install graveman with pacman.<br />
<br />
<br />
# pacman -Sy graveman<br />
<br />
<br />
* As root, run graveman, go to menu File > Preferences... > Devices and add your CD burners.<br />
* Note that you may have to manually add your own device in Graveman's preferences and point it at /dev/cdrom instead of /dev/hdc<br />
* Run <code>graveman</code> to run the main program.<br />
<br />
===Bashburn===<br />
<br />
Alternatively theres also [http://bashburn.sourceforge.net/ Bashburn] in [http://aur.archlinux.org/packages.php?do_Details=1&ID=3658&O=0&L=0&C=0&K=bashburn&SB=n&SO=a&PP=25&do_MyPackages=0&do_Orphans=0&SeB=nd AUR] as a semi-gui solution. BashBurn is the new name for the cd burning shell script Magma. It's not the best looking CD-burning application out there, but it does what you want it to do.<br />
<br />
==Troubleshooting==<br />
<br />
===PATA and SATA problems around 2.6.20/2.6.21===<br />
<br />
For some kernels on some machines, CD burning works very unreliably. This is not fully diagnosed but appears to be related to DMA and having SATA Hard Drives and older IDE CD/DVD Burners and is possibly more prevalent on PIIX Motherboards. On newer kernels there is a new driver whereby the CD/DVD Burner behaves as if it is a SCSI drive, even though it isn't. <br />
<br />
The symptom for this problem is an almost total refusal to burn anything at all. It 'seems' to work fine, but if you verify the burn it invariably fails. If this is happening to you and you have an IDE burner try this fix.<br />
<br />
You will need to install mkinitcpio as described here,[[Configuring_mkinitcpio]] so you can rebuild the kernel. You now need to reconfigure your /etc/mkinitcpio.conf file to reuse the old IDE drivers.<br />
<br />
gedit /etc/mkinitcpio.conf<br />
<br />
Find the line:<br />
<br />
MODULES="ata_generic ata_piix"<br />
<br />
and change it to (insert piix in the front)<br />
<br />
MODULES="piix ata_generic ata_piix"<br />
<br />
Then, find the line:<br />
<br />
HOOKS="base udev autodetect pata scsi sata usbinput keymap filesystems"<br />
<br />
and change that to (replace pata with ide)<br />
<br />
HOOKS="base udev autodetect ide scsi sata usbinput keymap filesystems"<br />
<br />
Use mkinitcpio to rebuild the kernel as described in it's own wiki page, and reboot. In brief :<br />
<br />
mkinitcpio -g /boot/kernel26.img</div>Doubhuahttps://wiki.archlinux.org/index.php?title=CD_Burning_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)&diff=50045CD Burning (简体中文)2008-09-25T15:13:26Z<p>Doubhua: /* 转换成iso镜像Converting to iso-image */</p>
<hr />
<div>[[Category:Optical (English)]]<br />
[[Category:Utilities (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|CD Burning Tips}}<br />
{{i18n_entry|Italiano|CD Burning Tips (Italiano)}}<br />
{{i18n_entry|简体中文|光盘刻录技巧}}<br />
{{i18n_links_end}}<br />
{{translateme}}<br />
<br />
本文描述了一些光盘刻录的技巧。<br />
<br />
== 命令行的光盘刻录工具 == <br />
===安装光盘刻录工具集===<br />
<br />
# pacman -Sy cdrkit<br />
<br />
如果你希望使用<tt>cdrdao</tt> (把文件cue/bin写到光盘上)<br />
# pacman -S cdrdao<br />
<br />
===设置权限===<br />
如果希望使用cd/dvd烧录设备的话必须要有它们的访问权限。如果要使用[[udev]](Archlinux内核的默认值),你只需要把这个(或多个)用户加入到optical组中:<br />
# gpasswd -a <username> optical<br />
然后别忘了注销后再登录一次。<br />
<br />
===修改CD-RW中的内容===<br />
本节假设你的刻录设备是/dev/cdrw。如果你不是这种情况,那么请对命令做相应的修改。为了能在光盘中写入内容必须先卸载。如果没有卸载,<code>wodim</code>会给出错误提示。<br />
<br />
===擦除CD-RW中的内容===<br />
CD-RW往往需要先擦除已经存在的内容然后再写入新的数据。使用以下命令来清空cd-rw中的内容:<br />
wodim -v dev=/dev/cdrw -blank=fast<br />
正如你可能猜想的,这个命令可以很快的清空光盘,但是你还可以使用一些其它的选项,只需把''fast''替换为下面的即可:<br />
<br />
;all : 清空整个光盘<br />
;disc : 清空整个光盘<br />
;disk:清空整个光盘<br />
;fast:最低限度的清空整个光盘(PMA,TOC,pregap)<br />
;minimal:最低限度的清空整个光盘(PMA,TOC,pregap)<br />
;track:清空一个磁道<br />
;unreserve:unreserve a track<br />
;trtail:blank a track tail<br />
;unclose:unclose last session<br />
;session:blank last session<br />
<br />
===刻录一个iso镜像===<br />
要刻录一个iso镜像,运行:<br />
wodim -v dev=/dev/cdrw isoimage.iso<br />
<br />
===刻录bin/cue===<br />
<br />
要刻录bin/cue,运行:<br />
cdrdao write --device /dev/cdrw image.cue<br />
<br />
===从光盘生成一个iso镜像===<br />
要复制一个光盘只需键入:<br />
dd if=/dev/cdrw of=/home/user/isoimage.iso<br />
或者使用更简单的输入:<br />
cat /dev/cdrw > isoimage.iso<br />
<br />
或者使用程序readcd(同样在cdrkit包中)<br />
readcd -v dev=/dev/cdrw -f isoimage.iso<br />
<br />
如果原光盘是能够启动电脑的,那么生成的镜像也是能够启动电脑的。<br />
<br />
===从硬盘上的文件生成一个iso镜像===<br />
<br />
要生成iso镜像只需要拷贝需要的文件到一个文件夹,然后输入:<br />
mkisofs -V volume_name -J -r -o isoimage.iso ~/folder<br />
<br />
===挂载iso镜像===<br />
<br />
要测试iso镜像是否是正确的,你先要挂载它(用root身份):<br />
mount -t iso9660 -o ro,loop=/dev/loop0 cd_image /cdrom<br />
<br />
你首先需要装入loop模块:<br />
modprobe loop<br />
<br />
===转换成iso镜像===<br />
<br />
为了转换一个 .img / ccd 镜像,你需要使用ccd2iso:<br />
<br />
pacman -Sy ccd2iso<br />
<br />
ccd2iso /home/archman/image.img /home/archman/image.iso<br />
<br />
== Burning CDs with a GUI ==<br />
There are several applications available to burn CDs in a graphical environment. The use of these programs are self-explanatory.<br />
===Nero Linux===<br />
Just the same Nero on windows. [http://www.nero.com/eng/NeroLINUX.html Official link]|[http://aur.archlinux.org/packages.php?do_Details=1&ID=2153 AUR package]<br />
<br />
It's not free and the UI is not as good as the windows version. Also, 3.0.0 beta can't burn bootable cd from files correctly.<br />
<br />
If you happen to have a DVD-burner unsupported by dvd+rw-tools (which also means k3b and all other free GUIs), nero would be your only choice.<br />
<br />
===K3B===<br />
According to [http://www.k3b.org http://www.k3b.org], k3b is "The CD/DVD Kreator for Linux - optimized for KDE". K3B uses the [[wikipedia:Qt (toolkit)|QT]] toolkit.<br />
* Install k3b with pacman.<br />
<br />
# pacman -Sy k3b<br />
<br />
* As root, run <code>k3bsetup</code>,<br />
* Here you can set up your preferences about permissions etc.<br />
* Run <code>k3b</code> to run the main program.<br />
<br />
====About Locale====<br />
When running K3B, if the following message appears<br />
<br />
System locale charset is ANSI_X3.4-1968<br />
Your system's locale charset (i.e. the charset used to encode filenames) is <br />
set to ANSI_X3.4-1968. It is highly unlikely that this has been done intentionally.<br />
Most likely the locale is not set at all. An invalid setting will result in<br />
problems when creating data projects.Solution: To properly set the locale <br />
charset make sure the LC_* environment variables are set. Normally the distribution <br />
setup tools take care of this.<br />
<br />
It means that your locale is not set well.<br />
<br />
To fix it,<br />
* Remove <code>/etc/locale.gen</code><br />
# rm /etc/locale.gen<br />
* Re-install <code>glibc</code><br />
# pacman -Sy glibc<br />
* Edit <code>/etc/locale.gen</code>, uncommenting all lines lines that corresponds to your language AND the <code>en_US</code> options, for compatibility.<br />
# nano /etc/locale.gen<br />
<br />
en_US.UTF-8 UTF-8<br />
en_US ISO-8859-1<br />
<br />
* Re-generate the profiles with <code>locale-gen</code><br />
# locale-gen<br />
<br />
Generating locales...<br />
en_US.UTF-8... done<br />
en_US.ISO-8859-1... done<br />
pt_BR.UTF-8... done<br />
pt_BR.ISO-8859-1... done<br />
Generation complete.<br />
<br />
More info [http://bbs.archlinux.org/viewtopic.php?pid=251512%29; here]<br />
<br />
==== K3B says that there's no Burning Devices ====<br />
A common cause of this is the current user have no privileges for that.<br />
You can try to:<br />
* Add the user to the group <code>optical</code> (remember to re-login after this)<br />
gpasswd -a <user> optical<br />
* Set permissions to devices<br />
chmod 777 /dev/dvd*<br />
chmod 777 /dev/cd*<br />
<br />
Other causes, steps, look on the current guide (;<br />
<br />
===Gnomebaker===<br />
<br />
Gnomebaker is a solution to CD burning if you are using [[Gnome]].<br />
'''Gnomebaker is no longer maintained upstream as the author of the program has indicated. Consider using [http://wiki.archlinux.org/index.php/CD_Burning_Tips#Brasero Brasero] instead.'''<br />
<br />
* Install gnomebaker with pacman.<br />
<br />
<br />
# pacman -Sy gnomebaker<br />
<br />
<br />
* Run <code>gnomebaker</code> to run the main program.<br />
<br />
===Brasero===<br />
<br />
Brasero is another solution to CD burning if you are using [[Gnome]].<br />
<br />
* Install brasero with pacman.<br />
<br />
<br />
# pacman -Sy brasero<br />
<br />
<br />
* Run <code>brasero</code> to run the main program.<br />
<br />
===Graveman===<br />
Graveman is a simple and almost dependency-free application for burning CDs.<br />
<br />
* Install graveman with pacman.<br />
<br />
<br />
# pacman -Sy graveman<br />
<br />
<br />
* As root, run graveman, go to menu File > Preferences... > Devices and add your CD burners.<br />
* Note that you may have to manually add your own device in Graveman's preferences and point it at /dev/cdrom instead of /dev/hdc<br />
* Run <code>graveman</code> to run the main program.<br />
<br />
===Bashburn===<br />
<br />
Alternatively theres also [http://bashburn.sourceforge.net/ Bashburn] in [http://aur.archlinux.org/packages.php?do_Details=1&ID=3658&O=0&L=0&C=0&K=bashburn&SB=n&SO=a&PP=25&do_MyPackages=0&do_Orphans=0&SeB=nd AUR] as a semi-gui solution. BashBurn is the new name for the cd burning shell script Magma. It's not the best looking CD-burning application out there, but it does what you want it to do.<br />
<br />
==Troubleshooting==<br />
<br />
===PATA and SATA problems around 2.6.20/2.6.21===<br />
<br />
For some kernels on some machines, CD burning works very unreliably. This is not fully diagnosed but appears to be related to DMA and having SATA Hard Drives and older IDE CD/DVD Burners and is possibly more prevalent on PIIX Motherboards. On newer kernels there is a new driver whereby the CD/DVD Burner behaves as if it is a SCSI drive, even though it isn't. <br />
<br />
The symptom for this problem is an almost total refusal to burn anything at all. It 'seems' to work fine, but if you verify the burn it invariably fails. If this is happening to you and you have an IDE burner try this fix.<br />
<br />
You will need to install mkinitcpio as described here,[[Configuring_mkinitcpio]] so you can rebuild the kernel. You now need to reconfigure your /etc/mkinitcpio.conf file to reuse the old IDE drivers.<br />
<br />
gedit /etc/mkinitcpio.conf<br />
<br />
Find the line:<br />
<br />
MODULES="ata_generic ata_piix"<br />
<br />
and change it to (insert piix in the front)<br />
<br />
MODULES="piix ata_generic ata_piix"<br />
<br />
Then, find the line:<br />
<br />
HOOKS="base udev autodetect pata scsi sata usbinput keymap filesystems"<br />
<br />
and change that to (replace pata with ide)<br />
<br />
HOOKS="base udev autodetect ide scsi sata usbinput keymap filesystems"<br />
<br />
Use mkinitcpio to rebuild the kernel as described in it's own wiki page, and reboot. In brief :<br />
<br />
mkinitcpio -g /boot/kernel26.img</div>Doubhuahttps://wiki.archlinux.org/index.php?title=CD_Burning_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)&diff=50044CD Burning (简体中文)2008-09-25T15:13:06Z<p>Doubhua: /* Converting to iso-image */</p>
<hr />
<div>[[Category:Optical (English)]]<br />
[[Category:Utilities (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|CD Burning Tips}}<br />
{{i18n_entry|Italiano|CD Burning Tips (Italiano)}}<br />
{{i18n_entry|简体中文|光盘刻录技巧}}<br />
{{i18n_links_end}}<br />
{{translateme}}<br />
<br />
本文描述了一些光盘刻录的技巧。<br />
<br />
== 命令行的光盘刻录工具 == <br />
===安装光盘刻录工具集===<br />
<br />
# pacman -Sy cdrkit<br />
<br />
如果你希望使用<tt>cdrdao</tt> (把文件cue/bin写到光盘上)<br />
# pacman -S cdrdao<br />
<br />
===设置权限===<br />
如果希望使用cd/dvd烧录设备的话必须要有它们的访问权限。如果要使用[[udev]](Archlinux内核的默认值),你只需要把这个(或多个)用户加入到optical组中:<br />
# gpasswd -a <username> optical<br />
然后别忘了注销后再登录一次。<br />
<br />
===修改CD-RW中的内容===<br />
本节假设你的刻录设备是/dev/cdrw。如果你不是这种情况,那么请对命令做相应的修改。为了能在光盘中写入内容必须先卸载。如果没有卸载,<code>wodim</code>会给出错误提示。<br />
<br />
===擦除CD-RW中的内容===<br />
CD-RW往往需要先擦除已经存在的内容然后再写入新的数据。使用以下命令来清空cd-rw中的内容:<br />
wodim -v dev=/dev/cdrw -blank=fast<br />
正如你可能猜想的,这个命令可以很快的清空光盘,但是你还可以使用一些其它的选项,只需把''fast''替换为下面的即可:<br />
<br />
;all : 清空整个光盘<br />
;disc : 清空整个光盘<br />
;disk:清空整个光盘<br />
;fast:最低限度的清空整个光盘(PMA,TOC,pregap)<br />
;minimal:最低限度的清空整个光盘(PMA,TOC,pregap)<br />
;track:清空一个磁道<br />
;unreserve:unreserve a track<br />
;trtail:blank a track tail<br />
;unclose:unclose last session<br />
;session:blank last session<br />
<br />
===刻录一个iso镜像===<br />
要刻录一个iso镜像,运行:<br />
wodim -v dev=/dev/cdrw isoimage.iso<br />
<br />
===刻录bin/cue===<br />
<br />
要刻录bin/cue,运行:<br />
cdrdao write --device /dev/cdrw image.cue<br />
<br />
===从光盘生成一个iso镜像===<br />
要复制一个光盘只需键入:<br />
dd if=/dev/cdrw of=/home/user/isoimage.iso<br />
或者使用更简单的输入:<br />
cat /dev/cdrw > isoimage.iso<br />
<br />
或者使用程序readcd(同样在cdrkit包中)<br />
readcd -v dev=/dev/cdrw -f isoimage.iso<br />
<br />
如果原光盘是能够启动电脑的,那么生成的镜像也是能够启动电脑的。<br />
<br />
===从硬盘上的文件生成一个iso镜像===<br />
<br />
要生成iso镜像只需要拷贝需要的文件到一个文件夹,然后输入:<br />
mkisofs -V volume_name -J -r -o isoimage.iso ~/folder<br />
<br />
===挂载iso镜像===<br />
<br />
要测试iso镜像是否是正确的,你先要挂载它(用root身份):<br />
mount -t iso9660 -o ro,loop=/dev/loop0 cd_image /cdrom<br />
<br />
你首先需要装入loop模块:<br />
modprobe loop<br />
<br />
===转换成iso镜像Converting to iso-image===<br />
<br />
为了转换一个 .img / ccd 镜像,你需要使用ccd2iso:<br />
<br />
pacman -Sy ccd2iso<br />
<br />
ccd2iso /home/archman/image.img /home/archman/image.iso<br />
<br />
== Burning CDs with a GUI ==<br />
There are several applications available to burn CDs in a graphical environment. The use of these programs are self-explanatory.<br />
===Nero Linux===<br />
Just the same Nero on windows. [http://www.nero.com/eng/NeroLINUX.html Official link]|[http://aur.archlinux.org/packages.php?do_Details=1&ID=2153 AUR package]<br />
<br />
It's not free and the UI is not as good as the windows version. Also, 3.0.0 beta can't burn bootable cd from files correctly.<br />
<br />
If you happen to have a DVD-burner unsupported by dvd+rw-tools (which also means k3b and all other free GUIs), nero would be your only choice.<br />
<br />
===K3B===<br />
According to [http://www.k3b.org http://www.k3b.org], k3b is "The CD/DVD Kreator for Linux - optimized for KDE". K3B uses the [[wikipedia:Qt (toolkit)|QT]] toolkit.<br />
* Install k3b with pacman.<br />
<br />
# pacman -Sy k3b<br />
<br />
* As root, run <code>k3bsetup</code>,<br />
* Here you can set up your preferences about permissions etc.<br />
* Run <code>k3b</code> to run the main program.<br />
<br />
====About Locale====<br />
When running K3B, if the following message appears<br />
<br />
System locale charset is ANSI_X3.4-1968<br />
Your system's locale charset (i.e. the charset used to encode filenames) is <br />
set to ANSI_X3.4-1968. It is highly unlikely that this has been done intentionally.<br />
Most likely the locale is not set at all. An invalid setting will result in<br />
problems when creating data projects.Solution: To properly set the locale <br />
charset make sure the LC_* environment variables are set. Normally the distribution <br />
setup tools take care of this.<br />
<br />
It means that your locale is not set well.<br />
<br />
To fix it,<br />
* Remove <code>/etc/locale.gen</code><br />
# rm /etc/locale.gen<br />
* Re-install <code>glibc</code><br />
# pacman -Sy glibc<br />
* Edit <code>/etc/locale.gen</code>, uncommenting all lines lines that corresponds to your language AND the <code>en_US</code> options, for compatibility.<br />
# nano /etc/locale.gen<br />
<br />
en_US.UTF-8 UTF-8<br />
en_US ISO-8859-1<br />
<br />
* Re-generate the profiles with <code>locale-gen</code><br />
# locale-gen<br />
<br />
Generating locales...<br />
en_US.UTF-8... done<br />
en_US.ISO-8859-1... done<br />
pt_BR.UTF-8... done<br />
pt_BR.ISO-8859-1... done<br />
Generation complete.<br />
<br />
More info [http://bbs.archlinux.org/viewtopic.php?pid=251512%29; here]<br />
<br />
==== K3B says that there's no Burning Devices ====<br />
A common cause of this is the current user have no privileges for that.<br />
You can try to:<br />
* Add the user to the group <code>optical</code> (remember to re-login after this)<br />
gpasswd -a <user> optical<br />
* Set permissions to devices<br />
chmod 777 /dev/dvd*<br />
chmod 777 /dev/cd*<br />
<br />
Other causes, steps, look on the current guide (;<br />
<br />
===Gnomebaker===<br />
<br />
Gnomebaker is a solution to CD burning if you are using [[Gnome]].<br />
'''Gnomebaker is no longer maintained upstream as the author of the program has indicated. Consider using [http://wiki.archlinux.org/index.php/CD_Burning_Tips#Brasero Brasero] instead.'''<br />
<br />
* Install gnomebaker with pacman.<br />
<br />
<br />
# pacman -Sy gnomebaker<br />
<br />
<br />
* Run <code>gnomebaker</code> to run the main program.<br />
<br />
===Brasero===<br />
<br />
Brasero is another solution to CD burning if you are using [[Gnome]].<br />
<br />
* Install brasero with pacman.<br />
<br />
<br />
# pacman -Sy brasero<br />
<br />
<br />
* Run <code>brasero</code> to run the main program.<br />
<br />
===Graveman===<br />
Graveman is a simple and almost dependency-free application for burning CDs.<br />
<br />
* Install graveman with pacman.<br />
<br />
<br />
# pacman -Sy graveman<br />
<br />
<br />
* As root, run graveman, go to menu File > Preferences... > Devices and add your CD burners.<br />
* Note that you may have to manually add your own device in Graveman's preferences and point it at /dev/cdrom instead of /dev/hdc<br />
* Run <code>graveman</code> to run the main program.<br />
<br />
===Bashburn===<br />
<br />
Alternatively theres also [http://bashburn.sourceforge.net/ Bashburn] in [http://aur.archlinux.org/packages.php?do_Details=1&ID=3658&O=0&L=0&C=0&K=bashburn&SB=n&SO=a&PP=25&do_MyPackages=0&do_Orphans=0&SeB=nd AUR] as a semi-gui solution. BashBurn is the new name for the cd burning shell script Magma. It's not the best looking CD-burning application out there, but it does what you want it to do.<br />
<br />
==Troubleshooting==<br />
<br />
===PATA and SATA problems around 2.6.20/2.6.21===<br />
<br />
For some kernels on some machines, CD burning works very unreliably. This is not fully diagnosed but appears to be related to DMA and having SATA Hard Drives and older IDE CD/DVD Burners and is possibly more prevalent on PIIX Motherboards. On newer kernels there is a new driver whereby the CD/DVD Burner behaves as if it is a SCSI drive, even though it isn't. <br />
<br />
The symptom for this problem is an almost total refusal to burn anything at all. It 'seems' to work fine, but if you verify the burn it invariably fails. If this is happening to you and you have an IDE burner try this fix.<br />
<br />
You will need to install mkinitcpio as described here,[[Configuring_mkinitcpio]] so you can rebuild the kernel. You now need to reconfigure your /etc/mkinitcpio.conf file to reuse the old IDE drivers.<br />
<br />
gedit /etc/mkinitcpio.conf<br />
<br />
Find the line:<br />
<br />
MODULES="ata_generic ata_piix"<br />
<br />
and change it to (insert piix in the front)<br />
<br />
MODULES="piix ata_generic ata_piix"<br />
<br />
Then, find the line:<br />
<br />
HOOKS="base udev autodetect pata scsi sata usbinput keymap filesystems"<br />
<br />
and change that to (replace pata with ide)<br />
<br />
HOOKS="base udev autodetect ide scsi sata usbinput keymap filesystems"<br />
<br />
Use mkinitcpio to rebuild the kernel as described in it's own wiki page, and reboot. In brief :<br />
<br />
mkinitcpio -g /boot/kernel26.img</div>Doubhuahttps://wiki.archlinux.org/index.php?title=CD_Burning_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)&diff=50043CD Burning (简体中文)2008-09-25T15:11:05Z<p>Doubhua: /* 挂载iso镜像 */</p>
<hr />
<div>[[Category:Optical (English)]]<br />
[[Category:Utilities (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|CD Burning Tips}}<br />
{{i18n_entry|Italiano|CD Burning Tips (Italiano)}}<br />
{{i18n_entry|简体中文|光盘刻录技巧}}<br />
{{i18n_links_end}}<br />
{{translateme}}<br />
<br />
本文描述了一些光盘刻录的技巧。<br />
<br />
== 命令行的光盘刻录工具 == <br />
===安装光盘刻录工具集===<br />
<br />
# pacman -Sy cdrkit<br />
<br />
如果你希望使用<tt>cdrdao</tt> (把文件cue/bin写到光盘上)<br />
# pacman -S cdrdao<br />
<br />
===设置权限===<br />
如果希望使用cd/dvd烧录设备的话必须要有它们的访问权限。如果要使用[[udev]](Archlinux内核的默认值),你只需要把这个(或多个)用户加入到optical组中:<br />
# gpasswd -a <username> optical<br />
然后别忘了注销后再登录一次。<br />
<br />
===修改CD-RW中的内容===<br />
本节假设你的刻录设备是/dev/cdrw。如果你不是这种情况,那么请对命令做相应的修改。为了能在光盘中写入内容必须先卸载。如果没有卸载,<code>wodim</code>会给出错误提示。<br />
<br />
===擦除CD-RW中的内容===<br />
CD-RW往往需要先擦除已经存在的内容然后再写入新的数据。使用以下命令来清空cd-rw中的内容:<br />
wodim -v dev=/dev/cdrw -blank=fast<br />
正如你可能猜想的,这个命令可以很快的清空光盘,但是你还可以使用一些其它的选项,只需把''fast''替换为下面的即可:<br />
<br />
;all : 清空整个光盘<br />
;disc : 清空整个光盘<br />
;disk:清空整个光盘<br />
;fast:最低限度的清空整个光盘(PMA,TOC,pregap)<br />
;minimal:最低限度的清空整个光盘(PMA,TOC,pregap)<br />
;track:清空一个磁道<br />
;unreserve:unreserve a track<br />
;trtail:blank a track tail<br />
;unclose:unclose last session<br />
;session:blank last session<br />
<br />
===刻录一个iso镜像===<br />
要刻录一个iso镜像,运行:<br />
wodim -v dev=/dev/cdrw isoimage.iso<br />
<br />
===刻录bin/cue===<br />
<br />
要刻录bin/cue,运行:<br />
cdrdao write --device /dev/cdrw image.cue<br />
<br />
===从光盘生成一个iso镜像===<br />
要复制一个光盘只需键入:<br />
dd if=/dev/cdrw of=/home/user/isoimage.iso<br />
或者使用更简单的输入:<br />
cat /dev/cdrw > isoimage.iso<br />
<br />
或者使用程序readcd(同样在cdrkit包中)<br />
readcd -v dev=/dev/cdrw -f isoimage.iso<br />
<br />
如果原光盘是能够启动电脑的,那么生成的镜像也是能够启动电脑的。<br />
<br />
===从硬盘上的文件生成一个iso镜像===<br />
<br />
要生成iso镜像只需要拷贝需要的文件到一个文件夹,然后输入:<br />
mkisofs -V volume_name -J -r -o isoimage.iso ~/folder<br />
<br />
===挂载iso镜像===<br />
<br />
要测试iso镜像是否是正确的,你先要挂载它(用root身份):<br />
mount -t iso9660 -o ro,loop=/dev/loop0 cd_image /cdrom<br />
<br />
你首先需要装入loop模块:<br />
modprobe loop<br />
<br />
===Converting to iso-image===<br />
<br />
To convert a .img / ccd image, you can use ccd2iso :<br />
<br />
pacman -Sy ccd2iso<br />
<br />
ccd2iso /home/archman/image.img /home/archman/image.iso<br />
<br />
== Burning CDs with a GUI ==<br />
There are several applications available to burn CDs in a graphical environment. The use of these programs are self-explanatory.<br />
===Nero Linux===<br />
Just the same Nero on windows. [http://www.nero.com/eng/NeroLINUX.html Official link]|[http://aur.archlinux.org/packages.php?do_Details=1&ID=2153 AUR package]<br />
<br />
It's not free and the UI is not as good as the windows version. Also, 3.0.0 beta can't burn bootable cd from files correctly.<br />
<br />
If you happen to have a DVD-burner unsupported by dvd+rw-tools (which also means k3b and all other free GUIs), nero would be your only choice.<br />
<br />
===K3B===<br />
According to [http://www.k3b.org http://www.k3b.org], k3b is "The CD/DVD Kreator for Linux - optimized for KDE". K3B uses the [[wikipedia:Qt (toolkit)|QT]] toolkit.<br />
* Install k3b with pacman.<br />
<br />
# pacman -Sy k3b<br />
<br />
* As root, run <code>k3bsetup</code>,<br />
* Here you can set up your preferences about permissions etc.<br />
* Run <code>k3b</code> to run the main program.<br />
<br />
====About Locale====<br />
When running K3B, if the following message appears<br />
<br />
System locale charset is ANSI_X3.4-1968<br />
Your system's locale charset (i.e. the charset used to encode filenames) is <br />
set to ANSI_X3.4-1968. It is highly unlikely that this has been done intentionally.<br />
Most likely the locale is not set at all. An invalid setting will result in<br />
problems when creating data projects.Solution: To properly set the locale <br />
charset make sure the LC_* environment variables are set. Normally the distribution <br />
setup tools take care of this.<br />
<br />
It means that your locale is not set well.<br />
<br />
To fix it,<br />
* Remove <code>/etc/locale.gen</code><br />
# rm /etc/locale.gen<br />
* Re-install <code>glibc</code><br />
# pacman -Sy glibc<br />
* Edit <code>/etc/locale.gen</code>, uncommenting all lines lines that corresponds to your language AND the <code>en_US</code> options, for compatibility.<br />
# nano /etc/locale.gen<br />
<br />
en_US.UTF-8 UTF-8<br />
en_US ISO-8859-1<br />
<br />
* Re-generate the profiles with <code>locale-gen</code><br />
# locale-gen<br />
<br />
Generating locales...<br />
en_US.UTF-8... done<br />
en_US.ISO-8859-1... done<br />
pt_BR.UTF-8... done<br />
pt_BR.ISO-8859-1... done<br />
Generation complete.<br />
<br />
More info [http://bbs.archlinux.org/viewtopic.php?pid=251512%29; here]<br />
<br />
==== K3B says that there's no Burning Devices ====<br />
A common cause of this is the current user have no privileges for that.<br />
You can try to:<br />
* Add the user to the group <code>optical</code> (remember to re-login after this)<br />
gpasswd -a <user> optical<br />
* Set permissions to devices<br />
chmod 777 /dev/dvd*<br />
chmod 777 /dev/cd*<br />
<br />
Other causes, steps, look on the current guide (;<br />
<br />
===Gnomebaker===<br />
<br />
Gnomebaker is a solution to CD burning if you are using [[Gnome]].<br />
'''Gnomebaker is no longer maintained upstream as the author of the program has indicated. Consider using [http://wiki.archlinux.org/index.php/CD_Burning_Tips#Brasero Brasero] instead.'''<br />
<br />
* Install gnomebaker with pacman.<br />
<br />
<br />
# pacman -Sy gnomebaker<br />
<br />
<br />
* Run <code>gnomebaker</code> to run the main program.<br />
<br />
===Brasero===<br />
<br />
Brasero is another solution to CD burning if you are using [[Gnome]].<br />
<br />
* Install brasero with pacman.<br />
<br />
<br />
# pacman -Sy brasero<br />
<br />
<br />
* Run <code>brasero</code> to run the main program.<br />
<br />
===Graveman===<br />
Graveman is a simple and almost dependency-free application for burning CDs.<br />
<br />
* Install graveman with pacman.<br />
<br />
<br />
# pacman -Sy graveman<br />
<br />
<br />
* As root, run graveman, go to menu File > Preferences... > Devices and add your CD burners.<br />
* Note that you may have to manually add your own device in Graveman's preferences and point it at /dev/cdrom instead of /dev/hdc<br />
* Run <code>graveman</code> to run the main program.<br />
<br />
===Bashburn===<br />
<br />
Alternatively theres also [http://bashburn.sourceforge.net/ Bashburn] in [http://aur.archlinux.org/packages.php?do_Details=1&ID=3658&O=0&L=0&C=0&K=bashburn&SB=n&SO=a&PP=25&do_MyPackages=0&do_Orphans=0&SeB=nd AUR] as a semi-gui solution. BashBurn is the new name for the cd burning shell script Magma. It's not the best looking CD-burning application out there, but it does what you want it to do.<br />
<br />
==Troubleshooting==<br />
<br />
===PATA and SATA problems around 2.6.20/2.6.21===<br />
<br />
For some kernels on some machines, CD burning works very unreliably. This is not fully diagnosed but appears to be related to DMA and having SATA Hard Drives and older IDE CD/DVD Burners and is possibly more prevalent on PIIX Motherboards. On newer kernels there is a new driver whereby the CD/DVD Burner behaves as if it is a SCSI drive, even though it isn't. <br />
<br />
The symptom for this problem is an almost total refusal to burn anything at all. It 'seems' to work fine, but if you verify the burn it invariably fails. If this is happening to you and you have an IDE burner try this fix.<br />
<br />
You will need to install mkinitcpio as described here,[[Configuring_mkinitcpio]] so you can rebuild the kernel. You now need to reconfigure your /etc/mkinitcpio.conf file to reuse the old IDE drivers.<br />
<br />
gedit /etc/mkinitcpio.conf<br />
<br />
Find the line:<br />
<br />
MODULES="ata_generic ata_piix"<br />
<br />
and change it to (insert piix in the front)<br />
<br />
MODULES="piix ata_generic ata_piix"<br />
<br />
Then, find the line:<br />
<br />
HOOKS="base udev autodetect pata scsi sata usbinput keymap filesystems"<br />
<br />
and change that to (replace pata with ide)<br />
<br />
HOOKS="base udev autodetect ide scsi sata usbinput keymap filesystems"<br />
<br />
Use mkinitcpio to rebuild the kernel as described in it's own wiki page, and reboot. In brief :<br />
<br />
mkinitcpio -g /boot/kernel26.img</div>Doubhuahttps://wiki.archlinux.org/index.php?title=CD_Burning_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)&diff=50042CD Burning (简体中文)2008-09-25T14:55:18Z<p>Doubhua: /* 刻录一个iso镜像 */</p>
<hr />
<div>[[Category:Optical (English)]]<br />
[[Category:Utilities (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|CD Burning Tips}}<br />
{{i18n_entry|Italiano|CD Burning Tips (Italiano)}}<br />
{{i18n_entry|简体中文|光盘刻录技巧}}<br />
{{i18n_links_end}}<br />
{{translateme}}<br />
<br />
本文描述了一些光盘刻录的技巧。<br />
<br />
== 命令行的光盘刻录工具 == <br />
===安装光盘刻录工具集===<br />
<br />
# pacman -Sy cdrkit<br />
<br />
如果你希望使用<tt>cdrdao</tt> (把文件cue/bin写到光盘上)<br />
# pacman -S cdrdao<br />
<br />
===设置权限===<br />
如果希望使用cd/dvd烧录设备的话必须要有它们的访问权限。如果要使用[[udev]](Archlinux内核的默认值),你只需要把这个(或多个)用户加入到optical组中:<br />
# gpasswd -a <username> optical<br />
然后别忘了注销后再登录一次。<br />
<br />
===修改CD-RW中的内容===<br />
本节假设你的刻录设备是/dev/cdrw。如果你不是这种情况,那么请对命令做相应的修改。为了能在光盘中写入内容必须先卸载。如果没有卸载,<code>wodim</code>会给出错误提示。<br />
<br />
===擦除CD-RW中的内容===<br />
CD-RW往往需要先擦除已经存在的内容然后再写入新的数据。使用以下命令来清空cd-rw中的内容:<br />
wodim -v dev=/dev/cdrw -blank=fast<br />
正如你可能猜想的,这个命令可以很快的清空光盘,但是你还可以使用一些其它的选项,只需把''fast''替换为下面的即可:<br />
<br />
;all : 清空整个光盘<br />
;disc : 清空整个光盘<br />
;disk:清空整个光盘<br />
;fast:最低限度的清空整个光盘(PMA,TOC,pregap)<br />
;minimal:最低限度的清空整个光盘(PMA,TOC,pregap)<br />
;track:清空一个磁道<br />
;unreserve:unreserve a track<br />
;trtail:blank a track tail<br />
;unclose:unclose last session<br />
;session:blank last session<br />
<br />
===刻录一个iso镜像===<br />
要刻录一个iso镜像,运行:<br />
wodim -v dev=/dev/cdrw isoimage.iso<br />
<br />
===刻录bin/cue===<br />
<br />
要刻录bin/cue,运行:<br />
cdrdao write --device /dev/cdrw image.cue<br />
<br />
===从光盘生成一个iso镜像===<br />
要复制一个光盘只需键入:<br />
dd if=/dev/cdrw of=/home/user/isoimage.iso<br />
或者使用更简单的输入:<br />
cat /dev/cdrw > isoimage.iso<br />
<br />
或者使用程序readcd(同样在cdrkit包中)<br />
readcd -v dev=/dev/cdrw -f isoimage.iso<br />
<br />
如果原光盘是能够启动电脑的,那么生成的镜像也是能够启动电脑的。<br />
<br />
===从硬盘上的文件生成一个iso镜像===<br />
<br />
要生成iso镜像只需要拷贝需要的文件到一个文件夹,然后输入:<br />
mkisofs -V volume_name -J -r -o isoimage.iso ~/folder<br />
<br />
===挂载iso镜像===<br />
<br />
To test if the iso image is proper, you can mount it (as root):<br />
mount -t iso9660 -o ro,loop=/dev/loop0 cd_image /cdrom<br />
<br />
You have to first load the loop module:<br />
modprobe loop<br />
<br />
===Converting to iso-image===<br />
<br />
To convert a .img / ccd image, you can use ccd2iso :<br />
<br />
pacman -Sy ccd2iso<br />
<br />
ccd2iso /home/archman/image.img /home/archman/image.iso<br />
<br />
== Burning CDs with a GUI ==<br />
There are several applications available to burn CDs in a graphical environment. The use of these programs are self-explanatory.<br />
===Nero Linux===<br />
Just the same Nero on windows. [http://www.nero.com/eng/NeroLINUX.html Official link]|[http://aur.archlinux.org/packages.php?do_Details=1&ID=2153 AUR package]<br />
<br />
It's not free and the UI is not as good as the windows version. Also, 3.0.0 beta can't burn bootable cd from files correctly.<br />
<br />
If you happen to have a DVD-burner unsupported by dvd+rw-tools (which also means k3b and all other free GUIs), nero would be your only choice.<br />
<br />
===K3B===<br />
According to [http://www.k3b.org http://www.k3b.org], k3b is "The CD/DVD Kreator for Linux - optimized for KDE". K3B uses the [[wikipedia:Qt (toolkit)|QT]] toolkit.<br />
* Install k3b with pacman.<br />
<br />
# pacman -Sy k3b<br />
<br />
* As root, run <code>k3bsetup</code>,<br />
* Here you can set up your preferences about permissions etc.<br />
* Run <code>k3b</code> to run the main program.<br />
<br />
====About Locale====<br />
When running K3B, if the following message appears<br />
<br />
System locale charset is ANSI_X3.4-1968<br />
Your system's locale charset (i.e. the charset used to encode filenames) is <br />
set to ANSI_X3.4-1968. It is highly unlikely that this has been done intentionally.<br />
Most likely the locale is not set at all. An invalid setting will result in<br />
problems when creating data projects.Solution: To properly set the locale <br />
charset make sure the LC_* environment variables are set. Normally the distribution <br />
setup tools take care of this.<br />
<br />
It means that your locale is not set well.<br />
<br />
To fix it,<br />
* Remove <code>/etc/locale.gen</code><br />
# rm /etc/locale.gen<br />
* Re-install <code>glibc</code><br />
# pacman -Sy glibc<br />
* Edit <code>/etc/locale.gen</code>, uncommenting all lines lines that corresponds to your language AND the <code>en_US</code> options, for compatibility.<br />
# nano /etc/locale.gen<br />
<br />
en_US.UTF-8 UTF-8<br />
en_US ISO-8859-1<br />
<br />
* Re-generate the profiles with <code>locale-gen</code><br />
# locale-gen<br />
<br />
Generating locales...<br />
en_US.UTF-8... done<br />
en_US.ISO-8859-1... done<br />
pt_BR.UTF-8... done<br />
pt_BR.ISO-8859-1... done<br />
Generation complete.<br />
<br />
More info [http://bbs.archlinux.org/viewtopic.php?pid=251512%29; here]<br />
<br />
==== K3B says that there's no Burning Devices ====<br />
A common cause of this is the current user have no privileges for that.<br />
You can try to:<br />
* Add the user to the group <code>optical</code> (remember to re-login after this)<br />
gpasswd -a <user> optical<br />
* Set permissions to devices<br />
chmod 777 /dev/dvd*<br />
chmod 777 /dev/cd*<br />
<br />
Other causes, steps, look on the current guide (;<br />
<br />
===Gnomebaker===<br />
<br />
Gnomebaker is a solution to CD burning if you are using [[Gnome]].<br />
'''Gnomebaker is no longer maintained upstream as the author of the program has indicated. Consider using [http://wiki.archlinux.org/index.php/CD_Burning_Tips#Brasero Brasero] instead.'''<br />
<br />
* Install gnomebaker with pacman.<br />
<br />
<br />
# pacman -Sy gnomebaker<br />
<br />
<br />
* Run <code>gnomebaker</code> to run the main program.<br />
<br />
===Brasero===<br />
<br />
Brasero is another solution to CD burning if you are using [[Gnome]].<br />
<br />
* Install brasero with pacman.<br />
<br />
<br />
# pacman -Sy brasero<br />
<br />
<br />
* Run <code>brasero</code> to run the main program.<br />
<br />
===Graveman===<br />
Graveman is a simple and almost dependency-free application for burning CDs.<br />
<br />
* Install graveman with pacman.<br />
<br />
<br />
# pacman -Sy graveman<br />
<br />
<br />
* As root, run graveman, go to menu File > Preferences... > Devices and add your CD burners.<br />
* Note that you may have to manually add your own device in Graveman's preferences and point it at /dev/cdrom instead of /dev/hdc<br />
* Run <code>graveman</code> to run the main program.<br />
<br />
===Bashburn===<br />
<br />
Alternatively theres also [http://bashburn.sourceforge.net/ Bashburn] in [http://aur.archlinux.org/packages.php?do_Details=1&ID=3658&O=0&L=0&C=0&K=bashburn&SB=n&SO=a&PP=25&do_MyPackages=0&do_Orphans=0&SeB=nd AUR] as a semi-gui solution. BashBurn is the new name for the cd burning shell script Magma. It's not the best looking CD-burning application out there, but it does what you want it to do.<br />
<br />
==Troubleshooting==<br />
<br />
===PATA and SATA problems around 2.6.20/2.6.21===<br />
<br />
For some kernels on some machines, CD burning works very unreliably. This is not fully diagnosed but appears to be related to DMA and having SATA Hard Drives and older IDE CD/DVD Burners and is possibly more prevalent on PIIX Motherboards. On newer kernels there is a new driver whereby the CD/DVD Burner behaves as if it is a SCSI drive, even though it isn't. <br />
<br />
The symptom for this problem is an almost total refusal to burn anything at all. It 'seems' to work fine, but if you verify the burn it invariably fails. If this is happening to you and you have an IDE burner try this fix.<br />
<br />
You will need to install mkinitcpio as described here,[[Configuring_mkinitcpio]] so you can rebuild the kernel. You now need to reconfigure your /etc/mkinitcpio.conf file to reuse the old IDE drivers.<br />
<br />
gedit /etc/mkinitcpio.conf<br />
<br />
Find the line:<br />
<br />
MODULES="ata_generic ata_piix"<br />
<br />
and change it to (insert piix in the front)<br />
<br />
MODULES="piix ata_generic ata_piix"<br />
<br />
Then, find the line:<br />
<br />
HOOKS="base udev autodetect pata scsi sata usbinput keymap filesystems"<br />
<br />
and change that to (replace pata with ide)<br />
<br />
HOOKS="base udev autodetect ide scsi sata usbinput keymap filesystems"<br />
<br />
Use mkinitcpio to rebuild the kernel as described in it's own wiki page, and reboot. In brief :<br />
<br />
mkinitcpio -g /boot/kernel26.img</div>Doubhuahttps://wiki.archlinux.org/index.php?title=CD_Burning_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)&diff=50041CD Burning (简体中文)2008-09-25T14:54:37Z<p>Doubhua: /* 刻录bin/cue */</p>
<hr />
<div>[[Category:Optical (English)]]<br />
[[Category:Utilities (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|CD Burning Tips}}<br />
{{i18n_entry|Italiano|CD Burning Tips (Italiano)}}<br />
{{i18n_entry|简体中文|光盘刻录技巧}}<br />
{{i18n_links_end}}<br />
{{translateme}}<br />
<br />
本文描述了一些光盘刻录的技巧。<br />
<br />
== 命令行的光盘刻录工具 == <br />
===安装光盘刻录工具集===<br />
<br />
# pacman -Sy cdrkit<br />
<br />
如果你希望使用<tt>cdrdao</tt> (把文件cue/bin写到光盘上)<br />
# pacman -S cdrdao<br />
<br />
===设置权限===<br />
如果希望使用cd/dvd烧录设备的话必须要有它们的访问权限。如果要使用[[udev]](Archlinux内核的默认值),你只需要把这个(或多个)用户加入到optical组中:<br />
# gpasswd -a <username> optical<br />
然后别忘了注销后再登录一次。<br />
<br />
===修改CD-RW中的内容===<br />
本节假设你的刻录设备是/dev/cdrw。如果你不是这种情况,那么请对命令做相应的修改。为了能在光盘中写入内容必须先卸载。如果没有卸载,<code>wodim</code>会给出错误提示。<br />
<br />
===擦除CD-RW中的内容===<br />
CD-RW往往需要先擦除已经存在的内容然后再写入新的数据。使用以下命令来清空cd-rw中的内容:<br />
wodim -v dev=/dev/cdrw -blank=fast<br />
正如你可能猜想的,这个命令可以很快的清空光盘,但是你还可以使用一些其它的选项,只需把''fast''替换为下面的即可:<br />
<br />
;all : 清空整个光盘<br />
;disc : 清空整个光盘<br />
;disk:清空整个光盘<br />
;fast:最低限度的清空整个光盘(PMA,TOC,pregap)<br />
;minimal:最低限度的清空整个光盘(PMA,TOC,pregap)<br />
;track:清空一个磁道<br />
;unreserve:unreserve a track<br />
;trtail:blank a track tail<br />
;unclose:unclose last session<br />
;session:blank last session<br />
<br />
===刻录一个iso镜像===<br />
要刻录一个iso镜像,运行:<br />
wodim -v dev=/dev/cdrw isoimage.iso<br />
<br />
<br />
===刻录bin/cue===<br />
<br />
要刻录bin/cue,运行:<br />
cdrdao write --device /dev/cdrw image.cue<br />
<br />
===从光盘生成一个iso镜像===<br />
要复制一个光盘只需键入:<br />
dd if=/dev/cdrw of=/home/user/isoimage.iso<br />
或者使用更简单的输入:<br />
cat /dev/cdrw > isoimage.iso<br />
<br />
或者使用程序readcd(同样在cdrkit包中)<br />
readcd -v dev=/dev/cdrw -f isoimage.iso<br />
<br />
如果原光盘是能够启动电脑的,那么生成的镜像也是能够启动电脑的。<br />
<br />
===从硬盘上的文件生成一个iso镜像===<br />
<br />
要生成iso镜像只需要拷贝需要的文件到一个文件夹,然后输入:<br />
mkisofs -V volume_name -J -r -o isoimage.iso ~/folder<br />
<br />
===挂载iso镜像===<br />
<br />
To test if the iso image is proper, you can mount it (as root):<br />
mount -t iso9660 -o ro,loop=/dev/loop0 cd_image /cdrom<br />
<br />
You have to first load the loop module:<br />
modprobe loop<br />
<br />
===Converting to iso-image===<br />
<br />
To convert a .img / ccd image, you can use ccd2iso :<br />
<br />
pacman -Sy ccd2iso<br />
<br />
ccd2iso /home/archman/image.img /home/archman/image.iso<br />
<br />
== Burning CDs with a GUI ==<br />
There are several applications available to burn CDs in a graphical environment. The use of these programs are self-explanatory.<br />
===Nero Linux===<br />
Just the same Nero on windows. [http://www.nero.com/eng/NeroLINUX.html Official link]|[http://aur.archlinux.org/packages.php?do_Details=1&ID=2153 AUR package]<br />
<br />
It's not free and the UI is not as good as the windows version. Also, 3.0.0 beta can't burn bootable cd from files correctly.<br />
<br />
If you happen to have a DVD-burner unsupported by dvd+rw-tools (which also means k3b and all other free GUIs), nero would be your only choice.<br />
<br />
===K3B===<br />
According to [http://www.k3b.org http://www.k3b.org], k3b is "The CD/DVD Kreator for Linux - optimized for KDE". K3B uses the [[wikipedia:Qt (toolkit)|QT]] toolkit.<br />
* Install k3b with pacman.<br />
<br />
# pacman -Sy k3b<br />
<br />
* As root, run <code>k3bsetup</code>,<br />
* Here you can set up your preferences about permissions etc.<br />
* Run <code>k3b</code> to run the main program.<br />
<br />
====About Locale====<br />
When running K3B, if the following message appears<br />
<br />
System locale charset is ANSI_X3.4-1968<br />
Your system's locale charset (i.e. the charset used to encode filenames) is <br />
set to ANSI_X3.4-1968. It is highly unlikely that this has been done intentionally.<br />
Most likely the locale is not set at all. An invalid setting will result in<br />
problems when creating data projects.Solution: To properly set the locale <br />
charset make sure the LC_* environment variables are set. Normally the distribution <br />
setup tools take care of this.<br />
<br />
It means that your locale is not set well.<br />
<br />
To fix it,<br />
* Remove <code>/etc/locale.gen</code><br />
# rm /etc/locale.gen<br />
* Re-install <code>glibc</code><br />
# pacman -Sy glibc<br />
* Edit <code>/etc/locale.gen</code>, uncommenting all lines lines that corresponds to your language AND the <code>en_US</code> options, for compatibility.<br />
# nano /etc/locale.gen<br />
<br />
en_US.UTF-8 UTF-8<br />
en_US ISO-8859-1<br />
<br />
* Re-generate the profiles with <code>locale-gen</code><br />
# locale-gen<br />
<br />
Generating locales...<br />
en_US.UTF-8... done<br />
en_US.ISO-8859-1... done<br />
pt_BR.UTF-8... done<br />
pt_BR.ISO-8859-1... done<br />
Generation complete.<br />
<br />
More info [http://bbs.archlinux.org/viewtopic.php?pid=251512%29; here]<br />
<br />
==== K3B says that there's no Burning Devices ====<br />
A common cause of this is the current user have no privileges for that.<br />
You can try to:<br />
* Add the user to the group <code>optical</code> (remember to re-login after this)<br />
gpasswd -a <user> optical<br />
* Set permissions to devices<br />
chmod 777 /dev/dvd*<br />
chmod 777 /dev/cd*<br />
<br />
Other causes, steps, look on the current guide (;<br />
<br />
===Gnomebaker===<br />
<br />
Gnomebaker is a solution to CD burning if you are using [[Gnome]].<br />
'''Gnomebaker is no longer maintained upstream as the author of the program has indicated. Consider using [http://wiki.archlinux.org/index.php/CD_Burning_Tips#Brasero Brasero] instead.'''<br />
<br />
* Install gnomebaker with pacman.<br />
<br />
<br />
# pacman -Sy gnomebaker<br />
<br />
<br />
* Run <code>gnomebaker</code> to run the main program.<br />
<br />
===Brasero===<br />
<br />
Brasero is another solution to CD burning if you are using [[Gnome]].<br />
<br />
* Install brasero with pacman.<br />
<br />
<br />
# pacman -Sy brasero<br />
<br />
<br />
* Run <code>brasero</code> to run the main program.<br />
<br />
===Graveman===<br />
Graveman is a simple and almost dependency-free application for burning CDs.<br />
<br />
* Install graveman with pacman.<br />
<br />
<br />
# pacman -Sy graveman<br />
<br />
<br />
* As root, run graveman, go to menu File > Preferences... > Devices and add your CD burners.<br />
* Note that you may have to manually add your own device in Graveman's preferences and point it at /dev/cdrom instead of /dev/hdc<br />
* Run <code>graveman</code> to run the main program.<br />
<br />
===Bashburn===<br />
<br />
Alternatively theres also [http://bashburn.sourceforge.net/ Bashburn] in [http://aur.archlinux.org/packages.php?do_Details=1&ID=3658&O=0&L=0&C=0&K=bashburn&SB=n&SO=a&PP=25&do_MyPackages=0&do_Orphans=0&SeB=nd AUR] as a semi-gui solution. BashBurn is the new name for the cd burning shell script Magma. It's not the best looking CD-burning application out there, but it does what you want it to do.<br />
<br />
==Troubleshooting==<br />
<br />
===PATA and SATA problems around 2.6.20/2.6.21===<br />
<br />
For some kernels on some machines, CD burning works very unreliably. This is not fully diagnosed but appears to be related to DMA and having SATA Hard Drives and older IDE CD/DVD Burners and is possibly more prevalent on PIIX Motherboards. On newer kernels there is a new driver whereby the CD/DVD Burner behaves as if it is a SCSI drive, even though it isn't. <br />
<br />
The symptom for this problem is an almost total refusal to burn anything at all. It 'seems' to work fine, but if you verify the burn it invariably fails. If this is happening to you and you have an IDE burner try this fix.<br />
<br />
You will need to install mkinitcpio as described here,[[Configuring_mkinitcpio]] so you can rebuild the kernel. You now need to reconfigure your /etc/mkinitcpio.conf file to reuse the old IDE drivers.<br />
<br />
gedit /etc/mkinitcpio.conf<br />
<br />
Find the line:<br />
<br />
MODULES="ata_generic ata_piix"<br />
<br />
and change it to (insert piix in the front)<br />
<br />
MODULES="piix ata_generic ata_piix"<br />
<br />
Then, find the line:<br />
<br />
HOOKS="base udev autodetect pata scsi sata usbinput keymap filesystems"<br />
<br />
and change that to (replace pata with ide)<br />
<br />
HOOKS="base udev autodetect ide scsi sata usbinput keymap filesystems"<br />
<br />
Use mkinitcpio to rebuild the kernel as described in it's own wiki page, and reboot. In brief :<br />
<br />
mkinitcpio -g /boot/kernel26.img</div>Doubhuahttps://wiki.archlinux.org/index.php?title=CD_Burning_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)&diff=50040CD Burning (简体中文)2008-09-25T14:54:05Z<p>Doubhua: /* Making an iso-image from an existing cd */</p>
<hr />
<div>[[Category:Optical (English)]]<br />
[[Category:Utilities (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|CD Burning Tips}}<br />
{{i18n_entry|Italiano|CD Burning Tips (Italiano)}}<br />
{{i18n_entry|简体中文|光盘刻录技巧}}<br />
{{i18n_links_end}}<br />
{{translateme}}<br />
<br />
本文描述了一些光盘刻录的技巧。<br />
<br />
== 命令行的光盘刻录工具 == <br />
===安装光盘刻录工具集===<br />
<br />
# pacman -Sy cdrkit<br />
<br />
如果你希望使用<tt>cdrdao</tt> (把文件cue/bin写到光盘上)<br />
# pacman -S cdrdao<br />
<br />
===设置权限===<br />
如果希望使用cd/dvd烧录设备的话必须要有它们的访问权限。如果要使用[[udev]](Archlinux内核的默认值),你只需要把这个(或多个)用户加入到optical组中:<br />
# gpasswd -a <username> optical<br />
然后别忘了注销后再登录一次。<br />
<br />
===修改CD-RW中的内容===<br />
本节假设你的刻录设备是/dev/cdrw。如果你不是这种情况,那么请对命令做相应的修改。为了能在光盘中写入内容必须先卸载。如果没有卸载,<code>wodim</code>会给出错误提示。<br />
<br />
===擦除CD-RW中的内容===<br />
CD-RW往往需要先擦除已经存在的内容然后再写入新的数据。使用以下命令来清空cd-rw中的内容:<br />
wodim -v dev=/dev/cdrw -blank=fast<br />
正如你可能猜想的,这个命令可以很快的清空光盘,但是你还可以使用一些其它的选项,只需把''fast''替换为下面的即可:<br />
<br />
;all : 清空整个光盘<br />
;disc : 清空整个光盘<br />
;disk:清空整个光盘<br />
;fast:最低限度的清空整个光盘(PMA,TOC,pregap)<br />
;minimal:最低限度的清空整个光盘(PMA,TOC,pregap)<br />
;track:清空一个磁道<br />
;unreserve:unreserve a track<br />
;trtail:blank a track tail<br />
;unclose:unclose last session<br />
;session:blank last session<br />
<br />
===刻录一个iso镜像===<br />
要刻录一个iso镜像,运行:<br />
wodim -v dev=/dev/cdrw isoimage.iso<br />
<br />
<br />
===刻录bin/cue===<br />
<br />
要刻录bin/cue,运行:<br />
To burn a bin/cue image run:<br />
cdrdao write --device /dev/cdrw image.cue<br />
<br />
===从光盘生成一个iso镜像===<br />
要复制一个光盘只需键入:<br />
dd if=/dev/cdrw of=/home/user/isoimage.iso<br />
或者使用更简单的输入:<br />
cat /dev/cdrw > isoimage.iso<br />
<br />
或者使用程序readcd(同样在cdrkit包中)<br />
readcd -v dev=/dev/cdrw -f isoimage.iso<br />
<br />
如果原光盘是能够启动电脑的,那么生成的镜像也是能够启动电脑的。<br />
<br />
===从硬盘上的文件生成一个iso镜像===<br />
<br />
要生成iso镜像只需要拷贝需要的文件到一个文件夹,然后输入:<br />
mkisofs -V volume_name -J -r -o isoimage.iso ~/folder<br />
<br />
===挂载iso镜像===<br />
<br />
To test if the iso image is proper, you can mount it (as root):<br />
mount -t iso9660 -o ro,loop=/dev/loop0 cd_image /cdrom<br />
<br />
You have to first load the loop module:<br />
modprobe loop<br />
<br />
===Converting to iso-image===<br />
<br />
To convert a .img / ccd image, you can use ccd2iso :<br />
<br />
pacman -Sy ccd2iso<br />
<br />
ccd2iso /home/archman/image.img /home/archman/image.iso<br />
<br />
== Burning CDs with a GUI ==<br />
There are several applications available to burn CDs in a graphical environment. The use of these programs are self-explanatory.<br />
===Nero Linux===<br />
Just the same Nero on windows. [http://www.nero.com/eng/NeroLINUX.html Official link]|[http://aur.archlinux.org/packages.php?do_Details=1&ID=2153 AUR package]<br />
<br />
It's not free and the UI is not as good as the windows version. Also, 3.0.0 beta can't burn bootable cd from files correctly.<br />
<br />
If you happen to have a DVD-burner unsupported by dvd+rw-tools (which also means k3b and all other free GUIs), nero would be your only choice.<br />
<br />
===K3B===<br />
According to [http://www.k3b.org http://www.k3b.org], k3b is "The CD/DVD Kreator for Linux - optimized for KDE". K3B uses the [[wikipedia:Qt (toolkit)|QT]] toolkit.<br />
* Install k3b with pacman.<br />
<br />
# pacman -Sy k3b<br />
<br />
* As root, run <code>k3bsetup</code>,<br />
* Here you can set up your preferences about permissions etc.<br />
* Run <code>k3b</code> to run the main program.<br />
<br />
====About Locale====<br />
When running K3B, if the following message appears<br />
<br />
System locale charset is ANSI_X3.4-1968<br />
Your system's locale charset (i.e. the charset used to encode filenames) is <br />
set to ANSI_X3.4-1968. It is highly unlikely that this has been done intentionally.<br />
Most likely the locale is not set at all. An invalid setting will result in<br />
problems when creating data projects.Solution: To properly set the locale <br />
charset make sure the LC_* environment variables are set. Normally the distribution <br />
setup tools take care of this.<br />
<br />
It means that your locale is not set well.<br />
<br />
To fix it,<br />
* Remove <code>/etc/locale.gen</code><br />
# rm /etc/locale.gen<br />
* Re-install <code>glibc</code><br />
# pacman -Sy glibc<br />
* Edit <code>/etc/locale.gen</code>, uncommenting all lines lines that corresponds to your language AND the <code>en_US</code> options, for compatibility.<br />
# nano /etc/locale.gen<br />
<br />
en_US.UTF-8 UTF-8<br />
en_US ISO-8859-1<br />
<br />
* Re-generate the profiles with <code>locale-gen</code><br />
# locale-gen<br />
<br />
Generating locales...<br />
en_US.UTF-8... done<br />
en_US.ISO-8859-1... done<br />
pt_BR.UTF-8... done<br />
pt_BR.ISO-8859-1... done<br />
Generation complete.<br />
<br />
More info [http://bbs.archlinux.org/viewtopic.php?pid=251512%29; here]<br />
<br />
==== K3B says that there's no Burning Devices ====<br />
A common cause of this is the current user have no privileges for that.<br />
You can try to:<br />
* Add the user to the group <code>optical</code> (remember to re-login after this)<br />
gpasswd -a <user> optical<br />
* Set permissions to devices<br />
chmod 777 /dev/dvd*<br />
chmod 777 /dev/cd*<br />
<br />
Other causes, steps, look on the current guide (;<br />
<br />
===Gnomebaker===<br />
<br />
Gnomebaker is a solution to CD burning if you are using [[Gnome]].<br />
'''Gnomebaker is no longer maintained upstream as the author of the program has indicated. Consider using [http://wiki.archlinux.org/index.php/CD_Burning_Tips#Brasero Brasero] instead.'''<br />
<br />
* Install gnomebaker with pacman.<br />
<br />
<br />
# pacman -Sy gnomebaker<br />
<br />
<br />
* Run <code>gnomebaker</code> to run the main program.<br />
<br />
===Brasero===<br />
<br />
Brasero is another solution to CD burning if you are using [[Gnome]].<br />
<br />
* Install brasero with pacman.<br />
<br />
<br />
# pacman -Sy brasero<br />
<br />
<br />
* Run <code>brasero</code> to run the main program.<br />
<br />
===Graveman===<br />
Graveman is a simple and almost dependency-free application for burning CDs.<br />
<br />
* Install graveman with pacman.<br />
<br />
<br />
# pacman -Sy graveman<br />
<br />
<br />
* As root, run graveman, go to menu File > Preferences... > Devices and add your CD burners.<br />
* Note that you may have to manually add your own device in Graveman's preferences and point it at /dev/cdrom instead of /dev/hdc<br />
* Run <code>graveman</code> to run the main program.<br />
<br />
===Bashburn===<br />
<br />
Alternatively theres also [http://bashburn.sourceforge.net/ Bashburn] in [http://aur.archlinux.org/packages.php?do_Details=1&ID=3658&O=0&L=0&C=0&K=bashburn&SB=n&SO=a&PP=25&do_MyPackages=0&do_Orphans=0&SeB=nd AUR] as a semi-gui solution. BashBurn is the new name for the cd burning shell script Magma. It's not the best looking CD-burning application out there, but it does what you want it to do.<br />
<br />
==Troubleshooting==<br />
<br />
===PATA and SATA problems around 2.6.20/2.6.21===<br />
<br />
For some kernels on some machines, CD burning works very unreliably. This is not fully diagnosed but appears to be related to DMA and having SATA Hard Drives and older IDE CD/DVD Burners and is possibly more prevalent on PIIX Motherboards. On newer kernels there is a new driver whereby the CD/DVD Burner behaves as if it is a SCSI drive, even though it isn't. <br />
<br />
The symptom for this problem is an almost total refusal to burn anything at all. It 'seems' to work fine, but if you verify the burn it invariably fails. If this is happening to you and you have an IDE burner try this fix.<br />
<br />
You will need to install mkinitcpio as described here,[[Configuring_mkinitcpio]] so you can rebuild the kernel. You now need to reconfigure your /etc/mkinitcpio.conf file to reuse the old IDE drivers.<br />
<br />
gedit /etc/mkinitcpio.conf<br />
<br />
Find the line:<br />
<br />
MODULES="ata_generic ata_piix"<br />
<br />
and change it to (insert piix in the front)<br />
<br />
MODULES="piix ata_generic ata_piix"<br />
<br />
Then, find the line:<br />
<br />
HOOKS="base udev autodetect pata scsi sata usbinput keymap filesystems"<br />
<br />
and change that to (replace pata with ide)<br />
<br />
HOOKS="base udev autodetect ide scsi sata usbinput keymap filesystems"<br />
<br />
Use mkinitcpio to rebuild the kernel as described in it's own wiki page, and reboot. In brief :<br />
<br />
mkinitcpio -g /boot/kernel26.img</div>Doubhuahttps://wiki.archlinux.org/index.php?title=CD_Burning_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)&diff=50039CD Burning (简体中文)2008-09-25T14:49:15Z<p>Doubhua: </p>
<hr />
<div>[[Category:Optical (English)]]<br />
[[Category:Utilities (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|CD Burning Tips}}<br />
{{i18n_entry|Italiano|CD Burning Tips (Italiano)}}<br />
{{i18n_entry|简体中文|光盘刻录技巧}}<br />
{{i18n_links_end}}<br />
{{translateme}}<br />
<br />
本文描述了一些光盘刻录的技巧。<br />
<br />
== 命令行的光盘刻录工具 == <br />
===安装光盘刻录工具集===<br />
<br />
# pacman -Sy cdrkit<br />
<br />
如果你希望使用<tt>cdrdao</tt> (把文件cue/bin写到光盘上)<br />
# pacman -S cdrdao<br />
<br />
===设置权限===<br />
如果希望使用cd/dvd烧录设备的话必须要有它们的访问权限。如果要使用[[udev]](Archlinux内核的默认值),你只需要把这个(或多个)用户加入到optical组中:<br />
# gpasswd -a <username> optical<br />
然后别忘了注销后再登录一次。<br />
<br />
===修改CD-RW中的内容===<br />
本节假设你的刻录设备是/dev/cdrw。如果你不是这种情况,那么请对命令做相应的修改。为了能在光盘中写入内容必须先卸载。如果没有卸载,<code>wodim</code>会给出错误提示。<br />
<br />
===擦除CD-RW中的内容===<br />
CD-RW往往需要先擦除已经存在的内容然后再写入新的数据。使用以下命令来清空cd-rw中的内容:<br />
wodim -v dev=/dev/cdrw -blank=fast<br />
正如你可能猜想的,这个命令可以很快的清空光盘,但是你还可以使用一些其它的选项,只需把''fast''替换为下面的即可:<br />
<br />
;all : 清空整个光盘<br />
;disc : 清空整个光盘<br />
;disk:清空整个光盘<br />
;fast:最低限度的清空整个光盘(PMA,TOC,pregap)<br />
;minimal:最低限度的清空整个光盘(PMA,TOC,pregap)<br />
;track:清空一个磁道<br />
;unreserve:unreserve a track<br />
;trtail:blank a track tail<br />
;unclose:unclose last session<br />
;session:blank last session<br />
<br />
===刻录一个iso镜像===<br />
要刻录一个iso镜像,运行:<br />
wodim -v dev=/dev/cdrw isoimage.iso<br />
<br />
<br />
===刻录bin/cue===<br />
<br />
要刻录bin/cue,运行:<br />
To burn a bin/cue image run:<br />
cdrdao write --device /dev/cdrw image.cue<br />
<br />
===从光盘生成一个iso镜像===<br />
===Making an iso-image from an existing cd===<br />
要复制一个光盘只需键入:<br />
dd if=/dev/cdrw of=/home/user/isoimage.iso<br />
或者使用更简单的输入:<br />
cat /dev/cdrw > isoimage.iso<br />
<br />
或者使用程序readcd(同样在cdrkit包中)<br />
readcd -v dev=/dev/cdrw -f isoimage.iso<br />
<br />
如果原光盘是能够启动电脑的,那么生成的镜像也是能够启动电脑的。<br />
<br />
===从硬盘上的文件生成一个iso镜像===<br />
<br />
要生成iso镜像只需要拷贝需要的文件到一个文件夹,然后输入:<br />
mkisofs -V volume_name -J -r -o isoimage.iso ~/folder<br />
<br />
===挂载iso镜像===<br />
<br />
To test if the iso image is proper, you can mount it (as root):<br />
mount -t iso9660 -o ro,loop=/dev/loop0 cd_image /cdrom<br />
<br />
You have to first load the loop module:<br />
modprobe loop<br />
<br />
===Converting to iso-image===<br />
<br />
To convert a .img / ccd image, you can use ccd2iso :<br />
<br />
pacman -Sy ccd2iso<br />
<br />
ccd2iso /home/archman/image.img /home/archman/image.iso<br />
<br />
== Burning CDs with a GUI ==<br />
There are several applications available to burn CDs in a graphical environment. The use of these programs are self-explanatory.<br />
===Nero Linux===<br />
Just the same Nero on windows. [http://www.nero.com/eng/NeroLINUX.html Official link]|[http://aur.archlinux.org/packages.php?do_Details=1&ID=2153 AUR package]<br />
<br />
It's not free and the UI is not as good as the windows version. Also, 3.0.0 beta can't burn bootable cd from files correctly.<br />
<br />
If you happen to have a DVD-burner unsupported by dvd+rw-tools (which also means k3b and all other free GUIs), nero would be your only choice.<br />
<br />
===K3B===<br />
According to [http://www.k3b.org http://www.k3b.org], k3b is "The CD/DVD Kreator for Linux - optimized for KDE". K3B uses the [[wikipedia:Qt (toolkit)|QT]] toolkit.<br />
* Install k3b with pacman.<br />
<br />
# pacman -Sy k3b<br />
<br />
* As root, run <code>k3bsetup</code>,<br />
* Here you can set up your preferences about permissions etc.<br />
* Run <code>k3b</code> to run the main program.<br />
<br />
====About Locale====<br />
When running K3B, if the following message appears<br />
<br />
System locale charset is ANSI_X3.4-1968<br />
Your system's locale charset (i.e. the charset used to encode filenames) is <br />
set to ANSI_X3.4-1968. It is highly unlikely that this has been done intentionally.<br />
Most likely the locale is not set at all. An invalid setting will result in<br />
problems when creating data projects.Solution: To properly set the locale <br />
charset make sure the LC_* environment variables are set. Normally the distribution <br />
setup tools take care of this.<br />
<br />
It means that your locale is not set well.<br />
<br />
To fix it,<br />
* Remove <code>/etc/locale.gen</code><br />
# rm /etc/locale.gen<br />
* Re-install <code>glibc</code><br />
# pacman -Sy glibc<br />
* Edit <code>/etc/locale.gen</code>, uncommenting all lines lines that corresponds to your language AND the <code>en_US</code> options, for compatibility.<br />
# nano /etc/locale.gen<br />
<br />
en_US.UTF-8 UTF-8<br />
en_US ISO-8859-1<br />
<br />
* Re-generate the profiles with <code>locale-gen</code><br />
# locale-gen<br />
<br />
Generating locales...<br />
en_US.UTF-8... done<br />
en_US.ISO-8859-1... done<br />
pt_BR.UTF-8... done<br />
pt_BR.ISO-8859-1... done<br />
Generation complete.<br />
<br />
More info [http://bbs.archlinux.org/viewtopic.php?pid=251512%29; here]<br />
<br />
==== K3B says that there's no Burning Devices ====<br />
A common cause of this is the current user have no privileges for that.<br />
You can try to:<br />
* Add the user to the group <code>optical</code> (remember to re-login after this)<br />
gpasswd -a <user> optical<br />
* Set permissions to devices<br />
chmod 777 /dev/dvd*<br />
chmod 777 /dev/cd*<br />
<br />
Other causes, steps, look on the current guide (;<br />
<br />
===Gnomebaker===<br />
<br />
Gnomebaker is a solution to CD burning if you are using [[Gnome]].<br />
'''Gnomebaker is no longer maintained upstream as the author of the program has indicated. Consider using [http://wiki.archlinux.org/index.php/CD_Burning_Tips#Brasero Brasero] instead.'''<br />
<br />
* Install gnomebaker with pacman.<br />
<br />
<br />
# pacman -Sy gnomebaker<br />
<br />
<br />
* Run <code>gnomebaker</code> to run the main program.<br />
<br />
===Brasero===<br />
<br />
Brasero is another solution to CD burning if you are using [[Gnome]].<br />
<br />
* Install brasero with pacman.<br />
<br />
<br />
# pacman -Sy brasero<br />
<br />
<br />
* Run <code>brasero</code> to run the main program.<br />
<br />
===Graveman===<br />
Graveman is a simple and almost dependency-free application for burning CDs.<br />
<br />
* Install graveman with pacman.<br />
<br />
<br />
# pacman -Sy graveman<br />
<br />
<br />
* As root, run graveman, go to menu File > Preferences... > Devices and add your CD burners.<br />
* Note that you may have to manually add your own device in Graveman's preferences and point it at /dev/cdrom instead of /dev/hdc<br />
* Run <code>graveman</code> to run the main program.<br />
<br />
===Bashburn===<br />
<br />
Alternatively theres also [http://bashburn.sourceforge.net/ Bashburn] in [http://aur.archlinux.org/packages.php?do_Details=1&ID=3658&O=0&L=0&C=0&K=bashburn&SB=n&SO=a&PP=25&do_MyPackages=0&do_Orphans=0&SeB=nd AUR] as a semi-gui solution. BashBurn is the new name for the cd burning shell script Magma. It's not the best looking CD-burning application out there, but it does what you want it to do.<br />
<br />
==Troubleshooting==<br />
<br />
===PATA and SATA problems around 2.6.20/2.6.21===<br />
<br />
For some kernels on some machines, CD burning works very unreliably. This is not fully diagnosed but appears to be related to DMA and having SATA Hard Drives and older IDE CD/DVD Burners and is possibly more prevalent on PIIX Motherboards. On newer kernels there is a new driver whereby the CD/DVD Burner behaves as if it is a SCSI drive, even though it isn't. <br />
<br />
The symptom for this problem is an almost total refusal to burn anything at all. It 'seems' to work fine, but if you verify the burn it invariably fails. If this is happening to you and you have an IDE burner try this fix.<br />
<br />
You will need to install mkinitcpio as described here,[[Configuring_mkinitcpio]] so you can rebuild the kernel. You now need to reconfigure your /etc/mkinitcpio.conf file to reuse the old IDE drivers.<br />
<br />
gedit /etc/mkinitcpio.conf<br />
<br />
Find the line:<br />
<br />
MODULES="ata_generic ata_piix"<br />
<br />
and change it to (insert piix in the front)<br />
<br />
MODULES="piix ata_generic ata_piix"<br />
<br />
Then, find the line:<br />
<br />
HOOKS="base udev autodetect pata scsi sata usbinput keymap filesystems"<br />
<br />
and change that to (replace pata with ide)<br />
<br />
HOOKS="base udev autodetect ide scsi sata usbinput keymap filesystems"<br />
<br />
Use mkinitcpio to rebuild the kernel as described in it's own wiki page, and reboot. In brief :<br />
<br />
mkinitcpio -g /boot/kernel26.img</div>Doubhuahttps://wiki.archlinux.org/index.php?title=CD_Burning_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)&diff=50037CD Burning (简体中文)2008-09-25T14:42:40Z<p>Doubhua: /* Modifying the CD-RW */</p>
<hr />
<div>[[Category:Optical (English)]]<br />
[[Category:Utilities (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|CD Burning Tips}}<br />
{{i18n_entry|Italiano|CD Burning Tips (Italiano)}}<br />
{{i18n_entry|简体中文|光盘刻录技巧}}<br />
{{i18n_links_end}}<br />
{{translateme}}<br />
<br />
本文描述了一些光盘刻录的技巧。<br />
<br />
== 命令行的光盘刻录工具 == <br />
===安装光盘刻录工具集===<br />
<br />
# pacman -Sy cdrkit<br />
<br />
如果你希望使用<tt>cdrdao</tt> (把文件cue/bin写到光盘上)<br />
# pacman -S cdrdao<br />
<br />
===设置权限===<br />
如果希望使用cd/dvd烧录设备的话必须要有它们的访问权限。如果要使用[[udev]](Archlinux内核的默认值),你只需要把这个(或多个)用户加入到optical组中:<br />
# gpasswd -a <username> optical<br />
然后别忘了注销后再登录一次。<br />
<br />
===修改CD-RW中的内容===<br />
本节假设你的刻录设备是/dev/cdrw。如果你不是这种情况,那么请对命令做相应的修改。<br />
For the remainder of this section the name of your recording device is assumed to be /dev/cdrw. If that is not the case, modify the commands accordingly. In order to write to the CD it needs to be unmounted. If it is not, <code>wodim</code> will give you an error message.<br />
<br />
===擦除CD-RW中的内容===<br />
===Erasing CD-RW===<br />
CD-RW往往需要先擦除已经存在的内容然后再写入新的数据。使用以下命令来清空cd-rw中的内容:<br />
CD-RW media usually need to be erased before you can write new data on it. To blank cd-rw medium use this command:<br />
wodim -v dev=/dev/cdrw -blank=fast<br />
正如你可能猜想的,这个命令可以很快的清空光盘,但是你还可以使用一些其它的选项,只需把''fast''替换为下面的即可:<br />
As you might have guessed, this blanks your medium really fast, but you can also use some other options, just replace the word ''fast'' with one of the following:<br />
<br />
;all : 清空整个光盘blank the entire disk<br />
;disc : 清空整个光盘blank the entire disk<br />
;disk:清空整个光盘blank the entire disk<br />
;fast:最低限度的清空整个光盘(PMA,TOC,pregap) minimally blank the entire disk (PMA, TOC, pregap)<br />
;minimal:最低限度的清空整个光盘(PMA,TOC,pregap) minimally blank the entire disk (PMA, TOC, pregap)<br />
;track:清空一个磁道 blank a track<br />
;unreserve:unreserve a track<br />
;trtail:blank a track tail<br />
;unclose:unclose last session<br />
;session:blank last session<br />
<br />
===刻录一个iso镜像===<br />
===Burning an iso-image===<br />
要刻录一个iso镜像,运行:To burn an iso-image run:<br />
wodim -v dev=/dev/cdrw isoimage.iso<br />
<br />
<br />
===刻录bin/cue===<br />
===Burning a bin/cue===<br />
<br />
要刻录bin/cue,运行:<br />
To burn a bin/cue image run:<br />
cdrdao write --device /dev/cdrw image.cue<br />
<br />
===从光盘生成一个iso镜像===<br />
===Making an iso-image from an existing cd===<br />
要复制一个光盘只需键入:<br />
To copy an existing cd just type:<br />
dd if=/dev/cdrw of=/home/user/isoimage.iso<br />
或者使用更简单的输入:<br />
or even simpler:<br />
cat /dev/cdrw > isoimage.iso<br />
<br />
或者使用程序readcd(同样在cdrkit包中)<br />
Or use readcd program, also in the cdrkit package<br />
readcd -v dev=/dev/cdrw -f isoimage.iso<br />
<br />
如果原光盘是能够启动电脑的,那么生成的镜像也是能够启动电脑的。<br />
If the original cd was bootable it will be a bootable image.<br />
<br />
===从硬盘上的文件生成一个iso镜像===<br />
===Making an iso-image from existing files on harddisk===<br />
<br />
要生成iso镜像只需要拷贝需要的文件到一个文件夹,然后输入:<br />
To make an iso-image just copy the needed files to one folder, then do a<br />
mkisofs -V volume_name -J -r -o isoimage.iso ~/folder<br />
<br />
===挂载iso镜像===<br />
===Mounting an iso-image===<br />
<br />
To test if the iso image is proper, you can mount it (as root):<br />
mount -t iso9660 -o ro,loop=/dev/loop0 cd_image /cdrom<br />
<br />
You have to first load the loop module:<br />
modprobe loop<br />
<br />
===Converting to iso-image===<br />
<br />
To convert a .img / ccd image, you can use ccd2iso :<br />
<br />
pacman -Sy ccd2iso<br />
<br />
ccd2iso /home/archman/image.img /home/archman/image.iso<br />
<br />
== Burning CDs with a GUI ==<br />
There are several applications available to burn CDs in a graphical environment. The use of these programs are self-explanatory.<br />
===Nero Linux===<br />
Just the same Nero on windows. [http://www.nero.com/eng/NeroLINUX.html Official link]|[http://aur.archlinux.org/packages.php?do_Details=1&ID=2153 AUR package]<br />
<br />
It's not free and the UI is not as good as the windows version. Also, 3.0.0 beta can't burn bootable cd from files correctly.<br />
<br />
If you happen to have a DVD-burner unsupported by dvd+rw-tools (which also means k3b and all other free GUIs), nero would be your only choice.<br />
<br />
===K3B===<br />
According to [http://www.k3b.org http://www.k3b.org], k3b is "The CD/DVD Kreator for Linux - optimized for KDE". K3B uses the [[wikipedia:Qt (toolkit)|QT]] toolkit.<br />
* Install k3b with pacman.<br />
<br />
# pacman -Sy k3b<br />
<br />
* As root, run <code>k3bsetup</code>,<br />
* Here you can set up your preferences about permissions etc.<br />
* Run <code>k3b</code> to run the main program.<br />
<br />
====About Locale====<br />
When running K3B, if the following message appears<br />
<br />
System locale charset is ANSI_X3.4-1968<br />
Your system's locale charset (i.e. the charset used to encode filenames) is <br />
set to ANSI_X3.4-1968. It is highly unlikely that this has been done intentionally.<br />
Most likely the locale is not set at all. An invalid setting will result in<br />
problems when creating data projects.Solution: To properly set the locale <br />
charset make sure the LC_* environment variables are set. Normally the distribution <br />
setup tools take care of this.<br />
<br />
It means that your locale is not set well.<br />
<br />
To fix it,<br />
* Remove <code>/etc/locale.gen</code><br />
# rm /etc/locale.gen<br />
* Re-install <code>glibc</code><br />
# pacman -Sy glibc<br />
* Edit <code>/etc/locale.gen</code>, uncommenting all lines lines that corresponds to your language AND the <code>en_US</code> options, for compatibility.<br />
# nano /etc/locale.gen<br />
<br />
en_US.UTF-8 UTF-8<br />
en_US ISO-8859-1<br />
<br />
* Re-generate the profiles with <code>locale-gen</code><br />
# locale-gen<br />
<br />
Generating locales...<br />
en_US.UTF-8... done<br />
en_US.ISO-8859-1... done<br />
pt_BR.UTF-8... done<br />
pt_BR.ISO-8859-1... done<br />
Generation complete.<br />
<br />
More info [http://bbs.archlinux.org/viewtopic.php?pid=251512%29; here]<br />
<br />
==== K3B says that there's no Burning Devices ====<br />
A common cause of this is the current user have no privileges for that.<br />
You can try to:<br />
* Add the user to the group <code>optical</code> (remember to re-login after this)<br />
gpasswd -a <user> optical<br />
* Set permissions to devices<br />
chmod 777 /dev/dvd*<br />
chmod 777 /dev/cd*<br />
<br />
Other causes, steps, look on the current guide (;<br />
<br />
===Gnomebaker===<br />
<br />
Gnomebaker is a solution to CD burning if you are using [[Gnome]].<br />
'''Gnomebaker is no longer maintained upstream as the author of the program has indicated. Consider using [http://wiki.archlinux.org/index.php/CD_Burning_Tips#Brasero Brasero] instead.'''<br />
<br />
* Install gnomebaker with pacman.<br />
<br />
<br />
# pacman -Sy gnomebaker<br />
<br />
<br />
* Run <code>gnomebaker</code> to run the main program.<br />
<br />
===Brasero===<br />
<br />
Brasero is another solution to CD burning if you are using [[Gnome]].<br />
<br />
* Install brasero with pacman.<br />
<br />
<br />
# pacman -Sy brasero<br />
<br />
<br />
* Run <code>brasero</code> to run the main program.<br />
<br />
===Graveman===<br />
Graveman is a simple and almost dependency-free application for burning CDs.<br />
<br />
* Install graveman with pacman.<br />
<br />
<br />
# pacman -Sy graveman<br />
<br />
<br />
* As root, run graveman, go to menu File > Preferences... > Devices and add your CD burners.<br />
* Note that you may have to manually add your own device in Graveman's preferences and point it at /dev/cdrom instead of /dev/hdc<br />
* Run <code>graveman</code> to run the main program.<br />
<br />
===Bashburn===<br />
<br />
Alternatively theres also [http://bashburn.sourceforge.net/ Bashburn] in [http://aur.archlinux.org/packages.php?do_Details=1&ID=3658&O=0&L=0&C=0&K=bashburn&SB=n&SO=a&PP=25&do_MyPackages=0&do_Orphans=0&SeB=nd AUR] as a semi-gui solution. BashBurn is the new name for the cd burning shell script Magma. It's not the best looking CD-burning application out there, but it does what you want it to do.<br />
<br />
==Troubleshooting==<br />
<br />
===PATA and SATA problems around 2.6.20/2.6.21===<br />
<br />
For some kernels on some machines, CD burning works very unreliably. This is not fully diagnosed but appears to be related to DMA and having SATA Hard Drives and older IDE CD/DVD Burners and is possibly more prevalent on PIIX Motherboards. On newer kernels there is a new driver whereby the CD/DVD Burner behaves as if it is a SCSI drive, even though it isn't. <br />
<br />
The symptom for this problem is an almost total refusal to burn anything at all. It 'seems' to work fine, but if you verify the burn it invariably fails. If this is happening to you and you have an IDE burner try this fix.<br />
<br />
You will need to install mkinitcpio as described here,[[Configuring_mkinitcpio]] so you can rebuild the kernel. You now need to reconfigure your /etc/mkinitcpio.conf file to reuse the old IDE drivers.<br />
<br />
gedit /etc/mkinitcpio.conf<br />
<br />
Find the line:<br />
<br />
MODULES="ata_generic ata_piix"<br />
<br />
and change it to (insert piix in the front)<br />
<br />
MODULES="piix ata_generic ata_piix"<br />
<br />
Then, find the line:<br />
<br />
HOOKS="base udev autodetect pata scsi sata usbinput keymap filesystems"<br />
<br />
and change that to (replace pata with ide)<br />
<br />
HOOKS="base udev autodetect ide scsi sata usbinput keymap filesystems"<br />
<br />
Use mkinitcpio to rebuild the kernel as described in it's own wiki page, and reboot. In brief :<br />
<br />
mkinitcpio -g /boot/kernel26.img</div>Doubhuahttps://wiki.archlinux.org/index.php?title=CD_Burning_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)&diff=50036CD Burning (简体中文)2008-09-25T14:37:44Z<p>Doubhua: /* 设置权限 */</p>
<hr />
<div>[[Category:Optical (English)]]<br />
[[Category:Utilities (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|CD Burning Tips}}<br />
{{i18n_entry|Italiano|CD Burning Tips (Italiano)}}<br />
{{i18n_entry|简体中文|光盘刻录技巧}}<br />
{{i18n_links_end}}<br />
{{translateme}}<br />
<br />
本文描述了一些光盘刻录的技巧。<br />
<br />
== 命令行的光盘刻录工具 == <br />
===安装光盘刻录工具集===<br />
<br />
# pacman -Sy cdrkit<br />
<br />
如果你希望使用<tt>cdrdao</tt> (把文件cue/bin写到光盘上)<br />
# pacman -S cdrdao<br />
<br />
===设置权限===<br />
如果希望使用cd/dvd烧录设备的话必须要有它们的访问权限。如果要使用[[udev]](Archlinux内核的默认值),你只需要把这个(或多个)用户加入到optical组中:<br />
# gpasswd -a <username> optical<br />
然后别忘了注销后再登录一次。<br />
<br />
===修改CD-RW中的内容===<br />
===Modifying the CD-RW===<br />
本节假设你的刻录设备是/dev/cdrw。如果你不是这种情况,那么请对命令做相应的修改。<br />
For the remainder of this section the name of your recording device is assumed to be /dev/cdrw. If that is not the case, modify the commands accordingly. In order to write to the CD it needs to be unmounted. If it is not, <code>wodim</code> will give you an error message. <br />
===擦除CD-RW中的内容===<br />
===Erasing CD-RW===<br />
CD-RW往往需要先擦除已经存在的内容然后再写入新的数据。使用以下命令来清空cd-rw中的内容:<br />
CD-RW media usually need to be erased before you can write new data on it. To blank cd-rw medium use this command:<br />
wodim -v dev=/dev/cdrw -blank=fast<br />
正如你可能猜想的,这个命令可以很快的清空光盘,但是你还可以使用一些其它的选项,只需把''fast''替换为下面的即可:<br />
As you might have guessed, this blanks your medium really fast, but you can also use some other options, just replace the word ''fast'' with one of the following:<br />
<br />
;all : 清空整个光盘blank the entire disk<br />
;disc : 清空整个光盘blank the entire disk<br />
;disk:清空整个光盘blank the entire disk<br />
;fast:最低限度的清空整个光盘(PMA,TOC,pregap) minimally blank the entire disk (PMA, TOC, pregap)<br />
;minimal:最低限度的清空整个光盘(PMA,TOC,pregap) minimally blank the entire disk (PMA, TOC, pregap)<br />
;track:清空一个磁道 blank a track<br />
;unreserve:unreserve a track<br />
;trtail:blank a track tail<br />
;unclose:unclose last session<br />
;session:blank last session<br />
<br />
===刻录一个iso镜像===<br />
===Burning an iso-image===<br />
要刻录一个iso镜像,运行:To burn an iso-image run:<br />
wodim -v dev=/dev/cdrw isoimage.iso<br />
<br />
<br />
===刻录bin/cue===<br />
===Burning a bin/cue===<br />
<br />
要刻录bin/cue,运行:<br />
To burn a bin/cue image run:<br />
cdrdao write --device /dev/cdrw image.cue<br />
<br />
===从光盘生成一个iso镜像===<br />
===Making an iso-image from an existing cd===<br />
要复制一个光盘只需键入:<br />
To copy an existing cd just type:<br />
dd if=/dev/cdrw of=/home/user/isoimage.iso<br />
或者使用更简单的输入:<br />
or even simpler:<br />
cat /dev/cdrw > isoimage.iso<br />
<br />
或者使用程序readcd(同样在cdrkit包中)<br />
Or use readcd program, also in the cdrkit package<br />
readcd -v dev=/dev/cdrw -f isoimage.iso<br />
<br />
如果原光盘是能够启动电脑的,那么生成的镜像也是能够启动电脑的。<br />
If the original cd was bootable it will be a bootable image.<br />
<br />
===从硬盘上的文件生成一个iso镜像===<br />
===Making an iso-image from existing files on harddisk===<br />
<br />
要生成iso镜像只需要拷贝需要的文件到一个文件夹,然后输入:<br />
To make an iso-image just copy the needed files to one folder, then do a<br />
mkisofs -V volume_name -J -r -o isoimage.iso ~/folder<br />
<br />
===挂载iso镜像===<br />
===Mounting an iso-image===<br />
<br />
To test if the iso image is proper, you can mount it (as root):<br />
mount -t iso9660 -o ro,loop=/dev/loop0 cd_image /cdrom<br />
<br />
You have to first load the loop module:<br />
modprobe loop<br />
<br />
===Converting to iso-image===<br />
<br />
To convert a .img / ccd image, you can use ccd2iso :<br />
<br />
pacman -Sy ccd2iso<br />
<br />
ccd2iso /home/archman/image.img /home/archman/image.iso<br />
<br />
== Burning CDs with a GUI ==<br />
There are several applications available to burn CDs in a graphical environment. The use of these programs are self-explanatory.<br />
===Nero Linux===<br />
Just the same Nero on windows. [http://www.nero.com/eng/NeroLINUX.html Official link]|[http://aur.archlinux.org/packages.php?do_Details=1&ID=2153 AUR package]<br />
<br />
It's not free and the UI is not as good as the windows version. Also, 3.0.0 beta can't burn bootable cd from files correctly.<br />
<br />
If you happen to have a DVD-burner unsupported by dvd+rw-tools (which also means k3b and all other free GUIs), nero would be your only choice.<br />
<br />
===K3B===<br />
According to [http://www.k3b.org http://www.k3b.org], k3b is "The CD/DVD Kreator for Linux - optimized for KDE". K3B uses the [[wikipedia:Qt (toolkit)|QT]] toolkit.<br />
* Install k3b with pacman.<br />
<br />
# pacman -Sy k3b<br />
<br />
* As root, run <code>k3bsetup</code>,<br />
* Here you can set up your preferences about permissions etc.<br />
* Run <code>k3b</code> to run the main program.<br />
<br />
====About Locale====<br />
When running K3B, if the following message appears<br />
<br />
System locale charset is ANSI_X3.4-1968<br />
Your system's locale charset (i.e. the charset used to encode filenames) is <br />
set to ANSI_X3.4-1968. It is highly unlikely that this has been done intentionally.<br />
Most likely the locale is not set at all. An invalid setting will result in<br />
problems when creating data projects.Solution: To properly set the locale <br />
charset make sure the LC_* environment variables are set. Normally the distribution <br />
setup tools take care of this.<br />
<br />
It means that your locale is not set well.<br />
<br />
To fix it,<br />
* Remove <code>/etc/locale.gen</code><br />
# rm /etc/locale.gen<br />
* Re-install <code>glibc</code><br />
# pacman -Sy glibc<br />
* Edit <code>/etc/locale.gen</code>, uncommenting all lines lines that corresponds to your language AND the <code>en_US</code> options, for compatibility.<br />
# nano /etc/locale.gen<br />
<br />
en_US.UTF-8 UTF-8<br />
en_US ISO-8859-1<br />
<br />
* Re-generate the profiles with <code>locale-gen</code><br />
# locale-gen<br />
<br />
Generating locales...<br />
en_US.UTF-8... done<br />
en_US.ISO-8859-1... done<br />
pt_BR.UTF-8... done<br />
pt_BR.ISO-8859-1... done<br />
Generation complete.<br />
<br />
More info [http://bbs.archlinux.org/viewtopic.php?pid=251512%29; here]<br />
<br />
==== K3B says that there's no Burning Devices ====<br />
A common cause of this is the current user have no privileges for that.<br />
You can try to:<br />
* Add the user to the group <code>optical</code> (remember to re-login after this)<br />
gpasswd -a <user> optical<br />
* Set permissions to devices<br />
chmod 777 /dev/dvd*<br />
chmod 777 /dev/cd*<br />
<br />
Other causes, steps, look on the current guide (;<br />
<br />
===Gnomebaker===<br />
<br />
Gnomebaker is a solution to CD burning if you are using [[Gnome]].<br />
'''Gnomebaker is no longer maintained upstream as the author of the program has indicated. Consider using [http://wiki.archlinux.org/index.php/CD_Burning_Tips#Brasero Brasero] instead.'''<br />
<br />
* Install gnomebaker with pacman.<br />
<br />
<br />
# pacman -Sy gnomebaker<br />
<br />
<br />
* Run <code>gnomebaker</code> to run the main program.<br />
<br />
===Brasero===<br />
<br />
Brasero is another solution to CD burning if you are using [[Gnome]].<br />
<br />
* Install brasero with pacman.<br />
<br />
<br />
# pacman -Sy brasero<br />
<br />
<br />
* Run <code>brasero</code> to run the main program.<br />
<br />
===Graveman===<br />
Graveman is a simple and almost dependency-free application for burning CDs.<br />
<br />
* Install graveman with pacman.<br />
<br />
<br />
# pacman -Sy graveman<br />
<br />
<br />
* As root, run graveman, go to menu File > Preferences... > Devices and add your CD burners.<br />
* Note that you may have to manually add your own device in Graveman's preferences and point it at /dev/cdrom instead of /dev/hdc<br />
* Run <code>graveman</code> to run the main program.<br />
<br />
===Bashburn===<br />
<br />
Alternatively theres also [http://bashburn.sourceforge.net/ Bashburn] in [http://aur.archlinux.org/packages.php?do_Details=1&ID=3658&O=0&L=0&C=0&K=bashburn&SB=n&SO=a&PP=25&do_MyPackages=0&do_Orphans=0&SeB=nd AUR] as a semi-gui solution. BashBurn is the new name for the cd burning shell script Magma. It's not the best looking CD-burning application out there, but it does what you want it to do.<br />
<br />
==Troubleshooting==<br />
<br />
===PATA and SATA problems around 2.6.20/2.6.21===<br />
<br />
For some kernels on some machines, CD burning works very unreliably. This is not fully diagnosed but appears to be related to DMA and having SATA Hard Drives and older IDE CD/DVD Burners and is possibly more prevalent on PIIX Motherboards. On newer kernels there is a new driver whereby the CD/DVD Burner behaves as if it is a SCSI drive, even though it isn't. <br />
<br />
The symptom for this problem is an almost total refusal to burn anything at all. It 'seems' to work fine, but if you verify the burn it invariably fails. If this is happening to you and you have an IDE burner try this fix.<br />
<br />
You will need to install mkinitcpio as described here,[[Configuring_mkinitcpio]] so you can rebuild the kernel. You now need to reconfigure your /etc/mkinitcpio.conf file to reuse the old IDE drivers.<br />
<br />
gedit /etc/mkinitcpio.conf<br />
<br />
Find the line:<br />
<br />
MODULES="ata_generic ata_piix"<br />
<br />
and change it to (insert piix in the front)<br />
<br />
MODULES="piix ata_generic ata_piix"<br />
<br />
Then, find the line:<br />
<br />
HOOKS="base udev autodetect pata scsi sata usbinput keymap filesystems"<br />
<br />
and change that to (replace pata with ide)<br />
<br />
HOOKS="base udev autodetect ide scsi sata usbinput keymap filesystems"<br />
<br />
Use mkinitcpio to rebuild the kernel as described in it's own wiki page, and reboot. In brief :<br />
<br />
mkinitcpio -g /boot/kernel26.img</div>Doubhuahttps://wiki.archlinux.org/index.php?title=CD_Burning_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)&diff=50035CD Burning (简体中文)2008-09-25T14:33:22Z<p>Doubhua: New page: Category:Optical (English) Category:Utilities (English) Category:HOWTOs (English) {{i18n_links_start}} {{i18n_entry|English|CD Burning Tips}} {{i18n_entry|Italiano|CD Burning T...</p>
<hr />
<div>[[Category:Optical (English)]]<br />
[[Category:Utilities (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|CD Burning Tips}}<br />
{{i18n_entry|Italiano|CD Burning Tips (Italiano)}}<br />
{{i18n_entry|简体中文|光盘刻录技巧}}<br />
{{i18n_links_end}}<br />
{{translateme}}<br />
<br />
本文描述了一些光盘刻录的技巧。<br />
<br />
== 命令行的光盘刻录工具 == <br />
===安装光盘刻录工具集===<br />
<br />
# pacman -Sy cdrkit<br />
<br />
如果你希望使用<tt>cdrdao</tt> (把文件cue/bin写到光盘上)<br />
# pacman -S cdrdao<br />
<br />
===设置权限===<br />
如果希望使用cd/dvd烧录设备的话必须要有它们的访问权限。如果要使用[[udev]](Archlinux内核的默认值),你只需要把这个(或多个)用户加入到组optical中<br />
Users that should be able to use cd/dvd burning devices must have permissions to access the devices. If you are using [[udev]] (which is default in Archlinux kernels), you only need to add the user(s) to the optical group:<br />
# gpasswd -a <username> optical<br />
然后别忘了注销后再登录一次。<br />
Then don't forget to log out and log in again.<br />
<br />
===修改CD-RW中的内容===<br />
===Modifying the CD-RW===<br />
本节假设你的刻录设备是/dev/cdrw。如果你不是这种情况,那么请对命令做相应的修改。<br />
For the remainder of this section the name of your recording device is assumed to be /dev/cdrw. If that is not the case, modify the commands accordingly. In order to write to the CD it needs to be unmounted. If it is not, <code>wodim</code> will give you an error message. <br />
===擦除CD-RW中的内容===<br />
===Erasing CD-RW===<br />
CD-RW往往需要先擦除已经存在的内容然后再写入新的数据。使用以下命令来清空cd-rw中的内容:<br />
CD-RW media usually need to be erased before you can write new data on it. To blank cd-rw medium use this command:<br />
wodim -v dev=/dev/cdrw -blank=fast<br />
正如你可能猜想的,这个命令可以很快的清空光盘,但是你还可以使用一些其它的选项,只需把''fast''替换为下面的即可:<br />
As you might have guessed, this blanks your medium really fast, but you can also use some other options, just replace the word ''fast'' with one of the following:<br />
<br />
;all : 清空整个光盘blank the entire disk<br />
;disc : 清空整个光盘blank the entire disk<br />
;disk:清空整个光盘blank the entire disk<br />
;fast:最低限度的清空整个光盘(PMA,TOC,pregap) minimally blank the entire disk (PMA, TOC, pregap)<br />
;minimal:最低限度的清空整个光盘(PMA,TOC,pregap) minimally blank the entire disk (PMA, TOC, pregap)<br />
;track:清空一个磁道 blank a track<br />
;unreserve:unreserve a track<br />
;trtail:blank a track tail<br />
;unclose:unclose last session<br />
;session:blank last session<br />
<br />
===刻录一个iso镜像===<br />
===Burning an iso-image===<br />
要刻录一个iso镜像,运行:To burn an iso-image run:<br />
wodim -v dev=/dev/cdrw isoimage.iso<br />
<br />
<br />
===刻录bin/cue===<br />
===Burning a bin/cue===<br />
<br />
要刻录bin/cue,运行:<br />
To burn a bin/cue image run:<br />
cdrdao write --device /dev/cdrw image.cue<br />
<br />
===从光盘生成一个iso镜像===<br />
===Making an iso-image from an existing cd===<br />
要复制一个光盘只需键入:<br />
To copy an existing cd just type:<br />
dd if=/dev/cdrw of=/home/user/isoimage.iso<br />
或者使用更简单的输入:<br />
or even simpler:<br />
cat /dev/cdrw > isoimage.iso<br />
<br />
或者使用程序readcd(同样在cdrkit包中)<br />
Or use readcd program, also in the cdrkit package<br />
readcd -v dev=/dev/cdrw -f isoimage.iso<br />
<br />
如果原光盘是能够启动电脑的,那么生成的镜像也是能够启动电脑的。<br />
If the original cd was bootable it will be a bootable image.<br />
<br />
===从硬盘上的文件生成一个iso镜像===<br />
===Making an iso-image from existing files on harddisk===<br />
<br />
要生成iso镜像只需要拷贝需要的文件到一个文件夹,然后输入:<br />
To make an iso-image just copy the needed files to one folder, then do a<br />
mkisofs -V volume_name -J -r -o isoimage.iso ~/folder<br />
<br />
===挂载iso镜像===<br />
===Mounting an iso-image===<br />
<br />
To test if the iso image is proper, you can mount it (as root):<br />
mount -t iso9660 -o ro,loop=/dev/loop0 cd_image /cdrom<br />
<br />
You have to first load the loop module:<br />
modprobe loop<br />
<br />
===Converting to iso-image===<br />
<br />
To convert a .img / ccd image, you can use ccd2iso :<br />
<br />
pacman -Sy ccd2iso<br />
<br />
ccd2iso /home/archman/image.img /home/archman/image.iso<br />
<br />
== Burning CDs with a GUI ==<br />
There are several applications available to burn CDs in a graphical environment. The use of these programs are self-explanatory.<br />
===Nero Linux===<br />
Just the same Nero on windows. [http://www.nero.com/eng/NeroLINUX.html Official link]|[http://aur.archlinux.org/packages.php?do_Details=1&ID=2153 AUR package]<br />
<br />
It's not free and the UI is not as good as the windows version. Also, 3.0.0 beta can't burn bootable cd from files correctly.<br />
<br />
If you happen to have a DVD-burner unsupported by dvd+rw-tools (which also means k3b and all other free GUIs), nero would be your only choice.<br />
<br />
===K3B===<br />
According to [http://www.k3b.org http://www.k3b.org], k3b is "The CD/DVD Kreator for Linux - optimized for KDE". K3B uses the [[wikipedia:Qt (toolkit)|QT]] toolkit.<br />
* Install k3b with pacman.<br />
<br />
# pacman -Sy k3b<br />
<br />
* As root, run <code>k3bsetup</code>,<br />
* Here you can set up your preferences about permissions etc.<br />
* Run <code>k3b</code> to run the main program.<br />
<br />
====About Locale====<br />
When running K3B, if the following message appears<br />
<br />
System locale charset is ANSI_X3.4-1968<br />
Your system's locale charset (i.e. the charset used to encode filenames) is <br />
set to ANSI_X3.4-1968. It is highly unlikely that this has been done intentionally.<br />
Most likely the locale is not set at all. An invalid setting will result in<br />
problems when creating data projects.Solution: To properly set the locale <br />
charset make sure the LC_* environment variables are set. Normally the distribution <br />
setup tools take care of this.<br />
<br />
It means that your locale is not set well.<br />
<br />
To fix it,<br />
* Remove <code>/etc/locale.gen</code><br />
# rm /etc/locale.gen<br />
* Re-install <code>glibc</code><br />
# pacman -Sy glibc<br />
* Edit <code>/etc/locale.gen</code>, uncommenting all lines lines that corresponds to your language AND the <code>en_US</code> options, for compatibility.<br />
# nano /etc/locale.gen<br />
<br />
en_US.UTF-8 UTF-8<br />
en_US ISO-8859-1<br />
<br />
* Re-generate the profiles with <code>locale-gen</code><br />
# locale-gen<br />
<br />
Generating locales...<br />
en_US.UTF-8... done<br />
en_US.ISO-8859-1... done<br />
pt_BR.UTF-8... done<br />
pt_BR.ISO-8859-1... done<br />
Generation complete.<br />
<br />
More info [http://bbs.archlinux.org/viewtopic.php?pid=251512%29; here]<br />
<br />
==== K3B says that there's no Burning Devices ====<br />
A common cause of this is the current user have no privileges for that.<br />
You can try to:<br />
* Add the user to the group <code>optical</code> (remember to re-login after this)<br />
gpasswd -a <user> optical<br />
* Set permissions to devices<br />
chmod 777 /dev/dvd*<br />
chmod 777 /dev/cd*<br />
<br />
Other causes, steps, look on the current guide (;<br />
<br />
===Gnomebaker===<br />
<br />
Gnomebaker is a solution to CD burning if you are using [[Gnome]].<br />
'''Gnomebaker is no longer maintained upstream as the author of the program has indicated. Consider using [http://wiki.archlinux.org/index.php/CD_Burning_Tips#Brasero Brasero] instead.'''<br />
<br />
* Install gnomebaker with pacman.<br />
<br />
<br />
# pacman -Sy gnomebaker<br />
<br />
<br />
* Run <code>gnomebaker</code> to run the main program.<br />
<br />
===Brasero===<br />
<br />
Brasero is another solution to CD burning if you are using [[Gnome]].<br />
<br />
* Install brasero with pacman.<br />
<br />
<br />
# pacman -Sy brasero<br />
<br />
<br />
* Run <code>brasero</code> to run the main program.<br />
<br />
===Graveman===<br />
Graveman is a simple and almost dependency-free application for burning CDs.<br />
<br />
* Install graveman with pacman.<br />
<br />
<br />
# pacman -Sy graveman<br />
<br />
<br />
* As root, run graveman, go to menu File > Preferences... > Devices and add your CD burners.<br />
* Note that you may have to manually add your own device in Graveman's preferences and point it at /dev/cdrom instead of /dev/hdc<br />
* Run <code>graveman</code> to run the main program.<br />
<br />
===Bashburn===<br />
<br />
Alternatively theres also [http://bashburn.sourceforge.net/ Bashburn] in [http://aur.archlinux.org/packages.php?do_Details=1&ID=3658&O=0&L=0&C=0&K=bashburn&SB=n&SO=a&PP=25&do_MyPackages=0&do_Orphans=0&SeB=nd AUR] as a semi-gui solution. BashBurn is the new name for the cd burning shell script Magma. It's not the best looking CD-burning application out there, but it does what you want it to do.<br />
<br />
==Troubleshooting==<br />
<br />
===PATA and SATA problems around 2.6.20/2.6.21===<br />
<br />
For some kernels on some machines, CD burning works very unreliably. This is not fully diagnosed but appears to be related to DMA and having SATA Hard Drives and older IDE CD/DVD Burners and is possibly more prevalent on PIIX Motherboards. On newer kernels there is a new driver whereby the CD/DVD Burner behaves as if it is a SCSI drive, even though it isn't. <br />
<br />
The symptom for this problem is an almost total refusal to burn anything at all. It 'seems' to work fine, but if you verify the burn it invariably fails. If this is happening to you and you have an IDE burner try this fix.<br />
<br />
You will need to install mkinitcpio as described here,[[Configuring_mkinitcpio]] so you can rebuild the kernel. You now need to reconfigure your /etc/mkinitcpio.conf file to reuse the old IDE drivers.<br />
<br />
gedit /etc/mkinitcpio.conf<br />
<br />
Find the line:<br />
<br />
MODULES="ata_generic ata_piix"<br />
<br />
and change it to (insert piix in the front)<br />
<br />
MODULES="piix ata_generic ata_piix"<br />
<br />
Then, find the line:<br />
<br />
HOOKS="base udev autodetect pata scsi sata usbinput keymap filesystems"<br />
<br />
and change that to (replace pata with ide)<br />
<br />
HOOKS="base udev autodetect ide scsi sata usbinput keymap filesystems"<br />
<br />
Use mkinitcpio to rebuild the kernel as described in it's own wiki page, and reboot. In brief :<br />
<br />
mkinitcpio -g /boot/kernel26.img</div>Doubhuahttps://wiki.archlinux.org/index.php?title=CD_Burning&diff=50032CD Burning2008-09-25T13:55:19Z<p>Doubhua: </p>
<hr />
<div>[[Category:Optical (English)]]<br />
[[Category:Utilities (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|CD Burning Tips}}<br />
{{i18n_entry|Italiano|CD Burning Tips (Italiano)}}<br />
{{i18n_entry|简体中文|光盘刻录技巧}}<br />
{{i18n_links_end}}<br />
<br />
This document outlines various methods of burning CDs.<br />
<br />
== Commandline CD-burning == <br />
===Install cd-burning utilities===<br />
<br />
# pacman -Sy cdrkit<br />
<br />
And if you intend to use <tt>cdrdao</tt> (for writing cue/bin files to cd)<br />
# pacman -S cdrdao<br />
<br />
===Setting permissions===<br />
Users that should be able to use cd/dvd burning devices must have permissions to access the devices. If you are using [[udev]] (which is default in Archlinux kernels), you only need to add the user(s) to the optical group:<br />
# gpasswd -a <username> optical<br />
Then don't forget to log out and log in again.<br />
<br />
===Modifying the CD-RW===<br />
For the remainder of this section the name of your recording device is assumed to be /dev/cdrw. If that is not the case, modify the commands accordingly. In order to write to the CD it needs to be unmounted. If it is not, <code>wodim</code> will give you an error message. <br />
===Erasing CD-RW===<br />
CD-RW media usually need to be erased before you can write new data on it. To blank cd-rw medium use this command:<br />
wodim -v dev=/dev/cdrw -blank=fast<br />
As you might have guessed, this blanks your medium really fast, but you can also use some other options, just replace the word ''fast'' with one of the following:<br />
<br />
;all : blank the entire disk<br />
;disc : blank the entire disk<br />
;disk:blank the entire disk<br />
;fast:minimally blank the entire disk (PMA, TOC, pregap)<br />
;minimal:minimally blank the entire disk (PMA, TOC, pregap)<br />
;track:blank a track<br />
;unreserve:unreserve a track<br />
;trtail:blank a track tail<br />
;unclose:unclose last session<br />
;session:blank last session<br />
<br />
===Burning an iso-image===<br />
To burn an iso-image run:<br />
wodim -v dev=/dev/cdrw isoimage.iso<br />
<br />
===Burning a bin/cue===<br />
<br />
To burn a bin/cue image run:<br />
cdrdao write --device /dev/cdrw image.cue<br />
<br />
===Making an iso-image from an existing cd===<br />
To copy an existing cd just type:<br />
dd if=/dev/cdrw of=/home/user/isoimage.iso<br />
or even simpler:<br />
cat /dev/cdrw > isoimage.iso<br />
<br />
Or use readcd program, also in the cdrkit package<br />
readcd -v dev=/dev/cdrw -f isoimage.iso<br />
<br />
If the original cd was bootable it will be a bootable image.<br />
<br />
===Making an iso-image from existing files on harddisk===<br />
<br />
To make an iso-image just copy the needed files to one folder, then do a<br />
mkisofs -V volume_name -J -r -o isoimage.iso ~/folder<br />
<br />
===Mounting an iso-image===<br />
<br />
To test if the iso image is proper, you can mount it (as root):<br />
mount -t iso9660 -o ro,loop=/dev/loop0 cd_image /cdrom<br />
<br />
You have to first load the loop module:<br />
modprobe loop<br />
<br />
===Converting to iso-image===<br />
<br />
To convert a .img / ccd image, you can use ccd2iso :<br />
<br />
pacman -Sy ccd2iso<br />
<br />
ccd2iso /home/archman/image.img /home/archman/image.iso<br />
<br />
== Burning CDs with a GUI ==<br />
There are several applications available to burn CDs in a graphical environment. The use of these programs are self-explanatory.<br />
===Nero Linux===<br />
Just the same Nero on windows. [http://www.nero.com/eng/NeroLINUX.html Official link]|[http://aur.archlinux.org/packages.php?do_Details=1&ID=2153 AUR package]<br />
<br />
It's not free and the UI is not as good as the windows version. Also, 3.0.0 beta can't burn bootable cd from files correctly.<br />
<br />
If you happen to have a DVD-burner unsupported by dvd+rw-tools (which also means k3b and all other free GUIs), nero would be your only choice.<br />
<br />
===K3B===<br />
According to [http://www.k3b.org http://www.k3b.org], k3b is "The CD/DVD Kreator for Linux - optimized for KDE". K3B uses the [[wikipedia:Qt (toolkit)|QT]] toolkit.<br />
* Install k3b with pacman.<br />
<br />
# pacman -Sy k3b<br />
<br />
* As root, run <code>k3bsetup</code>,<br />
* Here you can set up your preferences about permissions etc.<br />
* Run <code>k3b</code> to run the main program.<br />
<br />
====About Locale====<br />
When running K3B, if the following message appears<br />
<br />
System locale charset is ANSI_X3.4-1968<br />
Your system's locale charset (i.e. the charset used to encode filenames) is <br />
set to ANSI_X3.4-1968. It is highly unlikely that this has been done intentionally.<br />
Most likely the locale is not set at all. An invalid setting will result in<br />
problems when creating data projects.Solution: To properly set the locale <br />
charset make sure the LC_* environment variables are set. Normally the distribution <br />
setup tools take care of this.<br />
<br />
It means that your locale is not set well.<br />
<br />
To fix it,<br />
* Remove <code>/etc/locale.gen</code><br />
# rm /etc/locale.gen<br />
* Re-install <code>glibc</code><br />
# pacman -Sy glibc<br />
* Edit <code>/etc/locale.gen</code>, uncommenting all lines lines that corresponds to your language AND the <code>en_US</code> options, for compatibility.<br />
# nano /etc/locale.gen<br />
<br />
en_US.UTF-8 UTF-8<br />
en_US ISO-8859-1<br />
<br />
* Re-generate the profiles with <code>locale-gen</code><br />
# locale-gen<br />
<br />
Generating locales...<br />
en_US.UTF-8... done<br />
en_US.ISO-8859-1... done<br />
pt_BR.UTF-8... done<br />
pt_BR.ISO-8859-1... done<br />
Generation complete.<br />
<br />
More info [http://bbs.archlinux.org/viewtopic.php?pid=251512%29; here]<br />
<br />
==== K3B says that there's no Burning Devices ====<br />
A common cause of this is the current user have no privileges for that.<br />
You can try to:<br />
* Add the user to the group <code>optical</code> (remember to re-login after this)<br />
gpasswd -a <user> optical<br />
* Set permissions to devices<br />
chmod 777 /dev/dvd*<br />
chmod 777 /dev/cd*<br />
<br />
Other causes, steps, look on the current guide (;<br />
<br />
===Gnomebaker===<br />
<br />
Gnomebaker is a solution to CD burning if you are using [[Gnome]].<br />
'''Gnomebaker is no longer maintained upstream as the author of the program has indicated. Consider using [http://wiki.archlinux.org/index.php/CD_Burning_Tips#Brasero Brasero] instead.'''<br />
<br />
* Install gnomebaker with pacman.<br />
<br />
<br />
# pacman -Sy gnomebaker<br />
<br />
<br />
* Run <code>gnomebaker</code> to run the main program.<br />
<br />
===Brasero===<br />
<br />
Brasero is another solution to CD burning if you are using [[Gnome]].<br />
<br />
* Install brasero with pacman.<br />
<br />
<br />
# pacman -Sy brasero<br />
<br />
<br />
* Run <code>brasero</code> to run the main program.<br />
<br />
===Graveman===<br />
Graveman is a simple and almost dependency-free application for burning CDs.<br />
<br />
* Install graveman with pacman.<br />
<br />
<br />
# pacman -Sy graveman<br />
<br />
<br />
* As root, run graveman, go to menu File > Preferences... > Devices and add your CD burners.<br />
* Note that you may have to manually add your own device in Graveman's preferences and point it at /dev/cdrom instead of /dev/hdc<br />
* Run <code>graveman</code> to run the main program.<br />
<br />
===Bashburn===<br />
<br />
Alternatively theres also [http://bashburn.sourceforge.net/ Bashburn] in [http://aur.archlinux.org/packages.php?do_Details=1&ID=3658&O=0&L=0&C=0&K=bashburn&SB=n&SO=a&PP=25&do_MyPackages=0&do_Orphans=0&SeB=nd AUR] as a semi-gui solution. BashBurn is the new name for the cd burning shell script Magma. It's not the best looking CD-burning application out there, but it does what you want it to do.<br />
<br />
==Troubleshooting==<br />
<br />
===PATA and SATA problems around 2.6.20/2.6.21===<br />
<br />
For some kernels on some machines, CD burning works very unreliably. This is not fully diagnosed but appears to be related to DMA and having SATA Hard Drives and older IDE CD/DVD Burners and is possibly more prevalent on PIIX Motherboards. On newer kernels there is a new driver whereby the CD/DVD Burner behaves as if it is a SCSI drive, even though it isn't. <br />
<br />
The symptom for this problem is an almost total refusal to burn anything at all. It 'seems' to work fine, but if you verify the burn it invariably fails. If this is happening to you and you have an IDE burner try this fix.<br />
<br />
You will need to install mkinitcpio as described here,[[Configuring_mkinitcpio]] so you can rebuild the kernel. You now need to reconfigure your /etc/mkinitcpio.conf file to reuse the old IDE drivers.<br />
<br />
gedit /etc/mkinitcpio.conf<br />
<br />
Find the line:<br />
<br />
MODULES="ata_generic ata_piix"<br />
<br />
and change it to (insert piix in the front)<br />
<br />
MODULES="piix ata_generic ata_piix"<br />
<br />
Then, find the line:<br />
<br />
HOOKS="base udev autodetect pata scsi sata usbinput keymap filesystems"<br />
<br />
and change that to (replace pata with ide)<br />
<br />
HOOKS="base udev autodetect ide scsi sata usbinput keymap filesystems"<br />
<br />
Use mkinitcpio to rebuild the kernel as described in it's own wiki page, and reboot. In brief :<br />
<br />
mkinitcpio -g /boot/kernel26.img</div>Doubhuahttps://wiki.archlinux.org/index.php?title=CD_Burning&diff=50031CD Burning2008-09-25T13:54:19Z<p>Doubhua: </p>
<hr />
<div>[[Category:Optical (English)]]<br />
[[Category:Utilities (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|CD Burning Tips}}<br />
{{i18n_entry|Italiano|CD Burning Tips (Italiano)}}<br />
{{il8n_entry|简体中文|光盘刻录技巧}}<br />
{{i18n_links_end}}<br />
<br />
This document outlines various methods of burning CDs.<br />
<br />
== Commandline CD-burning == <br />
===Install cd-burning utilities===<br />
<br />
# pacman -Sy cdrkit<br />
<br />
And if you intend to use <tt>cdrdao</tt> (for writing cue/bin files to cd)<br />
# pacman -S cdrdao<br />
<br />
===Setting permissions===<br />
Users that should be able to use cd/dvd burning devices must have permissions to access the devices. If you are using [[udev]] (which is default in Archlinux kernels), you only need to add the user(s) to the optical group:<br />
# gpasswd -a <username> optical<br />
Then don't forget to log out and log in again.<br />
<br />
===Modifying the CD-RW===<br />
For the remainder of this section the name of your recording device is assumed to be /dev/cdrw. If that is not the case, modify the commands accordingly. In order to write to the CD it needs to be unmounted. If it is not, <code>wodim</code> will give you an error message. <br />
===Erasing CD-RW===<br />
CD-RW media usually need to be erased before you can write new data on it. To blank cd-rw medium use this command:<br />
wodim -v dev=/dev/cdrw -blank=fast<br />
As you might have guessed, this blanks your medium really fast, but you can also use some other options, just replace the word ''fast'' with one of the following:<br />
<br />
;all : blank the entire disk<br />
;disc : blank the entire disk<br />
;disk:blank the entire disk<br />
;fast:minimally blank the entire disk (PMA, TOC, pregap)<br />
;minimal:minimally blank the entire disk (PMA, TOC, pregap)<br />
;track:blank a track<br />
;unreserve:unreserve a track<br />
;trtail:blank a track tail<br />
;unclose:unclose last session<br />
;session:blank last session<br />
<br />
===Burning an iso-image===<br />
To burn an iso-image run:<br />
wodim -v dev=/dev/cdrw isoimage.iso<br />
<br />
===Burning a bin/cue===<br />
<br />
To burn a bin/cue image run:<br />
cdrdao write --device /dev/cdrw image.cue<br />
<br />
===Making an iso-image from an existing cd===<br />
To copy an existing cd just type:<br />
dd if=/dev/cdrw of=/home/user/isoimage.iso<br />
or even simpler:<br />
cat /dev/cdrw > isoimage.iso<br />
<br />
Or use readcd program, also in the cdrkit package<br />
readcd -v dev=/dev/cdrw -f isoimage.iso<br />
<br />
If the original cd was bootable it will be a bootable image.<br />
<br />
===Making an iso-image from existing files on harddisk===<br />
<br />
To make an iso-image just copy the needed files to one folder, then do a<br />
mkisofs -V volume_name -J -r -o isoimage.iso ~/folder<br />
<br />
===Mounting an iso-image===<br />
<br />
To test if the iso image is proper, you can mount it (as root):<br />
mount -t iso9660 -o ro,loop=/dev/loop0 cd_image /cdrom<br />
<br />
You have to first load the loop module:<br />
modprobe loop<br />
<br />
===Converting to iso-image===<br />
<br />
To convert a .img / ccd image, you can use ccd2iso :<br />
<br />
pacman -Sy ccd2iso<br />
<br />
ccd2iso /home/archman/image.img /home/archman/image.iso<br />
<br />
== Burning CDs with a GUI ==<br />
There are several applications available to burn CDs in a graphical environment. The use of these programs are self-explanatory.<br />
===Nero Linux===<br />
Just the same Nero on windows. [http://www.nero.com/eng/NeroLINUX.html Official link]|[http://aur.archlinux.org/packages.php?do_Details=1&ID=2153 AUR package]<br />
<br />
It's not free and the UI is not as good as the windows version. Also, 3.0.0 beta can't burn bootable cd from files correctly.<br />
<br />
If you happen to have a DVD-burner unsupported by dvd+rw-tools (which also means k3b and all other free GUIs), nero would be your only choice.<br />
<br />
===K3B===<br />
According to [http://www.k3b.org http://www.k3b.org], k3b is "The CD/DVD Kreator for Linux - optimized for KDE". K3B uses the [[wikipedia:Qt (toolkit)|QT]] toolkit.<br />
* Install k3b with pacman.<br />
<br />
# pacman -Sy k3b<br />
<br />
* As root, run <code>k3bsetup</code>,<br />
* Here you can set up your preferences about permissions etc.<br />
* Run <code>k3b</code> to run the main program.<br />
<br />
====About Locale====<br />
When running K3B, if the following message appears<br />
<br />
System locale charset is ANSI_X3.4-1968<br />
Your system's locale charset (i.e. the charset used to encode filenames) is <br />
set to ANSI_X3.4-1968. It is highly unlikely that this has been done intentionally.<br />
Most likely the locale is not set at all. An invalid setting will result in<br />
problems when creating data projects.Solution: To properly set the locale <br />
charset make sure the LC_* environment variables are set. Normally the distribution <br />
setup tools take care of this.<br />
<br />
It means that your locale is not set well.<br />
<br />
To fix it,<br />
* Remove <code>/etc/locale.gen</code><br />
# rm /etc/locale.gen<br />
* Re-install <code>glibc</code><br />
# pacman -Sy glibc<br />
* Edit <code>/etc/locale.gen</code>, uncommenting all lines lines that corresponds to your language AND the <code>en_US</code> options, for compatibility.<br />
# nano /etc/locale.gen<br />
<br />
en_US.UTF-8 UTF-8<br />
en_US ISO-8859-1<br />
<br />
* Re-generate the profiles with <code>locale-gen</code><br />
# locale-gen<br />
<br />
Generating locales...<br />
en_US.UTF-8... done<br />
en_US.ISO-8859-1... done<br />
pt_BR.UTF-8... done<br />
pt_BR.ISO-8859-1... done<br />
Generation complete.<br />
<br />
More info [http://bbs.archlinux.org/viewtopic.php?pid=251512%29; here]<br />
<br />
==== K3B says that there's no Burning Devices ====<br />
A common cause of this is the current user have no privileges for that.<br />
You can try to:<br />
* Add the user to the group <code>optical</code> (remember to re-login after this)<br />
gpasswd -a <user> optical<br />
* Set permissions to devices<br />
chmod 777 /dev/dvd*<br />
chmod 777 /dev/cd*<br />
<br />
Other causes, steps, look on the current guide (;<br />
<br />
===Gnomebaker===<br />
<br />
Gnomebaker is a solution to CD burning if you are using [[Gnome]].<br />
'''Gnomebaker is no longer maintained upstream as the author of the program has indicated. Consider using [http://wiki.archlinux.org/index.php/CD_Burning_Tips#Brasero Brasero] instead.'''<br />
<br />
* Install gnomebaker with pacman.<br />
<br />
<br />
# pacman -Sy gnomebaker<br />
<br />
<br />
* Run <code>gnomebaker</code> to run the main program.<br />
<br />
===Brasero===<br />
<br />
Brasero is another solution to CD burning if you are using [[Gnome]].<br />
<br />
* Install brasero with pacman.<br />
<br />
<br />
# pacman -Sy brasero<br />
<br />
<br />
* Run <code>brasero</code> to run the main program.<br />
<br />
===Graveman===<br />
Graveman is a simple and almost dependency-free application for burning CDs.<br />
<br />
* Install graveman with pacman.<br />
<br />
<br />
# pacman -Sy graveman<br />
<br />
<br />
* As root, run graveman, go to menu File > Preferences... > Devices and add your CD burners.<br />
* Note that you may have to manually add your own device in Graveman's preferences and point it at /dev/cdrom instead of /dev/hdc<br />
* Run <code>graveman</code> to run the main program.<br />
<br />
===Bashburn===<br />
<br />
Alternatively theres also [http://bashburn.sourceforge.net/ Bashburn] in [http://aur.archlinux.org/packages.php?do_Details=1&ID=3658&O=0&L=0&C=0&K=bashburn&SB=n&SO=a&PP=25&do_MyPackages=0&do_Orphans=0&SeB=nd AUR] as a semi-gui solution. BashBurn is the new name for the cd burning shell script Magma. It's not the best looking CD-burning application out there, but it does what you want it to do.<br />
<br />
==Troubleshooting==<br />
<br />
===PATA and SATA problems around 2.6.20/2.6.21===<br />
<br />
For some kernels on some machines, CD burning works very unreliably. This is not fully diagnosed but appears to be related to DMA and having SATA Hard Drives and older IDE CD/DVD Burners and is possibly more prevalent on PIIX Motherboards. On newer kernels there is a new driver whereby the CD/DVD Burner behaves as if it is a SCSI drive, even though it isn't. <br />
<br />
The symptom for this problem is an almost total refusal to burn anything at all. It 'seems' to work fine, but if you verify the burn it invariably fails. If this is happening to you and you have an IDE burner try this fix.<br />
<br />
You will need to install mkinitcpio as described here,[[Configuring_mkinitcpio]] so you can rebuild the kernel. You now need to reconfigure your /etc/mkinitcpio.conf file to reuse the old IDE drivers.<br />
<br />
gedit /etc/mkinitcpio.conf<br />
<br />
Find the line:<br />
<br />
MODULES="ata_generic ata_piix"<br />
<br />
and change it to (insert piix in the front)<br />
<br />
MODULES="piix ata_generic ata_piix"<br />
<br />
Then, find the line:<br />
<br />
HOOKS="base udev autodetect pata scsi sata usbinput keymap filesystems"<br />
<br />
and change that to (replace pata with ide)<br />
<br />
HOOKS="base udev autodetect ide scsi sata usbinput keymap filesystems"<br />
<br />
Use mkinitcpio to rebuild the kernel as described in it's own wiki page, and reboot. In brief :<br />
<br />
mkinitcpio -g /boot/kernel26.img</div>Doubhuahttps://wiki.archlinux.org/index.php?title=VMware_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)/Installing_Arch_as_a_guest_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)&diff=48604VMware (简体中文)/Installing Arch as a guest (简体中文)2008-09-01T14:39:32Z<p>Doubhua: </p>
<hr />
<div>[[Category:获取并安装Arch|ZVMWARELMAZArchlinux]]<br />
[[Category:模拟器|ZVMWARELMAZArchlinux]]<br />
[[Category:HOWTOs (简体中文)|ZVMWARELMAZArchlinux]]<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|Installing archlinux in VMWare}}<br />
{{i18n_entry|简体中文|在VMWARE里面安装Archlinux}}<br />
{{i18n_entry|Español|Cómo instalar Archlinux en VMWare}}<br />
{{i18n_links_end}}<br />
{{translateme}}<br />
在一个虚拟机(比如xp,macos上运行的vmware虚拟机里)安装Arch Linux 一点问题都没有,但是Vmware提供的的linux客户端的Vmware-tools不能被安装到archlinux上。<br />
<br />
提示:你可能根本不需要VMWare-tools,这个取决于你想要干嘛. 如果你想要更高的屏幕分辨率,与主机共享文件夹或者其他特殊功能,你才需要安装VMWare-tools。<br />
<br />
== 过程 ==<br />
注意:现在你可以安装open-vm-tools这个包,这个包可以从Community源里面获得. 所以只需要输入:<br />
pacman -Sy open-vm-tools<br />
<br />
开启VMware tools:<br />
<br />
/etc/rc.d/open-vm-tools start<br />
<br />
或者在启动时候自动加载,加入到/etc/rc.conf里面deamon一行:<br />
<br />
DEAMONS=(.... ... .... open-vm-tools ...)<br />
<br />
注意:x86_64没有open-vm-tools包<br />
<br />
所以所有下面的工作就不需要啦! : )<br />
<br />
大多数操作都需要root权限。<br />
<br />
写本文时候所用软件版本: <br />
* ArchLinux with kernel 2.6.17-3 & 2.6.18-2 / Xorg 7.1 installed on VMWare Workstation 5.5.2 build-29772 running on a Archlinux host<br />
* ArchLinux (Duke) with kernel 2.6.21.1-8 installed on VMWare Workstation 6.0.0 build-45731 running on a Windows XP host<br />
* ArchLinux (Don't Panic) with kernel 2.6.22.6-2 installed on VMWare Workstation 6.0.1 build-55017 running on a Windows XP host<br />
<br />
'''警告'''<br />
* VMWare Workstation 6.0.0 build-45731 的客户端程序 '''不能''' 在kernel 2.6.22上工作!<br />
* 要解决这个问题,保证你的系统(除了内核)升级到最新,即执行下面的,进行系统升级(来获取Don't Panic 2007.08):<br />
<br />
pacman -Su --ignore kernel-headers --ignore kernel26 --ignore glibc --ignore binutils --ignore gcc<br />
<br />
'''为 KERNELS >= 2.6.22 升级'''<br />
* VMWare Workstation 6.0.1 build-55017 '''能''' 完美运行kernel 2.6.22和更高版本。<br />
* 只需要简单的根据这个文档的描述,除了一个必须的补丁(改变)来完成客户端工具的安装。在解压VMware的工具到/opt/vmware-tools后,进行如下操作:<br />
<br />
cd /opt/vmware-tools/lib/vmware-tools/modules/source<br />
tar -xvf vmhgfs.tar<br />
cd vmhgfs-only<br />
'''<编辑compat_slab.h> 然后应用下面写出的简单一行的补丁'''<br />
cd ..<br />
mv vmhgfs.tar vmhgfs.tar.orig<br />
tar -cvf vmhgfs.tar vmhgfs-only<br />
'''<根据文章描述继续>'''<br />
<br />
compat_slab.h<br />
@@ -24,7 +24,7 @@<br />
/*<br />
* Destructor is gone since 2.6.23-pre1.<br />
*/<br />
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 22) || defined(VMW_KMEMCR_HAS_DTOR)<br />
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 22) || defined(VMW_KMEMCR_HAS_DTOR)<br />
#define compat_kmem_cache_create(name, size, align, flags, ctor) \<br />
kmem_cache_create(name, size, align, flags, ctor, NULL)<br />
#else<br />
<br />
=== 准备工作 ===<br />
<br />
(这个过程的一些重要部分改编至/受启发于一个叫[http://www.cs.ucr.edu/~jbyrne/vmware.htm VMWare on Slackware Linux]的页面,这个作者不知道的更多的技术信息现在写在本文中。)<br />
<br />
(选择的目录路径和安装vmware-workstation AUR 包使用的路径相似)<br />
<br />
本向导假定用户使用.tar.gz来安装(而不是.rpm)。<br />
细节请参见http://www.vmware.com/support/ws55/doc/ws_newguest_tools_linux.html。<br />
<br />
'''Problem #1:''' The VMWare-tools install script (vmware-install.pl) assumes that since the guest OS is Linux, the OS will be using sysV style init scripts. Since Arch uses BSD style init, VMWare needs to be given a directory containing the expected '''rc0.d to rc6.d''' and '''init.d'''.<br />
Running the following as root should give VMWare enough of a sysV interface to be satisfied:<br />
<br />
mkdir -p /etc/vmware-tools/init.d<br />
cd /etc/vmware-tools<br />
mkdir rc0.d<br />
mkdir rc1.d<br />
mkdir rc2.d<br />
mkdir rc3.d<br />
mkdir rc4.d<br />
mkdir rc5.d <br />
mkdir rc6.d<br />
<br />
For the Bash power user: mkdir rc{0,1,2,3,4,5,6}.d<br />
<br />
Create a link from /etc/rc.d/network to /etc/vmware-tools/init.d<br />
<br />
ln -s /etc/rc.d/network /etc/vmware-tools/init.d/network<br />
<br />
'''问题 #2:'''<br />
<br />
The vmware-tools installer checks for an entry in the kernel header's version.h file, that does not exist there. We'll paste it into the file with the following command:<br />
<br />
echo "#define UTS_RELEASE \"`uname -r`\"" >> /usr/src/linux-`uname -r`/include/linux/version.h<br />
<br />
Check if it is done right (2.6.19-ARCH replaced with '''your''' kernel version):<br />
<br />
cat /usr/src/linux-`uname -r`/include/linux/version.h<br />
<br />
#define LINUX_VERSION_CODE 132627<br />
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))<br />
#define UTS_RELEASE "2.6.19-ARCH"<br />
<br />
=== 开始安装程序 ===<br />
<br />
Expose the VMWare Tools iso by selecting '''VM -> Install VMWare Tool...''' from the VMWare Workstation menu.<br />
<br />
Mount the VMWare Tools iso, copy the tar.gz, and extract:<br />
<br />
mount /mnt/cdrom<br />
cp /mnt/cdrom/VMwareTools-6.0.0-45731.tar.gz ~<br />
umount /mnt/cdrom<br />
cd ~<br />
tar -zxvf VMwareTools-6.0.0-45731.tar.gz<br />
<br />
Go to the place you extracted the installer and start the installer:<br />
<br />
cd ~/vmware-tools-distrib<br />
./vmware-install.pl<br />
<br />
Specify the following answers:<br />
<br />
"In which directory do you want to install the binary files?": '''/opt/vmware-tools/bin'''<br />
"What is the directory that contains the init directories ... ?": '''/etc/vmware-tools'''<br />
For the rest accept default locations and say '''yes''' when a directory creation is needed.<br />
'''When the installer asks you to run vmware-config-tools.pl answer 'no' '''<br />
<br />
The installer part is done.<br />
<br />
=== 运行配置脚本 ===<br />
<br />
运行 '''/opt/vmware-tools/bin/vmware-config-tools.pl'''<br />
<br />
这个脚本提问 'What is the location of the directory of C header files that match your running<br />
kernel? [/usr/src/linux/include]'. 回答如下:<br />
<br />
/usr/src/linux-`uname -r`/include<br />
<br />
脚本将编译一些东西,选择Xorg,提示选择一个X屏幕分辨率。你需要已经安装好Xorg在你的系统里面来让X配置正常工作。更多请看[[Xorg (简体中文)]]。At the very least you should run:<br />
<br />
pacman -S xorg-server xorg-xkb-utils xorg-xauth xorg-server-utils xorg-xinit<br />
pacman -S xf86-video-vesa xf86-input-mouse xf86-input-keyboard<br />
pacman -S hwd<br />
hwd -x<br />
mv /etc/X11/xorg.conf.hwd /etc/X11/xorg.conf<br />
<br />
=== 最后一步 ===<br />
<br />
pacman -S xf86-video-vmware xf86-input-vmmouse<br />
<br />
编辑/etc/X11/xorg.conf,寻找 <br />
<br />
Section "InputDevice"<br />
Identifier "Mouse1"<br />
<br />
改成下面:<br />
<br />
Driver "vmmouse"<br />
Option "Device" "/dev/psaux"<br />
<br />
如果不能正常工作(比方在VMWare Fusion里面):<br />
<br />
Section "InputDevice"<br />
Identifier "Mouse1"<br />
Driver "mouse"<br />
EndSection<br />
<br />
在MacOS里面你应该可以(当然在重启X之后)使用使用两个鼠标键还有双击。<br />
<br />
在 rc.conf 里面迅早 MODULES= 这一行然后'''禁用''' pcnet32 模块然后启用vmware模块,就类似下面的:<br />
<br />
MODULES=(!pcnet32 vmblock vmxnet vmmemctl vmhgfs)<br />
<br />
为了保证日期和时间能和主机同步,vmware-guestd程序必须在运行。这个程序可以在开机时候通过下面步骤开启:<br />
<br />
cd /etc/rc.d <br />
ln -s /etc/vmware-tools/init.d/vmware-tools vmware-tools<br />
<br />
然后在 rc.conf 里面寻找 DAEMONS= 这一行然后把 'vmware-tools' 添加进去<br />
<br />
额外的,为了能复制/粘贴能在X和主机之间工作,你必须开启 'vmware-user' 程序。添加下面一行到你的配置文件中,.xinitrc 或者 .xsession (任何你的程序能在X启动的时候启动的地方):<br />
<br />
/opt/vmware-tools/bin/vmware-user &<br />
<br />
不过注意某些版本的VMWare (e.g. the tools shipped with Fusion) 位置在 /usr/lib/vmware-tools/bin32/.<br />
<br />
如果你使用KDE,vmware-user必须从 Autostart 文件夹里启动. 创建一个名叫 vmware-user 的文件到 ~/.kde/Autostart 目录中。<br />
<br />
内容如下:<br />
<br />
#!/bin/bash<br />
vmware-user &<br />
<br />
重启,然后所有功能应该能正常工作了。<br />
<br />
=== 与主机共享文件夹 ===<br />
<br />
创建一个新的共享文件夹,即选择VMware Workstation菜单上的'''VM -> Settings...'''。然后选择'''Options'''选项然后选'''Shared Folder'''。选中'''Always enabled'''选项然后创建一个新共享。对于XP,你可以创建一个用C当名字的共享,而主机地址为'''C:\'''。<br />
<br />
然后添加下面一行到'''/etc/fstab'''文件里(如果有需要就更改uid/gid):<br />
<br />
.host:/ /mnt/hgfs vmhgfs defaults,user,ttl=5,uid=root,gid=root,fmask=0133,dmask=0022 0 0<br />
<br />
创建一个文件夹来挂载:<br />
<br />
mkdir /mnt/hgfs<br />
mount /mnt/hgfs<br />
<br />
现在你的共享文件夹都可以在/mnt/hgfs下看到<br />
<br />
/mnt/hgfs/<Shared Folder Name><br />
<br />
以Windows XP '''C'''共享为例:<br />
<br />
ls /mnt/hgfs/C<br />
... all your Windows files under C:\ ...<br />
<br />
==更多请看==<br />
[[Installing VMware]] and [[Installing vmware player]] -- the opposite of this ;)<br />
<br />
To get vmxnet working with the current (as of mid DEC06) stuff, review this:<br />
[http://www.vmware.com/community/thread.jspa?messageID=518943 vmware tools 5.5.3, linux 2.6.19, vmxnet compile fix]</div>Doubhua