LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-18-2005, 02:19 PM   #1
zanzibar
LQ Newbie
 
Registered: Aug 2005
Posts: 3

Rep: Reputation: 0
Question 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
 
Old 08-18-2005, 02:25 PM   #2
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Honolulu, HI
Distribution: Arch
Posts: 1,380

Rep: Reputation: 47
What do you have mounted on hda3?
 
Old 08-18-2005, 02:33 PM   #3
zanzibar
LQ Newbie
 
Registered: Aug 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Here is the result of df command

Filesystem Mounted on
/dev/hda3 /
 
Old 08-18-2005, 02:43 PM   #4
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46
Do it from RHL9 rescue mode using the first installation CD (boot: linux rescue), but donít search for/mount the filesystem.
 
Old 08-18-2005, 02:45 PM   #5
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Honolulu, HI
Distribution: Arch
Posts: 1,380

Rep: Reputation: 47
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.
 
Old 08-18-2005, 02:48 PM   #6
greauxe
LQ Newbie
 
Registered: Jul 2005
Posts: 19

Rep: Reputation: 0
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!
 
Old 08-19-2005, 07:43 AM   #7
zanzibar
LQ Newbie
 
Registered: Aug 2005
Posts: 3

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
New installation of Red Hat 9 - automatic partitioning? BRFCclare Linux - Software 4 10-17-2003 09:37 AM
NTFS resizing in Red hat 9?? mgbgt Red Hat 5 10-06-2003 08:41 PM
partitioning for red-hat? brutal_brad Linux - Newbie 5 09-17-2003 05:54 PM
Red Hat 7.0 and WIN2K partitioning Savage354 Linux - Newbie 3 08-23-2003 06:49 AM
Red Hat 7.1 Partitioning Problem integersys Linux - Software 7 07-14-2001 06:05 PM


All times are GMT -5. The time now is 08:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration