|
root@darkstar:~# fdisk -l
Disk /dev/hda: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 637 5116671 b W95 FAT32
/dev/hda2 638 1656 8185117+ 83 Linux
/dev/hda3 1657 1721 522112+ 82 Linux swap
/dev/hda4 1723 9964 66203865 f W95 Ext'd (LBA)
/dev/hda5 1723 2997 10241406 b W95 FAT32
/dev/hda6 2998 4272 10241406 b W95 FAT32
/dev/hda7 4273 5547 10241406 83 Linux
/dev/hda8 5548 6822 10241406 83 Linux
/dev/hda9 6823 8097 10241406 83 Linux
/dev/hda10 8098 9964 14996646 83 Linux (注:slackware / 分区)
root@darkstar:~# uname -a
Linux darkstar 2.6.18 #1 Wed Sep 20 03:01:24 CDT 2006 i686 athlon-4 i386 GNU/Linux
试验目的:在slackware grub坏掉时进入系统!
方法:利用安装光盘中的loadlin.exe与bzimage 或 系统好时的/boot/vmlinuz-generic-2.6.18
1 将loadlin.exe bzimage(系统默认内核,slackware光盘中应为2.4.33内核) 放到c:\
2 进入dos(方法挺多:用98盘引导,用ghost盘引导,或者其他)
3 在c:\ 下执行loadlin bzimage root=/dev/hda10 ro quiet 好了引导开始
4 用root登录,执行grub命令 第一条命令如下
grub> root (hd0,此处按tab出现以下)
Possible partitions are:
Partition num: 0, Filesystem type is fat, partition type 0xb
Partition num: 1, Filesystem type is ext2fs, partition type 0x83
Partition num: 2, Filesystem type unknown, partition type 0x82
Partition num: 4, Filesystem type is fat, partition type 0xb
Partition num: 5, Filesystem type is fat, partition type 0xb
Partition num: 6, Filesystem type is ext2fs, partition type 0x83
Partition num: 7, Filesystem type is ext2fs, partition type 0x83
Partition num: 8, Filesystem type is ext2fs, partition type 0x83
Partition num: 9, Filesystem type is ext2fs, partition type 0x83
此处正确命令为root (hd0,9)
第二条命令setup (hd0)
出现sucess...字样,你已经成功了。good luck! |
|