Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 08-14-2007, 07:46 AM   #1
LQ Newbie
Registered: Aug 2007
Posts: 2

Rep: Reputation: 0
change disk size after dd

i recently copied the content of a 4gb solid state ide disk to a regular (2.5'') disk that is 40gb large.
i used the dd command. it worked nearly perfect, except that the system does not recognize the new disk size. i used fdisk to enlarge the last partition. fdisk shows me that the last partition used all available space.
but 'df' still shows the 4gb!? i tried fsck in hope it would find the inconsistency, but it didn't.

what do i have to do, that the system ('df' in the first place) also gets aware of the new disk size?

thanks for the help.
Old 08-14-2007, 08:08 AM   #2
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613
Not use dd to do the copy. Try 'cp' (from a live CD, ie, not while the source drive is mounted).
Old 08-14-2007, 09:16 AM   #3
Registered: Nov 2005
Distribution: xubuntu, grml
Posts: 451

Rep: Reputation: 37
maybe parted could fix this? Try gparted or qtparted which can be found (probably in your packagemanger) but also in the livecd:
Old 08-14-2007, 11:00 AM   #4
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
You need to enlarge the filesystem. At present, you only have a 4GB filesystem, so there is no inconsistency for fsck to find.
Old 08-14-2007, 09:17 PM   #5
Senior Member
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 59
Just in case the OP doesn't understand.... The partition has been enlarged ok but, the filesystem inside that partition hasn't been enlarged yet.
I do run the fsck before enlarging the file system.
For example:

e2fsck -f /dev/hdb2
resize2fs -f /dev/hdb2
Old 08-16-2007, 03:50 AM   #6
LQ Newbie
Registered: Aug 2007
Posts: 2

Original Poster
Rep: Reputation: 0

Thanks for your answers.
It worked. The resize2fs did it.


filesystem, fsck, partition, resize2fs

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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do i change the size of a xterm window or lanch one with a specified size? Garavix Linux - Newbie 2 04-20-2006 09:06 PM
Why should you give the size of the swap disk as twice the size of RAM vmniza Linux - Newbie 3 09-17-2004 02:13 AM
Change QT text size drigz Linux - Software 0 08-05-2004 03:28 PM
VI:how do you change tab size? gtanghookup Programming 4 09-26-2003 05:23 PM
Change the size of /home? srichter Linux - Software 5 05-30-2003 12:15 PM > Forums > Linux Forums > Linux - General

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

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