Back|Track 4 beta & Windows 7 Ultimate Dual Boot

Posted: Wednesday,February 11, 2009 in Wifi-Hacking

Hello to all the visitor of this blog.time to make some fun with back|track 4 beta along with windows 7 ultimate beta.the fun part is both of the distro’s are in beta state & will updated time to time untill final release.first install windows 7 ultimate and I assume you know how to do that(the most easiest thing is world I assume).here is what partition scheme I used.change it accordingly to your HDD partitions.also I assume you have make 3 extra partitions from the empty space from HDD using 3rd party tool like paragon partition manager as fdisk options wipe the partition.

Boot through BT4 ISO and see the mount point using

root@ThUnDerBolT:~#nano /etc/fstab

here is how my partition scheme looks like

snapshot4

Note down the partition scheme of your HDD as it will be use for later reference

now back to terminal

unmount all the NTFS & EXT,reiserfs File System

root@ThUnDerBolT:~#umount /dev/sda1

root@ThUnDerBolT:~#umount /dev/sda2

root@ThUnDerBolT:~#umount /dev/sda3

root@ThUnDerBolT:~#umount /dev/sda5

root@ThUnDerBolT:~#umount /dev/sda6

now fdisk the sda harddisk

root@ThUnDerBolT:~#fdisk /dev/sda

Here is how my hard-disk partition scheme is

snapshot5Please note down the linux partions start cylinder & last cylinder.In my case its

/dev/sda5     29561     30325     83    Linux

/dev/sda6     30326    30334     83     Linux

/dev/sda7     30335    30401     82     Linux swap / Solaris

now delete the Linux partitions carefully.use commands

d

7

d

6

d

5

w

now reboot once as the kernel is still using old tables

root@ThUnDerBolT:~#init 6

now back to terminal after reboot

root@ThUnDerBolT:~#fdisk /dev/sda

n

29561

30325

n

30326

30334

n

30335

30401

t

2  #only if you are seeing your NTFS partition as Hidden HPFS/NTFS

7  #change Hidden HPFS/NTFS to Normal HPFS/NTFS partition

t

3 #only if you are seeing your NTFS partition as Hidden HPFS/NTFS

7 #change Hidden HPFS/NTFS to Normal HPFS/NTFS partition

t

7

82 #setting last sda7 as swap partition

p

and it should look like this now

snapshot6now write the tables

w

root@ThUnDerBolT:~#mke2fs /dev/sda6

root@ThUnDerBolT:~#mkswap /dev/sda7

root@ThUnDerBolT:~#swapon /dev/sda7

root@ThUnDerBolT:~#mkreiserfs /dev/sda5

Choose Y

root@ThUnDerBolT:~#mkdir /mnt/backtrack

root@ThUnDerBolT:~#mount /dev/sda5 /mnt/backtrack

root@ThUnDerBolT:~#mkdir /mnt/backtrack/boot

root@ThUnDerBolT:~#mount /dev/sda6 /mnt/backtrack/boot

root@ThUnDerBolT:~#cp –preserve -R /{bin,dev,home,pentest,root,boot,usr,etc,lib,opt,sbin,var} /mnt/backtrack

root@ThUnDerBolT:~#cd /mnt/backtrack

root@ThUnDerBolT:~#mkdir {mnt,proc,sys,tmp}

root@ThUnDerBolT:~#chmod 1777 /mnt/backtrack/tmp

root@ThUnDerBolT:~#mount –bind /dev /mnt/backtrack/dev

root@ThUnDerBolT:~#mount -t proc proc /mnt/backtrack/proc/

root@ThUnDerBolT:~#chroot /mnt/backtrack /bin/bash

root@ThUnDerBolT:~#nano /etc/lilo.conf

your LILO config should look like this

snapshot7Replace the windows partition with yours e.g. /dev/sda1 to blah blah

save and exit

root@ThUnDerBolT:~#lilo -v

reboot

Make mount points for our windows/pen drive

root@ThUnDerBolT:~#mkdir /mnt {sda1,sda2,sda3,sdb1,sr0)

root@ThUnDerBolT:~#nano /etc/fstab

Update your fstab file & add entries of partitions there

here is how my fstab looks like.update it accordingly to your HDD partitions

snapshot8

Save & Exit

root@ThUnDerBolT:~#init 6

That’s it!

————————————————-

BUGS/Mods:

1.if you are getting error “cannot obtain lock on /media/.hal-mtab” then enter the mount partion entry into /etc/fstab file.e.g as I was getting this error while accessing DVD Drive and Pen-Drive or windows partitions then make directories and update fstab file

2.if you have used command “update-rc.d networking defaults”.every time BT starts it will look for DHCP address for NIC’s.if you don’t have any connection at that time.it will just keep looking.for getting it out press ctrl +c and enter.it will carry on booting then.

3.those who wants to manually start networking type

root@ThUnDerBolT:~#/etc/init.d/networking start

If any bugs feel free to comment it and to update on remote-exploit forum.

Advertisements
Comments

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s