Questions specifically about Linux but not specific to a particular distribution. If the question could apply to any Unix-like system, specify your Linux distribution in the body of your question but do not use the /linux tag.

learn more… | top users | synonyms

5
votes
4answers
9k views

Mounting multiple devices at a single mount point on Linux

Is there a way to mount multiple hard drives to a single mount point? Let's say I run out of space on /home and decide to add an extra hard drive to the computer. How do I scale the space on a mount ...
3
votes
1answer
964 views

Why doesn't my laptop fan ever spin down?

My laptop fan is always active, even if CPU usage is really low (less than 5%). I have a Vaio laptop with Linux and Windows, but this problem only happens with Linux.
1
vote
2answers
396 views

Can't switch to console using my own compiled kernel

In my Ubuntu, I can't switch to console through Ctrl+Alt+Fx using my own compiled kernel, and a black screen appears. I can switch back through Ctrl+Alt+F7. Using the default Ubuntu kernel, I can ...
0
votes
1answer
4k views

How to register Nginx as a service, after installing Passenger?

I need passenger/nginx to run many sites on port 80. I have installed it with its own installer (per the instructions on the nginx website. But nginx is not registered as a service. I can only run it ...
2
votes
1answer
220 views

Getting info about a Virtual file system

I have created a Virtual ext3 partition on a armv7 machine with: dd if=/dev/zero of=./system.img bs=1000000 count=200 mkfs.ext2 ./system.img tune2fs -j ./system.img Now I need to get info about ...
0
votes
1answer
15k views

Why is my file system mounted as read-only?

I've put together a small system with busybox, a Linux kernel, and a small file system, putting stuff in as it seemed necessary -- I don't know if I've been learning much from this, but I started out ...
2
votes
1answer
479 views

When would an initrd be necessary?

I've read that I can boot the kernel without initrd, and I've also read that additional modules are loaded during the initrd stage -- as I understand it, for necessary drivers that weren't included in ...
2
votes
1answer
253 views

What other distributions provide the option to install inside Windows?

I mean installing with something like wubi? Can Fedora do this?
5
votes
1answer
2k views

Ubuntu Server, set terminal font to a custom ttf font?

I would like to change the system (console) font of my ubuntu server to a custom (downloaded) font. Is this possible? I've tried to use: dpkg-reconfigure console-setup but the only allows me to ...
1
vote
1answer
1k views

How to power off USB stick or MMC card under linux?

Usually I just unmount the usb stick or mmc before unplugging it but I'd prefer to turn the power off before doing so. I think Windows does this, so the hardware should allow for turning off the power ...
6
votes
2answers
802 views

Recover deleted file that is currently being written to

I started downloading a big file and accidently deleted it a while ago. I know how to get its current contents by cping /proc/<pid>/fd/<fd> but since the download is still in progress ...
4
votes
2answers
7k views

Can Linux support a “Ralink corp. RT2800 802.11n PCI” (maybe a RT2860STA?) in an Asus EEE 901 netbook

OK, I know that this isn't going to be straightforward, but I'd really like to get it working. About 18-24 months ago, my Asus EEE 901 netbook was working fine - running Ubuntu - and I let it ...
8
votes
3answers
3k views

Which Linux file systems for USB sticks?

For Linux desktops, when Windows compatibility is not an issue, which file system is preferred for USB sticks? For example ext2, ext3, ext4, btrfs, nilfs, or even NTFS? Would journaling wear them out ...
3
votes
2answers
9k views

How extend linux partition with?(after success to extend : fail to boot computer)

I have Ubuntu and I want to enlarge the disk space of /dev/sda1 from 10GB to 90GB. gparted Ubuntu 9.04 live cd show: Partition File System Size /dev/sda1 ext4 10GB /dev/sda2 ...
0
votes
1answer
503 views

Firefox not rendering some pages well

I recently installed ArchLinux on my macbook Alu. I've installed the nvidia proprietary graphics, and Gnome3. I have Firefox 10 installed with pacman. However Firefox is not rendering some pages ...
4
votes
1answer
780 views

tmpfs and vm.swappiness

I have started tuning a bit Linux VM performance on my system (yes. I know that vm.swappiness=0 will kill kittens but I found 30-40 as much better for me as it improved my latency - probably at cost ...
0
votes
2answers
305 views

Sony runs which operating system? Oracle Linux or Crestron Extron or Minix or OS X?

Sony has TV, PlayStation, Camera random hardware's. Where many of those have GUI available too. I want to run my BASH script there with ncurses. But how do they drive there devices? Which operating ...
1
vote
1answer
564 views

How do I format c while installing Ubuntu?

I would like to try out Linux but I did not find how to format c while installing. There are 3 requirements at the beginning: 2.6 (?) GB storage Internet - this is ok And something else I have ...
3
votes
2answers
5k views

Making an ext3 filesystem image without mkfs.ext3

On ubuntu I'm using the following to create a ext3 filesystem image system.img. dd if=/dev/zero of=./system.img bs=1000000 count=200 mkfs.ext3 ./system.img I'm attempting to do the same on android ...
1
vote
1answer
538 views

Using tar on a file with an @ (at symbol)

I'm trying to extract a tarball using tar -xvf that's in the format (where * is any word character) *@*@*@*.tar.gz but I think tar is trying to find the file at a remote location. The error I get is ...
1
vote
4answers
765 views

Exporting environment variable

I am having some problem with bash. I want to export an environment variable whose value contains a variable but I don't want that variable (which is within the value) to be evaluated during the ...
9
votes
2answers
6k views

How to update kernel without reboot? (ksplice alternative)

How to update running kernel without reboot? I know about Oracle ksplice but it's not free and it supports only distributions that I don't use. Are there alternatives to ksplice?
5
votes
2answers
477 views

Testing ext3 filesystem on embedded device [closed]

My set up: An embedded device with flash memory on it. Flash is partitioned into ext3 filesystem partitions. Have busybox on it. My Goal: To uncover errors /bugs/ problems on ext3 filesystems. ...
2
votes
1answer
189 views

Permissions UMASK for New Directories

I have a directory "dir1" who's owner is "owner1" and it has 775 permissions. Another user in the same group as "owner1" is called "owner2" Whenever a file is written to "dir1" by "owner2" I need ...
1
vote
0answers
385 views

Debian: Upgraded to php 5.3 and lost phpcli, php-pear, etc

I upgraded to PHP5.3 using this tutorial: http://www.debiantutorials.com/how-to-install-upgrade-to-php-5-3-on-debian-lenny/ It removed the following packages: Removing php-pear ... Removing ...
3
votes
1answer
150 views

What is the best way to restraint/secure a workstation?

I want to prevent users to copy on usb devices and some others actions. I was thinking of using polkit. Do you think it is a good solution or does someone know some alternatives ? EDIT: I also need ...
8
votes
1answer
4k views

Linux: LUKS and multiple hard drives

I have a Debian Linux system (amd64) installed on a RAID-1 system encrypted device (LVM on LUKS) and will have a RAID-6 of >=4 disks where I'll put my data (LUKS and maybe LVM). I think the basic ...
6
votes
1answer
496 views

Where to find the source file of function pause(void) and sigsuspend(set)

I want to find the source file of pause and sigsuspend in the glibc-2.14.1 package. I grep the package and find the file sysdeps/posix/pause.c has a definition of function pause, the code is int ...
6
votes
1answer
4k views

Mathematical connection between SZ RSS and VSZ in ps o/p?

I wanted to know what mathematical connection is there between the SZ, RSS and VSZ output in ps output e.g. ps -p 2363 -o sz,rss,vsz
8
votes
1answer
6k views

How can I observe memory bandwidth?

I have an embedded Linux ARM system that is showing significantly less throughput than expected on both Ethernet and USB. I suspect the memory may be contributing. Is there a way to observe the memory ...
11
votes
2answers
422 views

What are the effects, if any, of scheduler priorities and policies for threads in an uncontended cpuset?

I have a Linux system where we have used cgroups to create two cpu_exclusive cpusets, A and B, and where we have migrated all user threads and all unbound kernel threads to a cgroup attached to cpuset ...
3
votes
2answers
295 views

How does the kernel “give up” control to distribution-specific initialization?

I've always wondered how the kernel passes control to third-party code, or specifically distribution-specific code, during boot. I've dug around in GRUB's configuration files, suspecting a special ...
6
votes
2answers
12k views

Change default path for when I SSH in to CentOS server?

I have a CentOS 5.7 web server, and I want to change the default place I land in when connecting using SSH. Currently I land in /home/username, and I want to land in /home instead. I've gone in as ...
5
votes
2answers
4k views

Does LVM increase the risk of data loss?

Let's say I have two identical disks, and I set one LVM logical volume on them (no mirroring). Question: What will happen when one of the disks fails? I will lose all the data from all the disks I ...
5
votes
4answers
12k views

What are the different ways that a message can be displayed to a bash shell after a user logs in?

I have a CentOS 5.7 VPS using bash as its shell that displays a branded greeting immediately after logging in via SSH. I've been trying to modify it, but can't seem to find where it is in the usual ...
0
votes
5answers
106 views

When I set the default shell, it doesn't “take”

I want my default shell to be bash. However, whenever I log into my server, the shell is apparently -bash: $ echo $0 -bash If I run bash, I'm of course switched to bash for that session, but it ...
0
votes
2answers
1k views

How to calculate in linux number of file inside nested directories?

I need to extract information how much files are in some directory tree: /.../testRoot/test1/test11/..../file1 /.../testRoot/test1/test11/file2 /.../testRoot/test1/test11/..../file3 ...
2
votes
0answers
585 views

Howto reduce skype video outgoing traffic?

Issue background I'm having having problems with skype under linux. My video calls are all the time non-continuous and they're getting stuck. The situation is the same whether I use skype alone, or ...
5
votes
2answers
7k views

How to limit application memory usage?

I have spend 2 hours reading questions about this matter, and still there is some misunderstanding. I have this process: USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1452 0.4 1.8 ...
25
votes
3answers
5k views

What does the vm.swappiness parameter really control?

Per the kernel documentation: This control is used to define how aggressive the kernel will swap memory pages. Higher values will increase aggressiveness, lower values decrease the amount of swap. ...
1
vote
1answer
2k views

How to log user in to Gnome Desktop from remote ssh terminal?

I'm using CentOS 5.5 with Gnome Desktop Enironment. By default, after system boot i get Gnome's login screen. Independently, I can log in through SSH and execute commands. Is there any command line ...
4
votes
3answers
993 views

Join the executable and all its libraries

Lets say I have a /bin/cat executable that uses the following shared libraries: linux-vdso.so.1 libc.so.6 /lib64/ld-linux-x86-64.so.2 Is it possible to somehow "join" that stuff together ...
2
votes
2answers
2k views

Restore /etc/hosts on SuSE

I have lost my /etc/hosts file on SuSE Enterprise 11.3 64 bit. Is there any way to get the original file back?
9
votes
1answer
1k views

User Kernel split in 64bit Linux

What is the default user/kernel split in the 64bit linux ? I read Documentation/x86_64/mm.txt (which someone pointed out), but I could not make out. Can somebody provide a direct answer (something ...
1
vote
2answers
1k views

Diff command. Basic explanation

Just started with diff command. Can you please explain me, diff thin_provisionings_controller.rb thin_provisionings_controller.rb[211] 512,513d511 include ThinProvisioningsGraphModule So ...
2
votes
1answer
1k views

Getting a working chroot environment to boot with Grub2

Question I have a working chroot environment (inittab, fstab, init.d/rcS set up), a kernel, and grub2 installed. What more do I need to get my system working? Background/Specifics For educational ...
2
votes
3answers
452 views

Developing software on linux

What tools or IDEs do I need to start developing software on Linux in C++? Can I work using C#? What are necessary skills in order to know to develop software on Linux? I mean what is required in ...
2
votes
0answers
165 views

How to fairly share bandwidth between IPs with tc?

I have a linux router (d-link 320-nru) with tc installed. I have some users' computers to fairly share bandwidth between them. Also there is such complication as inconstant uplink bandwidth. How can ...
5
votes
5answers
8k views

Top says 100% CPU used, but 50% of cores idle?

top - 08:43:16 up 96 days, 22:16, 1 user, load average: 4.03, 3.92, 3.98 Tasks: 199 total, 1 running, 198 sleeping, 0 stopped, 0 zombie Cpu0 : 0.0%us, 0.5%sy, 50.0%ni, 49.5%id, 0.0%wa, ...
2
votes
1answer
3k views

i686 versus i486 kernel on an Intel Core i3

I had installed Debian 6 Squeeze on my laptop a couple of weeks ago. Coming from Ubuntu, I did this by downloading the hybrid i386 image and booting it off a USB drive. Now on GRUB, I'm presented ...