I have an old reiser filesystem which I'm going to convert to Ext3.
The problem I have is to determine the proper block- and inode-sizes for this partition.
The partition is 44 GB large and has to hold 3,000,000+ files of sizes between 1 kb and 10kb, how can I figure out the best ratio of inodes and blocksize?
The below is something I tried which seems OK but makes the copying files incredibly slow.
mkfs.ext3 -t ext3 -c -c -b 1024 -i 4096 -I 128 -v -j -O sparse_super,filetype,has_journal /dev/sdb1
Thanks.
I am looking for the right answer to the above question.
It has been asked by jmillikin at ubuntu forums as follows:
Is it possible to create a hostname alias? Sort of like /etc/hosts,
but with other hostnames rather than IP addresses. So that with some
file like this, you could ping "fakehost1", and it would be re-mapped
to "realhost", and then "realhost" would be resolved to an IP address.
# Real host # Aliases
realhost fakehost1 fakehost2 fakehost3
Somebody has answered about ssh. But not about ping, etc. My main
purpose is to use it as an alias for svn server. In my case, realhost
is under dynamic ip. So, "/etc/hosts" alias doesn't work. I want to
access my svn server as svn://my_svnserver/my_repos instead of
svn://realhost/my_repos.
Thanks in advance for any advice.
I've recently ran into a very odd occurrence on one system I'm using. For no apparent reason, my user account was deleted, although the home directory is still there.
I have root access, so I can restore the account, but first, I want to know how this happened, and exactly when. Inspecting the root's .bash_history file and the "last" command gave nothing, and I'm (well, was) the only sudoer on the system.
How would I know when this deletion happened?
The distro is CentOS release 5.4 (Final), if that helps.
What command line tools are good for reliably monitoring network activity?
I have used ifconfig, but an office colleague said that its statistics are not always reliable. Is that true? I have recently used ethtool, but is it reliable? What about just looking at /proc/net 'files'? Is that any better?
EDIT
I'm interested in packets Tx/Rx, bytes Tx/Rx, but most importantly drops or errors and why the drop/error might have occurred.
My company is involved in a proposal that requires speed estimates of our software on a server with the latest & greatest processors. This is not the first time we've been in this situation.
The servers themselves are too expensive to buy a new one every time, so we end up extrapolating from what we have. There are so many variables: processor generation & speed, memory speed, memory channels, cache configurations; it makes extrapolation difficult and error-prone.
Is there a business that rents time on the newest servers? At least part of the time we'd need exclusive access to an otherwise quiescent system either via ssh shell access or unattended batch jobs.
I am not looking for general cloud computing services. I don't need much time on the server, but it needs to be exclusive. And the server needs to be pretty cutting edge for a solid basis of estimate.
(Sorry for the title. Any suggestions?)
I've set my commandline PS1 to cover 3 lines:
white space
user, server and pwd
$ or # to input
I think less (or more?) is configured to break after window's height - 1, because when I do a $ git log, the first two lines are invisible at the top of the window and the rest is scrollable.
I'm not sure who handles this scrolling and its configuration, but I assume GIT uses less/more.
Where can I configure that my scrollable window is window height - 3 lines and not window height - 1?
More info:
If I cat lines.txt | less with a 23 line file, it shows the entire file and no scrolling.
If I do the same with a 24 line file, it doesn't show line 1 (and no scrolling).
With 25 lines: doesn't show lines 1 and 2 (and no scrolling).
With 26 lines: shows line 1 and scrolling!
The less breakpoint is at the wrong height...
How do I get tcsh to stop asking if I want to list files in a directory that may have a lot of auto-completes?
For example, if I do: xemacs ../"TAB" to get the list of files it asks:
There are 371 rows, list them anyway? [n/y]
I don't want it to ask this, just list them.. it's getting tiresome.
(Or how to at least set the tolerance to a higher number of auto-completes before it asks)
Thanks.
Hello,
I'm dual booting XP and Kubuntu. I wanted to boot to my existing raw scsi XP partition inside Kubuntu, not a virtual XP instance. I accidentally booted Kubuntu inside itself. I know this is a big mistake, so I interrupted the VM, which saved the state and closed. I rebooted the host and now I can't load the Kubuntu partition at boot time. I get a maintenance shell and the Kubuntu partition is read-only. I am able to boot XP as usual. I removed the HDD and tried to mount it on another computer as an external drive and neither partition (XP or Kubuntu) will be recognized, it just appears to be one device that still mounts and appears empty. From the maintenance shell I can see all the files are still on the Kubuntu partition.
How can I undo what I did when I accidentally booted Kubuntu inside itself? Is it a matter of unlocking some files somewhere? how can I do that on a RO filesystem?
Thanks!
I'm working with a Django project on my Mac (running Leopard) and I want to show it to my team. I've already passed the neccessary port forwards from my router to my Mac's LAN IP address but it doesn't work.
I've also tried running the XAMPP server since that always worked with my Windows XP computer but it still doesn't work. Whenever I type my > it's showing a Page Load Error. Is this possibly an issue with an Mac OS X configuration that I need to setup first to allow my port forwards to get in? It's my first time to do this with Mac, perhaps I need to configure something else in network preferences?
I recently ran into an issue with a VPS where the SSH service crashed, leaving me unable to connect to the machine. The other services were up and running; only the SSH service died.
I managed to resolve the situation with a reboot from the VPS control panel, but the incident got me thinking:
Assuming:
I don't have physical access to the machine
I have no server control panel access or means of rebooting the server
All other system services are still functioning
Then how could I recover from the SSH service dying?
I'm going on a long flight tomorrow, and would like to be able to use my laptop during the journey.
Wireless devices like WiFi and bluetooth interfere with airplanes instruments, and shouldn't be used on flights.
If my laptop does not have a physical rf-kill switch, is it sufficient to just ensure that the relevant modules do not get loaded?
If so, is that always safe, or does it vary between different hardware?
My particular situation, is a Samsung NC10 netbook. Atheros 5k wireless hardware. Debian sid with kernel 2.6.30-1-686. However, I think it'd be interesting to know the answer to this question for the general case; not just my specific case.
I want to create a directory, for example:
/public/all
But I want it so that if you create a file in all, the owner is root, but anyone with access to the /public/all folder can delete/edit/etc the file, just not change the permissions. (I will use a self-created "setx" application to change the execute value if needed.)
Reason for this, I don't want you to be able to deny other users write/read access to files in /public/all. I heard setuid on directories doesn't work for that.
I can do mkdir messages
and then
touch messages/hello.txt
Is there a command that will do both - create the directory if it doesn't exist, and then the empty file?
something like: touch -p messages/hello.txt
Thanks in advance
-- Deb
Supposing I have a program that prints lines with data periodically, how can I turn then info them into graphical plot that updates itself each time new line available?
$ ./prog
10 44
20 66
30 55
40 58
50 59
55 58
60 77
^C
$ ./prog | scrollingplot
Window appears and updates on each line printed:
80|
| ----
| ---- ______...__/
| / -----
| -
40|
-------------------------------
10 20 30 40 50 60
# Note that ASCII art-style plot is just for example,
# I want simple X window like in mplayer.
There are enough tools for static data, but I haven't seen ones for updating data (except of ksysguard).
Perhaps the worst-named tool in the *nix world, script is extremely handy when you want to capture all the output of a terminal session.
Is there a tool like it for Windows? Specifically, without having to install something like cygwin?
This freezing issue has been reported by others over the past few months but no clear answer has been provided. Some have attributed it to Banshee or other music players but this is incorrect since I have this problem and never while using anything other than perhaps Firefox. (I am not sure if it is necessarily due to firefox). Logging out and logging back in seems to remedy the problem. However, it would be nice to fix things once and for all. This problem began in the past 3 weeks. I alway have all Mint updates implemented.
Hello everybody,
is there any utility to limit the network throughput of a process after it has been launched ? Simple example: you note that a user takes all your upload bandwidth using scp and you'd like to limit the rate or decrease the priority of the transfer.
I guess i could use a combination of iptables/tc or pf to achieve that, but i was wondering if there is a "one-shot" tool available (like tickle with a --pid option ^^) ?
Regards,
Jean-Baptiste
What is the best way for me to migrate my VMWare Fusion Bootcamp Partition to a new MAC. Preferably I would like to import the current bootcamp partition in as a strict virtual machine on the new mac, instead of in bootcamp. The "older mac" is about two years old, so I don't think there will be any compatibility issues, but i do not have enough disc space on the old machine to import it as a virtual machine, and then migrate it.
Thanks for the help.
I'm a sysadmin for a multi-user server, where students in our department have shell accounts. One of our users has requested that we install sshfs on it. I'm debating whether it would be wise to install sshfs as suggested.
My main concern is whether a FUSE mount could make our server less reliable. In my experience, bad things can happen to servers when an NFS server suddenly becomes unavailable — the load average shoots up, and you might not be able to unmount it cleanly, to the point where a hard reboot might be necessary. If a FUSE-mounted server suddenly disappears, how hard might it be to clean up the mess? Are there any other likely catastrophes or gotchas I should consider?
At least with NFS, only root can mount, and we can choose to mount NFS servers that we consider to be reasonably reliable.
Let's assume that our users have no hostile intentions, but might do stupid things accidentally. Also, I'm not really worried about the contents of the filesystems they might mount, since our users already have shell access and can copy anything they want to their home directory.
I have the following structure:
/.svn
/bla/.svn
/hello/.svn
/bla/bla/bla/.svn
... etc
I want to delete all the .svn folders. How do I do it?
It's NOT:
rm -rf .svn
In windows you use the /s trigger. How do you do it linix?
I've noticed in git and various scripts, there is a default user email address. This seems to default to user [email protected]. Is there a way for me to set this to my ral email address?