Posts Tagged ‘Linux’
January 18th, 2014
RAID hardware failed and both SATA x 2 TB stops working, tried enable/disable RAID controller without luck, Add/Remove drives but no boot, kernel panic and stuck.
Now what I want is to boot one hard disk to restore services so I tried:
fsck /dec/sda
but it gives error
unknown filesystem type 'isw_raid_member'
So the solution is , remove RAID metadata from the drives and boot normally.
dmraid -rE /dev/sda
reboot
And Hard disk start working…..
April 11th, 2013
Attack from just 49 IPs and 48,000 servers (Linux/HP Unix) boot records were deleted in South Korea (20-March-2013), including servers at major (4) Banks and (3) TV stations.
Read the rest of this entry »
January 29th, 2013
Using ssh as a proxy or encrypted tunnel to browse the web can sometimes be necessary:
- When you’re at some public place but need to login securely to your work place.
- When local access restrictions make life really difficult.
I use SSH for the security reasons. I want to make sure that my security and login information will remain secure:
ssh -D 12345 myuser@remote_ssh_server
Replace myuser with your user account and remote_ssh_server with the IP or Hostname of your server.
The above command will do all, but if you want to add more options, you can add other options like:-
-D 12345: This does the dynamic stuff and makes it behave as a SOCKS server.
-f : This will fork the process into the background after you type your password (for Linux only, on windows skip that).
-C : Turns on compression.
-q : Quiet mode. Since this is just a tunnel we can make it quiet (for Linux only, on windows skip that).
-N : Tells it no commands will be sent. (the -f will complain if we don’t specify this)
Next, set up your browser to use the proxy server. Most browsers include proxy support. For Firefox, go to Edit→Preferences→Advanced→Network→Settings, and specify that you want to use a Manual Proxy, localhost, port 12345 and SOCKS v5 (although OpenSSH supports both versions 4 and 5).
HTTP Proxy (The first input). Must be left blank and add this config to SOCKS only.
Now your browser is using a secure tunnel to your remote SSH server, Enjoy
November 8th, 2012
Ever wanted FTP backups and automation for keeping backups of important file on off-peak time. I always love automation, so machines can do things automatically and help humans 🙂 Read the rest of this entry »
October 16th, 2012
Physical access is everything, it is almost impossible to prevent machine access/password break if somebody else got physical access to some Linux machine.
But there are some steps you can make somebody work hard to access the machine physically (provided they have good knowledge of Linux). Read the rest of this entry »
October 15th, 2012
Recently when my servers HDD dead, data center installed a new HDD keeping orginal HDD as secondary so that i can copy data back to new HDD.
I tried to mount the HDD normal way, but got the error:-
[root@server78 ~]# fdisk -l /dev/hda
Disk /dev/hda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 19457 156183930 8e Linux LVM
[root@server78 ~]# mount /dev/hda2 /tmp/mnt
mount: /dev/hda2 already mounted or /tmp/mnt busy
The old drive is lvm. you were trying to mount it like it was an ext3 filesystem. I have listed what i did below so you can see it.
Now we need to check the old disk is using LVM ? type:-
[root@server78 ~]# pvs
PV VG Fmt Attr PSize PFree
/dev/hda2 VolGroup01 lvm2 a- 148.94G 32.00M
/dev/hdb2 VolGroup00 lvm2 a- 114.94G 96.00M
So now we know our second hard disk VolumeGroup name is “VolGroup00”, now we can mount it like:-
[root@server78 ~]# mount /dev/VolGroup01/LogVol00 /mnt
That’s it, you can see the folders in /mnt/, Edit/copy as you like.