I'm using Busybox's Hush shell on an appliance running uClinux, and would like to make sure I'm not packing shared libraries that aren't actually used by any application. I couldn't figure out how to compile "ldd" for that environment, but I could compile "readelf" which does the job:
Quote: find /bin -type f -print0 | xargs -0 ./readelf -d File: /bin/myapp Dynamic section at offset 0x7f4c contains 20 entries: Tag Type Name/Value 0x00000001 (NEEDED) Shared library: [libgcc_s.so.1] 0x00000001 (NEEDED) Shared library: [libc.so.0]
I was wondering if it possible to format the output so that I would get something like this instead:Quote:
I'm writing a script that gives me some pertinent info about my servers, and the last little piece I need to figure out is the process list. There are going to be non-technical people looking at the output of the script and I'm trying to make it as simple as possible.
Right now, if I do ps -ef | grep <process> | grep -v grep It obviously shows me the process, but the problem is that there is 4 lines of info in front of the process. ie
root PID date time java -1024 -cp oh,my,god,there,is,so,much,data,it,carries,on,for,4,lines,I,want,to,shoot,myself,trying,to,read,it,f inally,in,the,end,there,is,a,space /here/is/the/process I'd like the output to be something like this: PID: #### Process: /here/is/the/process
I've thought about how I could take the output and use awk or sed but I know there is probably an easier way to do it with perl.
I have new external usb drive which I'm trying to format to NTFS so I can also use in in windows. I've set it up using fdisk
Disk /dev/sdd: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x604a2a7d
Device Boot Start End Blocks Id System /dev/sdd1 1 60801 488384001 7 HPFS/NTFS
And tried formatting using mkfs -t ntfs /dev/sdd1
However I get the following error Cluster size has been automatically set to 4096 bytes. Initializing device with zeroes: 100% - Done. Creating NTFS volume structures. Error writing to /dev/sdd1: Input/output error. Error writing non-resident attribute value. add_attr_sd failed: Input/output error Couldn't create root directory: Input/output error
What's the easiest way of formatting SD cards to FAT32 in Fedora linux?
Also, I'm having trouble when I try to unmount the volume of a SD card, there's 0.8 GB being used that I expect to be cleared when I choose to 'empty trash', everytime I select 'unmount volume' the SD card window just shuts down instead of clearing that space.
I have been trying to figure out how to format my hard drive when I'm installing Fedora 11. When I boot from the live disk, all installation were done automatically, so I didn't see how I can do it. I tried googling it, but didn't find anything on how to do it either.
I booted fedora from an live cd not i have a problem when i want to install fedora formatting is taking vey long its already busy for 1 hour and this is te second time im trying to install fedora does it need to take this long ? I've got an unexpected fault for the second time and pressed debug but nothing is happening keeps formatting.
However, I want to totally format the hard disk so I have no operating systems left on there.
I have created a usb boot disk for installing windows.
So I want to re-format the whole hard disk. Then boot up with the usb and install windows. Once I have done that. Then use the rest of the hard disk to install Fedora 14 from my other usb.
However, I am not sure how to completely format the hard disk. I want to start from a clean disk.
Sometimes it does this and other times it does not. It has happened with 2 hard drives. When it formats the partition the bar stops and the mouse pointer graphics stops.
I'm trying to install SL6 to a pair of 2TB harddisks in a RAID 1 array. The problem is that when the "Formatting" progress window that says "Creating ext4 filesystem on /dev/mapper/pdc_eahgdeafbgp1" comes up it appears to eventually freeze. It's been like that for 6 hours without the progress bar moving at least. I have another identical system that I booted up using the gparted live cd to see if I could get any more information using that. I first created a 500MB ext4 partition and mkfs.ext4 ran almost instantly. I then tried 5GB and it seemed to take maybe about a second or two and worked fine. I then jumped up to 500GB and it's been running for about 5 hours now. I'm pretty sure that I remember the creation of an ext4 filesystem occuring extremely fast even for very large partitions, but this is the first time I've played with RAID.
I want to install Fedora KDE spin on an existing XFS partition without formatting it. (Since said partition is full of my data that I have nowhere else to put). But the installer doesn't allow me to set the partition as / without formatting. XFS is not one of the filesystems listed as options for formatting. How can I make Fedora do what I want?
I've a flash drive that it's partitions formatted as fat32, ex4 and encrypted ext4. It works fine on the system that I've formatted it on, but when I try to use it on my other Linux distributions I get these problems:
* ext4 partition accessible by root only. * after entering my pass-phrase I get
Code: /dev/mapper/udisks-luks-uuid-***** uid1000 is mounted What I'm asking for is a way to create the ext4 file system without being attached to some UID and to be accessible by any user.
Is there something weird about the FLOPPY DRIVE on F12? Nothing associated with it works & I can't get an icon for it. Also the FLOPPY FORMATTER no longer works. (mine is an internal drive)- I had some really miner quirks with it in 10 but it worked. I had some workaround launchers that I used until an upgrade semi-fixed it. (It would give a false error that it couldn't run but did. I just ignored it.)
I tried to edit FSTAB to cure a problem of my BACKUP drive showing up twice*** so while I was in there I added the stuff for the floppy & it still doesn't work. If I try to mount it manually, I get the error that /dev/fd0 doesn't exist.I tried to find some info on it & it SEEMS that there MAY be a bug but I'm not sure as the info is a bit confusing as to just what version & such they are talking about. And there was also the problem that all the stuff seemed to be OLD or not related to my problem.I why I quite hacking at my system, is that all my workaround launchers & the formatter say that there are GNOME things missing & they can't run. So I figure that there is something missing or screwy already & that I'd better ask BEFORE I make things worse or actually break something.With the fact that floppies are about gone, it's getting to be not that big of a deal but I still find myself having to use them for repair purposes (albeit, not as much) & it gets to be a bit of a pain to fire up M$ just to do something like this.
*** It appears that the one in FSTAB was the one I needed, so where would the OTHER one be so I can get rid of it? Or at least make it auto mount.
Running 10.10 and win 7 on my HP dv6-2150us laptop and I'm having a few issues.
First how do I get HDMI audio output to my TV? I think I have just a integrated Intel graphics card. It works fine in windows but I can't seem to get it to work in Ubuntu. I tried searching but couldn't find anything pertaining to this issue.
I booted my Fedora 13 live CD on my Dell server, and configured networking and SSHd. On my desktop I logged into the live cd and started copying over a big file (1.5 GB) (i.e. copying from the desktop computer to the server). After copying about half the fil, the download fails with an error message about the filesystem being read-only.I've seen this exact same behavior on both i386 and x86_64 of the same live CD, but don't know why it's happening. I've also had the same issue when copying small files. In /var/log/messages these messages are repeated many times:
Code: Dec 20 12:32:23 localhost kernel: Buffer I/O error on device dm-0, logical block 684075 Dec 20 12:32:23 localhost kernel: lost page write due to I/O error on dm-0
I am sure that this is very simple but I have installed sound juicer and the gstreamer plug ins. The problem is i still cannot select MP3 as an output output option
I don't know anything about ubuntu. Could you guys help me out. I'm pretty knowledgeable with windows if you guys need a printout of something let me know. My friends getting really frustrated about this. Help!!i
So here's the situation. He plugs his audio jack into his computer and then into the speakers but it still plays from the computer speakers.
I finally got audio working on my ubuntu 9.10 desktop... now I am having sound issues watching movies from a network share.The sound device continually randomly changes to "dummy output device" and then there is no sound output. The sound icon dissapears on the toolbar. To get it back and audio to start working I have to $sudo alsa force-reloadIt seems to happen everytime there is a network delay, the movie will stop for a second and then when it plays the sound is gone
when I run netstat -s I get a whole listing of different statistics on udp/tcp. what I would like is to be able to understand those terms e.g. TCPLossFailures and link them with the appropriate TCP/IP terminology. There must be some refernce guide somewhere that shows what these fields mean or what they are tracking.
Is there any way to partition off say 40GB of a 250GB drive (only 5GB used) into an NTFS partition to install windows Vista SP1?? I have tried the System -> administration -> disk utility, but I can not figure out how to partition in it.
I'd like to know if it's possible in my program (C/C++) to create a filesystem on a partition, maybe with advanced options too. I don't want to call the shell and execute the usual commands to do that, so I wonder if there are some native Linux syscalls or external libraries to do that.
I have an command to read inputs from file2 and replace the content in file1. Issue is that the op is coming in a single line as gsub and split functions don't recognize new line characters.
Code: awk 'NR==FNR{gsub(/input./,""); split($0,a," = ");b[a[1]]=a[2];next} {gsub(/@/,"");for (i in b) gsub(i,b[i])}1' $t2 $t3 This gives belwo op: