General :: How To Call Read Directory From Fill SuperBlock Function

Oct 12, 2010

I want to populate an array of string by files exists in directory on mounting of file system. I got an entry point for file system mount. I can use either do_mount function or fill_superblock function. But I am not clear about how to call readdir from there itself. I need inputs for calling readdir from fill_superblock function.

View 2 Replies


ADVERTISEMENT

General :: How To Determin Function Call When Application Run On System

Sep 6, 2010

How can it be determined whether a function defined in some file of an application source-code(meant for multiple operating systems e.g., Linux, AmigaOS) is actually called when the application run on Linux?

View 9 Replies View Related

General :: Access Driver Function Using System Call ?

Apr 13, 2010

As per my knowledge, one can use systemcall to call the driver functions for example using open, close... Now is there any way to call driver functions directly from application without using system call?

View 4 Replies View Related

General :: The READ System Call In UNIX?

Oct 29, 2010

mplement the read system call in unix...i want the code for read system call...

View 6 Replies View Related

Debian :: Can't Read Superblock - Resolve This?

Apr 11, 2010

I removed a hard drive from a failed Buffalo LinkStation NAS. The drive was 1TB and formatted in XFS. I installed Debian Linux on my Mac using Virtual Box just so I could get to the files.

When plugin the drive (via USB) two volumes show up, but there's another that I can't seem to open (and may have all of the shared files I need). It's the largest volume (over 900 MB).

I keep reading to run xfs_repair, but when I type that in the terminal, I am given "command not found". I am not sure how to use it.

Also when I try to open the volume I am given "can't open superblock" error.

I am not too familiar with using Linux and ma just trying to get to my files.

View 3 Replies View Related

Ubuntu :: Read Out Superblock Of A Filesystem?

Mar 31, 2010

How can i read out the superblock of a filesystem?

View 5 Replies View Related

Slackware :: CD Rom Not Mounting - Can't Read Superblock / Fix It?

May 10, 2010

I am newer to Slackware but not to Linux. I am having the hardest time trying to get my CDROM to mount for me so that I can play audio cd;s and the like. I can see that the system knows that my CDROM drive is there and that it works because I installed Slackware 13 from my CDROM drive as /dev/hdc. Now when I put in a cd nothing happens? I have googled away and searched this forum quite a bit before posting this but I have tried almost everything I can think of and what others have mentioned. I have screenshots to show you what I mean. When I try to run the command:
mount /dev/cdrom /mnt/cdrom
I get it as mounting as read only and it says can't read superblock? Now that is fro my slave IDE CDROM on top as hdd. I have tried before to mount it as /dev/hdc but to no avail. I know both CD drives work just fine because I used them to install the system. I am going to put the screenshots below so maybe someone can help me! Also I can eject the top CD drive with the command code...

View 3 Replies View Related

Debian :: USB Drive Corrupted - Cannot Read Superblock

Mar 16, 2011

I have a removable USB pen drive, that all of a sudden, when it got 99% used, stopped working. When I try to mount it (manually) I get "can't read superblock". I know there is a ton about this on Google and I've read a lot of them, but most seem to be about formatting a drive, or fiddling in fstab. I'm trying to run fsck on it, and it finds errors, (among them: two FAT-tables?) but then it just freezes, and CPU goes to 100 % and I let it be like that for 4 minutes, before aborting. Scandisk in windows is rubbish (fails to start), and running "chkdsk /f F:", in windows, results in nothing, the shell crashes immediately. Is it normal for fsck to get stuck and just chew up CPU? It does not seem to be reading from the drive, according to conky. Also, is it possible to run fsck as normal user, (at my work)?

View 2 Replies View Related

CentOS 5 :: EXT3-fs : Unable To Read Superblock / Enable This?

Sep 27, 2010

I am unable to boot my server and it is erroring with the message "Kernel panic - not syncing: Attempted to kill init!". Here are the details:

I have a brand new Dell PowerEdge T110 server with Quad-Core Xeon CPU and 2GB 1333MHz RAM. I have installed a hard disk (SATA, 7.2rpm) on this machine that I removed from another Dell PowerEdge T100 server with Dual-Core Xeon CPU that was running software RAID 1.

Now when I boot the new T110 server, it displays the following error messages code...

I am running CentOs v5.5 x86-64. If I put the hard disk back into T100, it boots fine. I do not know why it is not working with T110 server.

View 6 Replies View Related

Ubuntu :: Error Mounting: Mount: /dev/sdd1: Can't Read Superblock

Jul 6, 2010

what does this error message mean? im trying to mount an ipod in disc mode. let me know if there is a way to manually mount it to get around this. but not too technical, the simpler the language, the easier i will understand it.

View 9 Replies View Related

Ubuntu :: Superblock Could Not Be Read Or Does Not Describe A Correct Ext2 Filesystem

Jul 12, 2010

[URL]

This problem has arrived again.......I tried the same solution but didn't work out...the problem is described below.

I use Ubuntu 9.10 .

I did this in Ubuntu 9.10 live CD.

quote from terminal :-

ubuntu@ubuntu:~$ sudo mkdir /win
ubuntu@ubuntu:~$ sudo mount /dev/sda5 /win
ubuntu@ubuntu:~$ sudo mkdir /vdisk
ubuntu@ubuntu:~$ sudo mount -o loop /win/ubuntu/disks/root.disk /vdisk

[Code]....

The superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock:

e2fsck -b 8193 <device>
ubuntu@ubuntu:~$ "
> ^C
ubuntu@ubuntu:~$
^^ quote ends.

View 4 Replies View Related

CentOS 5 :: EXT3-fs: Unable To Read Superblock And Kernel Panic

Aug 15, 2011

I got a CentOS server + KDE from a server (which I had no contact until now), he had 2 HD's one for the system and another for files.

I brought the HD system home to try to make it run on a virual machine (VMware) so I can do some testing before you put in practice.

But already converted the VMware HD to the system, it tries to start but it shows some errors and in a message "kernel panic - not syncing: attemped to kill init"

I think the drivers are correct, has edited the file "/ etc / modprobe.conf" edited these entries equal to another I installed CentOS on VMware.

alias scsi_hostadapter mptbase
alias scsi_hostadapter1 mptspi
ata_piix alias scsi_hostadapter2

Look at the picture attached the full error.

Link to large image
Link to large image

View 1 Replies View Related

Server :: Call A C Function Or To Execute A C Pgm O/p From Php?

Apr 6, 2011

how to call a c function or to execute a c pgm o/p from php file and this output should be displayed in the html page ? I have tried with system() and exec()but its not working.

View 2 Replies View Related

Ubuntu :: Errors:Unable To MountError Mounting: Mount: /dev/sdb1: Can't Read Superblock?

Jun 4, 2010

I'm trying to get some data off of an external harddrive. I get a few errors:Unable to mountError mounting: mount: /dev/sdb1: can't read superblock.I then tried to run a read disk benchmark on disk utility and that seemed okay.I then tried

Code:
ubuntu@ubuntu:~$ sudo fdisk -l /dev/sdb
Disk /dev/sdb: 320.1 GB, 320072933376 bytes

[code]....

View 4 Replies View Related

Server :: Fatal Error: Call To Undefined Function

May 7, 2010

I had created a database in mysql called guestbook and created tables also in mysql and also granted remote connections privileges from below command

mysql> grant all privileges on *.* to root@192.168.1.222 identified by "rrcrrc";

i had accessed from my pc(192.168.1.222) and used phprunner to create php web pages and copied the phprunner output folder to use with apache. when i accessed from my pc the below error is coming

Fatal error: Call to undefined function: mysql_connect() in /home/administrator/useridall/include/dbconnection.php on line 9

i can't understand what is going on so i put this question in the forum, below is i am giving the dbconnection.php details.

dbconection.php
<?php
function db_connect()
{

[code]....

View 3 Replies View Related

Programming :: Scenario For Call Shell Function From Mysql?

Apr 18, 2011

I am trying a scenario for calling a shell script when ever a trigger is called. Can some one guide me how to achieve this scenario. Also it should passes the value from the table to the shell script. Can some one explain me along with the example.

View 2 Replies View Related

Programming :: CGI Shell Scripting : Possible To Call Function From Other Script?

Mar 15, 2011

I got two cgi shell scripting files. Is it possible when i am in file 1, to call a function from file 2?

View 2 Replies View Related

Programming :: Sendto Function Call In UDP Client Program ?

Jan 5, 2010

The following is the UDP client code I am using.

Code:

Even the server is down, sendto function is not returning -1.

Instead, it is returning the length of the message as if it is success.

View 1 Replies View Related

Debian Programming :: C++ Function Call For Manual SSD-TRIM Commands

Jul 25, 2015

I'm looking for a way to launch "TRIM" commands to a SSD drive myself, from a c++ code I'm going to write, for flash erasing an SSD drive (and not to wait for others things that "should do it automatically in some circumstances if this or this, this and this have been enabled and [..]" but will never tell me if it worked or not

I know there is thousands of complicated ways to test and check if it worked, and also software that needs money to do so, that's why I just want to call myself the TRIM functions and read the return value (like true or false) in order to know if it worked !

Where I can find the c++ call that could permit me to do so ? I heard about the GLibC that gives a way to access every user space function related to Linux Kernel (poll, select and others) as standard c++ functions, I suppose that, if there is a way, it will be on the GLibC but how to find it ?

View 3 Replies View Related

Software :: Fatal Error - Call To Undefined Function Mysql_connect()

Jun 14, 2011

I know that you already had some cases of this error on this forum, and i wouldn't like to open up old topics, but none of the solutions mentioned before, helped.

I am trying to run a local php script on a Debian based server, but every time i run it, i get this error message:

Code:

Code:

And the php mysql_connect() function works as tested in this .php file

Code:

Using the script

Code:

The php script i am trying to run is a php irc bot from

Code:

And the mysql.php file which issues the error is like this:

Code:

I have also tried editing the mysql_connect function to be something like the test script i mentioned above, but still get the same error.

I have installed LAMP server using the apt-get (installed following packages: apache2 php5 libapache2-mod-php5 mysql-server mysql-client php5-mysql phpmyadmin) everything so far works great.

What i have noticed, that even though mysql shows up in phpinfo, it doesn't show up as a module listed in 'php -m'

View 10 Replies View Related

Programming :: PHP Fatal Error - Call To Undefined Function Mysql_connect()

Nov 5, 2010

Am getting errors about "mysql_connect()" for the following code:

Have compiled PHP with MySQL support using the following:

Thought PHP 5.3 has a built-in replacement called mysqlnd, and there's no need to install "php-mysql" RPM.

However, according to the following site this is still required: [url]

Give me an idea whether I really have to install php-mysql RPM in order to use mysql_connect() for PHP?

View 4 Replies View Related

Slackware :: Fatal Error - Call To Undefined Function Imagecreatefromjpeg()

May 17, 2011

I am having a problem with my slackware version 12 server. I tried installing a new joomla theme from the rockettheme and its giving me the following error while loading the site.

Fatal error: Call to undefined function imagecreatefromjpeg()in /home/www/verticaltest/modules/mod_rokstories/thumbnail.inc.php on line 167

Thought it was a problem with gd library modules, but in info.php, its showing that gd is installed in the server. Pasting the result form info.php below..

If gd is installed, what should be the problem?

View 3 Replies View Related

CentOS 5 :: PHP Fatal Error: Call To Undefined Function Timezone_open()

Sep 16, 2010

I'm newbie with Centos. I have got a server with Centos 5.2 and I need to use PHP 5 >= 5.1.0 function as timezone_open. So that, I follow this guide to update php. Now, I have got PHP 5.1.6 (cli) (built: Mar 31 2010 02:44:37). I create a simple test.php: Quote:<?php $var = timezone_open('UTC');print_r($var);?>

View 3 Replies View Related

Ubuntu Installation :: Postgresql Works From Cli - Error Call To Undefined Function

Aug 4, 2011

I have weird problem with postgresql + nginx + php5 0 ubuntu 11.04. Postgresql works just fine, when I run "php test.php" from shell. I assume php runs from shell are called cgi runs? When I open page from browser [URL]... I get following error. I assume php runs from browser are called cgi runs? Fatal error: Call to undefined function pg_connect() in /var/www/mydomain/htdocs/test.php on line 7 When you print php info, only reference to postgresql is pgsql.ini and pdo_pgsql.ini files that are parsed.

[code]....

I did install postgresql by running following commands:

sudo -s
aptitude install postgresql
aptitude install php5-pgsql

View 2 Replies View Related

Programming :: Python - Call Function From The Command Line After Compile The Program?

Dec 28, 2010

If i have a python file with a function call_me(a,b),how can I call this function from the command line ,after i compile the program?

View 5 Replies View Related

Programming :: Memory Allocate In Function And Call It By Reference For Array Structure?

Jul 2, 2011

I am writing a function(in C language in Linux) to initialize an array of a structure from a mysql table by calling a function by reference but I have a problem with call this function by reference . this is my program:PHP Code:

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

[code]...

View 4 Replies View Related

Server :: Mounting Drive Bad Superblock Error Wrong Fs Type, Bad Option, Bad Superblock On /dev/sda1?

Jun 16, 2010

I have a x64 OpenSUSE server with two hard drivers installed. The first one is used for the / and /home partitions and the other is for backups. Ironically enough it is the backup hard drive I am having trouble with. I was having trouble writting to the drive and unmounted it to preform a fchsk, however now when ever I try to mount it I get the following error:

mount: wrong fs type, bad option, bad superblock on /dev/sda1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

Does anyone know who I can repair the drive and retrive data?

View 1 Replies View Related

Fedora :: Error: Call To Undefined Function: Curl_init() In /root/test.php On Line 142

Nov 22, 2009

curl: try 'curl --help' or 'curl --manual' for more information so here curl is working when I'm trying php test.php I got: PHP Fatal error: Call to undefined function: curl_init() in /root/test.php on line 142

Also in php.ini is missing extension=php_curl.dll but I added and the same problem

View 4 Replies View Related

OpenSUSE Install :: Error Message Was 'bad Magic Number, Corrupt Superblock' With A Suggested Command To Try Another Superblock?

May 14, 2011

After several crashes during videos it seemed like a good idea to fsck root. Downloaded the latest systemrescuecd and ran it at boot. The error message was 'bad magic number, corrupt superblock' with a suggested command to try another superblock. That failed with the same message. Tried tune2fs to force fsck at boot and got the same message. The drive is less than 6 months old and the installed system is working more or less ok. The command I used was 'fsck.ext4 /dev/sdc2'. What am I doing wrong?

View 9 Replies View Related

Debian :: Connect To My Mysql Database Using Php - Fatal Error - Call To Undefined Function Mysql_connect()".

Jul 31, 2010

I am trying to connect to my mysql database using php but I am getting the error "Fatal error: Call to undefined function mysql_connect()".

I checked phpinfo() and there is no reference to MySQL. I believe this means that my install of PHP doesn't support MySQL. Do I need to uninstall and reinstall with a version of PHP with MySQL support? If so how should I do this and how do I get a version of PHP that supports MySQL?

View 2 Replies View Related







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