- 論壇徽章:
- 1
|
cd /dev
mv fd0135ds36 fd0135ds36.std
mv rfd0135ds36 rfd0135ds36.std
>/tmp/fd288
marry -a /tmp/fd288
ls -l /dev/marry/tmp/fd288
brw-r--r-- 1 root sys 76, 1 Jul 6 22:51 /dev/marry/tmp/fd288
mknod fd0135ds36 b 76 1
mknod rfd0135ds36 c 76 1
#設(shè)備號與前面列出的相同
mkdev fd
1. Filesystem
2. Emergency Boot and Root floppy filesystems
Enter an option or q to quit: 2
Choices for type of floppy filesystem.
1. 96tpi, double sided, 15 sectors per track (1.2M 5.25 inch)
2. 135tpi, double sided, 18 sectors per track (1.44M 3.5 inch)
3. 135tpi, double sided, 36 sectors per track (2.88M 3.5 inch)
4. 135tpi, double sided, 21 sectors per track (1.68M 3.5 inch)
Enter an option or q to quit: 3
Please choose the type of filesystem.
1. Root filesystem
2. Boot filesystem
3. Single floppy Boot and Root filesystem (2.88M only)
4. Root filesystem with network utilities
5. Single floppy Boot and Root filesystem + network utils (2.88M only)
If you have high density (1.44M) disks, you must create separate root
and boot filesystem floppies. The root floppy must be prepared first.
If you have extra density (2.88M) disks, you can choose to have both
the root and boot filesystems on the same floppy disk.
Enter an option or q to quit: 1
Would you like to format the floppy first? (y/n) y
Copying files to RAM Disk ...
Saving /dev/cmos to file /etc/bootroot.d/mnt/etc/cmos.root
Do you want to place extra files on the root filesystem? (y/n) y
mount
/ on /dev/root read/write on Fri Jul 06 22:44:58 2007
/stand on /dev/boot read only on Fri Jul 06 22:44:58 2007
/u on /dev/u read/write on Fri Jul 06 22:45:13 2007
/etc/bootroot.d/mnt on /dev/marry/etc/bootroot.d/ramdisk read/write on Fri Jul 06 22:57:19 2007
cd /etc/bootroot.d/mnt
#拷自己需要的其它文件
#但后面可能會空間不夠,需要的話要從/etc/bootroot.d/mnt刪掉一些文件如:etc/badtrk etc/emulator
#下面這一步是為了將沒用的空間,用空格填滿,便于提高壓縮效果
echo " ">temp.txt
dd if=/tmp/temp.txt bs=10k count=8000>>temp.txt
rm temp.txt
exit
Please choose the boot floppy style.
1. System specific boot
2. Generic boot (builds a special kernel)
3. System specific boot with networking enabled
(Current system must have functional network)
The System specific boot floppy can only boot the machine it was created on.
The Generic boot floppy can be used to boot any machine.
Enter an option or q to quit: q
mount /dev/fd0135ds36 /mnt
cd /mnt
l
-rw-r--r-- 1 root sys 1688634 Jul 6 23:14 ramdisk.Z
umount /stand
mount /stand
cp ramdisk.Z /stand
############################################################
#到此為止,可以從硬盤上啟動應(yīng)急盤了:
#boot:unix ramdisk=ramdisk.Z ram.preload=7 root=ram(7)
#下面說的是做啟動光盤:
mkdev fd
Choices for contents of the floppy filesystem.
1. Filesystem
2. Emergency Boot and Root floppy filesystems
Enter an option or q to quit: 2
Choices for type of floppy filesystem.
1. 96tpi, double sided, 15 sectors per track (1.2M 5.25 inch)
2. 135tpi, double sided, 18 sectors per track (1.44M 3.5 inch)
3. 135tpi, double sided, 36 sectors per track (2.88M 3.5 inch)
4. 135tpi, double sided, 21 sectors per track (1.68M 3.5 inch)
Enter an option or q to quit: 3
Please choose the type of filesystem.
1. Root filesystem
2. Boot filesystem
3. Single floppy Boot and Root filesystem (2.88M only)
4. Root filesystem with network utilities
5. Single floppy Boot and Root filesystem + network utils (2.88M only)
If you have high density (1.44M) disks, you must create separate root
and boot filesystem floppies. The root floppy must be prepared first.
If you have extra density (2.88M) disks, you can choose to have both
the root and boot filesystems on the same floppy disk.
Enter an option or q to quit: 2
Please choose the boot floppy style.
1. System specific boot
2. Generic boot (builds a special kernel)
3. System specific boot with networking enabled
(Current system must have functional network)
The System specific boot floppy can only boot the machine it was created on.
The Generic boot floppy can be used to boot any machine.
Enter an option or q to quit: 2
#這里根據(jù)情況,最好能選1,但可能空間不夠;選2需要的空間小,但可能需要link硬盤驅(qū)動
Insert a 135ds36 floppy into drive 0
Press to continue or q to quit:
Would you like to format the floppy first? (y/n) y
Please choose the type of filesystem.
1. Root filesystem
2. Boot filesystem
3. Single floppy Boot and Root filesystem (2.88M only)
4. Root filesystem with network utilities
5. Single floppy Boot and Root filesystem + network utils (2.88M only)
If you have high density (1.44M) disks, you must create separate root
and boot filesystem floppies. The root floppy must be prepared first.
If you have extra density (2.88M) disks, you can choose to have both
the root and boot filesystems on the same floppy disk.
Enter an option or q to quit: q
mount /dev/fd0135ds36 /mnt
cp /stand/ramdisk.Z /mnt
#最好將/stand/link拷過來
#根據(jù)空間情況,也可以將/stand下的幾個unix選一個壓縮后拷過來替換unix.Z: compress -Hc unix.Z
#下面幾步不是必須的,僅當(dāng)需要時做,將硬盤驅(qū)動拷上來,假設(shè)硬盤驅(qū)動鏡像文件為/tmp/ips.img,驅(qū)動名為ips:
#marry -a /tmp/ips.img
#mkdir /mnt2
#mount /dev/marry/tmp/ips.img /mnt2
#cp -rp /mnt2/ips /mnt/ips
#vi /mnt/etc/default/boot
#僅當(dāng)需要時修改boot,如增加link串:DEFBOOTSTR= 。。。。。。。 link=ips Sdsk=ips(0,0,0,0) Srom=wd(0,0,0,0)
#下面這一步是為了將沒用的空間,用空格填滿,并將鏡像文件增加到必要的長度
echo " ">temp.txt
dd if=/tmp/temp.txt bs=10k count=8000>>temp.txt
rm temp.txt
cd /
umount /mnt
l /tmp/fd288
-rw-r--r-- 1 root sys 2949120 Jul 7 01:55 /tmp/fd288
#確認(rèn)文件大小
#傳到windows上來用nero刻光盤,選CDROM(引導(dǎo))
指定2.88M的映像文件fd288
打開高級設(shè)置,虛擬2.88M軟驅(qū)
ISO 9660 + Joliet
最多為31個字符(級別2)
多位
光盤上隨你再添加別的文件。
注意mkdev fd期間不要按中斷,否則不成功要重來。
##################################################################
如果愿意,也可以應(yīng)急盤啟動后將ramdisk中的內(nèi)容復(fù)制到boot區(qū),這樣可能不用ramdisk,直接用boot區(qū)作為root來盤動應(yīng)急盤:
應(yīng)急盤啟動后:
mount /dev/hd0root /mnt
mount /dev/boot /mnt/stand
find . -mount -depth -print|cpio -puvdm /mnt/stand
結(jié)合/mnt/etc/defaut/boot及/mnt/stand/default/boot修改這兩個boot文件。
####################################################################
試試吧,祝好運(yùn)。
本文來自ChinaUnix博客,如果查看原文請點(diǎn):http://blog.chinaunix.net/u/31/showart_511757.html |
|