Results 1 to 6 of 6

Thread: How to access other hardrives on PC

  1. #1
    Join Date
    Jun 2008
    Location
    Oregon
    Posts
    455

    Default How to access other hardrives on PC

    I have recently installed opensuse 11 and I like it very much, but I can't see my other two hdds on this PC.

    Here's:
    davek@linux-wadt:~> sudo /sbin/fdisk -l

    We trust you have received the usual lecture from the local System
    Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

    root's password:

    Disk /dev/sda: 40.0 GB, 40020664320 bytes
    255 heads, 63 sectors/track, 4865 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0xd33dd33d

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 4660 37431418+ 83 Linux
    /dev/sda2 4661 4865 1646662+ 5 Extended
    /dev/sda5 4661 4865 1646631 82 Linux swap / Solaris

    Disk /dev/sdb: 41.1 GB, 41174138880 bytes
    255 heads, 63 sectors/track, 5005 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x90909090

    Device Boot Start End Blocks Id System
    /dev/sdb1 1 2002 16081033+ 83 Linux
    /dev/sdb2 2003 5005 24121597+ 83 Linux

    Disk /dev/sdc: 320.0 GB, 320072933376 bytes
    255 heads, 63 sectors/track, 38913 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x90909090

    Device Boot Start End Blocks Id System
    /dev/sdc1 1 38506 309299413+ 83 Linux
    /dev/sdc3 38507 38913 3269227+ 82 Linux swap / Solaris
    davek@linux-wadt:~>

    how do I access the other two hdds, sda and sdc?
    (sdb is opensuse11)

    Thanks.

  2. #2
    Niclas Ekstedt NNTP User

    Default Re: How to access other hardrives on PC

    vinoman2,

    You need to mount them of course.

    Use the mount command for example 'mount /dev/sda1 /mnt'
    This will mount the filesystem on sda1 in /mnt

    You can have this happen automatically by placing the entries
    into /etc/fstab


    --
    _________________________________________
    Niclas Ekstedt, CNA/CNE/CNS/CLS
    Systems Engineer/NSC Sysop
    Telindus Sweden AB

  3. #3
    Join Date
    Jun 2008
    Location
    Oregon
    Posts
    455

    Default Re: How to access other hardrives on PC

    I ran the mount command but I don't see anything sda1 icon in the mount file.

    here's my fstab:

    /dev/disk/by-id/scsi-SATA_ST340014A_5JX2V8ZC-part5 swap swap defaults 0 0
    /dev/disk/by-id/scsi-SATA_MAXTOR_STM33206_6QF1BRMG-part3 swap swap defaults 0 0
    /dev/disk/by-id/scsi-SATA_HDS728040PLAT20_PFD100S1RU6WPG-part1 / ext3 acl,user_xattr 1 1
    /dev/disk/by-id/scsi-SATA_HDS728040PLAT20_PFD100S1RU6WPG-part2 /home ext3 acl,user_xattr 1 2
    proc /proc proc defaults 0 0
    sysfs /sys sysfs noauto 0 0
    debugfs /sys/kernel/debug debugfs noauto 0 0
    devpts /dev/pts devpts mode=0620,gid=5 0 0

    how do a adjust the entries to auto mount?

  4. #4
    Niclas Ekstedt NNTP User

    Default Re: How to access other hardrives on PC

    vinoman2,

    Just add a line a line like the below to the file. You might wanna
    check the settings however to make sure you get the access you want.

    /dev/sda1 /mntext3 acl,user_xattr1 1

    --
    _________________________________________
    Niclas Ekstedt, CNA/CNE/CNS/CLS
    Systems Engineer/NSC Sysop
    Telindus Sweden AB

  5. #5
    Join Date
    Jun 2008
    Location
    Oregon
    Posts
    455

    Default Re: How to access other hardrives on PC

    so all I need to auto mount the two hdds is:

    /dev/sda1 /mnt
    /dev/sdc1 /mnt

    ?

    anything else after /mnt ?

  6. #6
    Niclas Ekstedt NNTP User

    Default Re: How to access other hardrives on PC

    vinoman2,

    >
    > so all I need to auto mount the two hdds is:
    >
    > /dev/sda1 /mnt
    > /dev/sdc1 /mnt


    You can't mount two sources to the same directory /mnt.
    Crate two new dirs beneath /mnt and mount to these dirs instead.

    Also check the following URL, it'll give you some understandig of
    /etc/fstab and mounting, http://www.tuxfiles.org/linuxhelp/fstab.html


    --
    _________________________________________
    Niclas Ekstedt, CNA/CNE/CNS/CLS
    Systems Engineer/NSC Sysop
    Telindus Sweden AB

Posting Permissions

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