LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   hard drive size problem (https://www.linuxquestions.org/questions/linux-newbie-8/hard-drive-size-problem-527569/)

boast 02-11-2007 11:24 AM

hard drive size problem
 
I had debian on a 10gb hard drive. I swapped it for a 20gb hard drive, and used ghost4linux to restore it. But I guess I need to do something to let debian know theres more space?

Code:

orangegum:~# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda1            8.8G  3.3G  5.1G  40% /
tmpfs                252M    0  252M  0% /lib/init/rw
tmpfs                252M    0  252M  0% /dev/shm


Code:

orangegum:~# fdisk -l /dev/hda

Disk /dev/hda: 20.0 GB, 20020396032 bytes
255 heads, 63 sectors/track, 2434 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/hda1  *          1        2330    18715693+  83  Linux
/dev/hda2            2331        2434      835380    5  Extended
/dev/hda5            2331        2434      835348+  82  Linux swap / Solaris


pixellany 02-11-2007 11:48 AM

Hmmm...did you ghost a partition, or the whole drive?

I had thought that ghosting a 10GB partition (or disk) would only fill 10GB on the target drive, but I do not know how ghost4linux works.

Maybe you can boot up from a live CD and use dd to just ghost the mbr and the partition

boast 02-11-2007 11:54 AM

Quote:

Originally Posted by pixellany
Hmmm...did you ghost a partition, or the whole drive?

only hda1 .

pixellany 02-11-2007 12:01 PM

Then how did the extended and swap partitions get there??

boast 02-11-2007 12:13 PM

reinstalled debian first.

boast 02-12-2007 01:55 PM

Ttt .


All times are GMT -5. The time now is 08:34 AM.