Download ISO from Debian, click here
Debian 6 setup and configuration
Do a default install, or change to your requirements.
# apt-get update
# apt-get upgrade
# apt-get install sudo
Static IP address setup
Edit the nano /etc/network/interfaces
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface #allow-hotplug eth0 #iface eth0 inet dhcp
# The primary network interface
auto eth0 iface eth0 inet static address 192.168.0.101 gateway 192.168.0.1 netmask 255.255.255.0 network 192.168.0.0 broadcast 192.168.0.255
Create a rules file.
# touch /etc/iptables.rules
# chmod +x /etc/iptables.rules
# nano /etc/network/interfaces
add this to bottom of file: pre-up iptables-restore < /etc/iptables.rules
I keep getting this error every time I wanted to format some drives.
# mkfs.ext3 -j /dev/sdb1
mke2fs 1.41.12 (17-May-2010)
/dev/sdb1 is apparently in use by the system; will not make a filesystem here!
# mdadm --detail /dev/md127
# mdadm --stop /dev/md127
# mdadm --remove /dev/md127
This removes mdadm
# apt-get purge mdadm
Now I could finally run my format command.
Now this was a new installation, So after some searches I found an article that fixed the problem. Seems like the installation automatically created a raid. So this what I had to do to fix it.
This is the website that helped me out.