General :: Initializing Drive Array Command For Class Lab On Fedora 12?

Feb 10, 2010

what command initializes a drive array on Fedora12? I'm trying to initialize the drive command for linear RAID and the command given in the textbook is for Fedora Core 2 (which I had problems with in Virtualbox).

View 4 Replies


ADVERTISEMENT

Programming :: C++ - Initializing Static Member Array?

Jun 7, 2011

The code below defines an array of structures in a class. I would like this to be a Static array and then initialize the array in a initialization method. I understand that initialization lists are the way to go but due to the size and complexity of the array I plan on using (the example below is a simple snippet that illustrates the problem) I would like to use the initialization method. However, I cant even get this thing to compile. The error says the reference to the ArrayOfStructs in the initialization routine is undefined.

l_long_Island

P.S. This is the error message

undefined reference to `ClassWithStaticArray::ArrayOfStruts'

class ClassWithStaticArray {
public:
struct IntegerStruct
{

[code]....

View 5 Replies View Related

General :: Writing A Command (for Loop) That Would Ping A Class C Subnet?

Nov 4, 2010

how to write a command (for loop) that would ping a Class C subnet to make it so that it only replies once and does not show the statistics?

View 2 Replies View Related

General :: Machine Boots W/ Grub > Command / Window Installed ASAP For A Class?

Jan 26, 2010

I had linux installed on dell latitude d600, I did fdisk and deleted the OS so I can install Xp. When I try to boot from the Window xp cd , I get LINUX grub command line . " grub>" and can't do anything.I need window installed ASAP for a class that I am taking .

View 2 Replies View Related

General :: Passing An Array As Command Line Arguments?

Apr 2, 2011

how to pass an array as a command line argument in a shell script?

View 5 Replies View Related

General :: Access Each Drive Of A RAID Array In Order To Update The Firmware?

Feb 2, 2011

I need to access each drive of a RAID array in order to update the firmware - I am completely new to linux. I think there are probably some potential challanges along the way to get this "working" For example, it seems to me that the array may present itself to application code as a single device. I need to drill down into the RAID and talk to each physical device in turn via some sort of pass-through mechanism. I'm currently pretty lost - can anyone point me in the "right" direction

View 2 Replies View Related

General :: Missing Windows Class In Wine - Fedora 12?

Sep 13, 2010

I am having a problem trying to install KindleForPc with wine in Fedora 12. Wine installs and runs but is missing a class needed by Kindle. Notepad, regedit, etc run but there is a problem when I run the Kindle Installer.Attempting to install Kindle I run

Code:
wine KindleForPc-installer.exe it runs to completion two windows appears they have a windows look, as it intiializes. Then it returns to the command line prompt. Shortly after it returns to the command line I get a series of error messages. Perhaps the installer finishes and then tries to start Kindle. I have typed their essence below:

Code:
fixme:system:SetProcessDPIAware stub!
class {6e4feb12-510a-4d40-9304-1da10ae9147c} not registered
CLSCTX_REMOTE_SERVER not suppported
no class server could be created for context 0x17

Kindle does not show up in the configuration utility and when I try to run it from the command line it complains that some classes are not registered. My understanding is that yum has a list of the component packages required by wine, and the person who prepared the list thought it had loaded all that was needed for wine, but it did not include the package that has the classes that I need. On the web there are a number of postings that tell how well Kindle works under Linux, and none of them deals with doing anything more than installing wine. I assume that in those cases the install procedure loaded the classes I need. My hope is that someone with more knowledge than I can give me a pointer on how to proceed.

View 2 Replies View Related

OpenSUSE Install :: Cannot Compile Vdrift-2009-06-15 - Warning: The Options Class Is Deprecated; Use The Variables Class Instead

Mar 12, 2010

I have a problem with compiling vdrift-2009-06-15 using scons. As the source that i obtained only supports scons i cannot use make. the error that i get when i try to compile it in GNOME Terminal is: scons: Reading SConscript files ... scons: warning: The Options class is deprecated; use the Variables class instead.
File "/home/mohit/Download/vdrift-2009-06-15/SConstruct", line 9, in <module>

scons: warning: The BoolOption() function is deprecated; use the BoolVariable() function instead.
File "/home/mohit/Download/vdrift-2009-06-15/SConstruct", line 13, in <module>
Checking for C++ header file asio.hpp... (cached) yes
Checking for C++ header file boost/bind.hpp... (cached) yes
Checking for C++ header file GL/gl.h... (cached) yes
Checking for C++ header file GL/glu.h... (cached) yes
Checking for C++ header file SDL/SDL.h... (cached) yes
[Code]........

View 4 Replies View Related

General :: Convert Full-disk RAID5 Array To Partition-based Array?

Dec 23, 2010

I have a RAID 5 array, md0, with three full-disk (non-partitioned) members, sdb, sdc, and sdd. My computer will hang during the AHCI BIOS if AHCI is enabled instead of IDE, if these drives are plugged in. I believe it may be because I'm using the whole disk, and the AHCI BIOS expects an MBR to be on the drive (I don't know why it would care).

Is there a way to convert the array to use members sdb1, sdc1 and sdd1, partitioned MBR with 0xFD RAID partitions?

View 1 Replies View Related

General :: Bash: Calculating In Array And Storing Result In Array?

Dec 2, 2010

I have an array called arrayini which stores numbers. I want to take log to the base 2 of each of the numbers in that array and put it in file called result. I've used the following code to do it.

Code:

size=${#arrayini[@]}
for ((i=0;i<size;i++))
do
echo "scale = 12; l(${arrayini[$i]})/l(2)" | bc -l
done >result

It works fine but its taking pretty long to calculate since I've got about 230,000 items in the array. So I decided to store the result into an array hoping that it'd be faster. I tried the following code. arrayresult is where I try and store the result. The code doesn't work because of the second last line.

Code:

unset arrayresult
size=${#arrayini[@]}
for ((i=0;i<size;i++))
do
arrayresult[$i]="scale = 12; l(${arrayini[$i]})/l(2)" | bc -l
done >FILE2

There is a syntax error clearly.

View 6 Replies View Related

Fedora :: Fc12 - Initializing Catalyst Control Center - Libatiadlxx.so ?

Aug 1, 2010

I finally upgraded from my old Passive Nvidia 6600GT video card to a passive ATI 5750. Using Fedora Core 12, 2.6.32.16-141.fc12.i686, On boot the native driver worked but the card got hot as it was not de-clocking into idle mode like it does under windows 7.

So I reluctantly installed the closed source ATI driver from RPM Fusion

I also added nomodeset to the kernel start-up

Previously I was using the native standard built in Nvidia driver.

The new ATI driver seems to be running with correct entry in Xorg.conf and now it runs very cool at idle just like under windows :-

However the control center will not start...There was a problem initializing Catalyst Control Center Linux edition.

Also some commands using aticonfig return this error...

These libs are on the system in /usr/lib/catalyst

I am also getting video tearing in movies with mplayer and VLC. I have tried the options...

Which added a vsync entry in xorg.conf, but No luck...I think I need to get catalyst control center (amdcccle) running which I has a sync on refresh option radio box that may solve my video issue.

I can live with these errors but the video / movie tearing is a show stopper.

I am getting headache over this trying to find a solution to these issues. ATI and Linux still do not mix well

View 2 Replies View Related

General :: Error Opening/initializing The Selected Video_out (vo) Device

Nov 3, 2010

while opening any video with gmplayer it gives the fatal Error opening/initializing the selected video_out (vo) device. while playing with mplayer it doesnot goto full screen video output mode while pressing F.

View 13 Replies View Related

Hardware :: Can't Get A Drive From A Former RAID5 Array To Format?

Jun 15, 2011

I'm a bit at a loss on this one. I couldn't get a drive from a former RAID5 array to format. I did a dd to write zero's to the drive and attempted to fsck only to be stopped every time with the error: Couldn't find ext2 superblock, trying backup blocks.. fsck.ext3: Bad magic number in super-block while trying to open /dev/sda1

Smartctl shows no problems with the drive (a Seagate 750GB), but I haven't removed it and thrown it in a windows machine to do seagates proprietary drive diagnostics yet. Running Centos5.6 .I've never had this problem before. The drive is not mounted and the old md device has been removed as far as I can tell. It could still be attempting to assemble the RAID5 with the 1 drive, but I didn't see it attempt to do so.

[Code]...

View 3 Replies View Related

Programming :: Declare An Associative Array On The Command Line?

Apr 19, 2011

I am trying to declare an associative array on the command line. I get the following error, could somebody explain this and reslove

$ declare -A score_array
-bash: declare: -A: invalid option

View 1 Replies View Related

Programming :: Assigning Output Of A Command To An Array In Perl?

Nov 25, 2010

I am trying to execute a Unix Command in perl and assigning its output to an array:

Code:
@File_List=exec("ls -1 /tmp");
but it is not working. I have tried the perl function system() also but its return code is

[code]...

View 10 Replies View Related

Server :: MDADM Raid 5 Array - OS Drive Failure?

Jun 7, 2011

I have 4 WD10EARS drives running in a RAID 5 array using MDADM.Yesterday my OS Drive failed. I have replaced this and installed a fresh copy of Ubuntu 11.04 on it. then installed MDADM, and rebooted the machine, hoping that it would automatically rebuild the array.It hasnt, when i look at the array using Disk Utility, it says that the array is not running. If i try to start the array it says :Error assembling array: mdadm exited with exit code 1: mdadm: failed to RUN_ARRAY /dev/md0: Input/output error

mdadm: Not enough devices to start the array.I have tried MDADM --assemble --scan and it gives this output:mdadm: /dev/md0 assembled from 2 drives - not enough to start the array.I know that there are 4 drives present as they are all showing, but it is only using 2 of them.I also ran MDADM -- detail /dev.md0 which gave:

root@warren-P5K-E:~# mdadm --detail /dev/md0
/dev/md0:
Version : 0.90

[code]...

View 11 Replies View Related

CentOS 5 :: Permanently Remove Drive From Md Array (RAID1)

May 14, 2011

I installed a distro based on CentOS 5.5 (FreePBX distro FYI). It used an automated kickstart script to create an md RAID1 array of all the hard drives connected to the machine. Well, I installed from a thumb drive, which the script in interpreted as a hard drive and thus included in the array. So, I ended up with three md arrays (boot, swap, data) that included the thumb drive. Even better, it used the thumb drive for grub boot so I couldn't start up without it. I was able to mark the USB drive as 'failed' and remove from each array, and even change grub around to boot without the usb drive, but now each of the arrays is marked as degraded:

[Code]...

View 1 Replies View Related

Software :: Pipeline Data Of Find Command In Array After Processing Contents

Jun 7, 2010

I am searching for a file in a specific folder using the following command and storing it in a log file

find . -maxdepth 2 -type f -name "components.xml" -print | while read obj
do
basename `dirname $obj` >> avail_list.log
done

Here I want to do the following
1. Store each entry after processing in an array variable.
2. Use this array variables as arguments to function calls.

Here my primary objective is to store the entries from 'find' command in an array. So it is ok for me if I am not creating the log file.

View 5 Replies View Related

Programming :: Creating Array From Command Output (Bash Shell Script)

Jan 26, 2011

I have a command that outputs n lines of text, and I want to place each line into an array element, but I can't seem to get the syntax correct

So my command is this:
cat $configfile | sed -n '/cluster:'$clustername'/,/cluster/ p' | awk /host/

Which produces many lines depending on the value of $clustername. I'd like to get each line as elements of an array.

View 5 Replies View Related

General :: Image Pen Drive Using Dd Command?

Jun 16, 2010

i want to image my pen drive using dd command. i tried

dd if=/media/disk of=/media/disk-1/images.img

where disk is my pen drive and disk-1 is my hard disk. I boot and run the pc using linux bootable cd

View 3 Replies View Related

General :: Unable To Access Intel Fake RAID 1 Array In Fedora 14 After Reboot

Jan 6, 2011

1st I am relatively new to linux (but not to *nix). I have 4 disks assembled in the following intel ahci bios fake raid arrays:

2x320GB RAID1 - used for operating systems md126
2x1TB RAID1 - used for data md125

I have used the raid of size 320GB to install my operating system and the second raid I didn't even select during the installation of Fedora 14. After successful partitioning and installation of Fedora, I tried to make the second array available, it was possible to make it visible in linux with mdadm --assembe --scan , after that I created one maximum size partition and 1 maximum size ext4 filesystem in it. Mounted, and used it. After restart - a few I/O errors during boot regarding md125 + inability to mount the filesystem on it and dropped into repair shell. I commented the filesystem in fstab and it booted. To my surprise, the array was marked as "auto read only":

[Code]...

and the partition in it was not available as device special file in /dev:

[Code]...

View 1 Replies View Related

Hardware :: Can I Add Raid0 Array To Existing Install Leaving OS On Original Drive

Mar 24, 2009

I am currently running Ubuntu 8.10 amd64 on a single 750GB drive. My question is whether or not I can add two more drives (say 2 500GB drives) in a raid 0 array leaving the OS and data on the original drive? I find my self working with some very large files and I would like to speed up their processing time. At the same time, I would like to leave my current configuration in place without touching the OS or my data. I'm not much of a hardware guy.

View 4 Replies View Related

Fedora :: Use To Organize All Of The Files For Class (teaching)?

Aug 26, 2010

I have a folder in my /home/user/documents/ directory, which I use to organize all of the files for class (teaching), early this week I moved all the contents of that directory to a subdirectory, and began writing lectures for the new semester. I just sat down at my computer and all of the changes I made to the directory have reverted to the way they were a week ago. Files are gone, the lectures I had written so far are gone, my syllabus is gone... I had a symlink to the directory on the desktop, its still there, but it's broken. The directory is a symlink to an NTFS partition, the /Documents directory is shared between the two OS's. Did this cause the problem?

Luckily I had today's lecture backed up on my website... so, i'm not sunk for today.. but.. this really scared me.

View 5 Replies View Related

Fedora :: Error Calling Another Java Class

Feb 4, 2011

I have a simple code like below. when I run this command javac callSMSClient.java I get this erros. Any solution to this please?

View 13 Replies View Related

General :: Label A Drive During The Format Command?

Dec 18, 2009

I use to know this command but lost it and did not note the entire command on my Linux cheat sheet. Someone once showed me a simple very easy command I could use to simple format a USB flash drive as FAT32 and in the same command also name the label of the drive.I have the device /dev/sdc1 and I am formatting this as FAT32 so it's compatible across multiple systems but also want the drive to have the name 'my_usb'.

View 3 Replies View Related

General :: Command To Mount NTFS Drive?

Oct 11, 2009

Code:
ntfs-3g /dev/sda1 /media/drive
Or
Code:
mount -t ntfs /dev/sda1 /media/drive

View 1 Replies View Related

General :: Messed Up Hard Drive With Dd Command

Jul 21, 2011

I wrote a part of a bootable image to the hard drive with the dd command and now i can't finish installing a linux without getting a grub fatal error.how can i restore my hard drive?

View 6 Replies View Related

Hardware :: Raid1 Mdadm Repair Degraded Array With Used Good Hard Drive?

Jun 27, 2009

I have a used but good harddrive which I'd like to use as a replacement for a removed harddrive in existing raid1 array. mdadm --detail /dev/md00 0 0 -1 removed1 8 17 1 active sync /dev/sdb1I thought I needed to mark the removed drive as failed but I cannot get mdadm set it to "failed". I issue mdadm --manage /dev/md0 --fail /dev/sda1But mdadm response is:mdadm: hot remove failed for /dev/sda1: no such device or addressI thought I must mark the failed drive as "failed" to prevent raid1 from trying to mirror in wrong direction when I install my used-but-good disk. I want to reformat the good used drive first right? I believe I must prevent raid array from automatically try to mirror in the wrong direction.

View 7 Replies View Related

General :: Class Getting Humility Lesson

Mar 2, 2011

I'm in Linux class getting a humility lesson as I type this.

View 2 Replies View Related

General :: Compile C++ Class In System?

May 25, 2010

I am new in c++ progreming .
i have written lot of classes and main class of c++ in one file and compile successfully but now i have written all classes in different and main class in different file like this.code...

now how to compile and run these classes

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved