首页 > 系统服务 > 详细

Mini Linux Scripts

时间:2016-04-06 00:41:48      阅读:199      评论:0      收藏:0      [点我收藏+]


#/bin/sh

#

echo "mounting proc and sys..."

mount -t proc proc /proc

mount -t sysfs sysfs /sys


echo "Load ext3 module..."

insmod /lib/modules/jbd.ko

insmod /lib/modules/ext3.ko


echo "Detect and export hardware infomation..."

mdev -s


echo "Mount real rootfs to /mnt/sysroot..."

mount -t ext3 /dev/hda2 /mnt/sysroot


echo "Switch to read rootfs ..."

exec switch_root /mnt/sysroot /sbin/init 




#!/bin/sh

#

echo -e "\tWelcome to \033[34mMageEdu Tiny\033[0m Linux"


echo "mount proc and sys..."

mount -t proc proc /proc

mount -t sysfs sysfs /sys


echo "Remount the rootfs..."

mount -t ext3 -o remount,rw /dev/hda2 /


echo "Detect and export hardward infomation...."

mdev -s


echo "Mount the other filesystem..."

mount -a






本文出自 “江湖笑笑生” 博客,请务必保留此出处http://hashlinux.blog.51cto.com/9647696/1760691

Mini Linux Scripts

原文:http://hashlinux.blog.51cto.com/9647696/1760691

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!