loji
01-16-2003, 08:09 PM
Are there nay tricks to installgin knoppix s a HD i go tthis form teh slackware site
Q: Can my ZipSlack installation be moved onto a real Linux partition?
Yes, it can. Here are the steps you'll need to follow to migrate your installation onto a Linux ext2 partition:
Define a Linux partition using fdisk or cfdisk. If you find it easier, you can use DOS or Windows tools to create the partition and then use Linux fdisk to change the partition type to 83 (Linux native).
Format this partition with 'mke2fs'. For example, if your new Linux partition is /dev/hdb1 you'd use the following command:
mke2fs /dev/hdb1
Formatting destroys the existing filesystem on the partition, so make sure to format the correct partition!
Mount the new partition on /mnt. In the case of the example above, this command will do it:
mount /dev/hdb1 /mnt
Make a few directories on the new partition:
mkdir /mnt/cdrom
mkdir /mnt/mnt
mkdir /mnt/proc
Now it's time to actually move the data. First you'll need to set your 'umask' to 000 to correctly preserve all file permissions, and then you'll copy the top-level directories (other than cdrom, mnt, and proc) and the kernel file (vmlinuz) onto the new Linux partition:
umask 000
cp -a /bin /mnt
cp -a /boot /mnt
cp -a /dev /mnt
cp -a /etc /mnt
cp -a /home /mnt
cp -a /lib /mnt
cp -a /root /mnt
cp -a /sbin /mnt
cp -a /tmp /mnt
cp -a /usr /mnt
cp -a /var /mnt
cp -a vmlinuz /mnt
If you've made any new top-level directories that you want to save, copy them over to the new partition in the same way.
Edit the /mnt/etc/fstab. Change the device listed for the '/' partition to the new Linux partition's device.
That's it! Your system should be ready to boot on the new partition. To do that, you can use loadlin (if it's installed on your DOS or Windows partition), or a bootdisk. Once you've booted the new partition you can proceed to set up LILO if you like. Note that when you boot a native Linux partition you should boot it in read-only mode (unlike UMSDOS). This allows it to do automatic filesystem checking periodically, or if the machine is ever shut down improperly. To boot a partition in read-only mode, add 'ro' instead of 'rw' to the bootdisk or loadlin command line.
Since this operation must be done as root and involves dangerous operations like using fdisk, you need to be careful to avoid losing data. But, if you can migrate your installation successfully, you've earned your intermediate Linux sysadmin merit badge. :^)
I wanna knwo what unmask does::::::
And also any tips or hints...
Q: Can my ZipSlack installation be moved onto a real Linux partition?
Yes, it can. Here are the steps you'll need to follow to migrate your installation onto a Linux ext2 partition:
Define a Linux partition using fdisk or cfdisk. If you find it easier, you can use DOS or Windows tools to create the partition and then use Linux fdisk to change the partition type to 83 (Linux native).
Format this partition with 'mke2fs'. For example, if your new Linux partition is /dev/hdb1 you'd use the following command:
mke2fs /dev/hdb1
Formatting destroys the existing filesystem on the partition, so make sure to format the correct partition!
Mount the new partition on /mnt. In the case of the example above, this command will do it:
mount /dev/hdb1 /mnt
Make a few directories on the new partition:
mkdir /mnt/cdrom
mkdir /mnt/mnt
mkdir /mnt/proc
Now it's time to actually move the data. First you'll need to set your 'umask' to 000 to correctly preserve all file permissions, and then you'll copy the top-level directories (other than cdrom, mnt, and proc) and the kernel file (vmlinuz) onto the new Linux partition:
umask 000
cp -a /bin /mnt
cp -a /boot /mnt
cp -a /dev /mnt
cp -a /etc /mnt
cp -a /home /mnt
cp -a /lib /mnt
cp -a /root /mnt
cp -a /sbin /mnt
cp -a /tmp /mnt
cp -a /usr /mnt
cp -a /var /mnt
cp -a vmlinuz /mnt
If you've made any new top-level directories that you want to save, copy them over to the new partition in the same way.
Edit the /mnt/etc/fstab. Change the device listed for the '/' partition to the new Linux partition's device.
That's it! Your system should be ready to boot on the new partition. To do that, you can use loadlin (if it's installed on your DOS or Windows partition), or a bootdisk. Once you've booted the new partition you can proceed to set up LILO if you like. Note that when you boot a native Linux partition you should boot it in read-only mode (unlike UMSDOS). This allows it to do automatic filesystem checking periodically, or if the machine is ever shut down improperly. To boot a partition in read-only mode, add 'ro' instead of 'rw' to the bootdisk or loadlin command line.
Since this operation must be done as root and involves dangerous operations like using fdisk, you need to be careful to avoid losing data. But, if you can migrate your installation successfully, you've earned your intermediate Linux sysadmin merit badge. :^)
I wanna knwo what unmask does::::::
And also any tips or hints...