Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Ok, so I am an idiot. I haven't backed up a file in quite a while, and need my a$$ kicked for that, but that's after I get through this.
This is gonna be a 2 part question, one for backup recovery, the other for advice on setting up 2 boxes to talk to each other well;
Part 1
I had a power outage earlier today right while I was answering questions here. I was booted into my main Slack distro, and bam, it just rebooted me. It was a minor glitch, but enough to make me unable to boot back up. I do have ext3 on all my linux partitions, but I guess it didn't save me this time. Anyway, so after the reboot, I tried to go back into Slack, but it gave me the "kernel panic, try passing init= to the kernel" or something along those lines. So I figured why not boot in with a rescue disc (Knoppix) and run fsck on the drive to fix it. Well that started the problem.
It completely dorked the drive, and now every directory and file that existed before is replaced with a #12345667 type name. The directories are also in that style format, and all are in a lost+found directory. Anyway, it's not the end of the world as I was getting ready to start a new setup anyway, and that was the only partition that seemed to get jacked by the reboot. But here's where I get to my point...
I had some "custom" config files, mostly in /etc that I would like to recover if at all possible. But, I am really not wanting to search the (literally) hundreds of directories and/or renamed files to see which one is (for example) my /etc/profile file. Is there a way to specify contents of text files in a search?
Part 2
I have 2 boxes. (I mentioned this a bit in another thread, and have gotten some ideas, and now am just trying to get some more, and maybe some more in depth help). I want these 2 boxes to be able to communicate well with each other, and I am pretty damn sure Samba is the way I want to do that. Now, here's my question: I will be setting up these things on the second box (which will pretty much solely be used for the following):
A mail server
An http server
An FTP server
And of course SAMBA
So, what I want is for the second box (which will basically be the server box) to be able to "serve up" files from the first box, via ftp and ssh. So here's an example:
I have a file on box 1 that I want to have available via anonymous ftp (which will be setup on box 2). How would I make this file available? So, I guess the question is how do I make a file available outside a chrooted env?
And any ideas on how to make things easier for me, or some better uses/setup of the 2nd box would be great, and much appreciated. Oh, btw, Box 1 will be my main box, the one I'll surf on, manipulate pics/video with and so on, just a basic Workstation/Desktop box.
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207
Rep:
I setup a NFS, it was easy but i had problems serving files. I could copy files to and from the NFS drive no problem, but when i tried playing xmms (.mp3's) from a NFS drive xmms would freeze every now and then, and in the logs i will find out that something like a conection time out occured, i could fix this by taking down eth0 interfaces on both boxes, and then putting them back up. If it wasn't for that problem (playing music from NFS) i would have kept it because it worked great.
AS for the first problem, Did you ever try to use ReiserFS? I never liked ext2/3 and Reiser saved me so many times sine at my house power outages are common (well now i got a UPS, but the fact that Reiser saved me many times still stands). If you particularly dont like Reiser the way i dont like ext2/3 you might want to try some other journaling fylesystems.
HTH
-NSKL
Sure, I am willing to give it a try, can I switch over now though? Sort of like tune2fs -j for switching for ext2 to ext3 without worrying about backup? So maybe a tunereiserfs or something?
Thanks
Oh and being as creative as possible on building the server's box, it might be a good week before I dive into networking the 2 boxes, but I will definitely have questions once I get there Thanks for the suggestions so far.
The find command can easily be modified to search for only specific files by adding something like:
-name "*.txt"
The -follow is only needed if you have a bunch of symlinks which you would want it to follow in it's search.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.