Powindah
06-24-2003, 03:18 PM
I wanted a larger home directory that was accessible over the network and internet(when I'm away from the office). This is what I hacked together.
There are probably alot of better ways of doing this, but I didnt really want to remaster the entire CD.
I hope some of you find it usefull.
/dev/sda1 is my 16MB memory card where I save my settings/configuration.
how to do it yourself
=-=-=-=-=-=-=-=-=-=-=
1) setup a share on a samba server with rw access.
2) mount /dev/sda1
3) vi /mnt/sda1/knoppix.sh and add the following at the end of the script:
mkdir /mnt/remotehome
mount -t smbfs -o username=remotehome,password=topsecret,workgroup=W HATEVER,gid=knoppix,uid=knoppix,fmask=700,dmask=70 0 //192.168.0.1/remotehome /mnt/remotehome
losetup /dev/loop0 /mnt/remotehome/home.img
mount -t ext3 /dev/loop0 /home/knoppix
chown -R knoppix.knoppix /home/knoppix
4) umount /mnt/sda1
5) mkdir /mnt/remotehome
6) mount -t smbfs -o username=remotehome,password=topsecret,workgroup=W HATEVER,gid=knoppix,uid=knoppix,fmask=700,dmask=70 0 //192.168.0.1/remotehome /mnt/remotehome
(this will give you 100MB, change to your own requirements)
7) dd if=/dev/zero of=/mnt/remotehome/home.img bs=1k count=100000
8) losetup /dev/loop0 /mnt/remotehome/home.img
9) mkfs.ext3 -c /dev/loop0 100000
shutdown your machine and reboot using "knoppix myconfig=scan" and everything should work smoothly.
...and yes, this could be alot prettier.
There are probably alot of better ways of doing this, but I didnt really want to remaster the entire CD.
I hope some of you find it usefull.
/dev/sda1 is my 16MB memory card where I save my settings/configuration.
how to do it yourself
=-=-=-=-=-=-=-=-=-=-=
1) setup a share on a samba server with rw access.
2) mount /dev/sda1
3) vi /mnt/sda1/knoppix.sh and add the following at the end of the script:
mkdir /mnt/remotehome
mount -t smbfs -o username=remotehome,password=topsecret,workgroup=W HATEVER,gid=knoppix,uid=knoppix,fmask=700,dmask=70 0 //192.168.0.1/remotehome /mnt/remotehome
losetup /dev/loop0 /mnt/remotehome/home.img
mount -t ext3 /dev/loop0 /home/knoppix
chown -R knoppix.knoppix /home/knoppix
4) umount /mnt/sda1
5) mkdir /mnt/remotehome
6) mount -t smbfs -o username=remotehome,password=topsecret,workgroup=W HATEVER,gid=knoppix,uid=knoppix,fmask=700,dmask=70 0 //192.168.0.1/remotehome /mnt/remotehome
(this will give you 100MB, change to your own requirements)
7) dd if=/dev/zero of=/mnt/remotehome/home.img bs=1k count=100000
8) losetup /dev/loop0 /mnt/remotehome/home.img
9) mkfs.ext3 -c /dev/loop0 100000
shutdown your machine and reboot using "knoppix myconfig=scan" and everything should work smoothly.
...and yes, this could be alot prettier.