LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices



Reply
 
Search this Thread
Old 12-05-2005, 11:07 AM   #1
dguse
LQ Newbie
 
Registered: Jun 2005
Location: Palm Harbor, FL
Distribution: RedHat AS 3
Posts: 4

Rep: Reputation: 0
Resized root partition not showing new size


I tried to look through other threads for an answer to this so I appologize if this has been answered before. I ran out of space on the root partition (1.9gig) and since my /home partition (7.5gig) was basically unused, I decided to swap the two. I first backed up (dump) both and then reformated the /home partition. I then restored the root to the pristine partition and labeled the old root volume to mnt and relabeled the new partition to /. After rebooting the computer and checking the / partition df still reports that it is 1.9 gig. I swapped the two partitions back and rebooted and mounted the new partition as /mnt and df reports that it is 7.5 gig. Huh?? what am I doing wrong.....

Thanks,
Darren
 
Old 12-06-2005, 04:54 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,491

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
Sounds like you used dd to backup (and restore). That is a byte-level copy - the defined filesystem remains the same regardless of partition size.
Better to use tar (or derivative) or cp -a /... /... say.

Anyway, you should be able to safely resize the filesystem after the restore using the appropriate tool for your filesystem.
You have a backup if it all goes to hell ...
 
Old 12-06-2005, 08:40 AM   #3
dguse
LQ Newbie
 
Registered: Jun 2005
Location: Palm Harbor, FL
Distribution: RedHat AS 3
Posts: 4

Original Poster
Rep: Reputation: 0
Still not working

I tried using cp (after re formating the partition) to copy / onto the new partition, but after rebooting on the new / partition, it still reports 100% full. But if I mount the old / partition and relabel the new partition to /mnt and remount, it shows 26% full. -still containing all the files and directories from the / partition.
 
Old 12-06-2005, 08:45 AM   #4
dguse
LQ Newbie
 
Registered: Jun 2005
Location: Palm Harbor, FL
Distribution: RedHat AS 3
Posts: 4

Original Poster
Rep: Reputation: 0
Here are the df's from both scenarios, the first is with the new 7.5 gig partition loaded as / with 1.9 gig of data, it has the old / mounted as /mnt and shows that it is still 100% full. The second df is with the original / loaded with the new partition mounted and /mnt....

The first...

[root@lvtlard07 /]# df -ah
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 1.9G 1.9G 0 100% /
none 0 0 0 - /proc
none 0 0 0 - /sys
none 0 0 0 - /dev/pts
usbfs 0 0 0 - /proc/bus/usb
/dev/sda3 407M 26M 360M 7% /boot
none 3.0G 0 3.0G 0% /dev/shm
/dev/sda6 4.0G 107M 3.7G 3% /tmp
/dev/sda5 11G 3.0G 6.8G 31% /usr
/dev/sda12 496M 127M 344M 27% /var
/dev/sdb1 269G 11G 245G 5% /data
none 0 0 0 - /proc/sys/fs/binfmt_misc
/dev/sda11 1.9G 1.9G 0 100% /mnt

and the second.....

[root@lvtlard07 ~]# df -ah
Filesystem Size Used Avail Use% Mounted on
/dev/sda11 1.9G 1.9G 0 100% /
none 0 0 0 - /proc
none 0 0 0 - /sys
none 0 0 0 - /dev/pts
usbfs 0 0 0 - /proc/bus/usb
/dev/sda3 407M 26M 360M 7% /boot
none 3.0G 0 3.0G 0% /dev/shm
/dev/sda6 4.0G 107M 3.7G 3% /tmp
/dev/sda5 11G 3.0G 6.8G 31% /usr
/dev/sda12 496M 127M 344M 27% /var
/dev/sdb1 269G 11G 245G 5% /data
none 0 0 0 - /proc/sys/fs/binfmt_misc
/dev/sda2 7.1G 1.9G 4.9G 29% /mnt
 
  


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
root partition size riemann_noodles Linux - Newbie 5 02-14-2005 07:50 AM
HELP resized partition and lost all data wolfbeast2 Linux - Newbie 15 08-14-2004 08:05 PM
Total partition size - User partition size is not equals to Free partition size navaneethanj Linux - General 5 06-14-2004 01:55 PM
disk druid refuses to acknowlege my resized partition overhols Red Hat 7 02-17-2004 08:17 AM
Slightly OT : Restoring Drive Image to Resized Partition dlocalized Linux - Newbie 10 11-28-2003 03:36 PM


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

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