Sponsored Content
Operating Systems Linux Ubuntu Ubuntu desktop RAID1 boot problem. Post 302977231 by Reol on Thursday 14th of July 2016 04:57:55 PM
Old 07-14-2016
Finally got the RAID1 working.

Hi, just let you know and if someone stumbles in same problem i was able to fix the problem by following measures:

So firstly in busybox i was able to boot while degraded by entering these commands.
Code:
 
(initramfs): mdadm --run /dev/md0
(initramfs): mdadm --run /dev/md1
(initramfs): exit

And to automate the boot when degraded by creating a file /usr/share/initramfs-tools/scripts/local-top/mdadm adding the following to the file:

Code:
patch --verbose --ignore-whitespace <<'EndOfPatch'
--- mdadm
+++ mdadm
@@ -76,7 +76,15 @@
   if $MDADM --assemble --scan --run --auto=yes${extra_args:+ $extra_args}; then
     verbose && log_success_msg "assembled all arrays."
   else
-    log_failure_msg "failed to assemble all arrays."
+    log_warning_msg "failed to assemble all arrays...attempting individual starts"
+    for dev in $(cat /proc/mdstat | grep md | cut -d ' ' -f 1); do
+      log_begin_msg "attempting mdadm --run $dev"
+      if $MDADM --run $dev; then
+        verbose && log_success_msg "started $dev"
+      else
+        log_failure_msg "failed to start $dev"
+      fi
+    done
   fi
   verbose && log_end_msg

EndOfPatch

Then update initrafms with command:
update-initramfs -u
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Would like to install x86 desktop Ubuntu over AMD64 Ubuntu server

My intention was to build a dual boot XP Pro 64 and Ubuntu media server. I had installed the AMD64 version of Ubuntu 8.10 server and thought that I would be able to install Apache server. I need a GUI to work in. I tried to boot and install Mythbuntu 32 bit 8.10, but my machine now won't recognize... (0 Replies)
Discussion started by: docflyboy
0 Replies

2. Ubuntu

UBUNTU 8.1 Desktop Edition not running after installation

I am a new Ubuntu user, installing Ubuntu on Windows XP . The installation process is successful but after installing when I login , it just freezes with a blank screen for both XClient scripts and GNOME sessions. I have given 10 GB space to the installation. Also i noticed that the time... (5 Replies)
Discussion started by: singla
5 Replies

3. UNIX for Advanced & Expert Users

how to create multiple-boot system with disks mirrored(RAID1+0) and disk alone

I have a HP proliant ML 570 G3 with two 146GB disk drives mirrored(RAID1+0) windows server 2003 was installed on that disk. I will add a disk.(scsi 300GB) I will install Linux on that additional disk. I want to create multiple-boot system. Is it possible? I wanna know how to create... (0 Replies)
Discussion started by: lifegeek
0 Replies

4. Ubuntu

Ubuntu creating a new user with Desktop

Hi, I am using Ubuntu 8.04 32-bit x86 m/c. I am using the following command to create an user. useradd -d /home/new_user -m new_user -s /bin/bash But, I am not get to see the "Desktop" directory automatically created. May I know how to create it by default? (1 Reply)
Discussion started by: royalibrahim
1 Replies

5. UNIX for Dummies Questions & Answers

How do I link my Ubuntu desktop to a separate partition?

I have a dual boot system on my laptop running Windows 7 professional and Ubuntu 10.10. I would like my windows 7 desktop C:\users\username\Desktop and also my Ubuntu 10.10 desktop /home/username/Desktop to both save their files to the same location somewhere...perhaps /windows (a 40 gb win32... (0 Replies)
Discussion started by: Marcus Aurelius
0 Replies

6. Windows & DOS: Issues & Discussions

Get file on our windows desktop from a ubuntu server

Hello, How can I please have a program automatically upload some files from a ubuntu server to my machine desktop that is running windows XP? I would like to be able to do that from the windows machine itself. Thanks, (3 Replies)
Discussion started by: Pouchie1
3 Replies

7. Ubuntu

How to Get Started on Ubuntu Desktop for the first time

Hello Everyone, I have been using RHEL from quite a while now on server system, but now i also want to use Linux as my Desktop/Laptop OS on my personal computer. So i downloaded the Ubuntu 12.04 yeserday as i have read alot about it being the most popular Linux Desktop OS. So guys could you... (1 Reply)
Discussion started by: Rohit Bhanot
1 Replies

8. UNIX Desktop Questions & Answers

Boot problem after updates, Ubuntu, black screen and cursor

I hope this is the correct forum, please forgive a newbie. Hi all, New to linux, ubuntu, and this forum. I have enjoyed ubuntu for the past few months, but after my last update installation ubuntu would boot to a black screen and blinking cursor. If I let it sit for a while it would give the... (0 Replies)
Discussion started by: nutoubuntu
0 Replies

9. Ubuntu

Installing latest Ubuntu on my desktop

I wish to install the latest ubuntu on my desktop. How do I go about doing this ? Also how do I create the superuser or admin once the installation is done ? (3 Replies)
Discussion started by: sundaresh
3 Replies
GERMINATE-PKG-DIFF(1)					  Ubuntu General Commands Manual				     GERMINATE-PKG-DIFF(1)

NAME
germinate-pkg-diff -- compare seeds against currently installed packages SYNOPSIS
germinate-pkg-diff [-l file] [-m {i|r|d}] [-a arch] [seeds] DESCRIPTION
germinate-pkg-diff compares the expansion of a list of seed packages against the set of packages installed on the current system. When con- structing seeds for a software distribution, it can be used to iteratively find packages installed on developers' systems that should be included in the seeds. A list of seeds against which to compare may be supplied as non-option arguments. Seeds from which they inherit will be added automatically. The default is 'desktop'. OPTIONS
-l, --list file Read the list of currently installed packages from file. The default is to read the output of dpkg --get-selections, and any supplied file should be in the same format. -m, --mode {i|r|d} Set the output mode as follows: i Show the dpkg selections needed to install just these seeds. List unseeded but installed files as ``deinstall'', and seeded but uninstalled files as ``install''. r List unseeded but installed files as ``install'', and seeded but uninstalled files as ``deinstall''. d Show the differences between the packages specified by the seeds and the list of installed packages, in a somewhat diff-like for- mat. -S, --seed-source source,... Fetch seeds from the specified sources. The default is http://people.canonical.com/~ubuntu-archive/seeds/. -s, --seed-dist dist Fetch seeds for distribution dist. The default is ubuntu.precise. -d, --dist dist,... Operate on the specified distributions. The default is precise. Listing multiple distributions may be useful, for example, when exam- ining both a released distribution and its security updates. -a, --arch arch Operate on architecture arch. The default is i386. BUGS
--mode r is useless as dpkg --set-selections input. AUTHORS
Lamont Jones <lamont@ubuntu.com> Colin Watson <cjwatson@canonical.com> germinate-pkg-diff is copyright (C) 2004, 2005, 2006, 2007, 2008 Canonical Ltd. See the GNU General Public License version 2 or later for copying conditions. A copy of the GNU General Public License is available in /usr/share/common-licenses/GPL. Ubuntu Jul 18, 2007 Ubuntu
All times are GMT -4. The time now is 01:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy