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 ??

ハードドライブスマート情報:

トラブルシューティングのためのポインタ要求:

ベストアンサー1

おすすめ記事