There are several hundreds of mp3 files on a SD card. A few of them don't play on a player, (which is no brand, made in unreliable country.) The indicator says only "error" (not quite informative!) I want to figure out which one is broken. What I did.
Code:
ffmpeg -i inputFile.mp3 -y -f wav /dev/null
This gave me several files with "overread" or "incomplete frame" errors. However, these files DO play! Listening all files with mplayer, which will take several hours.
My recent borked upgrade to -current inspired me to try to come up with a way to sanity-check the lib and bin dirs for broken library symlinks (possibly indicating missing libs) and for binaries and libraries that belong to no installed package, as well as missing dependencies.
This script is the result.
I've checked the script results manually, and it appears to be accurate, so I figured I'd post it here for a second opinion, and/or because others may find it useful too. I'm not aware of another popular method of doing this on Slackware, so here it is:
I had vista installed, then I installed Win7 on a dif. partition. Then I installed Ubuntu 11.4 over the vista partition (formatted first), and now I can't get into Win7. I'm really at a loss. I've tried the Win7 disk, and it doesn't detect the Win7 installation. I've also tried sudo update-grub, and it doesn't seem to detect the win7 install either. I've tried making the Win7 partition bootable using gpart as well. I'd like to dual boot Win7 and Ubuntu, however I need to do that.
i am investigating on solutions to trace a file deletion on a computer( Linux O/S).i also need to determine weither after a file deletion or download on a computer, the computer clock had not been modified. In case a file has been downloaded on a computer and then transferred to a removable device, i need to find out the file activity. i mean i should be able to tell that the file was downloaded and transferred to a device with possible specifications.
I've had Ubuntu 11.04 installed on my desktop since it's release. Up until an hour ago, it was working fine. I clicked on an update from the update manager, now booting into a graphical mode is completely broken, (the start-up load hangs at 'Check Battery State ... [0k]'). I restarted my computer, and booted into safe mode, and launched the terminal. This all works fine. I then typed :
Code: sudo gdm start into the command prompt, hoping that I would be able to start things manually. Instead, it spat out this: Code:
gdm-binary[230]: WARNING: Unable to load file '/etc/gdm/custom.conf'. No such file or directory. gdm-binary[230]: WARNING: Unable to find users : no seat-id found. gdm-binary[230]: WARNING: Gdm Display: display lasted 0.070467 seconds
The last line was printed about 8 times, with slightly different times, before it gave up and failed. Some information which might help, I have Gnome 2, Unity and KDE (not sure which version), installed. My graphics card is the GTX 275, and I have driver the Nvidia driver 275.21. So yeah, I think the update has gone and moved custom.conf somewhere, but I have no idea on how to fix it. I have a graphics programming assignment due on Friday and I would be eternally grateful if I could get this fixed well before then.
I have custom software that writes to a sensitive large file when the user does something. I would like to make backup copies of The file that gets written to, but if I make a gzip of the file at the same time someone is changing something, it will corrupt the backup because some of the data will be missing, as its backed up during being written to.
a) Is there a way to detect if a file is currently being accessed/written to? That way if its currently being accessed, I can just make the script wait until its done and then finally back it up.
b) Instead of backing up the large file while it has potential to get written to, would it be better to make a copy of the file first, then gzip the copy? This idea comes from the fact that gzipping the original takes 5-10 seconds, whereas making a copy only takes 1-2 seconds. The less time, the less chance of corruption.
c) Is there anyway to freeze a program or a file to stop it from being written to for an amount of time?
With a, b, and c together. The best solution I have to my problem would be a script that first detects rather the file is being accessed. If not, it would then freeze the file/program and then make a quick copy of it. Once the copy is created, it will unfreeze the original file/program and then go about gzipping the copy.
I have to read files from a linux server. When I copy a file I receivce just a portion of the file I expected if the process generationg ths file is still writing it.
I read the file from a java apllication using SSH/SFTP. How can I detect if the file is still used by the writing process ?
how to detect if a file is being opened by any application so that i can block it just before opening it... Actually i am working on android and using iNotify in JNI to detect the OPENING of a file...but the file is getting opened before the iNotify detects it..and therefore its displaying the contents of the file unmodified .. The actual requirement is that if anyone is trying to open the file it should be modified by my program and then the modified file should be opened.
Problem is to boot fedora. On my system I have 3 HDD on 1st - 2 partition (1)XP (2) free space for data NTFS on 2d - 1 partition (1) Win Serv 2003 on 3d - 3 partitions (1) free space for data NTFS (2) /boot (3) Fedora 12
After installation boot manager doesn't see fedora! Only give me option to run XP or 2003. Another problem Fedora 12 Live CD doesn't work for my graphic. I see some quick text after lanch and then black screen but still understand that there going some processes under that black screen, than it looks like stop and w8 for my decision which I cant make cause don't see what is there going on. So there no chance to get under linux after instalation and no chance using live CD to install GRUB and I need some how edit boot.ini in windows to make it appear fedora in boot menu.
My current boot.ini looks like that: Code: [boot loader] timeout=30 default=multi(0)disk(0)rdisk(1)partition(1)WINDOWS [operating systems] multi(0)disk(0)rdisk(1)partition(1)WINDOWS="Windows Server 2003 Enterprise x64 Edition" /noexecute=optout /fastdetect multi(0)disk(0)rdisk(0)partition(1)WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect how should looks 3d line? Code: multi(0)disk(0)rdisk(2)partition(3)Linux="Fedora 12" /noexecute=optin /fastdetect like this?
There are many plain text files which were encoded in variant charsets.
I want to convert them all to UTF-8, but before running iconv, I need to know its original encoding. Most browsers have an Auto Detect option in encodings, however, I can't check those text files one by one because there are too many.
Only having known the original encoding, I then can convert the texts by iconv -f DETECTED_CHARSET -t utf-8.
Is there any utility to detect the encoding of plain text files? It DOES NOT have to be 100% perfect, I don't mind if there're 100 files misconverted in 1,000,000 files.
I am sitting in front of an Ubuntu which was installed previously by someone else. How can I find out if a swap partition was defined?Is it always a swap partition or only a (ONE) swap file (like in Windows XP) ?If there is currently no swap partition: How can I create one and tell Ubuntu to use it?How can I conversely tell Ubuntu NOT to use a separate swap partition but to use
I'm running Karmic Koala on my laptop and I'm attempting to connect to my university's secure wireless network. I was directed here by the university's computer help websiteI've followed all the steps, but when I open the wireless network authentication applet and try to browse to my private key, I can't find it. The "chose your private key" window claims to be looking for "DER, PEM, or PKCS#12 private keys (*.der, *.pem, *.p12)," and while my private key file shows up as a .p12 file when I open that location with my file browser, the file doesn't show up when I try and browse to it from the authentication applet. I've attached an image which shows the file in one window, but not in the other f clarification.
I've installed Squeeze 2.6.32-5-amd64 on my laptop (Alienware M17X R3, Intel i7 Sandybridge, ATI Technologies Inc Broadway [ATI Mobility Radeon HD 6800 Series])The screen is 17", with maximum resolution of 1920 x 1080. After a default install of the operating system, the maximum resolution I can select is 1280 x 1024.My research so far has suggested that I need to edit the /etc/X11/xorg.conf file and provide xorg with the necessary resolution.
Again, by default, the xorg.conf file is not created. This leads me to believe that xorg is scanning my hardware at startup and providing me with whatever it thinks is appropriate. I tried following these instructions to generate an xorg.conf file. This process created an xorg.conf file under /root/.
When I copy this xorg.conf file to /etc/X11, I get a blank (i.e. black) screen. Deleting this file restores the default resolution 1280 x 1024.This system is dual booting with Windows 7. Under windows I am able to get a 1920 x 1080 resolution, so I know my hardware is up to it.At this stage I have yet to install the drivers for the Radeon graphics card.What are my options regarding configuring xorg to give me a higher screen resolution?
I have a new F12 install, and my syslog is filling up with messages about USB. I have 2 USB devices plugged in directly to the mobo (bluetooth keyboard receiver, touchscreen), and it keeps redetecting them and then disabling the port for some reason.
What is an easy way detect corrupt movie file during or before using ffmpeg to encode them? is there a command I can use to check if the file is not corrupt and then pipe it ffmpeg or standard input?
I am unable to double-click a file of a given type, e.g. .pdf, and have it open in the appropriate application. While some file types have the correct associations, others do not, and I am unable to assign apps for some file types.
An example is Adobe portable document files ending in .pdf. If I right-click on a .pdf in Nautilus, and select "Open with," I get a dialog containing two tabs. One lists applications already associated with that file type, which at present is blank. The other tab seems as if it should allow me to assign an application to that file type, but when I click it, the dialog simply closes suddenly, as if crashing.
In Ubuntu 9.10, sudo was working properly except it would not let me run speedy as sudo. I would get an error message, which I believe stated "No such file or directory. However, I could run the command as my regular user (being prompted it needed escalated privileges), and I could run the user as root. So I tried to "fix" it so that I could run it via the sudo command. My fix, in turn, ended up breaking sudo. I edited a file which contained the directories for PATH (I made a backup of said file), and that didn't work. It further broke sudo. So I attempted to restore the backup file, however, sudo was still just as broken.
Now, whenever I try to execute any command with sudo I get: tim@linux-hp:~$ sudo -i [sudo] password for tim: env: -i: No such file or directory tim@linux-hp:~$ sudo gedit env: gedit: No such file or directory tim@linux-hp:~$ sudo apt-get update env: apt-get: No such file or directory tim@linux-hp:~$ sudo nautilus env: nautilus: No such file or directory tim@linux-hp:~$ sudo update-manager env: update-manager: No such file or directory tim@linux-hp:~$ sudo speedy deploy env: speedy: No such file or directory
I have since upgraded to Ubuntu 10.04 Alpha 3, with mild hopes that the upgrade would remedy my problem, but alas - it did not. How to get sudo back to a working condition?
So im trying to un rar my rar. files. I use 7-zip, and winrar, Every time i try to unrar them it says broken file, cannot open file. This happens to nearly most of my rar files in the last few weeks, idk what else to do,
First off, this is not my laptopit is a friends that i installed ubuntu onthey asked me to try and fix their problem.PROBLEM: basically the desktop is locked. if it is any way to browse the files, it doesnt workyou double click a file on the desktop, you cant open folders. you cant open folders/locations through any menu.its like the desktop is an image of your desktop and the icons are hidden. but this is not how it is. the very first time you click on an icon, it highlights but nothing else. it wont unhighlight either.
have only been using it for a couple weeks now. i installed Picasa from google just now and since then my desktop icons have disapeared and if i open the file manager it closes within 5 seconds. i have tried rebooting the computer and have now completly removed picasa and the problem is still there.
I have an ongoing battle with upgrade and/or update. I did a file scan for entries containing ubuntu. There is more than a page of entries that begin 'newtoubuntu.' and say 'broken' in the file type.
I'm trying to install Debian Jessie beta2 on a UEFI laptop. The installation worked just fine before with setting in manual partitioning an EFI system partition and a root partition.But when I try to partition with root as an encrypted volume I get this error when I wanna write changes to disk:" the attempt to mount a file system with type vfat in scsi1 partition sda at /boot/efi failed"When I choose resume partitioning the installer then freezes at "detect file systems".
Because my harddrive needs specific alignment I've made beforehand in gdisk:EFI System Partition of 100mib at /dev/sda1/boot partition of 512mib at /dev/sda2/ (because I expect the installer to want a /boot too for an encrypted device)rest of harddrive reserved for root at /dev/sda3
Ubuntu in Windows 7 (64 bits) File system installed using Wubi I got Ubuntu 10.04 LTS intalled using Wubi. That means Ubuntu resides inside Windows file / folder system. It also means Ubuntu does not have its own partition. Here is what I found out:
1) It cannot detect wireless network unlike Win 7 on this same laptop. However, when I plug in ethernet cable, it was able to detect it. Is there a fix this problem?
2) I cannot see Windows folders. How do access windows folder from Ubuntu side and vice versa?
3) I forgot to set the disk space for Ubuntu during install and I think the default is 17 GB.Would this cause me problems? If so, what do I need to do? How do I expand the disk space for Ubuntu?
Its my first post in here so please be patient I am trying to use regex in perl script to detect allowed words from the file and then print output to the screen.
As an example : I have text file with orders and returns :
My question: is it possible to make sure that i am ony outputing to the screen orders based on few conditions like Item,order form e.g. online.And is it possible to have multiple matches (Item2 only diplay if ordered online etc)
i'm running debian lenny - latest stable i have recently installed smartcam (mobile phone as webcam over bluetooth) from .deb package , get errors of unmet dependency , but application works like a charm, unfortunately broken dependences block my aptitude , i cant fix them either as latest stable use older versions of dependences even in backports... how do i mark smartcam package as not broken and release my apt?
My sound card (Soundblaster 24 live! USB) stopped working shortly after upgrading to 10.04. everything was fine until the upgrade as well a immediatly after, so I assume that an update was to blame. If I boot the PC off a live CD, all is well and the sound card works fine.
I've tried running
aplay -l
but it assured me that I do not have a sound card on the system to setup! how I find the broken config file or busted driver?
Whenever i click on an icon in the Places pull down menu (except Computer, Network, Connect To Server and Search For Files) nothing happens except I get Ktorrent popping up and claiming it cant open the selected Drive or Folder because it is not a valid torrent file. Which is fair enough, 'cos its not a torrent. Its the entry for my Desktop in a pull down menu in my O/S, and it does this even when I haven't been near Ktorrent in the previous hundred clicks of the mouse, or if Ktorrent is not running. If i un-install Ktorrent, the error message changed, but the correct windows did not open when asked from the Places pull down, and the error returns when its re installed- well, tried it once, in a very basic fashion through the software center.
I think the problem has been caused by two containing folders of torrent data files that have become stuck as entrys in the Pllaces menu- cack handed off me folks, was playing with new mouse settings as I was playing with new mouse settings. Problem may also be something to do with the problems I have been having with Ktorrent- it refuses to accept torrent files unless through a magnet link, bringing up the same "parse error- not valid torrent file" error message as comes up from the Places menu, only of course citing the torrent i just tried, when I know for sure the file is valid and operational because Transmission has no problem with it.I really hope someone can help me fix this, as formatting and re-installing will be a real ball ache, as I'm a new user who's spent the last week learning and starting the customization process, and I was just getting to think about backing it all up.System is Ubuntu 10.10 64 bit, Pentium quad core, one 250Gb system drive and another larger drive called storage that appears under Media path both SATA2, no DVD drive as connector is in the post.
I'm trying to trial Ubuntu 10.04 for the first time on my Dell Inspiron 6000 laptop. When I try to create a USB drive, I get a diagnostic message reading that some files are broken. The first time I ignored it and tried to boot Ubuntu from my USB stick anyway, but I couldn't get further than Ubuntu's boot screen. I tried to access the help menu from the boot screen and it said I was missing the kernel (named "casper" something or other).