修复由于 GRUB 错误导致的系统启动失败

修复由于 GRUB 错误导致的系统启动失败

我们有一个基于 Debian 的系统,它会意外地进入不可启动模式。列出了系统中经常发生的错误。

1 > GRUB RESUE
2 > INTIRAMFS
3 > INIT SCRIPT FAILURE

目前,我们正在寻找这些错误的原因。首先,我收集了硬盘信息GRUB 资源错误机

如果有人指出这些错误的根本原因,那就太好了。应采取哪些措施来避免这些错误。

FDISK信息:

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xc4bd0d2c

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        3395    27261952   83  Linux
/dev/sda2            3395       28631   202706944   83  Linux
/dev/sda3           28631       38902    82503680    5  Extended
/dev/sda5           28631       38641    80404480   83  Linux
/dev/sda6           38641       38902     2095104   83  Linux

分开信息:

Expected info:

Model: ATA ST320LT012-9WS14 (scsi)
Disk /dev/sda: 320GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos

Number  Start   End     Size    Type      File system     Flags
 1      2097kB  27.9GB  27.9GB  primary   ext3            boot
 2      27.9GB  235GB   208GB   primary   ext3
 3      235GB   320GB   84.5GB  extended
 5      235GB   318GB   82.3GB  logical   ext3
 6      318GB   320GB   2145MB  logical   linux-swap(v1)

 Recieved info:
 Model: ATA ST9320325AS (scsi)
Disk /dev/sdb: 320GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type      File system     Flags
 1      1049kB  27.9GB  27.9GB  primary   ** EXT3 MISSING **                boot
 2      27.9GB  235GB   208GB   primary   ext3
 3      235GB   320GB   84.5GB  extended
 5      235GB   318GB   82.3GB  logical   ext3
 6      318GB   320GB   2145MB  logical   linux-swap(v1)

案件GRUB 救援 当我们尝试挂载 SDA 分区时

mount /dev/sda1 /mnt/test  : It throws **Mount: you must specify filesystem type**

mount -t ext3 /dev/sda1 /mnt/test  : 
It throws **VFS: can't find ext3 filesystem on dev sda1**
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
   missing codepage or helper program, or other error
   In some cases useful info is found in syslog - try
   dmesg | tail  or so

分区创建脚本详细信息:

device="/dev/sda"
echo "Partition create process start for ${device}"
a=$(fdisk -l | grep ${device})
disk=`echo $a | awk '{print $3}' | sed 's/\:$//'`
if [[ "$disk" == 320* ]];then #For 320GB primary disk
    fdisk -u ${device} < hddSectorInfo.sh

    ###hdd Sector info###
    # n p 1 4096 54527999
    # n p 2 54530048 459943935
    # n e 3 459948032 624955391
    # n l 459952128 620761087
    # n l 620765184 624955391
    # a 1  w  q
    ####


fi
mkfs.ext3 -F ${device}1
mkfs.ext3 -F ${device}2
mkfs.ext3 -F ${device}5
mkswap ${device}6
swapon ${device}6

还。请求一些有关分区创建的指导..

        1. Making /boot as separate partition is a must ??

硬盘驱动器的智能信息:

请求修复问题的指针:

相关内容