Find the answer to your Linux question:
Results 1 to 3 of 3
Hi, I have a pc with 2 disks: in the first (/dev/hda) there are soma windows installations, in the second (/dev/hdc) there is linux (Suse 8.1). I also would like ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2003
    Posts
    38

    two linux in a disk


    Hi,
    I have a pc with 2 disks: in the first (/dev/hda) there are soma windows installations, in the second (/dev/hdc) there is linux (Suse 8.1).
    I also would like to install red hat 8.0, so I tried to resize "suse" partitions, but Yast told me that resizing is possibile only if the partition is not mounted and it was impossibile to unmount it.
    How can I do?
    Maybe I have to boot from cd and resize using...what? (yast, or fdsik, or...)
    If I succeded in resizing, once I installed RH and lilo in MBR of hda, how can I set lilo to boot Suse?
    Thanks.

  2. #2
    Linux Engineer
    Join Date
    Apr 2003
    Location
    Sweden
    Posts
    796
    Boot up your linux in single usermode...and the rezise you partitions..
    Then make an entry in /etc/lilo.conf for the things you want to be able to boot from and the execute the command lilo as root. The reboot your computer.

    Regards
    Regards

    Andutt

  3. #3
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    You can't shrink a partition while it's mounted, and we all know that the root partition can't be unmounted even in single user mode. You will need to boot from a CD. If you don't already have one, download Knoppix.
    I'm guessing that you're using ext2 or ext3? In that case, shrink the filesystem with resize2fs, and then shrink the partition to match its size with fdisk.
    RedHat's installation program will probably detect SuSE and make it able to boot that as well. Just don't use LILO, use GRUB instead.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •