Quote:
Originally posted by johnnyoi
Hi all, first of all i'm running Red Hat 7.0 and using bash.
|
Wow, that's old school
Quote:
I was wondering if anyone could help me do the following:
|
It would be easier if you had an updated distro. This may be easier for you to perform these tasks under something like Knoppix (A LiveCD Distro) because it will give you both an updated kernel and set of tools, and it will allow your drive to be unmounted to perform these operations
Quote:
I need to create a new volume(partition) and transfer 3 home directories from my current partition to the new one.
|
Look into a tool called parted, or qparted for gui folks. Then once the partition(s) is(are) created, you simply copy the info:
cp -a /home/whoever /mnt/newpartition
Quote:
Secondly, I need to make a second boot partition, identical to my current.
|
The same applies here. Once you create the new boot partition using parted and creating a filesystem on them using something like mke2fs -j /dev/hda3 then you mount the drive mount /dev/hda3 /mnt/hda3 And:
cp -a /boot/* /mnt/hda3
Quote:
And finally, I need to make an entry in my boot loader to boot into single user mode(runlevel1).
|
This, I actually don't know for sure how to do. But I believe that if you pass a 1 to your boot loader when your bootloader is loading the kernel image, single mode is entered. So, if this is true (which I'm not entirely sure as I don't do it and haven't done it) then it would be something like this for lilo (if Lilo is your boot loader):
copy the entry for your current kernel into a new image file, we'll assume it looks like this:
image=/boot/kernel-2.6.12
root=/dev/hda3
label=Linux
read-only
And your new one would be:
image=/boot/kernel-2.6.12
root=/dev/hda3
label=Linux Single
append="1"
read-only
And remember to re-run lilo after the change takes effect. If your boot loader is grub, check your options section and add a 1, similar to what we have done here with lilo.
Quote:
If anyone can help me with anything i mentionned here, I would gladly appreciate it.
Thanks,
John
|
Hopefully that helps, if not, post back with more information and we can provide more/better info specific to your problem.
Cool