How do I partition my hard drive in Linpus?

Discussion in 'Modding and Customization' started by Catch22, May 31, 2009.

  1. Catch22

    Catch22

    Joined:
    May 28, 2009
    Messages:
    8
    Likes Received:
    0
    I have GParted on a usb stick and can create the partitions in much the same way as I use Partition Magic in Windows.

    So I now have 2 aprtitions.

    1) Linpus OS
    2) Swap file
    3) Storage done as either ext2 or ext3 formats as a primary partition.

    The problem is that the new partition isnt visible within Linpus and I don't know how to make it visible.

    Can some kind person point me in the right direction please?

    Cheers,

    Catch22.
     
    Catch22, May 31, 2009
    #1
  2. Catch22

    RockDoctor

    Joined:
    Aug 21, 2008
    Messages:
    963
    Likes Received:
    0
    Location:
    Minnesota, USA
    Just like with Windows, the partition you created must first be formatted, then it must be mounted. It's not clear from what you wrote if you currently have two or three partitions on your internal drive. Commands you type will be shown in bold.

    I. Create the third partition, if you haven't already done so.

    II. Partition Verification Formatting:
    1. Open a terminal window
    2. sudo fdisk /dev/sda
    3. p /dev/sda1 should be your Linpus partition, /dev/sda2 should be your swap partition, and /dev/sda3 should be the new partition you created with Gparted.
    4. q
    5. mkfs.ext2 /dev/sda3 This will format your new partition with an ext2 filesystem. mkfs.ext3 will give you an ext3 filesystem.
    6. Don't close the terminal window yet

    III. Mounting:
    7. sudo mousepad /etc/fstab
    8. Add the following line to the end of file, then save the file and exit mousepad:
    /dev/sda3 /mnt/storage ext2 defaults,noatime 1 2
    9. sudo mkdir /mnt/storage
    10. sudo mount -a
     
    RockDoctor, May 31, 2009
    #2
  3. Catch22

    Catch22

    Joined:
    May 28, 2009
    Messages:
    8
    Likes Received:
    0
    Thanks for that, I will be attempting it later tonight.

    I do indeed have the third partition as sda3, so the commands should work.

    Is there a good linux book that anyone can recommend?

    Cheers again,

    Catch22.
     
    Catch22, May 31, 2009
    #3
  4. Catch22

    Catch22

    Joined:
    May 28, 2009
    Messages:
    8
    Likes Received:
    0
    Just tried this and I have a small problem.

    When I get to running "sudo mount -a" I get the following message.

    [mntent]: warning: no final newline at the end of /etc/fstab

    Any idea?
     
    Catch22, May 31, 2009
    #4
  5. Catch22

    RockDoctor

    Joined:
    Aug 21, 2008
    Messages:
    963
    Likes Received:
    0
    Location:
    Minnesota, USA
    go back to editing that file, go to the end ofthe last line, and hit the <Enter> key, then save it
     
    RockDoctor, May 31, 2009
    #5
  6. Catch22

    Catch22

    Joined:
    May 28, 2009
    Messages:
    8
    Likes Received:
    0
    Just tried the above and it still doesn't show the drive or any storage files or folders when viewing My Files.

    Does the position of the swap file partition have any influence?
     
    Catch22, May 31, 2009
    #6
  7. Catch22

    Catch22

    Joined:
    May 28, 2009
    Messages:
    8
    Likes Received:
    0
    Had another go at running the commands and when I get to formatting the partition is says that it cannot do this as the partition IS mounted. if it is mounted, how do I get to see it? I'm using the original desktop.
     
    Catch22, May 31, 2009
    #7
  8. Catch22

    RockDoctor

    Joined:
    Aug 21, 2008
    Messages:
    963
    Likes Received:
    0
    Location:
    Minnesota, USA
    It should show up in the File Manager (possibly in /mnt). Also the mount command in a terminal will show what's mounted and where. It should give you something like the line below (taken from my desktop system):
    It shows the device (dev/sda5), the mountpoint (/mnt/Jaunty), the filesystem type (ext3), and the readwrite flags (rw).
     
    RockDoctor, Jun 1, 2009
    #8
  9. Catch22

    Catch22

    Joined:
    May 28, 2009
    Messages:
    8
    Likes Received:
    0
    Tried the mount command and I get this

    /dev/sda3 on /mnt/storage type ext3 (rw,noatime)

    Should I see this as a drive the same as where it says My Disk or not?

    When I look at /mnt/storage all I see are the same files as what I see under MyDisk///

    How do I physically place files and folders into "storage" so that I use this partition?

    Is there any way of viewing the size of the partition in my files or are we talikng about access from terninal only?

    I'm off today so will be buying a linux book.
     
    Catch22, Jun 1, 2009
    #9
  10. Catch22

    RockDoctor

    Joined:
    Aug 21, 2008
    Messages:
    963
    Likes Received:
    0
    Location:
    Minnesota, USA
    It looks like /mnt/storage and MyDisk/// point to the same place. I suppose you could copy a file to /mnt/storage (you can drag and drop it using the fiile manager) and see if it shows up under MyDisk///

    I think we may be looking at one of the unique facets of Linpus (meaning it's definitely not the way most Linux distros do things)
     
    RockDoctor, Jun 1, 2009
    #10
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.