Author

Topic: Install Linuxcoin in Hard Disk (Read 2032 times)

legendary
Activity: 980
Merit: 1008
January 10, 2012, 02:43:48 PM
#2
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
hero member
Activity: 756
Merit: 500
November 04, 2011, 06:21:33 AM
#1
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.
Jump to: