LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   partitioning and resizing from Red Hat (https://www.linuxquestions.org/questions/linux-newbie-8/partitioning-and-resizing-from-red-hat-354622/)

zanzibar 08-18-2005 01:19 PM

partitioning and resizing from Red Hat
 
I have Red Hat 9 installed and running fine. I would like to make my system dual boot with Monta Vista. I want to use fdisk when Red Hat comes up. But when I issue a command to resize the hda3 partition I get a message that it can not resize a mounted partition.

/sbin/resize2fs -f /dev/hda3 7324216

How can I boot Red Hat to a point where it does not mount the /dev/hda3 to / so that I can resize and then install.

At what stage during booting of redhat I can stop it and how so that I can log in and enter this command and or fdisk

please help, any suggestion will be appreciated.

Thanks

Zenj

bosewicht 08-18-2005 01:25 PM

What do you have mounted on hda3?

zanzibar 08-18-2005 01:33 PM

Here is the result of df command

Filesystem Mounted on
/dev/hda3 /

WhatsHisName 08-18-2005 01:43 PM

Do it from RHL9 rescue mode using the first installation CD (boot: linux rescue), but don’t search for/mount the filesystem.

bosewicht 08-18-2005 01:45 PM

So you have root mounted. If you aren't too familiar with linux, I would suggest using a live cd with qtparted or something. There is a way to do it without a livecd, but you might want to hold off on doing it like that. You could of course google. :)

greauxe 08-18-2005 01:48 PM

I have actually done this before. I used Partition magic then. I didn't use the bloated windows version, though. If you look in a Partition Magic directory, there is a DOS-text based version that will allow you to resize your partitions without losing anything. Sorry, I forgot the filename. Procedure: Make a bootable dos floppy disk. Copy partition magic files to disk. Start Partition Magic from floppy and resize. Guess the winversion will work fine also.

IMPORTANT: Also, on dual-boot systems, Redhat won't start if it is not at the begining of you hard drive. Partition thusly:

"/boot" is your 1st Partition about 80MB It will point to the Linux Install.
"/mnt/windows" second partition containing windows
"/swap" is your swap partition I use a 1000MB size
"/" is the root of your linux installation remainder of hdd space
*** No quotes, of course

Set up your partitions like this an you will be fine.
**It would probably be easier to back up important data files and start clean. Good chance to corrupt your master boot record.

IF YOU CORRUPT Your MBR, get a bootable DOS diskette, with fdisk.exe on it, boot using the floppy, and type "fdisk /mbr" (no quotes) This will fix your MBR and you can start over.

Good Luck!

zanzibar 08-19-2005 06:43 AM

Thanks folks, I used the Red Hat Boot CD and went to rescue mode without searching for linux install. Thank did it.


All times are GMT -5. The time now is 05:56 AM.