[SOLVED] mdadm / RAID trouble

Hi all,
In relation to this post: Migrating data to a "new" setup, questions
I think I've a problem with my new RAID5 array everything seemed to work fine, I was transferring stuff to it, which went ok. Then I reduced the old fs on /home (which held everything) to the minimum size ~2.3TB, and pvmove:ed a partition off it so I could add it to the RAID array. After unmounting the raid to do an fsck, something happened (though it didn't say!), it's like the RAID array just disappeared.
Here's the dmesg: http://dpaste.org/1oUi/ snippet below:
md0: detected capacity change from 4000795590656 to 0
md: md0 stopped.
md: unbind<sdb>
md: export_rdev(sdb)
md: unbind<sda>
md: export_rdev(sda)
md: bind<sda1>
md: bind<sdb1>
md: bind<sdc1>
md/raid:md0: device sdb1 operational as raid disk 1
md/raid:md0: device sda1 operational as raid disk 0
md/raid:md0: allocated 3175kB
md/raid:md0: raid level 5 active with 2 out of 3 devices, algorithm 2
RAID conf printout:
--- level:5 rd:3 wd:2
disk 0, o:1, dev:sda1
disk 1, o:1, dev:sdb1
md0: detected capacity change from 0 to 4000793231360
RAID conf printout:
--- level:5 rd:3 wd:2
disk 0, o:1, dev:sda1
disk 1, o:1, dev:sdb1
disk 2, o:1, dev:sdc1
md: recovery of RAID array md0
md: minimum _guaranteed_  speed: 1000 KB/sec/disk.
md: using maximum available idle IO bandwidth (but not more than 200000 KB/sec) for recovery.
md: using 128k window, over a total of 1953512320 blocks.
md0: detected capacity change from 0 to 4000793231360
md0: unknown partition table
EXT4-fs (dm-2): mounted filesystem with ordered data mode. Opts: (null)
EXT4-fs (dm-3): mounted filesystem with ordered data mode. Opts: (null)
EXT4-fs (dm-2): re-mounted. Opts: (null)
ata2.00: exception Emask 0x0 SAct 0x7ff SErr 0x0 action 0x6 frozen
ata2.00: failed command: READ FPDMA QUEUED
ata2.00: cmd 60/00:00:00:cf:70/01:00:e7:00:00/40 tag 0 ncq 131072 in
         res 40/00:04:00:37:4b/00:00:de:00:00/40 Emask 0x4 (timeout)
etc etc...
Here is messages.log: http://dpaste.org/OO7I/
I also have the SMART (smartctl --all) info for all (sda ... sdg) drives:http://dpaste.org/40Wd/
I'm rebooting the server now to see if that helps...
edit: Ugh, can't ssh in! BALLS. I'll have to check the status when I get home..
In the mean time, do you guys think the array is borked?
Last edited by Fackamato (2010-11-01 12:10:55)

This is weird. The array was recovering during the night, and today I get this:
ata2: EH complete
ata2.00: NCQ disabled due to excessive errors
ata2.00: exception Emask 0x0 SAct 0x7fe SErr 0x0 action 0x6 frozen
ata2.00: failed command: READ FPDMA QUEUED
ata2.00: cmd 60/00:08:00:d0:70/01:00:e7:00:00/40 tag 1 ncq 131072 in
         res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
ata2.00: status: { DRDY }
ata2.00: failed command: READ FPDMA QUEUED
ata2.00: cmd 60/38:10:c8:cf:70/00:00:e7:00:00/40 tag 2 ncq 28672 in
         res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
ata2.00: status: { DRDY }
ata2.00: failed command: READ FPDMA QUEUED
ata2.00: cmd 60/c8:18:00:cf:70/00:00:e7:00:00/40 tag 3 ncq 102400 in
         res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
ata2.00: status: { DRDY }
ata2.00: failed command: READ FPDMA QUEUED
ata2.00: cmd 60/00:20:00:ce:70/01:00:e7:00:00/40 tag 4 ncq 131072 in
         res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
ata2.00: status: { DRDY }
ata2.00: failed command: READ FPDMA QUEUED
ata2.00: cmd 60/e8:28:18:cd:70/00:00:e7:00:00/40 tag 5 ncq 118784 in
         res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
ata2.00: status: { DRDY }
ata2.00: failed command: READ FPDMA QUEUED
ata2.00: cmd 60/10:30:08:cd:70/00:00:e7:00:00/40 tag 6 ncq 8192 in
         res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
ata2.00: status: { DRDY }
ata2.00: failed command: READ FPDMA QUEUED
ata2.00: cmd 60/00:38:00:d2:70/01:00:e7:00:00/40 tag 7 ncq 131072 in
         res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
ata2.00: status: { DRDY }
ata2.00: failed command: READ FPDMA QUEUED
ata2.00: cmd 60/08:40:00:cd:70/00:00:e7:00:00/40 tag 8 ncq 4096 in
         res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
ata2.00: status: { DRDY }
ata2.00: failed command: READ FPDMA QUEUED
ata2.00: cmd 60/00:48:00:cc:70/01:00:e7:00:00/40 tag 9 ncq 131072 in
         res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
ata2.00: status: { DRDY }
ata2.00: failed command: READ FPDMA QUEUED
ata2.00: cmd 60/00:50:00:d1:70/01:00:e7:00:00/40 tag 10 ncq 131072 in
         res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
ata2.00: status: { DRDY }
ata2: hard resetting link
ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata2.00: configured for UDMA/133
ata2.00: device reported invalid CHS sector 0
ata2.00: device reported invalid CHS sector 0
ata2.00: device reported invalid CHS sector 0
ata2.00: device reported invalid CHS sector 0
ata2.00: device reported invalid CHS sector 0
ata2.00: device reported invalid CHS sector 0
ata2.00: device reported invalid CHS sector 0
ata2.00: device reported invalid CHS sector 0
ata2.00: device reported invalid CHS sector 0
ata2.00: device reported invalid CHS sector 0
ata2: EH complete
ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
ata2.00: failed command: READ DMA EXT
ata2.00: cmd 25/00:00:00:cc:70/00:01:e7:00:00/e0 tag 0 dma 131072 in
         res 40/00:0c:a8:6c:e9/00:00:e1:00:00/40 Emask 0x4 (timeout)
ata2.00: status: { DRDY }
ata2: hard resetting link
ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata2.00: configured for UDMA/133
ata2: EH complete
ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
ata2.00: failed command: READ DMA EXT
ata2.00: cmd 25/00:00:00:cc:70/00:01:e7:00:00/e0 tag 0 dma 131072 in
         res 40/00:0c:a8:6c:e9/00:00:e1:00:00/40 Emask 0x4 (timeout)
ata2.00: status: { DRDY }
ata2: hard resetting link
ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata2.00: configured for UDMA/133
sd 1:0:0:0: [sdb] Result: hostbyte=0x00 driverbyte=0x08
sd 1:0:0:0: [sdb] Sense Key : 0xb [current] [descriptor]
Descriptor sense data with sense descriptors (in hex):
        72 0b 00 00 00 00 00 0c 00 0a 80 00 00 00 00 00
        00 00 00 a7
sd 1:0:0:0: [sdb] ASC=0x0 ASCQ=0x0
sd 1:0:0:0: [sdb] CDB: cdb[0]=0x28: 28 00 e7 70 cc 00 00 01 00 00
end_request: I/O error, dev sdb, sector 3882929152
md/raid:md0: read error not correctable (sector 3882927104 on sdb1).
md/raid:md0: Disk failure on sdb1, disabling device.
<1>md/raid:md0: Operation continuing on 1 devices.
md/raid:md0: read error not correctable (sector 3882927112 on sdb1).
md/raid:md0: read error not correctable (sector 3882927120 on sdb1).
md/raid:md0: read error not correctable (sector 3882927128 on sdb1).
md/raid:md0: read error not correctable (sector 3882927136 on sdb1).
md/raid:md0: read error not correctable (sector 3882927144 on sdb1).
md/raid:md0: read error not correctable (sector 3882927152 on sdb1).
md/raid:md0: read error not correctable (sector 3882927160 on sdb1).
md/raid:md0: read error not correctable (sector 3882927168 on sdb1).
md/raid:md0: read error not correctable (sector 3882927176 on sdb1).
ata2: EH complete
md: md0: recovery done.
etc... Hm. Is sdb borked? How can I check it?
edit: Trying to recover.
[root@ion ~]# cat /proc/mdstat  && mdadm --detail --verbose /dev/md0
Personalities : [raid6] [raid5] [raid4] [raid0]
md0 : active raid5 sda1[0] sdc1[3] sdb1[1]
      3907024640 blocks super 1.2 level 5, 128k chunk, algorithm 2 [3/2] [UU_]
      [=>...................]  recovery =  6.9% (134951552/1953512320) finish=429.1min speed=70626K/sec
unused devices: <none>
/dev/md0:
        Version : 1.2
  Creation Time : Tue Oct 19 08:58:41 2010
     Raid Level : raid5
     Array Size : 3907024640 (3726.03 GiB 4000.79 GB)
  Used Dev Size : 1953512320 (1863.01 GiB 2000.40 GB)
   Raid Devices : 3
  Total Devices : 3
    Persistence : Superblock is persistent
    Update Time : Thu Oct 21 09:05:13 2010
          State : clean, degraded, recovering
Active Devices : 2
Working Devices : 3
Failed Devices : 0
  Spare Devices : 1
         Layout : left-symmetric
     Chunk Size : 128K
Rebuild Status : 6% complete
           Name : ion:0  (local to host ion)
           UUID : e6595c64:b3ae90b3:f01133ac:3f402d20
         Events : 23550
    Number   Major   Minor   RaidDevice State
       0       8        1        0      active sync   /dev/sda1
       1       8       17        1      active sync   /dev/sdb1
       3       8       33        2      spare rebuilding   /dev/sdc1
I tried to add the forth drive (sdd1) but couldn't:
mdadm –add /dev/md0 /dev/hdd1
mdadm: add new device failed for /dev/hdd1 as 4: Invalid argument
edit: That's because the raid was active, duh. Stopped md0, could add the drive. I couldn't _grow_ it though, as it's recovering..
[root@ion ~]# mdadm -D /dev/md0
/dev/md0:
Version : 1.2
Creation Time : Tue Oct 19 08:58:41 2010
Raid Level : raid5
Array Size : 3907024640 (3726.03 GiB 4000.79 GB)
Used Dev Size : 1953512320 (1863.01 GiB 2000.40 GB)
Raid Devices : 3
Total Devices : 4
Persistence : Superblock is persistent
Update Time : Thu Oct 21 12:41:26 2010
State : clean, degraded, recovering
Active Devices : 2
Working Devices : 4
Failed Devices : 0
Spare Devices : 2
Layout : left-symmetric
Chunk Size : 128K
Rebuild Status : 52% complete
Name : ion:0 (local to host ion)
UUID : e6595c64:b3ae90b3:f01133ac:3f402d20
Events : 23568
Number Major Minor RaidDevice State
0 8 1 0 active sync /dev/sda1
1 8 17 1 active sync /dev/sdb1
3 8 33 2 spare rebuilding /dev/sdc1
4 8 49 - spare /dev/sdd1
[root@ion ~]# cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4] [raid0]
md0 : active raid5 sdd1[4](S) sda1[0] sdc1[3] sdb1[1]
3907024640 blocks super 1.2 level 5, 128k chunk, algorithm 2 [3/2] [UU_]
[==========>..........] recovery = 52.0% (1016981760/1953512320) finish=232.6min speed=67084K/sec
unused devices: <none>
Last edited by Fackamato (2010-10-21 10:42:18)

Similar Messages

  • Systemd issues. mdadm-raid and nfs with no network timeouts.

    Hi,
    I'm migrating my final two machines to systemd now and ran into some troubles.
    Issue 1:
    I've got a md-raid that systemd tries to 'start' (dev-md0p1.device).
    This obviously doesn't work since there is nothing to 'start' and it just times out after 90 seconds thus entering emergency mode.
    From there I can mount /dev/md0p1 just fine.
    Is there any way to make systemd just mount the device and do nothing else?
    Issue 2:
    I'm not booting my laptop with network, but has a NFS-entry in fstab.
    systemd still tries to mount it, delaying the boot with 90 seconds.
    x-systemd.device-timeout doesn't make any difference at all.
    Any way to fix this? They say it shouldn't try mount any network devices when no network is up...
    Thank you for all help!

    Ok, if someone else encounters these problems:
    The nfs-shares need the option "command=systemd.automount" for systemd to care about them apparently. Normal auto is not enough.
    Systemd makes the md0-device busy during boot at about the same time it tries to mount md0p1 making it busy and time out.
    Running systemctl --system daemon-reload makes it reload everything that hangs, 4 services/devices in my case.
    Not a good solution, but I'm pretty fed up with systemd now.
    Last edited by Goophy (2012-09-05 22:32:24)

  • Promise SX8 Sata Card - mdadm Raid resync stuck at 0.0%

    Hi,
    I have been trying out a Promise SATAII150 SX8 PCI-X Card and have run into a problem.
    mdadm (v2.6-1) is stuck at 0.0% (hours) after a create. Things like trying to format the array or stop the resync causes the terminal to freeze.
    Does anyone know of anything that could be causing this?
    Also does anyone know how/where to set "max_queue=16" to increase performance for the sx8 module?
    Thanks.
    sample mdadm line:
    mdadm --create /dev/md0 --level=5 --raid-devices=6 /dev/sx8/0p1 ...
    i686 Arch
    kernel 2.6.19.2
    Opteron, 2GB, 6x300GB
    dmesg | grep sx8
    sx8 version 1.0
    sx8(0000:03:02.0): found 6 interesting devices
    sx8(0000:03:02.0): port 0 device 586114704 sectors
    sx8(0000:03:02.0): port 0 device "Maxtor 7V300F0"
    sx8(0000:03:02.0): port 1 device 586114704 sectors
    sx8(0000:03:02.0): port 1 device "Maxtor 7V300F0"
    sx8(0000:03:02.0): port 2 device 586114704 sectors
    sx8(0000:03:02.0): port 2 device "Maxtor 7V300F0"
    sx8(0000:03:02.0): port 3 device 586114704 sectors
    sx8(0000:03:02.0): port 3 device "Maxtor 7V300F0"
    sx8(0000:03:02.0): port 4 device 586114704 sectors
    sx8(0000:03:02.0): port 4 device "Maxtor 7V300F0"
    sx8(0000:03:02.0): port 5 device 586114704 sectors
    sx8(0000:03:02.0): port 5 device "Maxtor 7V300F0"
    sx8/0: p1
    sx8/1: p1
    sx8/2: p1
    sx8/3:
    sx8/4:
    sx8/5:
    sx8(0000:03:02.0): 6 ports activated
    sx80: pci 0000:03:02.0, ports 8, io fe100000, irq 17, major 160
    sx8/3: p1
    sx8/4: p1
    sx8/5: p1
    md: bind<sx8/0p1>
    md: bind<sx8/1p1>
    md: bind<sx8/2p1>
    md: bind<sx8/3p1>
    md: bind<sx8/4p1>
    md: bind<sx8/5p1>
    raid5: device sx8/4p1 operational as raid disk 4
    raid5: device sx8/3p1 operational as raid disk 3
    raid5: device sx8/2p1 operational as raid disk 2
    raid5: device sx8/1p1 operational as raid disk 1
    raid5: device sx8/0p1 operational as raid disk 0
    disk 0, o:1, dev:sx8/0p1
    disk 1, o:1, dev:sx8/1p1
    disk 2, o:1, dev:sx8/2p1
    disk 3, o:1, dev:sx8/3p1
    disk 4, o:1, dev:sx8/4p1
    disk 0, o:1, dev:sx8/0p1
    disk 1, o:1, dev:sx8/1p1
    disk 2, o:1, dev:sx8/2p1
    disk 3, o:1, dev:sx8/3p1
    disk 4, o:1, dev:sx8/4p1
    disk 5, o:1, dev:sx8/5p1
    cat /proc/diskstats | grep sx8
    160 0 sx8/0 67 485 3988 1428 2 0 8 0 0 444 1428
    160 1 sx8/0p1 550 3972 2 8
    160 32 sx8/1 62 482 3956 1564 2 0 8 0 0 420 1564
    160 33 sx8/1p1 542 3940 2 8
    160 64 sx8/2 64 482 3964 1568 2 0 8 4 0 416 1572
    160 65 sx8/2p1 544 3948 2 8
    160 96 sx8/3 58 484 2444 1196 3 0 16 12 7 3724444 26070260
    160 97 sx8/3p1 542 3940 2 8
    160 128 sx8/4 56 485 2196 1088 3 0 16 8 8 3724464 29794420
    160 129 sx8/4p1 542 3940 2 8
    160 160 sx8/5 50 57 460 212 9 210 1504 60 1 3724380 3724396
    160 161 sx8/5p1 100 404 219 1744
    mdadm --misc --detail /dev/md0
    /dev/md0:
    Version : 00.90.03
    Creation Time : Thu Feb 15 22:44:07 2007
    Raid Level : raid5
    Array Size : 1465248000 (1397.37 GiB 1500.41 GB)
    Used Dev Size : 293049600 (279.47 GiB 300.08 GB)
    Raid Devices : 6
    Total Devices : 6
    Preferred Minor : 0
    Persistence : Superblock is persistent
    Update Time : Thu Feb 15 22:44:07 2007
    State : clean, degraded, recovering
    Active Devices : 5
    Working Devices : 6
    Failed Devices : 0
    Spare Devices : 1
    Layout : left-symmetric
    Chunk Size : 64K
    Rebuild Status : 0% complete
    UUID : 477c93de:1846baae:2a477155:25972514
    Events : 0.1
    Number Major Minor RaidDevice State
    0 160 1 0 active sync /dev/sx8/0p1
    1 160 33 1 active sync /dev/sx8/1p1
    2 160 65 2 active sync /dev/sx8/2p1
    3 160 97 3 active sync /dev/sx8/3p1
    4 160 129 4 active sync /dev/sx8/4p1
    6 160 161 5 spare rebuilding /dev/sx8/5p1
    cat /proc/mdstat
    Personalities : [raid6] [raid5] [raid4]
    md0 : active raid5 sx8/5p1[6] sx8/4p1[4] sx8/3p1[3] sx8/2p1[2] sx8/1p1[1] sx8/0p1[0]
    1465248000 blocks level 5, 64k chunk, algorithm 2 [6/5] [UUUUU_]
    [>....................] recovery = 0.0% (868/293049600) finish=597464.5min speed=3K/sec
    unused devices: <none>
    Last edited by judfilm (2007-02-15 12:51:47)

    Great work vango44!
    Here are some RAID performance statistics I gathered while testing RAID on my system.  The testing software was Winbench 99.  The hard drives tested were new Seagate ST380013AS drives, formatted NTFS.  Winbench was running on a third drive that is not included in the tests and should not affect the results.
    The drives were reformatted between tests and chkdsk'ed to try and keep things "apples to apples".
    No hardware or software changes other than the RAID setup/connections were made between tests.
    Higher numbers mean better performance.
    I also ran the same tests on the newish WD Raptor 10K drives:
    I couldn't stand all the noise   the Raptors made, so I returned them.
    On my motherboard:
    SATA 1 & 2 = Intel RAID controller
    SATA 3 & 4 = Promise RAID controller
    If the test title does not include "RAID", then it was a single drive test.
    Unfortunately, I don't have a spreadsheet version of the above stats.  Otherwise I'd create nice bar charts for us and it's would be easier to deduce performance.
    Perhaps some kind reader will OCR the pictures, put them into Excel, and make some nice bar charts for us?
    Hope the info helps.

  • New P7N SLI Platinum Boot Issue with PS/2 Keyboard [Solved but RAID problem now]

    This issue taken me back !!!! Never thought I might face issue with a PS/2 Keyboard.
    Here it is.. I just assembled my new system...
    P7N SLI Platinum Motherboard
    E8400 CPU
    EVGA 256-P2-N751-TR GeForce 8600 GT Video Card
    Creative Soundblaster Audio Card
    So, before I boot, I connected good old PS/2 Keyboard. The POST Screen comes up that says Press DEL to enter BIOS Setup... but then, it reboots.. indefinitely... I have no idea why it does that. However, if I boot the PC with no PS/2 Keyboard connected, POST screen comes up and that's it.. (no reboot). So, you see, I cannot proceed further in anyway.... I cannot go beyond POST without a keyboard, but then with the keyboard it reboots indefinitely... kinda catch 22 situation
    Any suggestion / ideas that anyone can offer here???

    Hello Folks... it took long time to "solve the issue that had to begin with"....
    I purchased a cheapo Celeron processor to get into  the BIOS and update it... but it didn't even work... I couldn't boot at all. So, I called MSI and they asked me to RMA it. They replaced my MOBO with the latest BIOS - which was good news
    So, now, I'm able to boot  - good news...
    Now, this is an upgrade for me.... from my previous MOBO. My boot drive was RAIDed (RAID 0). So, now, I will have to RAID my drives again and run Win XP repair. I was able to RAID my drives and all good... now, I went into Windows installation and did F6 to install NVIDIA Raid.... but, here is my problem, when the prompt asks me to input the floppy drive, and when I did it.... it re-prompts me to put the floppy drive again... I see that the floppy drive is read... but, for some reason it doesn't detect the files in there properly....  I downloaded nVidia C72+MCP55 SATA RAID / AHCI Driver (For floppy driver) for windows xp 32-bit and copied the sataraid folder contents into the floppy. Now, here I am stuck again....
    Anybody experienced this problem?

  • [Solved] XFCE - Having Trouble Centering Windows

    So I am a bit OCD, and I would like my terminal window to open up perfectly centered on my screen (actually, I would prefer everything to open in the center). I tried Window Manager Tweaks --> Placement, setting the size to small and to open at the center of the screen, but it still does not work. Thunar nor the terminal will open in the center of the screen while some settings menus will. Any idea what I could do here to fix this? I read up about xfwm4-tiling package, and to be perfectly honest I am not entirely sure how to use it. From the looks of it, this is probably much more than I need, but if it works - great. Any help would be greatly appreciated. :-)
    - Yorak
    Last edited by Yorak (2012-10-01 03:29:05)

    I solved this problem by using devilspie. I remember that package from a long long time ago, surprised it still works so well. I did not have anything specific for the window to do other than to open centered on the screen, so the following script worked wonders:
    (if
    (is (application_name) "Terminal")
    (begin
    (center)

  • [SOLVED] Audio setup troubles with usb headphones and built-in sound

    Hello,
    I Just started using Arch about a month ago after going through many Debian and Ubuntu variants.  After all my frustrations with apt pinning to get working 10bit video playback, only to have everything else uninstalled by crappy dependency checking, I am extremely happy with how easy it was in Arch.
    Now I am having difficulties perfecting my audio setup.  Almost everything else is set up to satisfactory levels but I have yet to bring the sound to the same standard.  With just ALSA my built in audio works, but defaults to the unused hdmi on my nvidia graphics.  I have managed to get it to switch at some point but with ALSA alone I could never get my usb headset to work at all.
    By using pulseaudio as well I was able to get simutaneous playback, which is ideal, but had choppiness and other issues with just the usb headset.  I followed some instructions found on the arch wiki and other places on the net for choppiness in both ALSA and pulse and tried the fixes listed in various combinations.  I ended up with outcomes such as pulse not starting, no sound at all, creepy ticking in usb and perfect sound on speakers, and my current situation of perfect sound on speaker and acceptable but tinny sound on usb which degrades over time requiring restart.
    Is anyone able to give any advice or point me to any guides I may have overlooked?
    Setting up sound from scratch is something I have never done before coming to Arch, so I don't know what commands are useful for audio specifically, but learning is one of the reasons I decided on Arch. As for commands I do know, lspci and lsusb, relevant entries are as follows:
    spricc ~ $ lspci | grep Audio
    00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
    01:00.1 Audio device: NVIDIA Corporation GF104 High Definition Audio Controller (rev a1)
    Bus 004 Device 003: ID 1532:000e Razer USA, Ltd
    USB device is a Razer Megalodon headset, NVIDIA Audio is of no interest to me, unless it is not what i think it is.
    Thanks to anyone who takes the time to read this.
    Last edited by spricc (2012-03-23 15:21:11)

    I managed to find a solution.
    https://wiki.archlinux.org/index.php/Pu … oppy_sound
    Following this exactly didnt work before, but setting the sample rate to 192000 instead seems to have done the trick

  • [SOLVED] UEFI Boot Troubles (ASUS UX31A-DH51)

    Hello. I'm a casual linux user - I develop on linux, but I've never really explored the system itself. In an attempt to do so, I am installing Arch on my Asus UX31A-DH51. I copied the image to my external harddrive and followed the beginner's guide; Everything seemed to be going smoothly, except when I tried to boot into the system, it didn't work.
    I suspect this has something to do with the bios being UEFI. However, I followed the instructions here to modify GRUB and, when going to "Launch EFI shell from filesystem device", the screen flickers and then a popup is displayed saying "Warning: Not found". I've also tried installing gummiboot, but that didn't work either. In the BIOS, the main HD isn't displayed as one of the devices that I can boot from either.
    I've read this post, and I tried again from scratch using the information, but nothing helped. I didn't try archboot, though, since I don't know where to find the ISO or how to make a USB out of it.
    The steps I followed are thus (pretty much all of them follow the beginner's guide):
    I created a USB from the latest Arch linux iso, using these intstructions from my desktop computer (Mint 15).
    I booted into said drive, and was presented with five options. I chose the one too boot into Arch. I tested UEFI support using the method at the beginning of the Beginner's guide; this succeeded.
    I connected to the internet using wifi-menu.
    Using cgdisk, I erased all the existing partitions on the SSD. I then created three partitions on the drive; a 1.5G EFI System Partition (sda3) - I used the code "ef00" to make it an ESP; a 15G linux partition (sda1); and a 99G linux partition (sda2).
    I formatted the partitions. I formatted sda1 and sda2 to ext4, and I formatted sda3 to FAT32.
    I mounted sda1 to /mnt, sda2 to /mnt/home, and sda3 to /mnt/boot/efi (I changed "/boot" to "/boot/efi" here because of the link above; here it is again).
    I ran pacstrap -i /mnt base, which completed successfully; then, I generated an fstab at /mnt/etc/fstab, which I left as default.
    I chrooted into /mnt, uncommented the en_US.UTF8 locale, symlinked the America/New_York timezone, updated the hardware clock, set the hostname, and ran passwd.
    I skipped setting up the initial ramdisk environment.
    I setup GRUB using the commands under the UEFI section in the guide; I first exited out of the chroot to run the three commands it says to run out of chroot, and then went back into chroot and followed the rest of the steps. The only thing I changed there was to change "/boot" to "/boot/efi". GRUB installed successfully, without any errors.
    I ran
    grub-mkconfig -o /boot/grub/grub.cfg
    Finally, I rebooted, went into the bios, and chose "Launch EFI shell from filesystem device", which gave me "Warning: Not found". The main HD isn't listed as something I can boot from, though it is recognized as a SATA device. I'm kind of stumped after this. I also tried updating the BIOS, to no avail.
    I'm feeling a little out of my depth here; hopefully someone can help me get this running. You'll probably need more info to diagnose the issue, but I'm not really certain how I should post those files from my laptop using just the arch shell. Anyhow, hopefully someone can help. In the meantime, I'm going to try the install from scratch again, reading more carefully.
    Last edited by Chaosed0 (2013-09-27 18:48:25)

    the.ridikulus.rat wrote:I think this is one of the brain-dead issues with some firmwares which expect /EFI/Microsoft/Boot/bootmgfw.efi to be present. Just copy a version of uefi shell to /EFI/Microsoft/Boot/bootmgfw.efi and then reboot into the system and recreate the entry using efibootmgr. For "Launch EFI shell from filesystem device", the shell application needs to be present at <EFISYS>/shellx64.efi (in the root of the efisys partition itself).
    I copied "/EFI/grub/grubx64.efi" to "/EFI/Microsoft/Boot/bootmgfw.efi" and created an entry using the same efibootmgr command as two posts above; still no luck. The entry still gets deleted on a reboot, the disk doesn't show up in the devices, etc. I also copied grubx64.efi to /shellx64.efi, but the bios still refuses to recognize it's there.
    Here's some output of efibootmgr. This is what it looks like before adding any entries:
    BootCurrent: 0001
    Timeout: 0 seconds
    BootOrder: 0001,0002
    Boot0001* UEFI: WD My Passport 070A2003
    Boot0002* Hard Drive
    Here's after adding the entry:
    BootCurrent: 0001
    Timeout: 0 seconds
    BootOrder: 0000,0001,0002
    Boot0000* grub
    Boot0001* UEFI: WD My Passport 070A2003
    Boot0002* Hard Drive
    After rebooting, it goes back to exactly like it was before adding any entries.
    Here's my fstab, if it helps at all:
    # /etc/fstab: static file system information
    # <file system> <dir> <type> <options> <dump> <pass>
    # /dev/sda1
    UUID=556e2aff-a493-4ca9-a62e-175a890b0d03 / ext4 rw,relatime,data=ordered 0 1
    # /dev/sda3
    UUID=5B17-E429 /boot/efi vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 2
    # /dev/sda2
    UUID=90dee4b7-caac-4d46-a9c6-4dae5bfc4cea /home ext4 rw,relatime,data=ordered 0 2
    (Figured out how to set up ssh on my desktop, so feel free to ask for any more output or files.)

  • How can I solve POP email trouble ...

    Hi
    my son just got a mac.  He has tried setting up his email account on it, which uses a POP server.  The Mail application automatically matches his email address with an IMAP server and defaults to IMAP settings when I try to set up his email account (i.e.  I just don't see a drop down box to select POP or IMAP because mail just assumes he has IMAP).  Can you please help me get his mail set up right?
    thanks
    Paul

    When I open the address book it's completely blank.
    I also just got a similar error message as above, but this time telling me that the history.mab file can't be loaded.

  • [SOLVED]Wireless Card troubles

    I am an absolute beginner trying to install Arch for the first time. Because of reasons, I am required to do this via Wireless. This is my only option. The computer I am using does not have an internal wireless card, so I purchased a Medialink USB dongle. When plugged in, the dongle recognizes my network, but connection to the network fails. The dongle uses an RT3070 chipset if I'm not mistaken, and the website has a driver available for Linux. Unfortunately, the instructions to install said driver are written for bash and I am not competent enough with Arch to handle this. I have the driver on a separate flash drive. Can you guys help?
    URL to Medialink instructions: http://www.medialinkproducts.com/docs/M … _Linux.pdf
    Last edited by Coltergeist (2013-07-19 17:57:25)

    What I mean by that is, when I run the command iw dev I see the device, and then when I run wifi-menu _____, I see my wifi network. However, when I try to connect to it, the connection fails. I presume this is because I do not have the correct driver installed.
    The output of dmesg tail is the same when the USB is attached versus not attached, but I didn't try to reboot with the device not attached, I'll warrant. I will not try to type out everything it says, because it's about 50 lines. It talks about the driver, says if there's an ACPI driver available I should use it instead of the native driver, and recognizes that it has an RT3070 chipset. At the end of all the info, it says the link is not ready.
    The output of ip link when the device is attached is:
    1:  lo: <LOOPBACK,UP,LOWER_UP> MTU 65536 qdisc noqueue state UNKNOWN mode DEFAULT
         link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    2: enp1s8 <NO-CARRIER,BROADCAST,MULTICAST,UP> MTU 1500 qdisc mq state DOWN mode DEFAULT qlen 1000
         link/ether 00:15:f2:a1:34:27 brd ff:ff:ff:ff:ff:ff
    4: wlp0s29f7u4: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT qlen 1000
         link/ether 14:35:8b:0b:ad:8f brd ff:ff:ff:ff:ff:ff:ff
    wlp0s29f7u4 is my device. It is the one that disappears from the list when I unplug the USB. It is also what appears when I use iw dev.
    dmesg | grep firmware produces a message that informs me it's loading firmware file 'rt2870.bin' and then Firmware detected - version 0.29.
    I've tried to supply as much info as possible. Let me know if there's anything else you need.
    I do not have a smartphone, unfortunately.

  • [SOLVED] Gnome + Compiz troubles

    Hi!
    Since a couple of "yaourt -Syu" ago I've noticed that Compiz freezes Gnome. I mean, I can move the mouse and switch (Ctrl+Alt+F1) to a console (in order to kill gdm), but any other input to the desktop environment doesn't  work, e.g. can't move, resize, close windows, input any text, launch new apps, etc.
    If I kill gdm and login to Gnome again it runs without a window manager and there I can launch metacity or openbox and run without problems. But the moment I run fusion-icon it freezes again. So, it's compiz related.
    Any clues???
    Thanx
    Edit: PC is Athlon XP2 with Nvidia 7200 graphic card, proprietary drivers.
    Last edited by pendor (2011-04-16 00:51:07)

    While running gnome with metacity, you could try issuing '/usr/bin/compiz ccp --replace' from a terminal and watch for any errors printed.
    If you are using gdm you should also have an ~/.xsession-errors file, maybe it contains useful messages.
    If you started having this problem simply after a package upgrade then check /var/log/pacman.log and see what was upgraded recently. Pay attention to relevant packages ( xorg or compiz or nvidia drivers or gnome...) and maybe try to downgrade. Hopefully you can remember the date you started having the problem and can then identify which of these packages was upgraded that day by checking pacman.log.
    Last edited by manmachine (2011-04-10 15:55:47)

  • [SOLVED] Kernel will not boot. No early hooks, nothing...

    I am having some serious trouble getting my machine to boot. It never even gets to ":: running early hooks (udev)."
    I normally shut it down every night, but I recently kept in on for a few days straight. I was having some trouble with a USB flash drive being read-only in Windows 8 in VirtualBox. I shut down Windows 8 and then arch wouldn't even read the flash drive. I'm pretty sure that pacman updated the kernel since I last shut down the machine, so I decided to restart just for good measure. I never got back in...
    I am UEFI booting, running LVM on top of LUKS on top of two Samsung 830 256GB SSDs in mdadm raid 0. I have encrypted root and no swap. I have /boot mounted on a 512MB FAT32 partition and use a straight efibootmgr entry to start the system. It has worked fine until today.
    My mkinitcpio.conf has
    # vim:set ft=sh
    # MODULES
    # The following modules are loaded before any boot hooks are run. Advanced users may wish to specify all system modules in this array.
    MODULES="ahci dm_mod dm_crypt aes_x86_64 raid0"
    # BINARIES
    # This setting includes any additional binaries a given user may wish into the CPIO image. This is run last, so it may be used to override the actual binaries included by a given hook
    # BINARIES are dependency parsed, so you may safely ignore libraries
    BINARIES=""
    # FILES
    # This setting is similar to BINARIES above, however, files are added as-is and are not parsed in any way. This is useful for config files.
    # Some users may wish to include modprobe.conf for custom module options like so:
    # FILES="/etc/modprobe.d/modprobe.conf"
    FILES=""
    # HOOKS
    # This is the most important setting in this file. The HOOKS control the modules and scripts added to the image, and what happens at boot time.
    # Order is important, and it is recommended that you do not change the order in which HOOKS are added. Run 'mkinitcpio -H <hook name>' for help on a given hook.
    # 'base' is _required_ unless you know precisely what you are doing.
    # 'udev' is _required_ in order to automatically load modules
    # 'filesystems' is _required_ unless you specify your fs modules in MODULES
    # Examples:
    ## This setup specifies all modules in the MODULES setting above.
    ## No raid, lvm2, or encrypted root is needed.
    # HOOKS="base"
    ## This setup will autodetect all modules for your system and should
    ## work as a sane default
    # HOOKS="base udev autodetect pata scsi sata filesystems"
    ## NOTE: If you have /usr on a separate partition, you MUST include the
    # usr, fsck and shutdown hooks.
    ## ORIGINAL ##HOOKS="base udev autodetect pata scsi sata filesystems usbinput fsck"
    HOOKS="base udev autodetect sata mdadm usbinput keymap encrypt lvm2 filesystems fsck shutdown"
    # COMPRESSION
    # Use this to compress the initramfs image. By default, gzip compression
    # is used. Use 'cat' to create an uncompressed image.
    #COMPRESSION="gzip"
    #COMPRESSION="bzip2"
    #COMPRESSION="lzma"
    #COMPRESSION="xz"
    #COMPRESSION="lzop"
    # COMPRESSION_OPTIONS
    # Additional options for the compressor
    #COMPRESSION_OPTIONS=""
    My kernel parameters are
    cryptdevice=/dev/md1:RootVault root=/dev/RootArray/VolRoot ro rootfstype=ext4 init=/bin/systemd add_efi_memmap initrd=initramfs-linux.img
    I can boot fine from the Arch install media via UEFI at which point I can luksOpen, activate the lvm volumes, mount everything, and chroot in like normal. I have:
    rebuilt the initramfs
    reinstalled linux, mkinitcpio, and udev
    erased and recreated the efibootmgr entry
    tried to boot straight from the UEFI shell
    slimmed down to minimal hooks in mkinitcpio
    tried nomodeset and mem=4G kernel parameters
    tried booting the kernel with debugging enabled at various levels
    I get nothing at all every time. I boot up to a black screen with a static white cursor in the top left.
    I am happy to offer any more necessary information and I would be extremely grateful for any suggestions. Thanks.
    Last edited by matthew02 (2012-11-02 15:14:46)

    lesto wrote:
    same problem here with a stock kernel. solver rolling back to 3.6.3-1 by livecd.
    seems a problem with AMD cpu. solution here https://bbs.archlinux.org/viewtopic.php?id=151686
    I had just rolled back my kernel and was about to comment here that it worked when I saw your post. I had actually skimmed that other post, but since mem=4G didn't work for me, I didn't figure it applied. I suppose I should have read it more thoroughly. Thanks for the help everyone!

  • [SOLVED] Cloning boot and var partitions to a new drive for booting

    Ok first of all here's my setup:
    fakeraid (dmraid) / and home on an OCZ Revodrive
    boot with GRUB on a flash drive (since fakeraid doesn't support grub)
    var and downloads/media folder on a 500GB WD Caviar drive
    When I originally installed Arch I had the Caviar drive in my home server in a RAID5 array, so that's why I opted to install boot and grub on a flash drive simply for booting.  Now that I have the drive in my desktop I've cloned the flash drive's partitions and MBR using dd:
    #dd if=/dev/sde of=~/MBR.img bs=512 count=1
    #dd if=/dev/sde1 of=~/boot.img
    #dd if=/dev/sdc1 of=~/var.img
    I then backed up my downloads/media partition, then removed the partition table, then used dd to put the img files on the Caviar drive.
    #dd if=~/MBR.img of=/dev/sdc bs=512 count=1
    #dd of=~/boot.img of=/dev/sdc1
    #dd of=~/var.img of=/dev/sdc2
    I also created labels for the filesystems and put those in fstab.
    I'm able to mount both partitions, however I can't boot from the drive.  I get a 'grub hard disk error' (no error number) when I put it as my first drive in the BIOS. 
    I can still use the flash drive as the first hard drive in the BIOS and boot from it, then it mounts the dmraid root partition and boots successfully.  It is also able to mount the var and boot partitions in fstab. 
    Basically the only problem is that the MBR is somehow wrong.  I then tried booting back into an Arch live USB and installing GRUB from the prompt:
    grub
    grub>setup (hd4,0) (in this case the Caviar drive's boot partition was /dev/sde1
    So essentially what I'm asking is how GRUB handles the MBR.  Is it specific to the partition table of the drive in which it resides when it's originally installed?  For instance, since I had an 8GB flash drive with 2 partitions when I installed GRUB, is the backed up MBR no good for a 500GB drive with 3 partitions?
    I have everything backed up so I can start with a fresh /boot and /var if need be....I'm just not sure where to start. 
    Thanks in advance.
    Last edited by DarksideEE7 (2011-02-13 23:25:31)

    Sorry, I forgot to mention that I tried to install GRUB from the GRUB shell in a live Arch USB.  It failed on a few non-critical parts, and succeeded on the last part. I'm going to try again shortly, possibly I did something wrong.  GRUB is able to find the stage files using:
    #grub
    grub>find /grub/stage1
    grub> find /grub/stage1
    (hd0,0)
    (hd5,0)
    grub>
    (hd0,0) is the desired boot drive, while (hd5,0) is the current bootable flash drive with /boot and GRUB installed.
    Here is the output of fdisk -l:
    WARNING: GPT (GUID Partition Table) detected on '/dev/sde'! The util fdisk doesn't support GPT. Use GNU Parted.
    Disk /dev/sde: 2000.4 GB, 2000398934016 bytes
    256 heads, 63 sectors/track, 242251 cylinders, total 3907029168 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 identifier: 0x00000000
    Device Boot Start End Blocks Id System
    /dev/sde1 1 3907029167 1953514583+ ee GPT
    Disk /dev/sdb: 60.0 GB, 60022480896 bytes
    255 heads, 63 sectors/track, 7297 cylinders, total 117231408 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 identifier: 0xedb72db9
    Device Boot Start End Blocks Id System
    /dev/sdb1 * 2048 206847 102400 7 HPFS/NTFS
    /dev/sdb2 206848 117227519 58510336 7 HPFS/NTFS
    Disk /dev/sdd: 40.0 GB, 40018599936 bytes
    255 heads, 63 sectors/track, 4865 cylinders, total 78161328 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 identifier: 0x00000000
    Disk /dev/sdd doesn't contain a valid partition table
    Disk /dev/sdc: 40.0 GB, 40018599936 bytes
    32 heads, 32 sectors/track, 76329 cylinders, total 78161328 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 identifier: 0xb8372fcd
    Device Boot Start End Blocks Id System
    /dev/sdc1 32 21484543 10742256 83 Linux
    /dev/sdc2 21484544 156317695 67416576 83 Linux
    Disk /dev/sda: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders, total 976773168 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 identifier: 0x8497e059
    Device Boot Start End Blocks Id System
    /dev/sda1 * 2048 206847 102400 83 Linux
    /dev/sda2 206848 42149887 20971520 83 Linux
    /dev/sda3 42149888 976773167 467311640 83 Linux
    Disk /dev/dm-0: 80.0 GB, 80035053568 bytes
    32 heads, 32 sectors/track, 152654 cylinders, total 156318464 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 65536 bytes / 131072 bytes
    Disk identifier: 0xb8372fcd
    Device Boot Start End Blocks Id System
    /dev/dm-0p1 32 21484543 10742256 83 Linux
    Partition 1 does not start on physical sector boundary.
    /dev/dm-0p2 21484544 156317695 67416576 83 Linux
    Disk /dev/dm-1: 11.0 GB, 11000070144 bytes
    255 heads, 63 sectors/track, 1337 cylinders, total 21484512 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 65536 bytes / 131072 bytes
    Alignment offset: 49152 bytes
    Disk identifier: 0x00000000
    Disk /dev/dm-1 doesn't contain a valid partition table
    Disk /dev/dm-2: 69.0 GB, 69034573824 bytes
    255 heads, 63 sectors/track, 8392 cylinders, total 134833152 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 65536 bytes / 131072 bytes
    Disk identifier: 0x00000000
    Disk /dev/dm-2 doesn't contain a valid partition table
    Disk /dev/sdf: 8086 MB, 8086618112 bytes
    249 heads, 62 sectors/track, 1023 cylinders, total 15794176 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 identifier: 0x8497e059
    Device Boot Start End Blocks Id System
    /dev/sdf1 * 62 200693 100316 83 Linux
    /dev/sdf2 200694 15794175 7796741 83 Linux
    I'm using dmraid, so just to be clear I've configured the raid using:
    #modprobe dm_mod
    #dmraid -ay
    Then I saw the array stored in /dev/mapper/silXXXXX.  I then created partitions for /boot, /, and home.  At that time I was hoping to get GRUB working with the AUR package grub2-dmraid.  I wasn't able to get it working for some time, so I just went ahead and installed boot and GRUB to a separate USB flash drive.
    Here is the output of df -h:
    Filesystem Size Used Avail Use% Mounted on
    udev 10M 268K 9.8M 3% /dev
    /dev/mapper/sil_bgbgdjaddicbp1
    11G 5.3G 4.3G 56% /
    shm 6.0G 584K 6.0G 1% /dev/shm
    /dev/mapper/sil_bgbgdjaddicbp2
    64G 38G 23G 63% /home
    /dev/sda1 95M 16M 75M 18% /boot
    /dev/sda2 19G 142M 19G 1% /var
    /dev/sda3 439G 148G 269G 36% /home/l33/Torrents
    none 1000M 132K 1000M 1% /tmp
    shm 6.0G 584K 6.0G 1% /dev/shm
    /dev/sde1 1.8T 1.1T 665G 62% /mnt/Green
    and cat /etc/mtab
    proc /proc proc rw,nosuid,nodev,noexec,relatime
    sys /sys sysfs rw,nosuid,nodev,noexec,relatime
    udev /dev devtmpfs rw,nosuid,relatime,size=10240k,nr_inodes=1022975,mode=755
    /dev/mapper/sil_bgbgdjaddicbp1 / ext4 rw,noatime,barrier=1,stripe=32,data=ordered
    devpts /dev/pts devpts rw 0 0
    shm /dev/shm tmpfs rw,nosuid,nodev 0 0
    /dev/mapper/sil_bgbgdjaddicbp2 /home ext4 rw,noatime 0 0
    /dev/sda1 /boot ext2 rw 0 0
    /dev/sda2 /var reiserfs rw,noatime 0 0
    /dev/sda3 /home/l33/Torrents ext4 rw,noatime 0 0
    none /tmp tmpfs rw,nosuid,nodev,noatime,size=1000M,mode=1777 0 0
    shm /dev/shm tmpfs rw,nosuid,nodev,size=6G 0 0
    rpc_pipefs /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0
    nfsd /proc/fs/nfsd nfsd rw,noexec,nosuid,nodev 0 0
    /dev/sde1 /mnt/Green ext4 rw 0 0
    Also I don't have a /proc/mdstat.  That's only for mdadm RAID setups, right?  It's been quite some time since I've used mdadm so I can't remember.
    EDIT:
    So I booted into a live Arch USB and entered the grub shell.  I ran:
    #grub
    grub> root (hd3,0)
    Filesystem type is ext2fs, partition type 0x83
    grub> setup (hd3)
    Checking if "/boot/grub/stage1" exists.....no
    Checking if "/grub/stage1 exists.......yes
    Checking if "/grub/stage2 exists.......yes
    Checking if "/grub/e2fs_stage1_5 exists....yes
    Running "embed /grub/e2fs_stage1_5 (hd3)".....25 sectors are embedded.
    succeeded
    Running "install /grub/stage1 (hd3) (hd3))1+25 p (hd3,0)/grub/stage2 /grub/menu.lst".......succeeded
    Done.
    Last time I recall more errors than this, then it reporting that one was a non-critical error, so I think the problem may be solved.  More to come.
    Last edited by DarksideEE7 (2011-02-13 23:18:44)

  • How does the boot-process assemble the raid?

    Hi everyone,
    I just switched from Debian and CentOS to archlinux on all my machines and I really love it so far!
    Now I feel that I can really customize my OS the way I want.
    But I was thinking about one thing that I don't really understand yet, and of what I have
    read on this forum I'm certain that someone knows the answer.
    On my primary machine I have an mdadm-raid.
    And the partitions looks like this:
    /dev/sda                          /dev/sdb
    Disk1                              Disk2
    /dev/sda1                        /dev/sdb1
    100mb ext2 (boot)            100mb empty (I did empty partition so that the disks looks the same.)
    /dev/sda2  <- RAID0 ->   /dev/sdb2            /dev/md0
    2500MB ext3 (root)          2500MB ext3
    /dev/sda3  <- RAID0 ->   /dev/sdb3            /dev/md1
    2250MB (swap)                2250MB swap
    /dev/sda4  <- RAID0 ->   /dev/sdb4            /dev/md2
    245150MB ext3 (home)    245150MB ext3
    So there was a little tricky to get it installed and assemble the raid at boot, but now it's working like a dream again.
    And what I did what except loading mdadm-hook of course I used the kernel parameter: ro root=/dev/md0 md=0,/dev/sda2,/dev/sdb2 a.s.o. to
    tell the initrd how to assemble the raid at boot.
    But before archlinux i've done this setup in the installer, and after I've installed for example Debian, the system boots correctly and
    assemble the raid at boot, but without the kernel-parameters, how does the system know how the raid should be assembled?
    I've tried to include the mdadm.conf but with no success, does the initrd contain the raid information is some way?

    To obtain that file, run:
    abs
    This will provide the abs tree of core,extra, and community in /var/abs.
    Then you can get the file:
    # vim: set ft=sh:
    run_hook ()
        input="$(cat /proc/cmdline)"
        mdconfig="/etc/mdadm.conf"
        # for partitionable raid, we need to load md_mod first!
        modprobe md_mod 2>/dev/null
        # if no config file is present create one from command line parameters
        if ! [ -e $mdconfig ]; then
            #Create initial mdadm.conf
            # scan all devices in /proc/partitions
            echo DEVICE partitions > $mdconfig
            for i in $input; do
            case $i in
                    # raid
                    md=[0-9]*,/*)
                        device="$(/bin/replace -s,/ "$i" "=" "")"
                        array="$(/bin/replace -s/ "$device" "," " devices=")"
                        echo "ARRAY /dev/$array" >> $mdconfig
                        RAID_FOUND=1
                    # partitionable raid
                    md=d[0-9]*,/*)
                        device="$(/bin/replace -s=d "$i" "md=" "md_")"
                        array="$(/bin/replace -s/ "$device" "," " devices=")"
                        echo "ARRAY /dev/$array" >> $mdconfig
                        RAID_FOUND=1
                    # raid UUID
                    md=[0-9]*,[0-9,a-z]*)
                        device="$(/bin/replace -s,/ "$i" "=" "")"
                        array="$(/bin/replace -s/ "$device" "," " uuid=")"
                        echo "ARRAY /dev/$array" >> $mdconfig
                        RAID_FOUND=1
                    # partitionable raid UUID
                    md=d[0-9]*,[0-9,a-z]*)
                        device="$(/bin/replace -s=d "$i" "md=" "md_")"
                        array="$(/bin/replace -s/ "$device" "," " uuid=")"
                        echo "ARRAY /dev/$array" >> $mdconfig
                        RAID_FOUND=1
                esac
            done
        else
            RAID_FOUND=1
        fi
        if [ "$RAID_FOUND" = 1 ]; then
            # assemble everything
            /sbin/mdassemble.static
        fi
    The above is what is provided in mine............

  • SOLVED (for now) MacBook Pro (15-inch, Mid 2010): Intermittent black screen or loss of video

    For MAC OS Snow Leopard 10.6.8
    I downloaded the display driver update from apple support and it didn't fix the problem. I had to download gfxcardstatus-1.7.5 and change the driver to Intel Graphics instead nVidia (wich is the one that crashes the screen)
    Hey, guys from apple, please solve the nVidia trouble.

    The black screen issue on mine just started in September 2014.

  • [SOLVED] XFCE - Incorrect windows placement

    Hi,
    I'm currently having a issue with XFCE's window placement. In the settings panel, under Window Manager Tweaks > Placement, window placement is set to Center for all windows, but this option has no effect. I tried changing it to place windows under the mouse, but it also has no effect on the windows placement. Windows keep opening on the screen corners.
    I checked the forums for similar problems, and found some results, but none of the solutions worked for me. Also, those are quite old topics.
    [Solved] XFCE - Having Trouble Centering Windows
    [solved] Xfce4, new windows position
    Xfce 4.8 xfwm4 window placement settings no longer have any effect.
    This is not a big problem, but I'm kind of picky, so if anyone knows a solution to this problem, please share it.
    Best Regards,
    Agkel0s
    Last edited by Agkel0s (2014-07-14 21:37:54)

    Agkel0s wrote:Currently the slider is on the minimum value, and windows of all sizes should open centered on screen.
    Shouldn't you actually have it on the maximum value?
    I believe the way this works is that the size (or ratio, the option is actually called placement_ratio IIRC and is a ratio of window size vs screen size) you specify here is the minimum to trigger "smart placement." If the window isn't (at least) of that size, then the default (i.e. center or under mouse pointer, as defined below) will be used. So if you want every window to use the default placement, you should set the minimum size for smart placement to be as large as possible. (In fact, I believe with a ratio set to 100 (i.e. slider to the max) it should always use the default placement, regardless of window size, which is want you're after if I'm not wrong.)
    If even with the slider to the max you get new windows placed using smart placement, then it sounds like a bug I'd say.
    (Also, just as FYI and though you might simply want all windows to be centered, I wasn't happy with xfwm's smart placement myself, you can see this topic for a (IMO) better alternative.)

Maybe you are looking for

  • Multiple Bluetooth Usage issues

    I'm finding Stereo Bluetooth very unreliable and at some points rather irritating. My issues are related to playing music using iTunes to my car stereo. Connection: (A) When I stop my car, iTunes does not detect that the Bluetooth link dropped. It ke

  • RSS XML Files for a Blog and Podcast on Same Website With iTunes Feed

    Does iWeb support both a separate blog and podcast on the same website feeding the Podcast to iTunes? I got my podcast going on iTunes, then it stopped working after I changed the iTunes podcast name in iWeb and didn't edit the xml file. My podcast i

  • Portege R830 - Windows won't start after I install Comodo Firewall

    Good afternoon, I purchased today a Portege R830, and after the Windows configuration was over, the first program I installed was the popular free firewall Comodo. After I rebooted, Windows 7 wouldn't start anymore. It would get stuck on the user log

  • Exit in tr co11n

    Hi Friends,      I want to write a exit for transaction co11n. My functional consultant has given me the exit name. But my main doubt is in which transaction i have to write the code ie whether in tr SMOD or CMOD. Can any one suggest me. And also ple

  • ABAP APIs for DDIC?

    Hi all, Is there any ABAP API for DDIC? I wanted to manipulate DDIC structures and types from code, for example, change names, create a new DDIC object, add a new field to an existed table. I guess we have that but I didn't find any documents on this