Mini Linux Scripts

Source: Internet
Author: User


#/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






This article is from the "lake and Laughter" blog, please make sure to keep this source http://hashlinux.blog.51cto.com/9647696/1760691

Mini Linux Scripts

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.