Hello,
I am running ubuntu 14.04
My server has problems again. I need to manage system files in rescue mode, backup some files, edit /etc/crontab and rc.local files etc.
And WHAT EXACTLY is your problem? What errors do you encounter, where do you run into difficulties? What is your system disk? Show the mounted devices.
Hello Rudic,
CPU is 100% and server is not accessible via ssh in normal boot mode.
The problem started after nfs installation. I received a warning message from authorities emphasizing that nfs usage has some risks as attackers could sniff the system via udp ports. Not sure about that. Company replaced the motherboard in the morning which did not solve the issue. After an eight hours of intervention process they said, server is under attack.
I am still not sure about that so I am planning to edit my settings in rescue mode.
Regarding system disk details:
Kind regards
Boris
Last edited by baris35; 06-28-2019 at 06:06 PM..
Reason: requested info added
Hello,
Output:
Then I run:
now I can see my files inside mnt. So when I edit related files, I hope it will be auto-edited after reboot in normal mode with one exception.
I do not know how to edit "crontab -e" in this environment.
I had created some rules with that command. Strongly believe that to surf in google will give me an idea.
Last edit:
To stop crontab rules:
Then, I turned server to normal boot
After restart, in command line:
After I edit some files, I have changed the boot mode. Now system is up&running.
Kind regards
Boris
Last edited by baris35; 06-28-2019 at 07:55 PM..
These 2 Users Gave Thanks to baris35 For This Post:
Thanks for sharing this.
If you know where the crontab file is located - usually under /var/spool/cron/, in your case /mnt/var/spool/cron/ - then you can directly edit it. (That method is not good on a live system because the running cron daemon would not be notified.)
Furthermore, a chroot /mnt crontab -e might work.
This User Gave Thanks to MadeInGermany For This Post:
How to get cpanel backup data in rescue mode?
Server OS 6.3 minimal with cPanel
/dev/sdb1 is main partition
root@rescue ~ # fdisk -l
Anyone can help
Thank you (0 Replies)
I accidently deleted fstab file from one of the compute nodes of the cluster (RHEL 5.3). Due to this no filesystem/directory is mounted on the system during bootup. I started system in rescue mode but it says You don't have any linux partitions. Press return to get a shell. The system will reboot... (2 Replies)
Hi,
I'm trying to resize an ext3 FS (filesystem) under an LVM.
I have booted the OS (RHEL 4) in rescue mode using the CD media and I'm able to use lvm commands.
Now, I'm trying to shrink the filesystem before actually shrinking the logical volume but I cannot find ext2onlone or resize2fs... (1 Reply)
Hi all,
When using netcat to transfer the data over socket, if no connection is established, how long will netcat keep the data; will it discard the "oldest" data ?
Say for example I use "Some Command | netcat -l -p port", the command I use will generate a lot of output constantly, while no... (2 Replies)
Hi all,
I am running xen virtual machine on centos 5 and xen gust o.s is centos.
I cannot boot my xen vm machine it saying cannot find /bin/sh to execute.
I want to go to rescue mode of my xen vm machine.
I know how to do on actual physical machine but how i can enter in rescue mode of... (6 Replies)
Hi all,
I am running xen virtual machine on centos 5 and xen gust o.s is centos.
I cannot boot my xen vm machine it saying cannot find /bin/sh to execute.
I want to go to rescue mode of my xen vm machine.
I know how to do on actual physical machine but how i can enter in rescue mode of... (1 Reply)
I was runing suse 10.2 and windows ,i had installed windows on a separate 40 gb hard disk and linux on a 160 gb disk which it shrunk and left some 60 gb which were readable in windows.
Due to the fact that i store alot of data in the windows partions i used all the extra 60gb which where readable... (2 Replies)
Hello!
I need to write partitioning script wich would work in rescue mode. It will prepare partitions and unpack linux on it. However I need to calculate whole size of the disk and create:
/dev/sda1 --> One big partition (minus (2*size of memory) for swap)
/dev/sda2 --> Swap partition... (1 Reply)