Find the answer to your Linux question:
Results 1 to 10 of 10
Hello Guys, I was wondering if anyone can guide as to how to increase the size of the / partition. this is the output of my df -h Code: Filesystem ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2008
    Posts
    12

    Increase / partition fedora 14


    Hello Guys,

    I was wondering if anyone can guide as to how to increase the size of the / partition.

    this is the output of my df -h
    Code:
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/sda1              19G   12G  6.3G  66% /
    tmpfs                1002M   11M  992M   1% /dev/shm
    This is the output of my fdisk -l

    Code:
    Disk /dev/sda: 80.0 GB, 80026361856 bytes
    255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x000d38eb
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *        2048    38914047    19456000   83  Linux
    /dev/sda2        38914048    47452159     4269056    5  Extended
    /dev/sda3        47452160    78169727    15358784    7  HPFS/NTFS
    /dev/sda4        78169728   156292863    39061568    7  HPFS/NTFS
    /dev/sda5        38918144    47437823     4259840   82  Linux swap / Solaris
    
    Disk /dev/sdb: 500.1 GB, 500106780160 bytes
    255 heads, 63 sectors/track, 60801 cylinders, total 976771055 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x354c354b
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1   *          63   102398309    51199123+   7  HPFS/NTFS
    /dev/sdb2       102398310   976768064   437184877+   f  W95 Ext'd (LBA)
    /dev/sdb5       102398373   416967074   157284351    7  HPFS/NTFS
    /dev/sdb6       416967138   626679584   104856223+   7  HPFS/NTFS
    /dev/sdb7       626679648   668625299    20972826    7  HPFS/NTFS
    /dev/sdb8       668625363   773481554    52428096    7  HPFS/NTFS
    /dev/sdb9       773481618   814447304    20482843+   7  HPFS/NTFS
    /dev/sdb10      814447368   976768064    81160348+   7  HPFS/NTFS
    I would be very grateful if someone could help me out with this.

    Thanking You

    Regards

  2. #2
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    3,113
    You don't really have any way to do that without some major revisions to your partitioning scheme. The only space you have is the Extended partition (sda2) which contains your swap (sda5) which isn't going to give you much.

    Anything else would involve deleting or shrinking your ntfs partitions (sda3-4) which could cause problems so if you do that, be sure to backup any data first.

  3. #3
    Just Joined!
    Join Date
    Sep 2008
    Posts
    12
    I m ready to format one of mine NTFS partition. Can you plz tell me how to allocate that unpartitioned space to the / partition.

  4. #4
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    3,113
    Why do you want to increase the size of the root partition?
    19GB should be enough for the root filesystem. If you just want more space for data you could re-format one of your ntfs partitions to a Linux format and create a data partition. That way it would not matter which ntfs partition you use.
    If you have data on sda3 or sda4 that you want to keep, back it up somewhere before formatting.

    I don't use Fedora so I don't know if you have GParted partition manager. You could check under the System tab on your Desktop, under Administration to see if it is there. If not you could download it from the repositories or download Parted Magic. Either will work to format.

  5. #5
    Just Joined!
    Join Date
    Sep 2008
    Posts
    12
    Yes , Thanks a lot. What I have done is I have formated my /dev/sda3 and made it vfat. But I am not able to auto mount it as the owner. after its mounted it says root is the owner of the partition. This is what I have done with my /etc/fstab

    Code:
    #
    # /etc/fstab
    # Created by anaconda on Thu Mar 10 05:24:50 2011
    #
    # Accessible filesystems, by reference, are maintained under '/dev/disk'
    # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
    #
    UUID=b7c8d20e-1753-4674-90b2-dc3ca1331c64        /                            ext4               defaults             1 1
    UUID=58d025cb-81ae-4c08-a6fb-7a9019253d37        swap                         swap               defaults             0 0
    UUID=7E8F-180A                                   /Stuffz                      vfat               rw,exec,user,utf8    0 0
    tmpfs                                            /dev/shm                     tmpfs              defaults             0 0
    devpts                                           /dev/pts                     devpts             gid=5,mode=620       0 0
    sysfs                                            /sys                         sysfs              defaults             0 0
    proc                                             /proc                        proc               defaults             0 0
    Kindly guide me as to how to take the ownership of that mounted drive.


    Thanking You

  6. #6
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    3,113
    after its mounted it says root is the owner of the partition.
    With the entry in fstab, it should be mounted on boot. If you want permissions as user you can change that. Open a terminal, log in as root and enter the command:

    chown -R user:users /Stuffz/

    Replace "user" with the actual user name you use. The "users" in the command is for the group "users". If you want something else, change it.

    To give the new user rwx permissions and group and other rx:

    chmod -R 755 /Stuffz/

  7. #7
    Just Joined!
    Join Date
    Sep 2008
    Posts
    12
    I tired what you said this is what I get.

    Code:
    [root@rubolzz grub]# chown -R Genocide_Hoax:users /Stuffz/
    chown: changing ownership of `/Stuffz/mounted': Operation not permitted
    chown: changing ownership of `/Stuffz/Windows_Vista': Operation not permitted
    chown: changing ownership of `/Stuffz/': Operation not permitted
    Do I have to make some changes to my /etc/fstab. Cause I have been tring this for a while now. chown isn't seem to be working in this case.

  8. #8
    Just Joined!
    Join Date
    Sep 2008
    Posts
    12
    [quote]
    With the entry in fstab, it should be mounted on boot
    [/qoute]

    I didnt understand this qoute of yours. Why shall it be mounted on boot its specified /Stuffz.

  9. #9
    Just Joined!
    Join Date
    Sep 2008
    Posts
    12
    Well I have successfully taken ownership of the mounted drive . All I had to do was add gid=500 and uid=500 in the fstab options.

    Thanks for your replies.

  10. #10
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    3,113
    Why shall it be mounted on boot its specified /Stuffz.
    I meant that it would be mounted when you boot the computer, not the /boot mount point.

    Glad you got it working.

Posting Permissions

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