Results 1 to 1 of 1
I had Zipslack installed to a FAT32 partition with my old Windows 98 along with it . But, I decided I wanted Slackware to take over my whole HD so ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 11-11-2006 #1
- Join Date
- Nov 2006
I had Zipslack installed to a FAT32 partition with my old Windows 98 along with it . But, I decided I wanted Slackware to take over my whole HD so I decided it would be best if I transfered everything to an Ext2 partition. I followed the FAQ on how to do it.
Here are the steps you'll need to follow to migrate your
installation onto a Linux ext2 partition:
1. 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).
2. Format this partition with 'mke2fs'. For example, if your new Linux
partition is /dev/hdb1 you'd use the following command:
Formatting destroys the existing filesystem on the partition, so make
sure to format the correct partition!
3. Mount the new partition on /mnt. In the case of the example above,
this command will do it:
mount /dev/hdb1 /mnt
4. Make a few directories on the new partition:
5. 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, proc,
and sys) and the kernel file (vmlinuz) onto the new Linux partition:
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.
6. Edit the /mnt/etc/fstab. Change the device listed for the '/'
partition to the new Linux partition's device.
7. 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. :^)
So I formatted my hard drive into an Ext2 partition and copied all the files over. But my problem is booting up. I don't know if I edited fstab wrong or I am typing the wrong boot parameter. Never the less when I type in
mount root=/dev/hda1 rw
Can someone show me what exactly my fstab should look like and what boot parameter I should type in to make this work correctly. The linux partition is /dev/hda1
Note: In fstab it says to edit where it says "/" to "/dev/hda1" I did that but after the device it says UMDOS, maybe i should change that to EXT2? But when im booting up the kernel mounts the partiton fine,. Thanks in advance.