These questions are about Linux in general -- NOT specific to a particular distribution. If the question just happens to be in a Linux environment, please specify your Linux distribution in the body of your question, but do NOT use the /linux tag.

learn more… | top users | synonyms

14
votes
9answers
7k views

How can I get an alert when my battery is about to die in Linux Mint?

This happens to me more than I'd like to admit, but sometimes I don't notice the power getting low since it only shows up in my status bar, then the computer just quits. I'd like a big alert that ...
4
votes
2answers
5k views

I messed up my system clock in Arch Linux

I installed Arch a couple of days ago. Just realized the date/time were off by a day and one hour. I changed it using timedatectl set-time. Then used hwclock --systohc to set the hardware clock. ...
1
vote
1answer
335 views

Linux, Debugger program development

We are trying to implement the debugger program which will takes either PID or Program name as input and Invoke the gdb by using PID. Below is two small programs are written, Not able to figure out ...
65
votes
8answers
66k views

How do I know if a partition is ext2, ext3, or ext4?

I just formatted stuff. One disk I format as ext2. The other I want to format as ext4. I want to test how they perform. Now, how do I know the kind of file system in a partition?
1
vote
1answer
4k views

What is Partition System ID?

If I go to fdisk, and I type t and then L I saw: 0 Empty 24 NEC DOS 81 Minix / old Lin bf Solaris 1 FAT12 39 Plan 9 82 Linux swap / So c1 DRDOS/sec (FAT- ...
0
votes
1answer
164 views

What is a remote config server?

I found myself enabling one of my computer on LAN to connect to a server through port 1236. A check on the list of services show: bvcontrol 1236/tcp rmtcfg # Daniel J. Walsh, Gracilis Packeten remote ...
0
votes
0answers
26 views

Cannot boot into Windows 7 after deleting Linux partitions [duplicate]

Possible Duplicate: After removing linux Grub error I was dual-booting Linux Fedora 17 and Windows 7. I used Windows to delete the Linux partitions, but now I can't boot into Windows ...
2
votes
1answer
660 views

Why system call hooking produces different result everytime in Linux/Android 2.6.29?

I have implemented system call hooking for Android 2.6.29 kernel through a LKM module. I am tracing down one Android app for system calls. But interestingly, it returns different results every time I ...
1
vote
1answer
3k views

Installing prstat package command on Ubuntu Linux

I'm trying to run the prstat command on my Ubuntu server, but it doesn't seem to be installed, I have searched the web for the package name needed to install it but without any luck for some reason.. ...
3
votes
2answers
690 views

Use variables in find command

mount |awk '{print $3}' --> list of mount points find "list of mount points" -name "aaa" -print How can I redirect the result from previous line into find command as searching directory? I would ...
1
vote
1answer
87 views

What are possible issues with installing a package from the developer instead of the distro-repositories

It might sound like a trivial question to some but even though I have been using Linux for quite a few years I haven't really figured out this question. Little background info; I recently upgraded my ...
2
votes
1answer
261 views

Can MD cope with a badblock list?

I have a MD drive set in RAID6 configuration with LVM2 on top. One of my drives was faulted last night due to bad blocks. Now apart from the fact that I am aware I should physically replace the drive, ...
2
votes
1answer
1k views

How to decode cmd = 3222823425 in ioctl in Linux 2.6.29

I am just confused like how can I break cmd=3222823425 value into different parts to figure out what this command means actually in the Linux kernel. I know, some functions are making ioctl command ...
1
vote
1answer
5k views

How to reduce kjournald activity

The culprit that do large write to my hard disk has been caught. It's kjournald One way to solve the issue is to change the file system to ext2. Is there an easy way to do so? Another thing that ...
1
vote
1answer
2k views

Identify text/ascii files in Linux/Solaris

I have a little project to build bash script that search in the OS ( Linux/Solaris ) the current IP address from files and replace them with other IP address. The problem is that IP address could be ...
1
vote
3answers
493 views

Why isn't there standard library to modify /etc/{passwd, shadow}?

Why doesn't glibc provide standard library to modify /etc/passwd and /etc/shadow, i.e add a user, change passwd, I came to that conclusion because I checked the source code of shadow and failed to ...
1
vote
2answers
3k views

How to know recently updated files

If I run iostat -x 1 I saw ocassionally large 5MB to 10MB writes. What files are being written? I want to check the recently created files with size over 5MB for example. How would I do so?
17
votes
2answers
22k views

How to undo sudo add-apt-repository?

I run sudo add-apt-repository ppa:noobslab/indicators to install my-weather-indicator but it requires GTK3 and I don't want to proceed. So I'd like to undo that command. I'd checked my ...
7
votes
1answer
908 views

Can I run multiple cores at different clock speeds?

I see the cores on an Intel i5 machine I'm looking at can only be run at the same clockspeed: /sys/devices/system/cpu/cpu1/cpufreq/related_cpus lists all of the CPUs. Setting cpu1's clockspeed changes ...
5
votes
1answer
1k views

How to safely replace one Linux distribution with another one via SSH?

I'm intending to replace a NAS's Custom Linux with Arch Linux (details at the bottom), of course wishing to preserve all user data and (due to the SSH-only headless access) attempting to be fool-proof ...
1
vote
2answers
1k views

Why won't my binary run?

I have a binary that runs on my Debian Squeeze system, but then it doesn't do anything on my Debian Wheezy (kernel Linux 3.2.0-4-amd64) system. Both systems are 64 bit, while the executable is a 32 ...
0
votes
2answers
259 views

file command + how to view all results from file command

I use the file command in order to verify if file (PATH) is text/ascii file or encrypted file Because file command have allot of results ( small example in example 1 ) I want to get the all ...
1
vote
1answer
408 views

User gets rejected after system crash on CentOS

The power went out on my PC running CentOS 6.3 while I was logged in as a regular user. Since then, when I try to login from the GUI, my screen flashes to black then returns to the login screen, ...
8
votes
2answers
7k views

ATOP shows red line vmcom and vmlim. What does it mean?

utility atop shows: ATOP - MyServer 2013/01/07 00:03:57 10 seconds elapsed PRC | sys 2.18s | user 8.33s | #proc 141 | #zombie 0 | #exit 0 | CPU | sys 21% | ...
3
votes
1answer
10k views

Convert .ISO to .IMG in terminal (Mac) (Linux)

I am trying to make a bootable flash drive with Linux on it for my Mac. I have Ubuntu desktop downloaded, and it is in my downloads. The instructions on the Ubuntu website tell me I need to convert ...
1
vote
0answers
230 views

What chunk size for KVM under Debian linux is optimal with RAID 5?

I would like to know, how to set optimal chunk size for my debian squeeze in future. I Work with 3x WD RE4 500Gb 7200RPM in SW-RAID 5, under debian squeeze. (in the future maybe under wheezy) I Saw ...
2
votes
1answer
268 views

Sensors showing bad values

I use Debian linux squeeze x64 now on gigabyte 970a-DS3. I installed this OS on motherboard which burned (from asus). And I've changed my motherboard to that gigabyte. After running back into linux, ...
3
votes
3answers
8k views

I have high io stat. High writes. But what files are being written?

avg-cpu: %user %nice %system %iowait %steal %idle 11.50 0.02 5.38 0.07 0.00 83.04 Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz ...
8
votes
2answers
1k views

Are SUSE servers intended to be used graphically?

After being a long-time Debian Linux user, I decided to give SUSE a try. One of the major selling points of SUSE is the YaST configuration system. It provides a set of wizards for common configuration ...
0
votes
0answers
3k views

Install Broadcom wifi adapter driver in BackTrack 5 R1

How can I install the Broadcom BCM43142 driver in BackTrack 5 R1? Please can anyone guide me with step by step instructions as I am new at Linux.
2
votes
4answers
3k views

How should I prevent data corruption on an NTFS partition shared by Windows and Linux?

I use Linux for most of the things but I still need Windows sometimes. So, I have Linux Mint 14 and Windows 8 installed (dual-booting) on my computer with the following disk setup: sda1: The 350 MB ...
21
votes
8answers
38k views

How to determine which sd* is usb? [duplicate]

Possible Duplicate: How to know if /dev/sdX is a connected USB or HDD? The output of ls /dev/sd* on my system is - sda sda1 sda2 sda3 sda4 sda5 sda6 sda7 sdb sdc sdc1 sdc2 ...
0
votes
2answers
210 views

How to know which hard disk is the new one and which one is the old one

I ordered 2 SSDs from my provider. However, which drive is the main drive? How do I know which drive is the new SSD drives?
1
vote
1answer
789 views

linux driver installation error - “/lib/modules/2.6.18-194.el5/build: No such file or directory. Stop.”

I got an error /lib/modules/2.6.18-194.el5/build: No such file or directory. Stop. while installing moxa driver, following is the shell screen shot. [root@lnx149-252 driver]# pwd ...
6
votes
2answers
2k views

Why are there so many virtual terminal devices?

I've been reading the Advanced Linux Programming book and it mentions about virtual terminals which, if I understood it correctly, it is a Linux-specific feature (not in Unix) to allow multiple login ...
5
votes
2answers
5k views

What a 64 bit Linux can do that 32 bit linux can't?

I ordered a server from fdcserver. Then I realized that, unless changed, fdcserver actually provides 32 bit operating as default. I logged in using SSH, typed uname -m, and to my horror I saw that I ...
1
vote
0answers
150 views

Creating a Virtual filesystem to boot linux

I am trying to boot the linux kernel (bzImage) in QEMU but have had issues. After asking on U&L I found out that my problem was that I was booting the kernel without a filesystem to boot from. So ...
1
vote
1answer
122 views

After running screen, screen doesn't seem to be running

I use ssh to log into a remote machine and then I use the screen command to create a virtual screen. Now, if I type in exit normally I should only exit the screen and return to the remote ssh ...
5
votes
0answers
228 views

How to disable select-on-release right mouse button in Linux [duplicate]

We are having issues with mouse behavior in Linux. In Windows: In any application, to open a context menu and select an option: right mouse button down + release move the cursor to an option left ...
0
votes
1answer
353 views

Opendns setup failed. How to fix it?

I have problems trying to configure OpenDNS. I have contacted OpenDNS support but they did not answer. I cannot access websites like Twitter and Facebook. I tried welcome.opendns.com (did not ...
2
votes
3answers
2k views

Killing all the process of a command except first process

I am sometimes stuck in a situation where a script/command kept in Cron runs more than once because of some reasons (the first instance is not completed fully, the second instance of the same process ...
1
vote
2answers
767 views

btrfs performance

I decided to mess around with btrfs and found some weird performance anomalies. The tests I've done are with with two external hard drives one formatted with ext4 the other btrfs. ext4 performance ...
3
votes
1answer
431 views

Removing windows partition from dual-boot

I have a dual boot of Windows 8 and Linux Mint 14. I want to remove the windows partitions and format them to ext4. sudo fdisk -lu gives me this.. Disk /dev/sda: 320.1 GB, 320072933376 bytes 255 ...
1
vote
0answers
51 views

How to find system call implementations in Linux/Android 2.6.29? [duplicate]

Possible Duplicate: Understanding the Linux kernel source I want to modify some system calls for tracing purposes. To be specific, whenever a system call open is made, I want to print some ...
1
vote
0answers
811 views

Busybox `uname -r` shows wrong kernel version

My kernel is 3.2.27 and /lib/modules/ contains 3.2.27 + folder. But when I am using /# uname -r 3.1.9+ It's showing a strange output. My problem is that for modprobe depends on uname when I put ...
12
votes
3answers
1k views

Why do Linux people always say to read the manual? [closed]

Why do Linux people always say to read the manual when it would be so much easier to just give you an answer? There's no manual! It didn't come with one.
2
votes
2answers
543 views

Transfer a file from Android to a PC (not in the same network)

If I were connected by wifi in my network, there isn't any problem because with AirDroid I can access the sdcard files using the browser. However when I am out, how can I transfer a file from my ...
0
votes
1answer
535 views

What is a datastore especially when considering *nix systems as hosts?

Is it the .vmx files that are created on installing VMWare, does it differs across Windows and Linux platforms as hosts? How can we create or browse datastores when the host is Linux or Windows?
2
votes
2answers
1k views

Very slow SW-RAID 5 in Debian Squeeze

I don't know why, but I have big trouble with speed of my raid. I have 4x WD RE4 7200RPM 500GB. Size of RAID 5 is 1000GB. 1 of HDDs is Spare. Problem is here: Every 1,0s: cat /proc/mdstat ...
2
votes
2answers
1k views

No /proc in a Busybox-based embedded Linux distribution

I am making an embedded Linux distribution and my board is a Raspberry Pi. My kernel version is 3.2.27 without initramfs and my root file system as follows: /lib /* contains ...