Results 1 to 4 of 4

Thread: Very odd HDD problem

  1. #1
    Join Date
    Oct 2008
    Location
    /dev/my_house
    Beans
    214
    Distro
    Ubuntu 10.04 Lucid Lynx

    Exclamation Very odd HDD problem

    Hello all!

    I am asking about a very odd problem with my hard disk. Let me explain my situation:

    (1) 160 GB SATA drive -- home of Linux, /dev/sdb
    (2) 80 GB IDE drive -- Home of Window$, /dev/sda

    I am not concerned about naming, but that the (1) drive only holds 14.9 GB.

    The way I installed Ubuntu:
    NOTE: Booting from my FlashDisk (/dev/sdc)
    1.
    Code:
    sudo  dd if=/dev/sdc1 of=/dev/sdb1
    2.
    Code:
    sudo grub-install /dev/sdb
    3. Reboot...
    Then, fdisk reports this:
    Code:
    Disk /dev/sdb: 160.0 GB, 160000000000 bytes
    255 heads, 63 sectors/track, 19452 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x000b1f35
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1               1       18931   152054784   83  Linux
    /dev/sdb2           18931       19453     4193280    5  Extended
    /dev/sdb5           18931       19453     4192256   82  Linux swap / Solaris
    But, BAOBAB says that it is only 14.9 GB.
    GPARTED says that the disk is the right size, but only has 9 GB free, but that's impossible, because it came from a 16 GB Flash BootDisk.\

    Any help is greatly appreciated.
    Last edited by fslezak; September 24th, 2011 at 03:44 AM.

  2. #2
    Join Date
    Dec 2004
    Location
    Atlanta, GA USA
    Beans
    7,257
    Distro
    Ubuntu Development Release

    Re: Very odd HDD problem

    It may have come from a 16gb flash drive, but ubuntu only takes up around 4gb.

  3. #3
    Join Date
    Mar 2010
    Location
    Woonsocket, RI USA
    Beans
    3,195

    Re: Very odd HDD problem

    The dd copy method copied the filesystem directly, including its filesystem size data. Thus, you've got a tiny filesystem rattling around in a much larger partition. If it's ext2/3/4fs, the solution is fairly easy:

    Code:
    sudo resize2fs /dev/sdb1
    Similar resizing operations are possible with other filesystems, but details of how to do it differ. Post back with the information on what filesystem type you're using if you need help.
    If I've suggested a solution to a problem and you're not the original poster, do not try my solution! Problems can seem similar but be different, and a good solution to one problem can make another worse. Post a new thread with your problem details.

  4. #4
    Join Date
    Oct 2008
    Location
    /dev/my_house
    Beans
    214
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Very odd HDD problem

    THANK YOU!!!

    It was an EXT4. All is well now. I thank all at the Forums for their help, especially srs5694.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •