新年礼物,ubuntu710最精简版 50多M的U盘系统

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#166

帖子 eexpress » 2008-02-20 18:27

很能体现lin精神的。支持。
● 鸣学
键盘上的舞者
帖子: 43
注册时间: 2008-02-18 20:11

#167

帖子 键盘上的舞者 » 2008-02-20 20:11

yaska 写了:把syslinux.cfg贴上来... 我帮你改

ubuntu下用什么CG软件??? slax上没有吗??
麻烦您了.

INCLUDE /boot/slax.cfg

就上面这一句呢.
我的笔记本运行slax,播放视频,会偏色呢.应该是驱动不好,而ubuntu就不会.
主要在linux中使用NUKE,FUSION,C4D等呢.
感谢.
头像
yaska
帖子: 1169
注册时间: 2007-10-28 21:35

#168

帖子 yaska » 2008-02-20 21:13

键盘上的舞者 写了:
yaska 写了:把syslinux.cfg贴上来... 我帮你改

ubuntu下用什么CG软件??? slax上没有吗??
麻烦您了.

INCLUDE /boot/slax.cfg

就上面这一句呢.
我的笔记本运行slax,播放视频,会偏色呢.应该是驱动不好,而ubuntu就不会.
主要在linux中使用NUKE,FUSION,C4D等呢.
感谢.
这个系统是精简的ubuntu,没有包管理. 大部分软件都是以ro的形式加进去的.. ro包需要自己定制.
这个系统可以很好的在移动设备运行,但是在功能方面可能不适合你的需求.

by the way.. 可以把bootinst 传上来吗???
键盘上的舞者
帖子: 43
注册时间: 2008-02-18 20:11

#169

帖子 键盘上的舞者 » 2008-02-20 21:37

yaska 写了:
键盘上的舞者 写了:
yaska 写了:把syslinux.cfg贴上来... 我帮你改

ubuntu下用什么CG软件??? slax上没有吗??
麻烦您了.

INCLUDE /boot/slax.cfg

就上面这一句呢.
我的笔记本运行slax,播放视频,会偏色呢.应该是驱动不好,而ubuntu就不会.
主要在linux中使用NUKE,FUSION,C4D等呢.
感谢.
这个系统是精简的ubuntu,没有包管理. 大部分软件都是以ro的形式加进去的.. ro包需要自己定制.
这个系统可以很好的在移动设备运行,但是在功能方面可能不适合你的需求.

by the way.. 可以把bootinst 传上来吗???
嗯。我现在想把系统启动起来就好。
感谢您的解答。


#!/bin/bash

set -e
TARGET=""
MBR=""

# Find out which partition or disk are we using
MYMNT=$(cd -P $(dirname $0) ; pwd)
while [ "$MYMNT" != "" -a "$MYMNT" != "." -a "$MYMNT" != "/" ]; do
TARGET=$(egrep "[^[:space:]]+[[:space:]]+$MYMNT[[:space:]]+" /proc/mounts | cut -d " " -f 1)
if [ "$TARGET" != "" ]; then break; fi
MYMNT=$(dirname "$MYMNT")
done

if [ "$TARGET" = "" ]; then
echo "Can't find device to install to."
echo "Make sure you run this script from a mounted device."
exit 1
fi

MBR=$(echo "$TARGET" | sed -r "s/[0-9]+\$//g")
NUM=${TARGET:${#MBR}}
cd "$MYMNT"

clear
echo "-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-"
echo " Welcome to Slax boot installer "
echo "-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-"
echo
echo "This installer will setup disk $TARGET to boot only Slax."
if [ "$MBR" != "$TARGET" ]; then
echo
echo "Warning! Master boot record (MBR) of $MBR will be overwritten."
echo "If you use $MBR to boot any existing operating system, it will not work"
echo "anymore. Only Slax will boot from this device. Be careful!"
fi
echo
echo "Press any key to continue, or Ctrl+C to abort..."
read junk
clear

echo "Flushing filesystem buffers, this may take a while..."
sync

# setup MBR if the device is not in superfloppy format
if [ "$MBR" != "$TARGET" ]; then
echo "Setting up MBR on $MBR..."
./boot/syslinux/lilo -S /dev/null -M $MBR ext # this must be here to support -A for extended partitions
echo "Activating partition $TARGET..."
./boot/syslinux/lilo -S /dev/null -A $MBR $NUM
echo "Updating MBR on $MBR..." # this must be here because LILO mbr is bad. mbr.bin is from syslinux
cat ./boot/syslinux/mbr.bin > $MBR
fi

echo "Setting up boot record for $TARGET..."
./boot/syslinux/syslinux -d boot/syslinux $TARGET

echo "Disk $TARGET should be bootable now. Installation finished."

echo
echo "Read the information above and then press any key to exit..."
read junk
键盘上的舞者
帖子: 43
注册时间: 2008-02-18 20:11

#170

帖子 键盘上的舞者 » 2008-02-20 21:54

好像找到问题的原因了。换了个grub4dos-0.4.3-chs版本的,启动了。可是提示我的分区不对。
请问,menu.lst这样编辑对吗?我的电脑就是一块硬盘。U盘是sdb。

title Prayaya LiveSystem
root (hd0,0)
kernel (hd0,0)/prayaya-files/vmlinuz-2.6.22-14-inlsd-generic mode=iso init=/init root=/dev/ram lang=cn dir=/prayaya-files fs_dir=prayaya-files find_ro quiet splash
initrd (hd0,0)/prayaya-files/initrd.img
boot
键盘上的舞者
帖子: 43
注册时间: 2008-02-18 20:11

#171

帖子 键盘上的舞者 » 2008-02-20 22:11

启动后看见了选择菜单,回车后,要么提示找不到文件,要不说分区的type不对。
我想应该是menu.lst不对。我是按照你的这个搞得。这个menu.lsi的内容是:
title Prayaya LiveSystem
root (hd0,0)
kernel (hd0,0)/prayaya-files/vmlinuz-2.6.22-14-inlsd-generic mode=iso init=/init root=/dev/ram lang=cn dir=/prayaya-files fs_dir=prayaya-files find_ro quiet splash
initrd (hd0,0)/prayaya-files/initrd.img
boot

我的电脑是一块硬盘4个分区。U盘是4G的,全部化为一个分区。
请帮忙。
头像
yaska
帖子: 1169
注册时间: 2007-10-28 21:35

#172

帖子 yaska » 2008-02-20 23:24

快接近成功了,试试改成这样。。
title Prayaya LiveSystem
find --set-root /prayaya-files/initrd.img
kernel /prayaya-files/vmlinuz-2.6.22-14-inlsd-generic mode=iso init=/init root=/dev/ram lang=cn dir=/prayaya-files fs_dir=prayaya-files find_ro quiet splash
initrd /prayaya-files/initrd.img
boot

硬盘是sata?

如果是提示文件找不到, 用grub的命令行check一下:
1. 进入到grub菜单,按“e”进入命令行
2. 输入:
#root(hd
按“Tab”键,会列出设备。 你的情况应该显示hd0和hd1。
3. 输入
#root (hd0,
按“Tab”键,会列出设备的分区,如果只有一个分区就可用判断是hd0是U盘,否则就是硬盘。
4. 假设hd0是U盘。输入:
# root (hd0, 0)
#find /
按“Tab”键,会列出分区上的目录和文件,确认有/prayaya-files/目录。

最后根据第四步的root (hd*,*),改一下menu.lst.
上次由 yaska 在 2008-02-20 23:52,总共编辑 1 次。
头像
yaska
帖子: 1169
注册时间: 2007-10-28 21:35

#173

帖子 yaska » 2008-02-20 23:50

echo "This installer will setup disk $TARGET to boot only Slax."
if [ "$MBR" != "$TARGET" ]; then
echo
echo "Warning! Master boot record (MBR) of $MBR will be overwritten."
echo "If you use $MBR to boot any existing operating system, it will not work"
echo "anymore. Only Slax will boot from this device. Be careful!"
fi


注意上面几句
我只知道它用syslinux来启动,细节还要看看
lomey
帖子: 5
注册时间: 2007-07-20 15:32

#174

帖子 lomey » 2008-02-21 3:18

不错
键盘上的舞者
帖子: 43
注册时间: 2008-02-18 20:11

#175

帖子 键盘上的舞者 » 2008-02-21 11:51

再次感谢您。我试试。
键盘上的舞者
帖子: 43
注册时间: 2008-02-18 20:11

#176

帖子 键盘上的舞者 » 2008-02-21 11:52

我的硬盘是普通的IDE硬盘。笔记本的。
键盘上的舞者
帖子: 43
注册时间: 2008-02-18 20:11

#177

帖子 键盘上的舞者 » 2008-02-21 12:03

改成上面的后,全屏如下:

Boot "prayaya livesystem"

find --set-root /prayaya-files/initrd.img
(hd0,0)
Filesystem type is fat,partition type 0xc
kernel /prayaya-files/vmlinuz-2.6.22-14-inlsd-generic mode=iso init=/init root=/dev/ram lang=cn dir=/prayaya-files fs_dir=prayaya-files find_ro quiet splash
error 17:File not found
press any key to continue...

menu.lst是复制您的173楼的内容,没有改动。
我在win xp系统下,查看分区是fat32的,怎么会提示is fat呢?
再次感谢。
头像
yaska
帖子: 1169
注册时间: 2007-10-28 21:35

#178

帖子 yaska » 2008-02-21 17:23

键盘上的舞者 写了:改成上面的后,全屏如下:

Boot "prayaya livesystem"

find --set-root /prayaya-files/initrd.img
(hd0,0)
Filesystem type is fat,partition type 0xc
kernel /prayaya-files/vmlinuz-2.6.22-14-inlsd-generic mode=iso init=/init root=/dev/ram lang=cn dir=/prayaya-files fs_dir=prayaya-files find_ro quiet splash
error 17:File not found
press any key to continue...

menu.lst是复制您的173楼的内容,没有改动。
我在win xp系统下,查看分区是fat32的,怎么会提示is fat呢?
再次感谢。
还是error 17:File not found啊..
你确定prayaya-files下面是vmlinuz-2.6.22-14-inlsd-generic吗?
键盘上的舞者
帖子: 43
注册时间: 2008-02-18 20:11

#179

帖子 键盘上的舞者 » 2008-02-21 19:52

yaska,兄弟,您太伟大了。
搞定了!!!
实在感谢您。
键盘上的舞者
帖子: 43
注册时间: 2008-02-18 20:11

#180

帖子 键盘上的舞者 » 2008-02-21 19:53

以后有CG方面的问题,请联系我的QQ22053672。
回复