**based on this site and all the most wanted information i found in here……
nice work…keep on…..
p.s.
i used an external usb2 sata box …so my dev is /dev/sdd
sudo -s into terminal…very important..!!! … must be root all the time….
i used the /root/Debian-WD/ directory for working directory….in here are all the
files from the http://www.ismprofessional.net/pascucci/index.php/mybook-repository/
if you have problems with the mbr file…like permition deniyed… ;) check your file permitions into the /root/Debian-WD/
have fun… ;)**
INSTALLATION…..
1.zerofill MBR and partitions (count=10000 —-> 10GB of disk space)
dd if=/dev/zero of=/dev/sdd bs=1M count=10000
2.partitioning the sdd
fdisk /dev/sdd
First cylinder (1-60801, default 1): 673
Last cylinder or +size or +sizeM or +sizeK (673-60801, default 60801):
Using default value 60801
Command (m for help): p
Disk /dev/sdd: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xfdcdfaf1
Device Boot Start End Blocks Id System
/dev/sdd1 2 655 5253255 83 Linux
/dev/sdd2 656 672 136552+ 82 Linux swap / Solaris
/dev/sdd3 673 60801 482986192+ 83 Linux
TwonkyMedia
3.read the empty MBR
dd if=/dev/sdd of=mbr bs=512 count=1
4.modify the mbr saved file
./installer mbr
5.write the mbr back to disk
dd if=mbr of=/dev/sdd bs=512 count=1
6.install the first stage bootloader
TwonkyMedia
dd if=stage1.bin of=/dev/sdd bs=512 seek=1
7.install the second stage bootloader
dd if=u-boot.img of=/dev/sdd bs=512 seek=64
8.format the /dev/sdd1 with ext3 and make it clean for fsck at boottime…
mkfs.ext3 -L MyBook_root /dev/sdd1
e2fsck -fDy /dev/sdd1
--> check that the filesystem is clean and has date fixed to real one
tune2fs -l /dev/sdd1
!!! finaly overide checking filesystem at first book !!!
tune2fs -c -1 -i 0 /dev/sdd1
TwonkyMedia
9.format the /dev/sdd3 with ext3 and make it clean for fsck at boottime…
mkfs.ext3 -m0 -L MyBook_home /dev/sdd3
e2fsck -fDy /dev/sdd3
--> check that the filesystem is clean and has date fixed to real one
tune2fs -l /dev/sdd1
!!! finaly overide checking filesystem at first boot !!!
tune2fs -c -1 -i 0 /dev/sdd3
10.make /dev/sdd2 as swap memory
mkswap -L MyBook_swap /dev/sdd2
11. mount the 500GB disk to a folder and cd to it
mkdir /media/MyBook
mount /dev/sdd1 /media/MyBook
mkdir /media/MyBook/home
mount /dev/sdd3 /media/MyBook/home
cd /media/MyBook/
12.install the base system
tar xjf /root/Debian-WD/mybook-rootfs-debian-20070826.tar.bz2
13.install the kernel
tar xzf /root/Debian-WD/kernel-2.6.17.14-20070817-mybook.tar.gz
14.unmount all partitions..very inportand !!!!
cd /
umount /dev/sdd3
umount /dev/sdd1
15.poweroff usbbox….unmount the diskdrive….mount the World Book with the drive…blablabla…
16.poweron the World Book…wait to see all the blue leds on….open a term into your desktop pc…and…
ssh 66.1.861.291|toor#66.1.861.291|toor
pass:mybook
then clear ssh key and generate new…
cd /etc/ssh
rm ssh_host_dsa_key
rm ssh_host_dsa_key.pub
rm ssh_host_rsa_key
rm ssh_host_rsa_key.pub
then type into ssh on your MyBook…
reboot
then restart your router and the dls line….then restart your desktop pc… to get new IPs and fix the new ssh keys….
then type… rm -r -f /root/.ssh
(/root is my working directory and do this to clear /root/ssh/ key directory that is stored into your desktop pc.. you will NOT be able to login to MyBook with old keys…!!!)
finaly wait all the restarts to be done and type into term on your desktop pc…
sudo -s
pass:xxxxxxxxxx (..your password)
ssh 56.1.861.291|toor#56.1.861.291|toor (go at your router site and find out the new IP of yours MyBook… i have 192.168.1.65 and it is static…later we will make it DHCP)
DONE..!!!!
17…where to go now…..
nano /etc/fstab….
#mybook base fstab
/dev/root / ext3 defaults 0 0
/dev/sda2 swap swap defaults 0 0
/dev/sda3 /home ext3 defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
nano /etc/hosts
#mybook host file
127.0.0.1 localhost
127.0.1.1 mybook.lan mybook
#router
192.168.1.254 speedtouch
#desktop pc
192.168.1.64 1711smi
reboot your MyBook by entering into ssh shell…
reboot
edit your /etc/hosts of your desktop pc and add line …(as root always…)
nano /etc/hosts
127.0.0.1 localhost
127.0.1.1 1711smi.lan 1711smi
#The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
192.168.1.65 mybook <--------—-
192.168.1.254 speedtouch
!!!!reboot your desktop pc….!!!
reopen a new term…
sudo -s
then relogin to your mybook…
ssh root@mybook (..nice to have a name than a IP adress… ;) )
18.working into your new debian lenny…..
nano /etc/apt/source.list
prefer a server near you….i am in greece so…
deb http://ftp.gr.debian.org/debian/ lenny main contrib non-free
….update your debian repository and debian distro to latest …(tip: is your dsl up? )
apt-get update
apt-get install aptitude (tip: never mind about locales error mesages..we will fix it later..)
aptitude update
aptitude dist-upgrade
….fix locales
aptitude install locales
dpkg-reconfigure locales (tip:select only locales you need and default language en_US)
….timezone,date and clock settings
nano /etc/default/rcS
..and type no at "UTC=yes"
reboot
….exit all terminals..wait your MyBook to get up..open a new term..sudo -s for root… ssh root@mybook
….check date
….fix it
cp /usr/share/zoneinfo/Europe/Athens /etc/localetime
date MMDDhhmmYYYY
….check date again
date
…./etc/fstab modify for noatime
nano /etc/fstab
#mybook base fstab
/dev/root / ext3 defaults,noatime 0 0
/dev/sda2 swap swap defaults 0 0
/dev/sda3 /home ext3 defaults,noatime 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
….add same tools
aptitude install nano openssh-server mc screen sysv-rc-conf elinks (tip: aptitude create database of installed pakages…apt-get not)
sysv-rc-conf:tool for servises only change 2 3 4 5 colums..not 1 0 6 s (tip: bootclean at 2 3 4 5)
mc: nice file manager like norton commander….
elinks: nice text web browser




















