Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12
Hi guys,, could some one help me figure out, how can i create a partion /home. Is tht done using Gparted??...
  1. #1
    Just Joined!
    Join Date
    Dec 2006
    Posts
    53
    Hi guys,,
    could some one help me figure out, how can i create a partion /home. Is tht done using Gparted??

  2. #2
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    You can use gparted, qtparted or fdisk to manage partitons. You create a new partition with any of those tools and then add an entry for it in /etc/fstab. If you use fdisk, format the partition to a type you want using mkfs before making an entry in /etc/fstab. Are you already running Linux?

  3. #3
    Just Joined!
    Join Date
    Dec 2006
    Posts
    53
    Quote Originally Posted by daark.child
    You can use gparted, qtparted or fdisk to manage partitons. You create a new partition with any of those tools and then add an entry for it in /etc/fstab. If you use fdisk, format the partition to a type you want using mkfs before making an entry in /etc/fstab. Are you already running Linux?
    yeah i was on linux, but my ultimate goal was to have different partitions for / and home, and i am trying that using gparted, now i want to figure out which option in gpartel helps me to create / and home separately,

    can v create partitions for home and / , while we are working on linux????

  4. #4
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    Quote Originally Posted by RIZ618
    yeah i was on linux, but my ultimate goal was to have different partitions for / and home, and i am trying that using gparted, now i want to figure out which option in gpartel helps me to create / and home separately,

    can v create partitions for home and / , while we are working on linux????
    You need to make two separate partitions and then label one as / and the other as /home in your /etc/fstab. If you were creating these filesystems during install time, then the installer would automatically add the entries for your disks into /etc/fstab.

  5. #5
    Just Joined!
    Join Date
    Dec 2006
    Posts
    53
    Quote Originally Posted by daark.child
    You need to make two separate partitions and then label one as / and the other as /home in your /etc/fstab. If you were creating these filesystems during install time, then the installer would automatically add the entries for your disks into /etc/fstab.
    I have created three ext3 partitons and one swap partition for 1GB, Now u mean
    inorder to make a partition /home i need to make changes in /etc/fstab right.

    Could you plese tell me how to open /etc/fstab and how to make changes.....

  6. #6
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    Take a look here for info about the /etc/fstab and how to create entries.

  7. #7
    Just Joined!
    Join Date
    Dec 2006
    Posts
    53
    Quote Originally Posted by daark.child
    Take a look here for info about the /etc/fstab and how to create entries.
    # /etc/fstab: static file system information.
    #
    # <file system> <mount point> <type> <options> <dump> <pass>
    proc /proc proc defaults 0 0
    # /dev/sda8
    / ext3 defaults,errors=remount-ro 0 1
    # /dev/sda1
    /media/sda1 vfat defaults,utf8,umask=007,gid=46 0 1
    # /dev/sda2
    /media/sda2 ntfs defaults,nls=utf8,umask=007,gid=46 0 1
    # /dev/sda5
    /media/sda5 ext3 defaults 0 2
    # /dev/sda6
    /media/sda6 ext3 defaults 0 2
    # /dev/sda7
    none swap sw 0 0
    /dev/scd1 /media/cdrom0 udf,iso9660 user,noauto 0 0
    /dev/scd0 /media/cdrom1 udf,iso9660 user,noauto 0 0
    ~


    This is what i get from /etc/fstab
    how do i know which one of them is a CD rom and flopy drive.
    more over how do i save changes in /etc/fstab file.
    Thanks

  8. #8
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    Its a bit obvious isn't it? For cdrom entries take a look at
    Code:
    /dev/scd1 /media/cdrom0 udf,iso9660 user,noauto 0 0
    /dev/scd0 /media/cdrom1 udf,iso9660 user,noauto 0 0
    There isn't an entry for a floppy in the /etc/fstb you posted. Such entries tend to look like
    Code:
    /dev/fd0     /mnt/floppy     auto    noauto    0 0
    As for how to make changes to /etc/fstab, you simply edit the file with your favourite text editor and save the changes.

  9. #9
    Just Joined!
    Join Date
    Dec 2006
    Posts
    53
    Quote Originally Posted by daark.child
    Its a bit obvious isn't it? For cdrom entries take a look at
    Code:
    /dev/scd1 /media/cdrom0 udf,iso9660 user,noauto 0 0
    /dev/scd0 /media/cdrom1 udf,iso9660 user,noauto 0 0
    There isn't an entry for a floppy in the /etc/fstb you posted. Such entries tend to look like
    Code:
    /dev/fd0     /mnt/floppy     auto    noauto    0 0
    As for how to make changes to /etc/fstab, you simply edit the file with your favourite text editor and save the changes.
    Yeah i figured tht out,, i just dint c it by chance,, anyways thanks,,
    Now looking at it, if i want to create /dev/sda5 as /home then could u tell me how are you going to mount it. So tht all my work is saved in home directory.

  10. #10
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    Quote Originally Posted by RIZ618
    Yeah i figured tht out,, i just dint c it by chance,, anyways thanks,,
    Now looking at it, if i want to create /dev/sda5 as /home then could u tell me how are you going to mount it. So tht all my work is saved in home directory.
    You could put the line below in /etc/fstab
    Code:
    /dev/sda5    /home    ext3     defaults    0 0

Page 1 of 2 1 2 LastLast

Posting Permissions

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