This is a USB shared drive, with an ext3 partition. The partition is located at /dev/sdb1. I use Samba to share /media/tiga1000/samba/public, and everyone on the network can add/delete files to it. Specifically, this is our media drive, and we upload a lot of pictures to it, since me and my sister are amateur photographers. Under /public/images/camera_pictures/2010, I have 3 directories. 01_january, 02_february, and 03_march. The directory that has been corrupted is 03_march, and when I say corrupted, I mean that I cannot open it. It acts as a unknown file type that can't be opened.
Here is the file properties of it:
Code:
drsmall@mycroft:/media/tiga1000/samba/public/images/camera_pictures/2010$ ls -lah
total 960K
drwxr-xr-x 4 nobody nogroup 4.0K 2010-03-11 21:22 .
drwxr-xr-x 5 nobody nogroup 4.0K 2010-02-18 20:19 ..
drwxr-xr-x 14 nobody nogroup 4.0K 2010-01-31 11:57 01_january
drwxr-xr-x 10 nobody nogroup 4.0K 2010-02-23 15:47 02_february
-r--r--r-- 1 nobody nogroup 938K 2010-03-11 15:46 03_march
How I should go about recovering it. Somehow it lost it's directory switch. Should I unmount the drive and run fsck on it? I would like to be able to recover these images, if it is at least possible!
Fascinatingly weird one here. First, this issue isn't on my computer, it's from someone who I am helping. I don't have first-hand access to the computer. Some background: the machine originally had Ubuntu Hardy, which we upgraded to Lucid a couple of weeks ago. Earlier this week, he gave me a call that Ubuntu wasn't booting up; it dropped to the command line. Some tinkering later, I figured out that libgthread-2.0.so had become corrupted, so X wasn't starting. It gave an error complaining that it had an invalid ELF header.I figured that this was just an odd freak occurrence; there was a bad kernel panic previously, so maybe the library was upgraded and the system was just writing to the disk at that time. Fixed via sudo aptitude reinstall libglib.
Ubuntu then started and everything ran perfectly. Today, he gave me a call. After he had restarted the computer, Ubuntu again dropped to terminal at the same point while booting. I had him open a new tty and run startx, which failed with a different shared library but the same error: libXext.so.6 has an invalid ELF header!
We had run updates, but I don't recall whether X's shared libraries were touched. Even if they were, though, that shouldn't affect anything. There were no hard resets between my fixing libgthread and libXext breaking. I'm going to try a clean install; I'm really just hoping we can figure out why this is, because it's an amazing little problem.
I installed the latest Gimp beta and it worked fine but then I couldn't open it. I removed it and I reinstalled but it didn't work, so I installed the latest stable version (no beta) and it still does not work, when I open it form Terminal, this is the response:gimp: error while loading shared libraries: libbabl-0.0.so.0: cannot open shared object file: No such file or directory
I want to update all the machines in the network from a central repository which is on my master server and whose archive directory is shared through samba.I searched in the man page of sources.list and found that there is an option for this but can't able to implement this. Can anybody kindly tell me the way to do the same.
I upgrade the system from 11.1 to 11.2 seems everything work fine, no error no warning, after a reboot the consol show : mount error while loading shared libraries: libvolume_id.so.1: Cannot open shared object file: No such file or directory. when I try to repair the system the repair tool cannot find the root partion,
I am using Centos 5.2, and I installed all of the available gnome and gnome development libraries available via the "add software" menu item. Still, when running some programs, I get the following error message:
"error while loading shared libraries: libzvt.so.2: cannot open shared object file: No such file or directory"
If I understood it correctly, libzvt.so.2 is part of some gnome libs... where to find and how to install them?
I urgently need expert assistance. During a cold-start reboot, something corrupted my / directory making it impossible to access much of anything. I was able to log into a recovery console and do "ls /" which shows most of the critical directories although "media" is missing. However attempting to "ls /home" gets the "no such file or directory" error message, as do attempts to ls most of the others. Doing "ls -l /" gets one item listed, followed by a single record out of /var/log/syslog, then nothing at all.
Attempting a normal login (I've disabled the quiet and splash options, so I see all the startup messages) gets to doing fsck on the swap partition, and that stalls out at 14% complete. The fsck on the root partition completed okay, apparently. This machine is my router, firewall, FTP server, and also hosts VirtualBox VMs that contain all of my customer support tools. The VMs themselves are partially backed up on another box, fortunately, but it took me a couple of months to get the failed box configured properly so if possible I need to recover it. For lack of space, I've never been able to do a full backup of it -- and permissions have foiled portions of all my other backup attempts on it.
Complicating matters is the fact that I have a moderately large data recovery job scheduled to arrive this evening (July 3) to be done while the customer's business is shut down for the holiday. Without the FTP server I'm unable to receive the files, which will total from 100 to 200 MB in all. Is it likely that testdisk may be able to rebuild the borked main root directory, if run from a live CD? The system is Hardy LTS 8.04.4, with 3 GB of RAM and a 250 GB SATA drive. I'm posting this from my WinXP laptop, which doesn't get along with my LAN so connects from a different router than the one that's down.
Nautilus File Manager search in a directory seems to be corrupted. It's glued to a previous search and you cannot start a new one. Anybody know how to repair?Clicking the magnifying glass goes to this directory (it reads Search for ""under the Title Bar).
I've been running Ubuntu 10.04 for a while now on my 500 gb external hard drive, and for the most part I've had little to no problems I couldn't fix with a little common sense. However, recently my computer was taking an unusually long time to boot up, so I restarted, which normally works just fine, but just as I restarted the system had begun to boot. Now when I boot I get the following:
Code: mount: mounting /dev on /root/dev failed: No such file or directory mount: mounting /sys on /root/sys failed: No such file or directory mount: mounting /proc on /root/proc failed: No such file or directory Target filesystem doesn't have /sbin/init.
[Code]....
I haven't tried an Ubuntu LiveCD, because I lost mine (making a new one is difficult with our current internet connection) and I feel I would get the same results. At the very least, I would like to be able to get all my music, videos, etc. off the drive, but I would prefer being able to fix it completely so as not to have to buy a new one.
The computer that I have Ubuntu/Karmic just recently installed on, has 2 hard drives. Primary is Ubuntu, secondary is win95b. After the Karmic installation (which went perfectly), I now find that when I boot to the secondary drive, the MBR for win95b is reporting it is corrupted. I can use win95b, BUT it runs in dos compatability mode, and there are no CD drives showing, despite the fact that BIOS reports 2 cd drives. Can GParted fix the corrupted MBR on the win95b hard drive?
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)?
I unwisely lent my USB stick to a friend who desperately needed to copy some files between home and work. When she returned it, I plugged it in and found the files could not be read (I have a few things on there she was told not to delete). It appears to have become corrupted- can't say how it happened as I wasn't with her, though she was successful in using it (windows machines of some variety).Output of ls is a succession of 'ls:cannot access <garbage> Input/output error' with the odd 'No such file or directory' interspersed between them.
I'd like to recover my files if possible, a few are latest versions and hence the backups aren't up to date. I'm using an Acer Aspire one with the supplied Linpus linux (based on fedora 8), also have access to my old laptop and desktop with older versions of fedora on them.On the Aspire one, kernel is 2.6.23.9lw.The usb drive is a 16GB Super-Talent (really small one) which mounts as /media/disk
I've read that using e2fsck on a mounted drive is a bad idea, so am looking for suggestions. I just want to recover the files (and am hoping I can then format the disk and make it useable again).
I wanted to check the first sector of my USB stick, and so I issued:dd -if=/dev/sda -bs=1024 -count=1It showed me all the weird characters from the data, then after it executed my bash prompt became corrupted with the same kind of characters! Also, everything I typed was like that. (see the picture)Luckly, it was just that tty that became like that.How can I fix the fonts after something like that happens, and how to prevent it from happening whenever I use dd again?
I was working on my RHEL 5.2 workstation yesterday when the OS became flakey. first I noticed that some software that I had running was outputting and error that it was unable to write to log file because permission was denied - I've never seen this output before- it would have been writing to my home dir running under my user name. From an open terminal, i did "ls -al" and saw that many of the permissions the files in my home dir were listed as "????????" some were still "rwxrwxrwx", as well, many files were highlighted in the colors set for links and root privileges.
I tried to start a new terminal, and it failed. then Gnome crashed. When I reset the Machine, I got through grub, and into the startup, and after finding the Volumes, the startup failed with a Kernel panic:
giving several errors- like:
I dont have much experiencie with this stuff, but it looks obvious that somethig like the MBR or wherever the partion information is stored might have been corrupted.
What I dont understand is why I can get into GRUB (its a dual boot Windows Vista, RHEL machine). I'm guessing that this means its not a mechanical problem, because I can get RHEL to begin to boot which i think is failing somewhere around the /etc/rc.d/re.sysinit script, and also can get Vista to bring up the inital windows screen and a mouse pointer on spanning both of my screens which i think means that it must have at least loaded my ati drivers for my dual head radeon 4850. windows hangs there however.
I've tried the RHEL 5.2 rescue disc, and it doesn't recognize any Linux partitions.
I ran the system diagnostics out of the dell bios and it came back with a failed HDD : Error code 0142, but from digging around a bit I've found that this is a very broad diagnosis.
My concern over it being a mechanical problem is that I'm not sure that I want to try to run any further diagnostics, or any of the disk utility programs that i've seen listed here on linuxquestions, as it might damage it further, and there is some data that i would really like to get off this disk.
I am trying to install an ARM version of Ubuntu onto an SD card for a BeagleBoard from a .img file downloaded from http://releases.ubuntu.com/lucid/. I have tried several files of .img and .raw downloaded from several places. I am using 'dd' on a PC running Ubuntu 10.0.4. My question doesn't relate to the BeagleBoard at all since I never get that far. The files for Angstrom that I copy directly onto a formatted SD card boot up fine on the BeagleBoard, but I need Ubuntu on there and can't do it with these image files. The command I use is:
sudo dd if=<the downloaded file> of=/dev/sdb1 After it asks the root password, it chugs along for some time and then gives what appears to be a successful response like the following. (This time it was for the Maverick version of Ubuntu in a .raw file):
leiphasw@dell-linux:~/Downloads/ArmMaverickUbuntu$ sudo dd if=maverick-preinstalled-netbook-armel+omap.raw of=/dev/sdb1 4090632+0 records in 4090632+0 records out 2094403584 bytes (2.1 GB) copied, 167.38 s, 12.5 MB/s
I am trying to setup 2 individual FTP users. They should both have access to the same directory. They both need to be able to read/write into the directory. But, I want them not to be able to write to each other's files (e.g. delete, remove, rename, etc.).
So let's say the shared directory is: /home/ftp/shared/
UserA needs read/write access to /home/ftp/shared/. UserA should only have write access to his own files. UserB also needs read/write access to /home/ftp/shared/. UserB should only have write access to his own files.
It would be a unix box of sorts, but that is the only restriction. I could use whatever software. I am currently thinking pure-ftpd or vsftp but I am open to all ideas.
i have an A machine, which has an ftp server (fedora core 8) and is sharing a directory with a machine B (fedora core 8 too), which has no ftp server and nothing special on it.
When machine B try to access to shared directory,there is no problem and works perfect.But when i share a directory on machine B and try to access to it from machine A, it doesn't work. I know that something related with ftp server make sharing work for machine A, but why? or what is it? is there a program or service that i need besides of nfs and rpcbind-portmap?. I had used nfs to share directories and i used rhel 5 to test all this things and happens the same.
a lot of ubuntu apps seem to use sqlite3 to store the metadata. some noticable are firefox, shotwell and banshee.
can understand firefox keeping it separate but what if i want to share the music and photos between two users on the same machine.
i've set up a user group (call it "two") that has two users have set up a shared dir under /content/twousers set permissions chgrp & chmod & flicked the sgid bit so that everything is owned by the group.
can then run banshee (or shotwell for that matter) under the primary user (the group owner) and import data (music pictures et al).
try a second user on the same local machine and can see the directories and files - just cant see the metadata in the sqlite db.
any way to get these apps to look for their metadata in the shared directory - doesn't seem like sqlite has a distributed db node mechanism available.
is there any way of assigning a unix evironment variable to do some sort of "directory redirection" - for want of a better term - or an sqlite trigger in the db that connects to the common sqlite?
I'm COMPLETELY new to linux. I"m running Ubuntu 9.10 and TRYING to install Devede. I have tried the Terminal, Synaptic Manger, and the Add/Remove and still keep getting this same error. I'm running a regular 32 bit Pentium 3 process to test if I like Linux or not. this is what it says: E: /var/cache/apt/archives/libavcodec-extra-52_4%3a0.5+svn20090706-2ubuntu3_i386.deb: corrupted filesystem tarfile - corrupted package archive this is not a DUAL boot computer either.
I need to share some files from my Ubuntu 10.10 box to others on my home network so I created a shared folder, right-clicked it and chose "Sharing Options", chose "Share This Folder" and then I was told that additional software is needed to enable sharing. I agreed and software was downloaded and installed. But when I clicked "Create Share" button and told Nautilus to automatically add permissions for others to access my folder, I was slapped with an error message saying "Failed to execute child process "testparm" (no such file or directory). So how to proceed and get sharing working again? I installed Samba afterwards via Synaptic and assigned the folder for sharing, but I don't see the special "arrows-both-ways" sign for this folder.
I have ubuntu 9.04 on my Virtual Machine and my host OS is Win.XP, I've installed SSH on my linux and and now, I use PuTTY on Win.XP to connect to the SSH on linux,
Now, I have a problem: When I login with "root" and run any command, I see load errors for libraries such below:
Code: vim:
I've defined a user in ubuntu and when I login with it, I have no problem in running commands!
Also, when I use "su" command in the user's session and go to the root, I have no problem again in running commands! Is it related to my linux version or distro?
I have recently installed Fedora 12 on a desktop PC and as my first experience of Linux, I am really impressed. I have now installed several packages and have reached a point where I would like to share the PC with other user (family members in the same house).My question seems so basic I am almost embarrassed to ask it but could some one explain the best way to create a local shared directory that could be used to store files accessible to everyone (e.g. music, photos, videos, documents etc.)There will be three users and as it is a family PC, they will all have full access.
Reading posts from various forums, I am little confused about what is the best way to proceed (i.e. what is Linux best practice). The simpler of the two methods is to simply make the directory using the mkdir command, followed by the chmod command to assign full access rights. Fore example if the local shared directory is called 'share'. The alternative approach assigns a group, a group administrator etc and then adds users to the group.
//192.168.2.100/e:/video /mnt_win_video ntfs defaults 0 0 And when I try: mount -t cifs -o username=usr,password=secert //192.168.2.100/e:/video /mnt/mnt_win_video I get: mount error: can not change directory into mount target /mnt/mnt_win_video
If I want to share a directory called /home/me, would I go to my /etc/exports file and share /home/me/* or would I share /home/me ? I am unsure of how to type this into the file.
I'm running the turnkey linux version of joomla and I need to use PHP's mail functionality to send a notification email from a page (separate from joomla content) . PHP's native stuff is rather plain and I find myself needing the functionality of PEAR. So I've installed PEAR via aptitude, but it has installed to /usr/share/php.
how do I include these files from php scripts? Firstly, the files are owned by root, the www-data user doesn't have access. It also appears that the permissions on the files may need to be modified. Some php files don't have the execute flag (shouldn't they)? I recognize the point of having a centralized location for updates and sharing, so I don't want to just copy the files to my web directory (/var/www).
There is like one month since dig fails running after some upgrade. Platform: Ubuntu-Server 6.06.1 _Dapper Drake_ - Release amd64 Error: Code: dig: error while loading shared libraries: libdns.so.21: cannot open shared object file: No such file or directory.