Bitcoin Forum

Bitcoin => Mining software (miners) => Topic started by: worldinacoin on November 04, 2011, 11:21:33 AM



Title: Install Linuxcoin in Hard Disk
Post by: worldinacoin on November 04, 2011, 11:21:33 AM
I had an old computer, can't boot properly from USB, thinking of installing Linuxcoin on the booting hard disk.  Is there any instructions?  Linuxcoin looks like for USB drives only.


Title: Re: Install Linuxcoin in Hard Disk
Post by: runeks on January 10, 2012, 07:43:48 PM
This worked for me. Look at the following video to get an idea of what is going on. I had to add some commands as GRUB wouldn't install properly (because of some security stuff).

http://www.youtube.com/watch?v=pP48GhFKDAQ

All these commands are run from within Linuxcoin, with the hard drive you wish to install it on attached.

Commands:

replace /dev/sdXX with the partition you want the root file system (ext4) on (mine is /dev/sda1). And replace /dev/sdX with the disk on which the root file system is (mine is /dev/sda).
Code:
#open root terminal
mkdir /mnt/hdd
mount /dev/sdXX /mnt/hdd
cd /
cp --preserve -R {bin,boot,etc,home,initrd.img,lib,lib32,lib64,opt,root,run,sbin,selinux,srv,usr,var,vmlinuz} /mnt/hdd
mkdir /mnt/hdd/{dev,media,mnt,proc,sys,tmp}
cd /mnt/
mount -o bind /dev hdd/dev
mount -t proc /proc hdd/proc
mount -o bind /sys hdd/sys
chroot hdd
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install grub
for i in $(ls /usr/sbin | grep grub); do paxctl -C /usr/sbin/$i; paxctl -cEr /usr/sbin/$i; done
for i in $(ls /usr/bin | grep grub); do paxctl -C /usr/bin/$i; paxctl -cEr /usr/bin/$i; done
update-grub
grub-install /dev/sdX
exit