LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-20-2003, 07:15 AM   #1
Mega Man X
Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 63
Lightbulb Parted and Partitions questions


Hi there!!!

I've a very messy hardrive and I'm trying to reorganize it using parted. The hard drive in this machine is currently like this:

/dev/hda1 4.7G (fat 32 and win2k on it)
/dev/hda2 19G (fat 32)
/dev/hda3 15G (mounted as / and ext3)
/dev/hda5 38G (mounted as /home and ext3)
none 125M (not mounted, located at /dev/shm)


This is a box of mine, actually, the first one I've tried Linux with and was broken. Now I've fixed it and would like to play with parted to fix its HD (80gigas) as I want and learn it. It's OK if I lose data, the point here is to learn. Windows partitions I can resize with PQ magic, no big, but I don't know how to resize Linux partitions with parted. I'm trying to:

#parted /dev/hda3
(parted) resize 1
(start) 0
(end) 6000

But I cannot use parted while mounted. So... how to unmount a partition?
My goal is to divide my HD like this:

total HD:

Code:
80gigas HD
========================================
to:

Code:
hda1  hda2   swap        hda3
=====/=====/=/=============================
The idea is to have a hda1 partition, NTFS for Win2k (about 10 gigas), hda2 (Linux partition, about 10 gigas too and not a /home separated partition), a small one for the swap, the space left (hda3) in Fat32 so both Linux and Windows can write to it (read movies and music stuff..).

I don't need help with everything, just somebody point me out the steps or at least how to start doing so, as unmount a partition. Again, it's not a big problem if I go losing the data in this HD. I want to learn how to resize "safely" Linux partitions and organize my data better. That's why I don't want to format and make it nice and simple . Also, suggestions about how to divide a HD of 80 gigas would be nice. (recommended space for win, linux, data, etc). The above was the best I could think of...

Thanks a lot for any help

P.S: I also have a knoppix disk if it's of any help. This machine has Redhat 9.0 and win2k on it and I understand nothing about cylinders and stuff in the case somebody asks thanks again

Last edited by Mega Man X; 09-20-2003 at 07:19 AM.
 
Old 09-21-2003, 07:46 PM   #2
lyle_s
Member
 
Registered: Jul 2003
Distribution: Slackware
Posts: 388

Rep: Reputation: 52
You won't be able to unmount the partition mounted on / because it will always be in use. In order to do work on it (resize, etc) you'll have to boot with a floppy or a CD that has its own root.

Maybe your Knoppix CD will be of use, if it has parted on it. You used to be able to download a boot disk from the parted website (www.gnu.org/software/parted/) but they're still not back up since they had that security problem.

Another possible way is to do a minimal Linux install again into the free space you have. /dev/hda3 won't be / in that install, so you'll be free to resize it to your heart's content.

Lyle
 
Old 09-21-2003, 11:22 PM   #3
Mega Man X
Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Original Poster
Rep: Reputation: 63
Thanks for the reply lyle_s I've thought that I was alone up there for a second . Anyway, I will try to follow your advice. I will boot now with Knoppix and see if it has parted

Thanks again
 
  


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
fdisk, parted questions? darkleaf Linux - Software 2 10-14-2004 04:07 AM
Help with Parted & Resizing Partitions beley Linux - Hardware 2 02-27-2004 11:42 PM
Questions about "gnu parted" I need SERIOUS help! WorldBuilder Linux - General 19 06-22-2003 12:49 AM
PARTED Questions in Red Hat, post-installation WorldBuilder Linux - Software 3 05-07-2003 02:28 PM
Partitions Questions. hi-c Linux - General 4 11-10-2002 11:01 AM


All times are GMT -5. The time now is 04:02 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration