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

Thread: Adding second hard disk

  1. #1
    Join Date
    Jun 2008
    Location
    34 04 17.35S 18 50 02.23E
    Posts
    266

    Default Adding second hard disk

    In preparation foe openSuse 11, I am trying to add a second hard drive (250gb). I pre-configured the second drive with gparted to make it extended with an ext3 partition. Gparted reported 232gb available.
    Firstly there is a funny in that suse sees my hard drives as sata, when they are in fact pata
    So sda has my present system and it works.
    If I do a hardware check I have /dev/sda & /dev/ sdb
    I have added in fstab the following:
    /dev/sdb1 /media/sdb auto defaults 0 2
    After reboot I look in /media/sdb and find 6.5gb free of 19.7gb

    What have I done wrong?
    openSUSE Leap + KDE

  2. #2

    Default Re: Adding second hard disk

    Quote Originally Posted by Alastairo View Post
    Firstly there is a funny in that suse sees my hard drives as sata, when they are in fact pata
    Actually sda is for scsi, and this is happens with newer kernels (on all distros, you will rarely see hda pop up)
    "If it ain't broke, find something wrong with it"

  3. #3
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,130

    Default Re: Adding second hard disk

    Post the output of fdisk -l.
    Henk van Velden

  4. #4
    Join Date
    Jun 2008
    Location
    34 04 17.35S 18 50 02.23E
    Posts
    266

    Default Re: Adding second hard disk

    Disk /dev/sda: 250.0 GB, 250059350016 bytes
    255 heads, 63 sectors/track, 30401 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x0006018e

    Device Boot Start End Blocks Id System
    /dev/sda1 1 262 2104483+ 82 Linux swap / Solaris
    /dev/sda2 * 263 2873 20972857+ 83 Linux
    /dev/sda3 2874 30401 221118660 83 Linux

    Disk /dev/sdb: 250.0 GB, 250059350016 bytes
    255 heads, 63 sectors/track, 30401 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x000c4e57

    Device Boot Start End Blocks Id System
    /dev/sdb1 1 30401 244196001 5 Extended
    /dev/sdb5 1 30401 244195969+ 83 Linux
    openSUSE Leap + KDE

  5. #5
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,130

    Default Re: Adding second hard disk

    This shows that /dev/sdb1 is an Extended partition. This means that it contains partitions numbered higher then 4. In this case it contains the partion /dev/sda5. This last one is th real partition you should use. So change your fstab to mount /dev/sda5 instead of dev/sda1 (hope /dev/sda1 is not ruined in the meantime.

    Btw,, I do not know why an Extended partition is made. This is not realy needed when you only want only one partition on the disk. Your other disk just has three partitions, none of them in an the extended partition (which was thus not made at all). Maybe it is a hobby of the tool you used .
    Henk van Velden

  6. #6
    Join Date
    Jun 2008
    Location
    34 04 17.35S 18 50 02.23E
    Posts
    266

    Default Re: Adding second hard disk

    Hi Henk
    Thanks for your help. I put in the extended partition with gparted. The disk is still empty. If I change it with gparted to be just ext3, would this be OK?
    openSUSE Leap + KDE

  7. #7
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,130

    Default Re: Adding second hard disk

    We have too sync a bit I think

    In your first post you said: I pre-configured the second drive with gparted to make it extended with an ext3 partition.
    When this is true, it is you that made an extended (I do not know why) we know as sdb1 and then a logical partition in it (sdb5). Now you say you made it ext3. I know almost nothing about gparted, but when gparted can make ext3 file systems on partitions and you told it to do so I suppose that is OK. Did you try to mount it in the way I told you?

    When you mount there will be two possibilities:
    a. the fs is OK and when you type df you will see the Gigs.
    b. the fs is not there and you will get an error.

    Btw why did you not use YaST > System > Partitioner. This can make partitions and filesystems on them and has fields to fill in for the mounting. All in one!
    Henk van Velden

  8. #8
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,727
    Blog Entries
    2

    Default Re: Adding second hard disk

    Quote Originally Posted by Alastairo View Post
    Hi Henk
    Thanks for your help. I put in the extended partition with gparted. The disk is still empty. If I change it with gparted to be just ext3, would this be OK?
    If it's empty, easier is to open Yast --> System --> Partitioner. Highlight sdb5 and delete it. Highlight sdb1 and delete it. Click "create" and create a "Primary" (sdb1) and tick to "format" it as "ext3"
    Leap 42.3 & 15.1(Beta) &KDE
    FYIs from the days of yore

  9. #9
    Join Date
    Jun 2008
    Location
    34 04 17.35S 18 50 02.23E
    Posts
    266

    Default Re: Adding second hard disk

    Hi Henk
    Yes, it was me that made the extended partition (a hangover from windows days), and then I put an ext3 partition in it.

    In the meantime, I made the whole disk ext3 (using gparted) and I can get the full size disk.

    The only problem I have now is the read write permissions. I can't write as yet.
    I did not think of using suse's partition manager. I will look at that now
    openSUSE Leap + KDE

  10. #10
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,130

    Default Re: Adding second hard disk

    As it is still empty now you can follow swerdna's advise and get rid of that extended partition. Else after years you will still think of this slip of you .

    I should at least tell in fstab it is ext3, though it may work without:
    /dev/sdb1 /media/sdb ext3 auto defaults 0 2

    And who knows when you let YaST do its tricks, maybe it is read/write after all.
    Henk van Velden

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
  •