LinuxQuestions.org
Visit Jeremy's Blog.
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 07-21-2004, 02:45 PM   #1
lramos85
Member
 
Registered: Sep 2003
Location: Riverside, Ca
Distribution: Gentoo, FC3
Posts: 125

Rep: Reputation: 15
Merging Unalocated Partitions


Hi I have a 20gb Harddrive in my Laptop 4 Gb are alocated for windows and 11Gb are for Linux. I use to have more for windows but I unalocated that partition and Limited to 4gb now there are like 5gb with nothing in the harddrive and I want to merge it to the linux partition, can anyone tell me how to do this? maybe with fdisk, partition magic or something? Thanks.

-Luis R.
 
Old 07-21-2004, 03:15 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Depends on the filesystem you chose ...

But another thing you could do is to move
/usr, for example, to the free partition. Less
risk, less hassle, more room for Linux :)


Cheers,
Tink
 
Old 07-21-2004, 03:19 PM   #3
lramos85
Member
 
Registered: Sep 2003
Location: Riverside, Ca
Distribution: Gentoo, FC3
Posts: 125

Original Poster
Rep: Reputation: 15
File system would be ext3 and would 5gb be enough for /usr?
 
Old 07-21-2004, 04:21 PM   #4
RobertP
Member
 
Registered: Jan 2004
Location: Manitoba, Canada
Distribution: Debian
Posts: 454

Rep: Reputation: 32
List your /etc/fstab and freespace
cat /etc/fstab
df
du -h /
That will show your utilization.
If you only need access to that freespace and /usr has plenty of room now, I would not move it.

You can create a Linux partition in the freespace with
parted, Partition Magic, fdisk, or cfdisk

Suppose the partition is /dev/hdxy

mkfs.ext3 /dev/hdxy
mkdir /home/myuser/newdir
mount /dev/hdxy /home/myuser/newdir

will make the new partition appear as a directory in /home/myuser

You can have this mount done automagically at boot by adding
/dev/hdxy /home/myuser/newdir ext3 auto 0 0
in /etc/fstab

df and mount should show your new space
You may have to set the appropriate permission, choose a different mount point or whatever suits you.

ext3 works. I have recently tried jfs instead and it works better, IMHO. I get better speed with jfs.
 
Old 07-21-2004, 04:21 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
MY /usr is way smaller, but ymmv :}


just do a
du -ks /usr


Cheers,
Tink
 
Old 07-22-2004, 03:24 PM   #6
lramos85
Member
 
Registered: Sep 2003
Location: Riverside, Ca
Distribution: Gentoo, FC3
Posts: 125

Original Poster
Rep: Reputation: 15
Thanks, I guess I'm going to have to do that and use that partition seperate, that is good too, well does anyone know if its possible though to merge two partitions together?
 
Old 07-22-2004, 03:29 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
parted can handle quite a few file-systems, what you're
actually doing is not merging, but resizing an existing
partition into empty space, isn't it? But then again, parted
can't resize if the first cylinder of the partition would be
moves ...

PQMagic can handle extX as well, arconis can even
resize Reiser.



Cheers,
Tink
 
  


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
Removing two Windows partitions under SuSE 9.2 and merging them with Linx partition. crozewski Linux - General 4 04-16-2005 11:57 AM
Merging Interfaces MBH Linux - Networking 1 02-12-2005 08:08 PM
Splitting then Merging Pres Linux - General 2 03-01-2004 10:03 AM
merging partitions question (RH9) LooseCanon Linux - General 2 10-02-2003 03:45 PM
Merging partitions Chrissi Linux - General 7 06-08-2003 09:36 PM


All times are GMT -5. The time now is 09: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