Find the answer to your Linux question:
Results 1 to 4 of 4
hello everyone i have two hard disks sda(80gb) and sdb(20gb) on sda9 i have ubuntu installed. i wanna add sdb(20gb) to my ubuntu OS as a partition. please tell me ...
  1. #1
    Linux User bilal_jan's Avatar
    Join Date
    Mar 2008
    Location
    Pakistan
    Posts
    281

    adding more space to ubuntu

    hello everyone
    i have two hard disks sda(80gb) and sdb(20gb) on sda9 i have ubuntu installed. i wanna add sdb(20gb) to my ubuntu OS as a partition. please tell me what steps to follow to add this (sdb) space to ubuntu.
    my fdisk -l output is
    abj@abj:~$ sudo fdisk -l
    [sudo] password for abj:

    Disk /dev/sda: 80.0 GB, 80026361856 bytes
    255 heads, 63 sectors/track, 9729 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0xfd53fd53

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 1275 10241406 7 HPFS/NTFS
    /dev/sda2 1276 9111 62942670 f W95 Ext'd (LBA)
    /dev/sda5 1276 4080 22531131 7 HPFS/NTFS
    /dev/sda6 4081 6885 22531131 b W95 FAT32
    /dev/sda7 6886 8198 10546641 b W95 FAT32
    /dev/sda8 8199 8260 497983+ 82 Linux swap / Solaris
    /dev/sda9 8261 9111 6835626 83 Linux

    Disk /dev/sdb: 20.4 GB, 20416757760 bytes
    16 heads, 63 sectors/track, 39560 cylinders
    Units = cylinders of 1008 * 512 = 516096 bytes
    Disk identifier: 0x1bf31bf2

    Device Boot Start End Blocks Id System
    /dev/sdb1 * 1 19302 9728176+ 7 HPFS/NTFS
    /dev/sdb2 19303 39560 10209970 f W95 Ext'd (LBA)
    /dev/sdb5 33318 39560 3146440+ 7 HPFS/NTFS
    Linux is basically a simple operating system, but you have to be a genious to understand the simplicaity - Dennis Ritchie

  2. #2
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,099
    You must have free (unallocated) space on either side of the partition that you want to expand. If you don't have any free space, you'll need to either shrink one or both of the partitions adjacent to the one you want to expand, or you'll have to do some partition restructuring/moving so that you have free space available. You can use the PartedMagic LiveCD to easily handle all those chores and more.

    Don't forget that if you create any new partitions or delete any, you'll need to edit your grub configuration (grub.conf, grub.cfg, or menu.lst) file and your fstab file accordingly.
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  3. #3
    Just Joined!
    Join Date
    Jan 2010
    Posts
    2
    Quote Originally Posted by bilal_jan View Post
    hello everyone
    i have two hard disks sda(80gb) and sdb(20gb) on sda9 i have ubuntu installed. i wanna add sdb(20gb) to my ubuntu OS as a partition. please tell me what steps to follow to add this (sdb) space to ubuntu.
    my fdisk -l output is
    I would download gparted it will help you out with that

  4. #4
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,145
    You could also use sdb as /home if you do not already have a separate partition for that or add it as /var/log,,,,whatever you need the space for...you could just format it and then add it to /etc/fstab as a spare data storage. The choice is up to you.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

Posting Permissions

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