Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Seeing hard drives

  1. #1

    Question Seeing hard drives

    I have three hard drives in my Suse 10 machine, but the system only sees the one drive, which is partitioned normally for the system and the swap file.

    How do I make it recognise the other two drives, whci are seen OK in the BIOS and which I'd like to use for storage purposes? Additionally, how do I reformat the second and third drive if this proves to be necessary for use with the linux??

  2. #2
    Join Date
    Jun 2008
    Location
    Kansas City Area, Missouri, USA
    Posts
    7,236

    Default Re: Seeing hard drives

    toastrack wrote:
    > I have three hard drives in my Suse 10 machine, but the system only sees
    > the one drive, which is partitioned normally for the system and the swap
    > file.
    >
    > How do I make it recognise the other two drives, whci are seen OK in
    > the BIOS and which I'd like to use for storage purposes? Additionally,
    > how do I reformat the second and third drive if this proves to be
    > necessary for use with the linux??


    Please post the output of 'sudo /sbin/fdisk -l' and 'df'.

    You main disk is likely /dev/sda and the other two are /dev/sdb and
    /dev/sdc, but there may be some /dev/hdX in the mix, particularly for
    SuSE 10.

    Once we know what your drives are named, then the next step will be to
    partition those other two (if needed), do a 'mkfs' on them, and add
    them to fstab.

  3. #3
    Join Date
    Nov 2008
    Location
    N. Wales
    Posts
    1,028

    Default Re: Seeing hard drives

    toastrack adjusted his/her AFDB on Friday 07 Aug 2009 20:16 to write:

    >
    > I have three hard drives in my Suse 10 machine, but the system only sees
    > the one drive, which is partitioned normally for the system and the swap
    > file.
    >
    > How do I make it recognise the other two drives, whci are seen OK in
    > the BIOS and which I'd like to use for storage purposes? Additionally,
    > how do I reformat the second and third drive if this proves to be
    > necessary for use with the linux??
    >
    >



    You can use the partitioning toll in YaST to mount them to where you want
    for instance this afternoon I took a old drive out and plugged it into one
    of my machines, as root created a dir in / called back-ups and then use the
    petitioner to mount the drive there.

    if you want them mounted during boot then this will put the entry in fstab
    for you.

    HTH

    --
    Mark
    Caveat emptor
    Nullus in verba
    Nil illegitimi carborundum

  4. #4

    Default Re: Seeing hard drives

    Here is the listing

    Disk /dev/hda: 80.0 GB, 80026361856 bytes
    255 heads, 63 sectors/track, 9729 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/hda1 1 9729 78148161 c W95 FAT32 (LBA)

    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 262 2104483+ 82 Linux swap / Solaris
    /dev/hdc2 * 263 2873 20972857+ 83 Linux
    /dev/hdc3 2874 14946 96976372+ 83 Linux

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

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 1946 15631213+ 83 Linux
    /dev/sda2 1947 4865 23446867+ 83 Linux

    Disk /dev/sdb: 1000 MB, 1000341504 bytes
    16 heads, 32 sectors/track, 3816 cylinders
    Units = cylinders of 512 * 512 = 262144 bytes

    Device Boot Start End Blocks Id System
    /dev/sdb1 1 3816 976880 e W95 FAT16 (LBA)

  5. #5
    Join Date
    Jun 2008
    Location
    Kansas City Area, Missouri, USA
    Posts
    7,236

    Default Re: Seeing hard drives

    toastrack wrote:
    > Here is the listing
    >
    > Disk /dev/hda: 80.0 GB, 80026361856 bytes
    > 255 heads, 63 sectors/track, 9729 cylinders
    > Units = cylinders of 16065 * 512 = 8225280 bytes
    >
    > Device Boot Start End Blocks Id System
    > /dev/hda1 1 9729 78148161 c W95 FAT32 (LBA)
    >
    > 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 262 2104483+ 82 Linux swap /
    > Solaris
    > /dev/hdc2 * 263 2873 20972857+ 83 Linux
    > /dev/hdc3 2874 14946 96976372+ 83 Linux
    >
    > Disk /dev/sda: 40.0 GB, 40020664320 bytes
    > 255 heads, 63 sectors/track, 4865 cylinders
    > Units = cylinders of 16065 * 512 = 8225280 bytes
    >
    > Device Boot Start End Blocks Id System
    > /dev/sda1 * 1 1946 15631213+ 83 Linux
    > /dev/sda2 1947 4865 23446867+ 83 Linux
    >
    > Disk /dev/sdb: 1000 MB, 1000341504 bytes
    > 16 heads, 32 sectors/track, 3816 cylinders
    > Units = cylinders of 512 * 512 = 262144 bytes
    >
    > Device Boot Start End Blocks Id System
    > /dev/sdb1 1 3816 976880 e W95 FAT16 (LBA)


    From this listing, fdisk sees 4 disk drives:

    (1) /dev/hda has 80 GB and contains one FAT32 partition in /dev/hda1

    (2) /dev/hdc has 123 GB and contains 3 partitions - one swap and 2
    Linux data partitions. I expect one of the latter is where / resides.

    (3) /dev/sda has 40 GB and 2 Linux data partitions in /dev/sda1 and
    /dev/sda2.

    (4) /dev/sdb has 1 GB and contains 1 FAT32 partition. This is likely a
    USB stick.

    As baskitcaise suggested, use the partitioner in YaST => System to
    select mount points for those disks that are not already being
    mounted. The list under hard disks will list all partitions. If you
    click on the + next to each drive (the /dev/hda, etc.), you will see
    the partitions on each. If you click on the partition and the Edit
    button, you will be able to set a mount point and reformat the drive
    if you want. As you will see from the warning, this utility can be
    dangerous, but it is safe as long as you do not modify anything that
    lists a mount point.

  6. #6

    Default Re: Seeing hard drives

    Thanks for the very useful help so far. One problem remains.

    I have identified, mounted, formatted and labelled the hard discs and partitions (and learned a lot on the way!)

    BUT

    When I try to write to them or create a folder I get the response "access denied". so far I've failed to discover how to deal with this one.

  7. #7
    goldie NNTP User

    Default Re: Seeing hard drives

    did you mount them read/write or read only?

    do this in a terminal:

    Code:
    cat /etc/fstab
    and report the results back to here...

    while waiting for a reply see:

    Code:
    man fstab
    and see if you can figure it out for yourself..
    you might find other useful info in:

    http://rute.2038bug.com/node22.html....00000000000000

    --
    goldie
    Give a hacker a fish and you feed him for a day.
    Teach man and you feed him for a lifetime.

    Note: Accuracy, completeness, legality, or usefulness of this posting
    may be illusive.

  8. #8

    Default Re: Seeing hard drives

    /dev/sda1 / ext3 acl,user_xattr 1 1
    /dev/sda2 /home ext3 acl,user_xattr 1 2
    /dev/hdc1 swap swap defaults 0 0
    proc /proc proc defaults 0 0
    sysfs /sys sysfs noauto 0 0
    debugfs /sys/kernel/debug debugfs noauto 0 0
    usbfs /proc/bus/usb usbfs noauto 0 0
    devpts /dev/pts devpts mode=0620,gid=5 0 0
    /dev/fd0 /media/floppy auto noauto,user,sync 0 0
    /dev/fd1 /media/floppy1 auto noauto,user,sync 0 0
    /dev/hdc2 /local/storagehdc2 ext3 defaults 1 2
    /dev/hdc3 /local.storagehdc3 ext3 defaults 1 2
    /dev/hda1 /local/hda1 ext3 acl,user_xattr 1 2
    howard@linux-0qmt:~>

  9. #9
    goldie NNTP User

    Default Re: Seeing hard drives

    toastrack wrote:
    > /dev/sda1 / ext3 acl,user_xattr 1 1
    > /dev/sda2 /home ext3 acl,user_xattr 1 2
    > /dev/hda1 /local/hda1 ext3 acl,user_xattr 1 2


    oh Howard, there is your answer of why you can't create a folder--you
    are NOT allowed to because access is controlled by "acl" which is a
    "POSIX Access Control Lists" which i know noting about other than (as
    far as i know) the default is to not use those..

    hey: i have NO idea where or why that "acl,user_xattr" shows up...i
    mean it is NOT the default and don't know what you did to get those
    there...so, i can't really advise you on what to undo to fix
    it...(well, i know what to put in the place of "acl,user_xattr" to
    give you access but i do NOT know what else that will affect on YOUR
    system...)

    i THINK that YOU turned on (somewhere/somehow) extra security measures
    that i don't feel i need here....if you do, more power to you...but,
    the deal with extra security is then YOU have to figure out how to
    give yourself access to those VERY secure things, when you need it..

    my GUESS is you wandered into YaST > Security and Users > Local
    Security and changed from the default to something else...without
    really knowing what you were changing, or why..

    i *guess* you changed "File Permissions" to 'parnoid'...or, maybe you
    did something in YaST > AppArmor....which is something i've never
    done....because i believe that openSUSE is *born* with a pretty good
    set of fences, traps, barriers and firewalls by default....

    i'm ok with just having default stuff *and* STRONG passwords, a router
    with a hardware firewall, and all services like sshd, ftpd, and etc
    turned off....and, good physical security, etc..

    ymmv and your situation is probably different from mine...if you need
    acl and whatever user_xattr is then use them...and, someone else will
    have to tell you how to give you access to your VERY secure file system...

    --
    goldie
    Note: Accuracy, completeness, legality, or usefulness of this posting
    may be illusive.

  10. #10

    Default Re: Seeing hard drives

    Interesting comments. But the HDD I couldn't see and now can but can't wrie to are hdc*. all the others are untouched and as installed, and seem to work fine. The odd thing is that in hdc2 and hdc3 I see a lot of the stuff that's in the main linux system on sda. I know I could reformat these drives, but I'm affraid to meddle without firm advice here.

    I was hoping to use hdc2 and 3 in particular as a backup store for important data and other files

Page 1 of 2 12 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
  •