HOMEPAGE FORUMS NEWS DOCUMENTATION SCREENSHOTS
SystemRescueCd forums
View unanswered posts | View active topics It is currently 01 Nov 2014, 03:50



Post new topic Reply to topic  [ 2 posts ] 
 md device renamed into md126 [solved] 
Author Message

Joined: 18 Apr 2012, 07:21
Posts: 1
Post md device renamed into md126 [solved]
In my opinion, the most annoying things in sysrescue are two:

1) you cannot choose your shell with command parameters
2) auto detection of md array is causing renaming of md to number starting from 126 (md0 -> md126, md1 -> md127, etc) and so on.

For first problem i haven't yet write a line of code, but i isolate the second one.
The problem is md is trying to name md with hostname (ex: sysrescue:0) and give number md126; and it will not be a such problem if md preferred super-minor will not be override. Istead it is, and it gives boot problems after reboot in normal system without sysrescue.
The "patch" is not very refined, but is a point of start.

in the ramdisk (initram.igz) in the init file:

Code:
--- init.orig   2012-04-18 09:38:34.000000000 +0200
+++ init   2012-04-13 18:43:14.000000000 +0200
@@ -556,8 +556,8 @@
             /sbin/modprobe -b ${mod}
         done
         good_msg "Starting mdadm (linux software raid)"
-        /sbin/mdadm -Es > /etc/mdadm.conf
-        /sbin/mdadm -As
+        /sbin/mdadm -Es | awk '{ for (i=1; i<=NF;i++) { if ($i !~ /^name=/) printf("%s ", $i) } print("") }' > /etc/mdadm.conf
+        /sbin/mdadm -As -c /etc/mdadm.conf
     fi
 
     # Setup the Logical Volume Manager



Some users complained like me in the forum for this behaviour, then think about inclusion.

Regards,
Matteo


18 Apr 2012, 07:44
Profile

Joined: 07 Apr 2010, 16:19
Posts: 960
Post Re: md device renamed into md126
Thank you,
your patch is in systemrescuecd-x86-2.6.0-beta004

Gernot


21 Apr 2012, 07:31
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.