LinuxQuestions.org
Register a domain and help support LQ
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 09-29-2009, 08:37 PM   #1
sergiuh
LQ Newbie
 
Registered: Sep 2009
Posts: 2

Rep: Reputation: 0
HDD not showing correct size in Debian Lenny


After a HDD failure I upgraded with a new one bigger in size. I used Norton Ghost 8.0 (I'm new to Linux) to clone the HDD to the new one, sector by sector type of cloning, nothing else worked.
After booting the system from the new HDD I tried to resize the home partition to use the whole HDD using QTParted but it wont work, but finally worked with cfdisk.
Now if I use cfdisk or fdisk I see the correct size HDD but Konqueror does not recognize the whole HDD just the old size of the partition and I got at one point the message that the disk is full.

Any ideas please?

The fdisk -l output is:

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xd56c44d1

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 851 6835626 83 Linux
/dev/sdb2 852 121601 969924375 f W95 Ext'd (LBA)
/dev/sdb5 852 1181 2650693+ 82 Linux swap / Solaris
/dev/sdb6 1182 121601 967273618+ 83 Linux

The df -h output is:

Filesystem Size Used Avail Use% Mounted on
/dev/sdb1 6.5G 5.0G 1.2G 81% /
tmpfs 2.0G 0 2.0G 0% /lib/init/rw
udev 10M 168K 9.9M 2% /dev
tmpfs 2.0G 0 2.0G 0% /dev/shm
shmfs 2.0G 12K 2.0G 1% /lib/init/rw/splashy
/dev/sdb6 65G 38G 24G 62% /home
/dev/sda5 204G 181G 23G 90% /mnt/Data


cfdisk output:

sdb1 Boot Primary Linux ext3 6999.72
sdb5 Logical Linux swap / Solaris 2714.35
sdb6 Logical Linux ext3 990488.22
 
Old 09-29-2009, 08:42 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
You may need this http://linux.die.net/man/8/resize2fs.
A partition is just raw disk space, you need to create (new disk) or extend (in your case most likely) the actual filesystem eg ext3 to use the whole partition.
I'd be wary of cloning a dead disk though, you'll have picked up any errors as well. Any chance you've got a clean backup?
 
Old 09-30-2009, 03:18 PM   #3
sergiuh
LQ Newbie
 
Registered: Sep 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Got it.

resize2fs worked flawless

Thank you very much.
 
  


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
Free space not showing correct after increasing root partition size with GParted. avanindra Linux - Newbie 3 08-06-2009 08:49 AM
HD not showing up as correct size, please help!! chriserickson Linux - Hardware 6 09-23-2005 02:04 PM
FC4 HDD showing wrong size h00ty Fedora - Installation 5 08-20-2005 12:10 PM
Hard disk not showing correct size rwalkerphl Linux - Newbie 8 08-19-2004 03:58 PM
Does BIOS really need to recognize correct HDD size? ikletti Linux - Hardware 1 09-24-2003 06:13 PM


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