[SOLVED] how to install ArchLinux on a simple software raid 0

I have two 256GB disks and I want them to be in raid 0.
I tried following this tutorial: https://wiki.archlinux.org/index.php/In … AID_or_LVM
but this tutorial has the added complication of LVM and raid 1 which I don't need.
I made 3 partitions on each of the disks:
sda1 - 100MB for /boot
sda2 - 2048MB for swap
sda3 - raid 0 md0
sdb1 - unused
sdb2 - 2048 for swap
sdb3 - raid 0 md0 for /
I can assemble and format the sda1(ext4), sda2(swap), sdb2(swap)  md0 (ext4) and install all the packages
I also configured mdadm.conf by Alt F2 at the installer and executing: mdadm --examine --scan > /mnt/etc/mdadm.conf
and added mdadm hook to the HOOKS list in /etc/mkinitcpio.conf (before 'filesystems')
configured the boot with grub outside of the installer as indicated in the tutorial
But when I boot I get:
md0: unknown partition table
Error: Unable to determine the file system of /dev/sda3
please help.
Last edited by 99Percent (2011-06-29 20:21:52)

fyi this is how I finally set up my simple 2 drive raid 0:
1. Create a bootable USB ArchLinux with UNetBootin
2. Boot with the USB
3. # /arch/setup
3. Select source: internet (highly recommended because i found out UNetBootin sources are not 100% reliable though not necessarily so, IOW just to be sure)
3. partition the two drives with 100mb for /boot and 100mb for swap (setup requires it - I have 8GB memory, I decided I don't need much swap space) and the rest of both sda and sdb which will make your raid 0.
4. ALT F2 to another terminal and create the the raid like this:
# modprobe raid0 (not sure if this is actually necessary)
# mdadm --create /dev/md0 --level=0 --raid-devices=2 /dev/sda2 /dev/sdb2
5. go back to the setup screen with CTRL-ALT-F1
6. go to Prepare Hard Drives>Manually configure block devices, filesystems and mountpoints. Add the /boot (ext2) for sda1 swap for sdb1 and desired filesystem for md0 (I chose reiserfs). Ignore the rest of the devices.
7. Select packages. Add the base-devel just in case, but nothing else and install packages
8. ALT F2 again to the  terminal and run:
# mdamd --examine --scan > /mnt/etc/mdadm.conf
(this will configure the mdadm.conf to use your raid as created)
9. go back to the setup screen again with CTRL-ALT-F1
10. Select configure system
11. Edit /etc/rc.conf adding: raid0 to MODULES= like this:
MODULES=(raid0)
again not sure if necessary but it works for me
12. Edit /etc/mkinitcpio.conf adding dm_mod to the MODULES= like this:
MODULES="dm_mod"
13. also add to /etc/mkinitcpio.conf HOOKS= mdadm but before filesystems in my case it went like this:
HOOKS="base udev autodetect pata scsi sata mdadm filesystems"
14. I went ahead and uncommented a few mirrors in the mirrorlist file so I wouldn't have to deal with that later (and maybe it helps on the way).
15. Also set a root password. Not sure if it is even necessary but maybe some components require it.
16, Go to configure bootloader and select Grub
17. When asked "Do you have your system installed on software raid? answer Yes
18. When asked to edit the menu.lst file don't edit anything, just exit
19. When asked "Do you want to install grub to the MBR of each harddisk from your boot array? answer Yes
20. You will get "Error: Missing/Invalid root device:" and "GRUB was NOT successfully installed." Ignore those messages.
21. Exit the install
22. remove the USB stick and:
# reboot
23. the boot will fail and you will get a grub> prompt type the following commands:
grub> root (hd0,0)
grub> setup (hd0)
grub> reboot
Thats it!
Last edited by 99Percent (2011-06-28 18:51:59)

Similar Messages

  • How to install Hp deskjet 3050 Jobs software on Windows 8.1 Desktop putter

    how to install Hp deskjet 3050 J610 software on Windows 8.1 Desktop HP Pavillion

    Hello @dougz ,
    Welcome to the HP forums.
    I understand that you would like to know how to install your deskjet 3050 software onto your Windows 8.1 desktop.
    It should be as easy as installing the printers driver. Just download the software and follow the on screen prompts. 
    Aardvark1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!

  • How to install Archlinux on a acer emachines em350 ?

    Do a 64 bits version will work better if the cpu is 64 bits capable ?
    Can I remove all added stuffs on Archbang or CTKArchLive to return to plain Archlinux with openbox that I can configure myself easily, so I can install Archlinux faster ?
    I tried and installed Arch properly but I need to install the broadcom bcm 4727 driver (b43,wl,sta,open source), which driver do I need and how can I install it by my usb on Archlinux CLI made with base, sudo and wireless_tools only ?

    Inxsible wrote:
    spiky25 wrote:
    Inxsible wrote:
    spiky25,
    if you are going to use Archbang, then you should ask questions on their forum. We do not support Archbang. If you want to use Arch Linux, then you shouldn't be afraid of the installation process, because eventually there will be a time when you will have to do things on your own in the system. The Beginner's Guide or the Official Installation Guide is a great way to install Arch. Read through it and its simple enough. Installing via Archbang and or CTKArchLive and then trying to come back to a default Arch install is cumbersome and more difficult IMO.
    Also most of the questions you have are pretty well documented in the Wiki and in previous forum posts. Please search and you will find your answers.
    I also prefer plain Arch but i'm not sure about my broadcom wifi n chipset 4727 and my Atheros zydas1211b yagi usb antenna install cause they support so many drivers and I have to install them offline that the worst for me ...
    Installing over ethernet would be the best bet. Can you get access to an ethernet during install, you can later switch once you have configured everything.
    Also, are you sure that Archbang and/or CTKArch will install the required drivers without you having to do anything. I haven't used either so I am not sure.
    I have just access to a free hotspot for now and I need my laptop for a meeting wednesday if possible ...

  • [SOLVED] How to install and run (on debian) a separate, downlevel version of firefox for the F5/firepass VPN?

    (Note: my problem is similar to [https://support.mozilla.org/en-US/questions/931534?e=es&as=aaq another current problem] except that
    * OP is running windows (I'm running a debian linux)
    * OP is asking a more general question (how to fix?) while I'm asking for details on a proposed fix)
    I'm currently running
    $ lsb_release -ds
    Linux Mint Debian Edition
    $ cat /etc/debian_version
    wheezy/sid
    $ uname -rv
    3.2.0-2-amd64 #1 SMP Sun Mar 4 22:48:17 UTC 2012
    $ iceweasel --version
    Mozilla Iceweasel 13.0.1
    I'd like to continue running an uplevel iceweasel ([http://en.wikipedia.org/wiki/Mozilla_Corporation_software_rebranded_by_the_Debian_project which is firefox]) but apparently need to run a downlevel version in order to run a particular vendor-supplied plugin. How best to do that (i.e., with minimal performance degradation, and without affecting my package management)? Or is there another way to solve the general problem (running the F5 Network Access Plugin)? Why I ask:
    My employer is giving me remote access via a SecurID token and the F5 Network Access Plugin (F5NAP). The latter is in fact a browser plugin, which seems to me an odd way to implement a VPN, but it's the only offered option. Unfortunately,
    * the only browsers supported for linux are Firefox 3 and Firefox 8 (per [http://support.f5.com/kb/en-us/products/big-ip_apm/manuals/product/apm_compatibility_matrix_10_2_1.html this]--scroll to "Linux Operating Systems")
    * my primary laptop runs LMDE (see above) with Iceweasel 13 (from the mozilla.debian.net repository), which I want to keep. (It's the uplevel browser, dammit !-)
    So I first tried to install the F5NAP on my iceweasel, hoping it was sufficiently like the listed versions. I browsed to my employer's site, logged in using the token, and followed the link to install the plugin. Unfortunately, that failed: the xpi began running, but then quit with the message
    > F5 Network Access Plugin could not be installed because it is not compatible with Iceweasel 13.0.1
    Hoping for a simple workaround, I told the often-useful User Agent Switcher plugin to emulate Firefox 8, but no fix. Hence it seems like I will hafta
    * install Firefox 3 or Firefox 8
    * run that downlevel browser whenever I want remote access
    * run the uplevel browser for everything else
    This definitely seems like a kludge, so I am open to alternatives. Meanwhile I'm wondering:
    # Which of the F5-supported downlevel browsers (Firefox 3 or Firefox 8) has the smaller memory footprint?
    # How to install the downlevel browser so that it does not interfere with my uplevel browser's configuration, operation, and updating via debian package management?
    # How to run the downlevel browser so that its operation does not interfere with my uplevel browser? I know firefox typically wants to run singleton.

    @[https://support.mozilla.org/en-US/user/160087 verdi]: thanks for your helpful suggestions. The "fix" (actually a kludge, but I gotta work with what F5 and my employer give me) was:
    # Install/run latest Firefox 3 (despite there being [https://support.mozilla.org/en-US/questions/932269 no 64-bit version for linux]) using [https://docs.google.com/open?id=0BzDAFHgIxRzKbmJDUGZqTzhfbDg this bash scriptlet].
    # Create a [https://docs.google.com/open?id=0BzDAFHgIxRzKQjRyQndqUTJpRXM run script] to start firefox so that one can
    #* choose the appropriate profile (I was unable to set it from the script without startup error)
    #* run multiple instances (I don't want 3.x firefox touching my uplevel profile)
    # Run Firefox 3.x with the runner, then point it to my employer's site to install the [http://support.f5.com/kb/en-us/products/big-ip_apm/manuals/product/apm_compatibility_matrix_10_2_1.html F5 Network Access Plugin] (restarting firefox as required).
    The gnome-terminal tab from which I invoke the runner spews a bazillion "wrong ELF class: ELFCLASS64" errors, but the plugin runs, and I can SSH normally (though more slowly) to servers on the VLAN from another terminal tab.

  • [OPEN] - How to install ArchLinux in Asus Eee pad transformer?

    I have Asus Eee pad transformer TF101 tablet.
    It was running Android. And then i installed Ubuntu On using this guide book ( https://gist.github.com/1398019 ) and it works.
    http://i.imgur.com/enL8j.png
    Mod edit: This image is too big, see: https://wiki.archlinux.org/index.php/Fo … s_and_Code.
    But
    Ubuntu i do not want to use because ArchLinux is much better for me.
    How can i install ArchLinux in this device?
    Last edited by bernarcher (2011-11-27 20:26:38)

    Hello IamTrying,
    you are aware that Arch is primarily a help yourself system? Thus some simple forum search would have provided the links karol posted.
    Just continue there. If any specific questions remain, feel free to open a new thread and ask to the point.
    And, yes, be sure to read the forum etiquette I linked to above, esp. in the "Life is a Two-way Street" section the hint on "help vampirism".
    Closing.

  • How to install archlinux? Very difficult? Why?

    I wanted to install archlinux which I downloaded through bittorent (an iso file). It was around 290 MB file. But I found it is the most difficult of all distros. Upon booting I was taken to shell command which I don't know at all. I am not a computer professional. What is the easy way? Otherwise I will say goodbye to archlinux.
    Last edited by mirchichamu (2008-08-21 17:41:19)

    It does seem that you really want to get a working GNU/Linux distribution, when I first started with it, I was a student at high school (circa 1994), and there WERE no easy to use distributions, everything was a hard slog to get working.  Arch is quite simple once you work your way around it the first time, unfortunately however, it does require you to become a little familiar with the terminal and the commands available from it.
    The fundamental difference is that you need to type your commands rather than just clicking on something to get it to work as in windows.  There are downsides compared to ubuntu, but you will quickly find, that if you try to get it working, then once you have mastered it, the rest will come easily.
    On the other hand, you could try one of the other distributions, Ubuntu is generally considered pretty good for most new users, but if you have had problems with it, then it might be worth trying Fedora, again it is very easy to use and configure.  However you will likely find that there will always be something that you stumble with on any easy to use distribution unless you understand the fundamentals of how the operating system works.  This is something that a distribution such as Arch will teach you, in spades. 
    The most important thing though is to not let yourself get intimidated.  It is quite easy to just look at the wiki for example, and think to yourself that you are not capable of understanding or following the instructions, in some respects you don't need to understand them now, that will come later, but if you think you can follow the instructions, even if it means printing the pages out so that you have a hard copy that you can follow then it is worth doing, and you will find yourself with a feeling of accomplishment at the end that you would not get if you got Ubuntu or Fedora working.

  • [SOLVED] How to install nvidia 285.05.09-3 drivers

    Hi All,
    Currently I have installed xf86-video-nouveau 0.0.16_git20110829-1 drivers in my Arch Linux but I would like to install nvidia 285.05.09-3 in kernel 3.1.1-1-ARCH.
    Each time I have tried to install nvidia drivers I have had a lot of problems: the worst is that once installed I reboot system and X does not start, screen goes black, etc so I am afraid to install it because then I have a lot of problems to goes back nouveau and to get X starts again.
    So could anyone say me step by step how to install it with success and that once I reboot my system you ensure me X starts?
    And a step by step guide in case X does not starts and I need to come back nouveau again and start X normaly without problems.
    Thx.
    Last edited by toni (2011-11-16 23:34:31)

    karol wrote:
    /dev/zero wrote:What did your last slave die of?
    Epic!
    <donkey-style "laughter">
    @toni
    Did you install the nvidia 285 drivers from the repos? Have you tried https://wiki.archlinux.org/index.php/Nv … au_drivers ?
    Can you post some logs when the nvidia drivers are failing? What card do you have?
    Hi Karol,
    I have just installed nvidia 285 from repos taking into account the link you provided. I follow the steps mentioned in the script to change from nouveau to nvidia and it went Ok. Now I have installed nvidia drivers from repos and at boot-up, X starts correctly (SOLVED).
    I think when I installed nvidia in the past one thing was missed: (I did not do this)
    /usr/bin/sudo /sbin/mkinitcpio -p linux
    ....Maybe that was the problem.
    My graphic card is Nvidia Go7600.
    Thx again
    Last edited by toni (2011-11-16 23:34:04)

  • How to install Archlinux???

    Hi,
    I've tried to install Archlinux and after booting into the x86_64 mode for my 64-bit CPU i end up with this: https://www.dropbox.com/s/zief1ambk38fr … .25.10.jpg
    What to do now???
    Even after using Linux for 6 years, i now feel like a noob......Any help will be very much appreciated!

    Follow the Beginner's Guide in the Arch wiki very, very carefully.  It would be a good idea to read the other sections in the main page of the wiki, too (e.g. "The Arch Way," etc.).  Arch is a Do-It-Yourself distribution with a Do-It-Yourself community; you're expected to research things ahead of time and try to solve problems on your own before coming to the forums asking for help, especially with basic tasks.

  • [SOLVED] how to install mingetty

    $ pacman -S mingetty
    error: 'mingetty': could not find or read package
    so then I downloaded mingetty-1.08.tar.gz  & mingetty-utf8.patch from http://aur.archlinux.org/packages.php?ID=13793
    to my home/rich/Downloads folder. But how do I install it?
    Last edited by dameunmate (2010-07-16 08:41:28)

    Sorry about that, I had read a lot of the wiki but I had no idea how to install a package from the AUR. The console was very upset when I tried to install mingetty as the root user, so to install it as another user changing the permissions on each and every installation file took a long time. However I got there in the end. Thanks for your help.
    For anyone who like myself is running Arch Linux and Openbox, in the end I didn't need mingetty to boot straight into X Openbox, so I've now uninstalled it. I only needed to folow the instructions in the Arch Wiki at http://wiki.archlinux.org/index.php/Start_X_at_boot (second section using etc/inittab).
    Here's my etc/inittab:
    # /etc/inittab
    # Runlevels:
    # 0 Halt
    # 1(S) Single-user
    # 2 Not used
    # 3 Multi-user
    # 4 Not used
    # 5 X11
    # 6 Reboot
    ## Only one of the following two lines can be uncommented!
    # Boot to console
    #id:3:initdefault:
    # Boot to X11
    id:5:initdefault:
    rc::sysinit:/etc/rc.sysinit
    rs:S1:wait:/etc/rc.single
    rm:2345:wait:/etc/rc.multi
    rh:06:wait:/etc/rc.shutdown
    su:S:wait:/sbin/sulogin -p
    # -8 options fixes umlauts problem on login
    c1:2345:respawn:/sbin/agetty -8 38400 tty1 linux
    c2:2345:respawn:/sbin/agetty -8 38400 tty2 linux
    c3:2345:respawn:/sbin/agetty -8 38400 tty3 linux
    c4:2345:respawn:/sbin/agetty -8 38400 tty4 linux
    c5:2345:respawn:/sbin/agetty -8 38400 tty5 linux
    c6:2345:respawn:/sbin/agetty -8 38400 tty6 linux
    # Hypervisor Virtual Console for Xen and KVM
    #h0:2345:respawn:/sbin/agetty -8 38400 hvc0 linux
    ca::ctrlaltdel:/sbin/shutdown -t3 -r now
    # Example lines for starting a login manager
    x:5:once:/bin/su YOUR_USERNAME_HERE -l -c "/bin/bash --login -c /usr/bin/startx >/dev/null 2>&1"
    #x:5:respawn:/usr/sbin/gdm -nodaemon
    #x:5:respawn:/usr/bin/kdm -nodaemon
    #x:5:respawn:/usr/bin/slim >& /dev/null
    # End of file
    ...the key is in the x:5:once:/bin/su YOUR_USERNAME_HERE -l -c "/bin/bash --login -c /usr/bin/startx >/dev/null 2>&1"
    So now I just press the power button and end up in Openbox in about 50 seconds (for some reason my motherboard takes 30 seconds to get to the Grub menu, then as Arch boots it takes a good 10 seconds to get a wireless connection up). Press the power button again and it automatically shuts down! (see http://wiki.archlinux.org/index.php/Shu … wer_Button - I don't know if this closes X properly but anyway it works)
    Last edited by dameunmate (2010-07-16 09:05:36)

  • [SOLVED] How to install Image magick extension for php?

    As in topic, how to install imagick extension for php (xampp)? I tried with pecl, i installed pear first and imagick with "pecl install imagick". I added extension to php.ini file (/opt/lampp/etc/php.ini) but when i try to start xampp, i get error:
    Warning: PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/imagic.so' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/imagic.so: cannot open shared object file: No such file or directory in Unknown on line 0
    What should i do?
    Last edited by smiechowy (2011-03-06 12:23:55)

    it was installed in /usr/lib/php/modules/ I copied imagic.so to /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/ but it still don't work ;/
    Edit: problem solved, i made a mistake adding "imagic.so" in php.ini instead of "imagick.so".
    Last edited by smiechowy (2011-03-06 12:23:39)

  • [Solved] How to install yajl 2.0 and reinstall yaourt?

    I had yaourt with yajl 1.0, but somehow got deleted. My fault.
    I had used yaourt, even if it asked for yajl>=2.0 and installed packages from AUR.
    Now I cannot install yaourt, as it asks for yajl>=2.0
    I can only install yajl 1.0.11-3, as pacman/kpackagekit won't find yajl 2.0.1-0, so I downloaded the tar.gz file, but don't know how to install it.
    This is the zip file; lloyd-yajl-2.0.1-0-gf4b2b1a.tar.gz and its in the Home directory.
    What should I do to install this, so I can install yaourt again?
    Thanks!
    Last edited by Ariya (2011-09-24 15:31:54)

    There is no PKBUILD.
    Once extracted, went into the directory
    $ cd lloyd-yajl-f4b2b1a, then
    $ ./configure && make install
    finally,
    58/58 tests successful, but;
    Install the project...
    -- Install configuration: "Release"                                                                                                         
    -- Installing: /usr/local/lib/libyajl.so.2.0.1
    CMake Error at src/cmake_install.cmake:48 (FILE):
      file INSTALL cannot copy file
      "/home/ariya/builds/lloyd-yajl-f4b2b1a/build/yajl-2.0.1/lib/libyajl.so.2.0.1"
      to "/usr/local/lib/libyajl.so.2.0.1".
    Call Stack (most recent call first):
      cmake_install.cmake:37 (INCLUDE)
    make[1]: *** [install] Error 1
    make[1]: Leaving directory `/home/ariya/builds/lloyd-yajl-f4b2b1a/build'
    make: *** [install] Error 2
    So, I copied /home/ariya/builds/lloyd-yajl-f4b2b1a/build/yajl-2.0.1/lib/libyajl.so.2.0.1"  to "/usr/local/lib/libyajl.so.2.0.1
    But, there is no yajl-2.0.1 installed.
    The build directory containst the following; CMakeCache.txt  CMakeFiles  cmake_install.cmake  example  Makefile  perf  reformatter  src  test  verify  yajl-2.0.1
    What have I done wrong?
    Thanks!

  • How to install archlinux from pendrive/usb?

    I downloaded archlinux-2010.05-core-i686.iso.
    I unmounted the pendrive.
    Would i format the pendrive with ext3/ext4 or fat32 or fat16 format?
    After that i would do dd if=archlinux-2010.05-core-i686.iso of=/dev/sda
    If i use unetbootin, should i format the pendrive with ext3/ext4 or fat32 or fat16 format?
    Has anyone used unetbootin to install archlinux from pendrive/usb?

    jasonwryan wrote:I'm pretty sure all of your questions are answered on the wiki: http://wiki.archlinux.org/index.php/Ins … lash_drive
    I did:
    dd if=arch.iso of=/dev/sda
    But after setting bios boot option to usb and reboot,it's not booting from usb.
    What's the problem?
    I get the normal grub menu.
    Last edited by cola (2010-06-17 09:49:34)

  • [SOLVE] How to install this program (PyIpChanger)?

    Hello!
    I'm new to the forum and I wanted you to help me how to install this program.
    https://otland.net/threads/pyipchanger- … ts.157953/
    It is a ip changer for Tibia, to play in OT servers.
    Since there does not exist in the official repositories nor in the AUR, It is necessary install manually, but I can't figure out
    *Sorry my english, I'm not a native speaker.
    Best wishes!
    Last edited by Rearis (2015-05-10 14:52:48)

    Robg told you how to do this:
    robg wrote:
    Just use pacman to install: pyhon2, python2-pyqt4
    After having done that, you can run main.py using pyhon2.
    So install the software, then run:
    python2 PyIpChanger.py
    Last edited by mrunion (2015-05-07 13:36:31)

  • How can install archlinux full without network connection?

    Hello,
    I need install Archlinux, I usually install this OS with an ISO NetInstall Image, but in this momment I haven't a good network connection, only wireless connection but this is very slow. Exists another option for install ArchLinux full?
    Any image full? if the answer it's yes please  do you give me a link? and if the installation proccess it's different please give me a tutorial.
    Thanks and regards.
    Last edited by th3r0rn (2011-06-15 16:31:37)

    Inxsible wrote:
    No. it does not. No Arch installation would give you a desktop by default. It seems that you need to read more about Arch and its philosophy. You can however master your own ISO, if you are willing to go that route.
    You might want to give some other distros a try. Maybe Debian or Ubuntu, or even Slackware which provides everything on a single CD or DVD.
    I know Arch, but usually I install Arch with a NetInstall and I execute this command
    pacman -S xfwm4 xfce4-panel xfdesktop thunar xfce4-session xfce4-settings xfce4-appfinder xfce-utils xfconf
    but this proccess is very slow and I thought that with core image that would be different.
    Then I need a network connection.... 
    Last edited by th3r0rn (2011-06-15 16:36:23)

  • [solved]How to install flash plugin in Konqueror?

    I just
    pacman -S flashplugin
    successfully, but still my Konqueror can't work with flash.
    How to install the flashplugin in Konqueror correctly?
    Thanks
    jazzi
    PS: my system is 32bits pc
    Last edited by jazzi (2009-06-10 00:41:58)

    Go to Settings/Configure Konqueror/Plugins and use "Scan for Plugins" then.
    Last edited by FallenWizard (2009-06-09 13:13:01)

Maybe you are looking for