当前位置: 首页 > 工具软件 > shoelace > 使用案例 >

linux更改硬盘密码,linux-0.11调试教程,安装minix-1.5.10到硬盘(3)安装shoelace后修改/etc/rc文件和更改root密码...

姜鹏程
2023-12-01

# This file performs various system initializations.

# Initialize files.

>/etc/mtab                # create file to log mounts

>/etc/utmp                # /etc/utmp keeps track of logins

# Mount the floppy disk.

/bin/getlf "Please insert /usr diskette in drive 0.  Then hit ENTER."

/etc/mount /dev/fd0 /usr        # mount the floppy disk

# Try to read the hardware real-time clock, if there is one, to set the date

/usr/bin/date `/usr/bin/readclock`

# Initialization (cannot be done until /usr is mounted).

>/usr/adm/wtmp                # accounting information

/usr/bin/printroot >>/etc/mtab        # /etc/mtab keeps track of mounts

# Initialize the first RS232 line to 1200 baud.

/usr/bin/stty 1200

#Display the message of the day and start update.

cat /etc/message

/etc/update  &

改为:(红色部分)

# This file performs various system initializations.

# Initialize files.

>/etc/mtab                # create file to log mounts

>/etc/utmp                # /etc/utmp keeps track of logins

# Mount the floppy disk.

#/bin/getlf "Please insert /usr diskette in drive 0.  Then hit ENTER."

/etc/mount /dev/hd2 /usr        # mount the floppy disk

# Try to read the hardware real-time clock, if there is one, to set the date

/usr/bin/date `/usr/bin/readclock`

# Initialization (cannot be done until /usr is mounted).

>/usr/adm/wtmp                # accounting information

/usr/bin/printroot >>/etc/mtab        # /etc/mtab keeps track of mounts

# Initialize the first RS232 line to 1200 baud.

/usr/bin/stty 1200

#Display the message of the day and start update.

cat /etc/message

/etc/update  &

修改/etc/rc文件后便可以不用加载disk05到/usr了。

更改root密码:passwd root,两边输入密码root后即可。

 类似资料: