我假设我使用syslinux,因为我的USB引导盘上有一个syslinux.cfg文件。
syslinux的配置如下:
UI /linux/boot/vesamenu.c32
TIMEOUT 140
MENU ROWS 4
MENU CLEAR
MENU BACKGROUND /linux/boot/bootlogo.png
LABEL default
MENU LABEL Run Linux
KERNEL /linux/boot/vmlinuz
APPEND vga=769 initrd=/linux/boot/initrfs.img load_ramdisk=1 prompt_ram
因此,我试图将物理本机CentOS 4.6安装移动到CentOS 5.5服务器上的DomU实例。我遵循了教程@ CentOs - WIki提供的内容,但在运行xm时遇到了以下问题。
📷
Traceback (most recent call last):
File "/usr/bin/pygrub", line 691, in ?
data = fs.open_file(chosencfg["ramdisk"],).read()
IOError: [Errno 2] No such file or directory
No handlers coul
我按照以下说明为Chrome创建了一个Ramdisk:
1) Most of our commands require superuser privileges, so we might as well just switch to root.
sudo su -
2) Edit your startup script:
nano /etc/rc.local
Right above “exit 0″ we’ll add the commands that need to run each time at startup:
mkdir /tmp/ram
mount -t tmpfs
我正在尝试使用zenity在bash脚本中从用户获取输入。(Zenity是一个bash可调用的gui工具包“东西”)
这是我到目前为止的尝试
#!/bin/bash
if [[ true ]]
then
# send a message to ask if data should be saved
# do some form of copy to save the data
zenity --question --title="Ramdisk Unmount" --timeout=0 --text="Save ramdisk contants