Find the answer to your Linux question:
Results 1 to 7 of 7
Hello everyone, I'm new here and this is my first post. I'm not new to Linux but to be honest don't no much about it either. I have manage to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2008
    Posts
    4

    Fedore Core 6 Mount New Drive


    Hello everyone,
    I'm new here and this is my first post. I'm not new to Linux but to be honest don't no much about it either. I have manage to install Fedora Core 6, set up Web Server and FTP Server. I note that soon i'll run out of disk space on my hard drive, So I need to no how to mount a new hard drive and also use it as space for my FTP Server.

    [root@Ghetto ~]# df
    Filesystem 1K-blocks Used Available Use% Mounted on
    /dev/mapper/VolGroup00-LogVol00
    114172356 83068480 25210552 77% /
    /dev/hdc1 101086 10817 85050 12% /boot
    tmpfs 127612 0 127612 0% /dev/shm

    I'm using for my FTP Server VSFTPD.

    Thanks

  2. #2
    Linux Enthusiast
    Join Date
    Aug 2006
    Location
    Portsmouth, UK
    Posts
    539
    Hi Stealth_Rider,

    When you install the new disc it will be assigned to a device, looking at your df output it will probably be /dev/hdd.

    You can check that though once you've installed it with

    Code:
    fdisk -l
    The above command will list the discs the OS has seen.
    As your root partition ( / ) is in a logical volume you can add the new disc to the volume with a gui:

    Code:
    redhat-config-lvm
    or
    Code:
    system-config-lvm
    Can't remember which one it is on FC6
    RHCE #100-015-395
    Please don't PM me with questions as no reply may offend, that's what the forums are for.

  3. #3
    Just Joined!
    Join Date
    Oct 2008
    Posts
    4
    matonb,
    Thanks for the reply. So I take it all I have to do is install the hard drive and then turn on the machine and then the OS will detect the hard drive. Then use the fdisk -1 command to see what disks been dected.

    I have no GUI install on this machine. Hahahahaha I guess I'm trying to be a real user.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Enthusiast
    Join Date
    Aug 2006
    Location
    Portsmouth, UK
    Posts
    539
    Hi Stealth_Rider,

    Basically yes, install the new disc and startup the system.
    fdisk -l to find the new disc, if you run the command before you install the disc you might find it easier to identify the new one.

    It's possible to add the new disc from the command line, here's a link to an lvm reference guide Adding physical volumes to a volume group

    gui is a lazy way for people like me that forget the syntax
    RHCE #100-015-395
    Please don't PM me with questions as no reply may offend, that's what the forums are for.

  6. #5
    Just Joined!
    Join Date
    Oct 2008
    Posts
    4
    matonb,

    When I do

    fdisk -l

    Disk /dev/hdc: 122.9 GB, 122942324736 bytes
    255 heads, 63 sectors/track, 14946 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/hdc1 * 1 13 104391 83 Linux
    /dev/hdc2 14 14946 119949322+ 8e Linux LVM

    So I take it my new disk will be somethng like hdc3

  7. #6
    Linux Enthusiast
    Join Date
    Aug 2006
    Location
    Portsmouth, UK
    Posts
    539
    Hi Stealth_Rider,

    No, the numbers are the partitions on the disc probably /boot / and swap in your case, hd is the disc (hd's are ide drives sd's scsi although I think they're all presented as sd in later kernels), the next letter is the drive hd(a,b,c,d etc)

    At a guess in your system
    hda - floppy
    hdb - cdrom
    hdc - current hard disc

    so your new drive "should" be hdd

    Just for info:
    Code:
    /dev/hdc1 * 1 13 104391 83 Linux
    /dev/hdc2 14 14946 119949322+ 8e Linux LVM
    hdc1 - /boot
    hdc2 - LVM (/)

    You can identify what is where in numerous ways, a quick overview though is to use the output of fdisk and df
    Last edited by matonb; 10-14-2008 at 09:20 AM. Reason: A bit more info
    RHCE #100-015-395
    Please don't PM me with questions as no reply may offend, that's what the forums are for.

  8. #7
    Just Joined!
    Join Date
    Oct 2008
    Posts
    4
    matonb,
    Thanks for all the help. I'll try this tomorrow I think.. I think I can handle it, Hahahaha, well gotta try it sometime, in order to become a real Linux user.

Posting Permissions

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