Il 15/05/2014 10:44, Claudio ML ha scritto:
Hello all,
After substituting an mdadm raid1 disk, the system fail to boot automatically. The system is an OpenSuSE 13.1 with grub 0.97 (the first version of grub). If i try to reconfigure grub with yast, it parses something wrong, and the result is a wrong menu.lst, as the following:
default 0 timeout 8 ##YaST - activate
###Don't change this comment - YaST2 identifier: Original name: linux### title openSUSE 13.1 kernel root=/dev/md0 video=1280x1024 resume=/dev/disk/by-id/md-uuid-96aaf4c0:5364150c:1304df88:3950f929 splash=silent quiet showopts vga=0x317 initrd
As you can see, it miss the kernel name, initrd name, and the root parameter is in the wrong position.
If i look into the configuration of grub from Yast, i don't have /dev/md0 as root partition from the drop down menu, i think that is the problem, but i don't know why Yast don't see /dev/md0.
My disk configuration is the following:
Disk /dev/sda: 360.1 GB, 360080695296 bytes, 703282608 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk label type: dos Disk identifier: 0x54eaff44
Device Boot Start End Blocks Id System /dev/sda1 * 2048 20965375 10481664 fd Linux raid autodetect /dev/sda2 20965376 83875839 31455232 fd Linux raid autodetect /dev/sda3 83875840 88068095 2096128 fd Linux raid autodetect /dev/sda4 88068096 488396799 200164352 fd Linux raid autodetect
Disk /dev/sdb: 750.2 GB, 750156374016 bytes, 1465149168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk label type: dos Disk identifier: 0x00000000
Device Boot Start End Blocks Id System /dev/sdb1 * 2048 20965375 10481664 fd Linux raid autodetect /dev/sdb2 20965376 83875839 31455232 fd Linux raid autodetect /dev/sdb3 83875840 88068095 2096128 fd Linux raid autodetect /dev/sdb4 88068096 488396799 200164352 fd Linux raid autodetect
Disk /dev/md0: 10.7 GB, 10733150208 bytes, 20963184 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk label type: dos Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
Disk /dev/md2: 2146 MB, 2146422784 bytes, 4192232 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/md3: 205.0 GB, 204968222720 bytes, 400328560 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/md1: 32.2 GB, 32210083840 bytes, 62910320 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk label type: dos Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
My fstab is the following:
/dev/disk/by-id/md-uuid-96aaf4c0:5364150c:1304df88:3950f929 swap swap defaults 0 0 /dev/disk/by-id/md-uuid-2a4e6095:a9c239f0:0477060e:49a1bbbe / ext3 acl,user_xattr 1 1 /dev/disk/by-id/md-uuid-1d39a2e1:22b1d95d:d727cf11:d4dd65de /srv ext3 acl,user_xattr 1 2 /dev/disk/by-id/md-uuid-8a38879b:1f60f4a7:7a3c2d6c:a1306844 /var ext3 acl,user_xattr 1 2 proc /proc proc defaults 0 0 sysfs /sys sysfs noauto 0 0 debugfs /sys/kernel/debug debugfs noauto 0 0 usbfs /proc/bus/usb usbfs noauto 0 0 devpts /dev/pts devpts mode=0620,gid=5 0 0
If needed i can provide y2log or anything else.
Another thing i have noticied, and it is strange: with blkid i see some mdX with "PTTYPE="dos"". That are the partitions Yast don't put into root device selection: blkid /dev/sda1: UUID="2a4e6095-a9c2-39f0-0477-060e49a1bbbe" UUID_SUB="78a1dac3-cbb6-7d01-2b6f-69c87585d409" LABEL="linux:0" TYPE="linux_raid_member" /dev/sda2: UUID="1d39a2e1-22b1-d95d-d727-cf11d4dd65de" UUID_SUB="83ff9767-2be3-f24b-1904-c0a33d4b32df" LABEL="linux:1" TYPE="linux_raid_member" /dev/sda3: UUID="96aaf4c0-5364-150c-1304-df883950f929" UUID_SUB="2fe57595-dcf6-49d3-08a9-43c6f584ddff" LABEL="linux:2" TYPE="linux_raid_member" /dev/sda4: UUID="8a38879b-1f60-f4a7-7a3c-2d6ca1306844" UUID_SUB="eee184c0-44e9-0077-034d-2ed7567d630f" LABEL="linux:3" TYPE="linux_raid_member" /dev/sdb1: UUID="2a4e6095-a9c2-39f0-0477-060e49a1bbbe" UUID_SUB="64b4fb23-883f-ac43-3962-ae3c60c118a8" LABEL="linux:0" TYPE="linux_raid_member" /dev/sdb2: UUID="1d39a2e1-22b1-d95d-d727-cf11d4dd65de" UUID_SUB="c876ca43-e5f0-5693-dc21-cc7a07d2f76f" LABEL="linux:1" TYPE="linux_raid_member" /dev/sdb3: UUID="96aaf4c0-5364-150c-1304-df883950f929" UUID_SUB="3d564fa9-fad8-f46f-f87f-01b7230393ec" LABEL="linux:2" TYPE="linux_raid_member" /dev/sdb4: UUID="8a38879b-1f60-f4a7-7a3c-2d6ca1306844" UUID_SUB="8cac3c53-50a4-6e56-ca30-993b9661b7b5" LABEL="linux:3" TYPE="linux_raid_member" /dev/md0: UUID="099e775b-2df0-4de8-a08e-b4920beff9d7" TYPE="ext3" PTTYPE="dos" /dev/md2: UUID="abe4d05b-581b-44f5-a2e1-0ec14393f0ab" TYPE="swap" /dev/md3: UUID="54c755bb-39f1-45c8-9871-519aab91fcab" TYPE="ext3" /dev/md1: UUID="9aa63ee5-7c49-4ae2-b388-e3716b478d68" TYPE="ext3" PTTYPE="dos" So, i can delete that PTTYPE safely without data loss ? And what is the command i have to issue ? I have googled a little about this, but no answers for now... -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org