LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 02-25-2005, 04:15 AM   #1
lothario
Member
 
Registered: Apr 2004
Posts: 340

Rep: Reputation: 30
How do I increase the size of a Reiserfs?


Consider this:

Quote:
root:# df -H
Filesystem Size Used Avail Use% Mounted on
/dev/hde3 2.4G 2.0G 433M 82% /

root:# fdisk /dev/hde

Command (m for help): p
Disk /dev/hde: 27.3 GB, 27373731840 bytes
16 heads, 63 sectors/track, 53040 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device Boot Start End Blocks Id System
/dev/hde1 1 1939 977224+ 82 Linux swap
/dev/hde3 48444 53040 2316888 83 Linux
hde3 is actually a Reiserfs file system
hde3 is about 2.4G in size currently
hde3 is at the end of the hde disk
hde disk is 27.3G

As you can see there is plenty of space between hde1 and hde3.

I would like hde3 to be 10G in size
How can I do this?

Thanks.
 
Old 02-25-2005, 04:55 AM   #2
prj
Member
 
Registered: Aug 2003
Location: South Wales
Distribution: Kubuntu, Ubuntu server, SuSE 11, Knoppix, Puppy, Myth. Oh alright then, all of them
Posts: 177

Rep: Reputation: 30
Simplest way without the hassle of actually resizing a partition is to create say "hde2" with the space and then mount it from a directory on hde3 or anywhere else you need it.
This would assume you dont need all 10GB for one file.

Somebody will probably have an easier way to actually resize.
 
Old 02-25-2005, 06:46 AM   #3
Sepero
Member
 
Registered: Jul 2004
Location: Tampa, Florida, USA
Distribution: Ubuntu
Posts: 734
Blog Entries: 1

Rep: Reputation: 31
It is Impossible to enlarge it without free space after. The reason is because there are no tools in existance to move the front-end of a ReiserFS (or ext2, or ext3 for that matter).

What you must do to enlarge it is this:
1. Create a new partition in the middle (hde2?)
2. Copy the entire partition over

There has to be Free Space after the partition for you to be able to enlarge it.
 
Old 02-25-2005, 11:47 AM   #4
lothario
Member
 
Registered: Apr 2004
Posts: 340

Original Poster
Rep: Reputation: 30
ok, if I create a new Reiserfs partition in hde2 -
How do I move everything over from hde3?
What tools can move this?

And then when I reboot the system,
will anything complain about not being in hde3 any more?
 
Old 02-25-2005, 07:10 PM   #5
Sepero
Member
 
Registered: Jul 2004
Location: Tampa, Florida, USA
Distribution: Ubuntu
Posts: 734
Blog Entries: 1

Rep: Reputation: 31
To copy everything, I would do this:
1. Create the new partition of the size I wanted on hde2
2. Create the filesystem on hde2
mkfs.reiserfs /dev/hde2
3. Mount the new filesystem
mount /dev/hde2 /mnt/<new_fs>
4. Use the command `cp -aR` to copy over all files
cp -aR /<old_fs> /mnt<new_fs>

Will it complain? Most likely yes.

To stop it from complaining, you will need to correct your bootloader(grub?) and /etc/fstab file.
 
Old 02-27-2005, 03:01 AM   #6
lothario
Member
 
Registered: Apr 2004
Posts: 340

Original Poster
Rep: Reputation: 30
Thanks. That helped.
 
Old 02-27-2005, 08:07 PM   #7
Sepero
Member
 
Registered: Jul 2004
Location: Tampa, Florida, USA
Distribution: Ubuntu
Posts: 734
Blog Entries: 1

Rep: Reputation: 31
Glad I could help. Unfortunately, there appears to be very few people with partitioning knowledge on this forum.

(Either that, or they aren't very good at relaying the knowledge to others.)
 
  


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
increase harddisk size.... yenonn Linux - General 1 10-14-2005 09:57 AM
fond size increase. bruse Linux - Newbie 1 07-11-2005 08:27 AM
How do I increase the size of fonts in X gianh Linux - Newbie 2 03-08-2004 09:02 PM
increase point size size when printing PDF files newlin Red Hat 0 09-27-2003 07:13 AM
How to increase /usr size anilkumarby Linux - General 4 04-09-2001 12:34 AM


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