Find the answer to your Linux question:
Results 1 to 5 of 5
Hi. I'm a total linux noob. Just installed Ubuntu 11.10 desktop 64bit. I have two physical HDDs, C and D (I know in linux you dont call them like that) ...
  1. #1
    Just Joined!
    Join Date
    Jan 2012
    Posts
    5

    Total newbie question

    Hi.

    I'm a total linux noob. Just installed Ubuntu 11.10 desktop 64bit.
    I have two physical HDDs, C and D (I know in linux you dont call them like that)

    What I did during the installation is:
    C: 1GB /boot
    900GB /home
    (rest of C: - about 100 gb) /

    D: 4GB Swap
    500GB unformatted space

    The question is can use the unformatted 500gb space on physical drive D: become /home/myuser/torrent
    This is a little bit confusing for me because /home is part of
    physical drive C: ,and what I want is that /home/myuser/torrent will be part of physical disk D: .

    Thank you.

  2. #2
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,298
    Yes, you can mount your partitions how you want.

    If you post the output of the command
    Code:
    sudo fdisk -l
    I can be a bit more specific. That's a small L after the dash
    If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)


    My new blog. It's probably not as good as I think it is.

  3. #3
    Just Joined!
    Join Date
    Jan 2012
    Posts
    5
    Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
    255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 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: 0xcc40c505

    Device Boot Start End Blocks Id System
    /dev/sda1 * 2048 1953791 975872 83 Linux
    /dev/sda2 1953792 1759766527 878906368 83 Linux
    /dev/sda3 1759766528 1953523711 96878592 83 Linux

    Disk /dev/sdb: 500.1 GB, 500107862016 bytes
    88 heads, 49 sectors/track, 226524 cylinders, total 976773168 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: 0x0003d6c4

    Device Boot Start End Blocks Id System
    /dev/sdb1 2048 7813119 3905536 82 Linux swap / Solaris

  4. #4
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,298
    The first thing to do is create and format your partition. I would recommend using gparted as it is a fairly simple graphical tool. You may need to install it under Ubuntu. If you do need to install it then the command
    Code:
    sudo apt-get install gparted
    should do the trick or, you can use the Ubuntu graphical installer.

    Once you have created your partition, right click it in gparted and select information and copy the uuid which will look something like
    Code:
    8b545e24-80b2-461c-a8f2-4d211a2ce0be
    Create the torrents directory in your home directory and then you need to edit your file system table to mount the partition when you reboot. This is not as scary as it sounds as it only involves editing a text file as root. I'm unsure what terminal editor Ubuntu uses, so press Alt + F2 and enter
    Code:
    gksu gedit
    and open the file /etc/fstab.

    Assuming that you formatted to ext4, add a line to the end of the file that looks like
    Code:
    UUID=YOUR UUID HERE /home/myuser/torrent           ext4    defaults        0       0
    otherwise adjust the bit where it says ext4 appropriately. You should see your other partitions in here already.

    Save the file and finally from the terminal run the command
    Code:
    sudo mount -a
    Hopefully it goes without saying that messing with partitions and fstab can seriously bork your system if it goes wrong; so make sure you have a backup of any data you couldn't stand to lose.

    <highhorse>I hope you are only going to torrent legal stuff</highhorse>
    If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)


    My new blog. It's probably not as good as I think it is.

  5. #5
    Just Joined!
    Join Date
    Jan 2012
    Posts
    5
    It is WORKING !
    Thank You !!!

Posting Permissions

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