Page 1 of 5 123 ... LastLast
Results 1 to 10 of 43

Thread: How to install a secondary drive + partitions

  1. #1

    Question How to install a secondary drive + partitions

    Hello,

    Ive installed a second hard drive, but now it seem I cant create or move anything on it.

    Also, the main "home" is set on a small partition while theire is another one on the same disk who is quite bigger.

    What and how should I do as to make that secondary hard drive useable ?

    Same as to move the home to a bigger partition (or if possible, merge the current with the big one ?).

    Thanks in advance.
    Last edited by malcolmlewis; 29-Jan-2018 at 13:08. Reason: Modify prefix version

  2. #2
    Join Date
    Nov 2013
    Location
    Kamloops, BC, Canada
    Posts
    4,029

    Default Re: How to install a secondary drive + partitions

    This is ambiguous:

    Quote Originally Posted by seden View Post
    Also, the main "home" is set on a small partition while theire is another one on the same disk who is quite bigger.

    Same as to move the home to a bigger partition (or if possible, merge the current with the big one ?).
    We need more precise, clearer information to be able to help with that. We do not know what disk that is on -- the old one or the new one, or both -- though we could guess ... which leads to wrong answers.

    Is at an "old" home or a "new" home? Or, one "old" and one "new", or ???

    So, much more information is needed.

    BUT...

    First, let's deal with one question at a time. From the little information you provided, I would guess this is the first question, which needs to be solved before going on to the next one:
    Ive installed a second hard drive, but now it seem I cant create or move anything on it.

    . . .

    What and how should I do as to make that secondary hard drive useable ?
    (BTW: 42.2 is EOL in 6 more days and will then not get any updates nor security fixes from then on, so you should be moving up to 42.3, now)
    https://en.opensuse.org/Lifetime

    Again, not really enough information, but I can guess you are likely having a problem with permissions.

    First, we need to know what you have:
    Code:
    fdisk -l
    and/or
    Code:
    parted -l
    That is a lower case L in both commands, not the numeral 1(one).

    ... and, we need to know more precisely what you want to do. Usually, the goal you have in mind is the most important part of the question. That 2nd hard drive: How do you want to use it? For data? For another operating system? For backup? For RAID? Why did you install a 2nd hard drive? For what purpose? To be used by who? One specific user, all users, root, or???

    We can only answer your questions if we have (at the very least) the above information.
    Last edited by Fraser_Bell; 20-Jan-2018 at 17:48. Reason: grammar
    "Take a Walk on a Sunny Day, Greet everyone along the way, and Make Somebody Smile, Today"
    Gerry Jack Macks"Walk On A Sunny Day" GerryJackMacks.net

  3. #3

    Default Re: How to install a secondary drive + partitions

    Results of the commands :
    fdisk :
    Code:
    seden@linux-kbxw:~> fdisk -l
    Absolute path to 'fdisk' is '/usr/sbin/fdisk', so running it may require superuser privileges (eg. root).
    parted :
    Code:
    seden@linux-kbxw:~> parted -l
    Absolute path to 'parted' is '/usr/sbin/parted', so running it may require superuser privileges (eg. root).
    As to "home", strange thing is that all my folders (both documents, music, images etc + bin) where moved somewhere else. Tried to search for them using some of the folder and files names, no results.

    USe of the second hard drive is planned for documents.
    User = root, there is a single account on that system.
    --

    Then, as to update to 42.3 how to proceed ?

  4. #4
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    16,287

    Default Re: How to install a secondary drive + partitions

    You need to be root to run those commands

    use sudo fdisk -l

    etc

    The first user defined may have the same password as root by default but that does not make them root

    We really need to see what you have before anyone can make a suggestion

    Was this an upgrade or a new install over some other OS???

  5. #5

    Default Re: How to install a secondary drive + partitions

    The added disk is installed along an existing 42.2 version.

    using sudo fdisk -l :
    Code:
    seden@linux-kbxw:~> sudo fdisk -l
    seden's password:
    seden is not in the sudoers file.  This incident will be reported.
    My password use a capitable letter first, then lower cases and numbers at the end.

    Tried to look for a way to add my account to the sudoer file (trough visudo) but where goes the password ?

    Code:
    ## sudoers file.
    ##
    ## This file MUST be edited with the 'visudo' command as root.
    ## Failure to use 'visudo' may result in syntax or file permission errors
    ## that prevent sudo from running.
    ##
    ## See the sudoers man page for the details on how to write a sudoers file.
    ##
    
    ##
    ## Host alias specification
    ##
    ## Groups of machines. These may include host names (optionally with wildcards),
    ## IP addresses, network numbers or netgroups.
    # Host_Alias    WEBSERVERS = www1, www2, www3
    
    ##
    ## User alias specification
    ##
    ## Groups of users.  These may consist of user names, uids, Unix groups,
    ## or netgroups.
    # User_Alias    ADMINS = millert, dowdy, mikef
    User_Alias ADMINS = seden
    
    ##
    ## Cmnd alias specification
    ##
    ## Groups of commands.  Often used to group related commands together.
    # Cmnd_Alias    PROCESSES = /usr/bin/nice, /bin/kill, /usr/bin/renice, \
    #                           /usr/bin/pkill, /usr/bin/top
    
    ##
    ## Defaults specification
    ##
    ## Prevent environment variables from influencing programs in an
    ## unexpected or harmful way (CVE-2005-2959, CVE-2005-4158, CVE-2006-0151)
    Defaults        always_set_home
    ## Path that will be used for every command run from sudo
    Defaults        secure_path = "/usr/sbin:/usr/bin:/sbin:/bin"
    Defaults        env_reset
    ## Change env_reset to !env_reset in previous line to keep all environment variables
    ## Following list will no longer be necessary after this change
    
    Defaults        env_keep = "LANG LC_ADDRESS LC_CTYPE LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE LC_TIME LC_ALL LANGUAGE LINGUAS XDG_SESSION_COOKIE"
    ## Comment out the preceding line and uncomment the following one if you need
    ## to use special input methods. This may allow users to compromise  the root
    ## account if they are allowed to run commands without authentication.
    #Defaults env_keep = "LANG LC_ADDRESS LC_CTYPE LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE LC_TIME LC_ALL LANGUAGE LINGUAS XDG_SESSION_COOKIE XMODIFIERS GTK_IM_MODULE QT_IM_MODULE QT_IM_SWITCHER"
    
    ## Do not insult users when they enter an incorrect password.
    Defaults        !insults
    
    ##
    ## Uncomment to enable logging of a command's output, except for
    ## sudoreplay and reboot.  Use sudoreplay to play back logged sessions.
    # Defaults log_output
    # Defaults!/usr/bin/sudoreplay !log_output
    # Defaults!/sbin/reboot !log_output
    
    ## In the default (unconfigured) configuration, sudo asks for the root password.
    ## This allows use of an ordinary user account for administration of a freshly
    ## installed system. When configuring sudo, delete the two
    ## following lines:
    
    
    ##
    ## Runas alias specification
    ##
    
    ##
    ## User privilege specification
    ##
    root    ALL = (ALL) ALL
    ALL     ALL = (ALL) ALL
    ~                                                                                                                                                                                                                                                                          
    ~                                                                                                                                                                                                                                                                          
    ~                                                                                                                                                                                                                                                                          
    ~                                                                                                                                                                                                                                                                          
    ~                                                                                                                                                                                                                                                                          
    ~

  6. #6
    Join Date
    Nov 2013
    Location
    Kamloops, BC, Canada
    Posts
    4,029

    Default Re: How to install a secondary drive + partitions

    Try:
    Code:
    su -
    You should be asked for root password, after which you can run the commands I suggested.
    "Take a Walk on a Sunny Day, Greet everyone along the way, and Make Somebody Smile, Today"
    Gerry Jack Macks"Walk On A Sunny Day" GerryJackMacks.net

  7. #7
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    29,788

    Default Re: How to install a secondary drive + partitions

    Quote Originally Posted by seden View Post
    The added disk is installed along an existing 42.2 version.

    using sudo fdisk -l :
    Code:
    seden@linux-kbxw:~> sudo fdisk -l
    seden's password:
    seden is not in the sudoers file.  This incident will be reported.
    It looks as if there is something not according to the openSUSE defaults here. It should ask for root's password, not for seden's password.

    Did you change anything with respect to sudo using? Tried to let the system imitate Ubuntu?
    Henk van Velden

  8. #8

    Default Re: How to install a secondary drive + partitions

    No, it has been this way since start.

    As to the command, here is the result :



    Code:
    linux-i70q:~ # sudo fdisk -l
    Disk /dev/sdb: 1.8 TiB, 2000398934016 bytes, 3907029168 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
    Disklabel type: dos
    Disk identifier: 0x0006bca0
    
    DeviceBoot     Start       End   Sectors SizeIdType
    /dev/sdb1             2048    4208639    4206592    2G 82 Linux swap / Solaris
    /dev/sdb2  *       4208640   88100863   83892224   40G 83 Linux
    /dev/sdb3         88100864 2017490943 1929390080  920G 83 Linux
    /dev/sdb4       2017490944 3907028991 1889538048  901G 83 Linux
    
    
    Disk /dev/sdc: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disklabel type: dos
    Disk identifier: 0x0006a8c7
    
    DeviceBootStart       End   Sectors  SizeIdType
    /dev/sdc1        2048 1953523711 1953521664 931.5G 83 Linux
    
    
    Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 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
    Disklabel type: dos
    Disk identifier: 0x9db97817
    
    DeviceBoot    Start       End   Sectors  SizeIdType
    /dev/sda1  *         2048  264783871  264781824 126.3G 83 Linux
    /dev/sda2       264783872  327694335   62910464    30G 82 Linux swap / Solaris
    /dev/sda3       369061245 1953521663 1584460419 755.5G  7 HPFS/NTFS/exFAT
    
    
    Disk /dev/sdd: 31.3 GiB, 33554432000 bytes, 65536000 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
    Disklabel type: dos
    Disk identifier: 0x688fd856
    
    DeviceBootStart     End Sectors SizeIdType
    /dev/sdd1  *      128 65535999 65535872 31.3G  c W95 FAT32 (LBA)
    
    
    Disk /dev/sdi: 500 GiB, 536871960576 bytes, 1048578048 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
    Disklabel type: dos
    Disk identifier: 0x00000000
    
    DeviceBootStart       End   Sectors SizeIdType
    /dev/sdi1          32 1048578047 1048578016  500G  7 HPFS/NTFS/exFAT
    
    
    It should be "sdc1" which I want to use as to install software and store documents.

  9. #9
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    16,287

    Default Re: How to install a secondary drive + partitions

    Software is normally stored in the root partition. But your personal data and settings are always stored on the home partition. You have two 900+ gig partition on the sdb drive which is home?? Why two? It is still confusing what you want. I see another Linux system on sda. sdc has a single partition. You can mount that any where you want in the file system of either or both Linux instances.

    I think you are confused where programs live and that you can not be able to share programs between OS. Different compilers kernels default locations etc

  10. #10
    Join Date
    Nov 2013
    Location
    Kamloops, BC, Canada
    Posts
    4,029

    Default Re: How to install a secondary drive + partitions

    You said you
    installed a second hard drive
    but the output from the requested command lists 5 disks/storage devices?

    Obviously, this is not as straightforward as you led us to believe in your opening post.

    When you have a system that is that far out of the norm, you need to give us all the relevant information we need, or we cannot help you.

    Your output, instead of answering my question, leaves me with a whole mess of additional questions instead of resolutions to your problem.

    Give us more thorough and precise information. What is what? Why? Where?

    And this
    As to "home", strange thing is that all my folders (both documents, music, images etc + bin) where moved somewhere else. Tried to search for them using some of the folder and files names, no results.
    suggests you have done several unusual things to your system. These items do not just up and move by themselves.

    ... it seems you have done things that confuse yourself.

    Of course, it confuses us, as well.

    Also, this
    User = root, there is a single account on that system.
    is not likely, unless you also did something extremely unusual.

    I will instead guess - not something we like having to do, as it is counterproductive in helping someone on these threads - that you chose to share the same password between your user and root when you installed.

    In case it is a permissions problem preventing you from using that 5th "second drive", you could simply use a root console, cd to the top directory on that drive, make a subdirectory, then chown that subdirectory to the user you want to have access to it.

    In order to do that, though, you need to know your user name and group. You can find that out in Yast=>User and Group Management on the Users tab. The entry under Login is your user ID name, case sensitive. Under Groups, of course, is your group(s), probably users, again case sensitive.

    The root account does not show by default in this list (ID name for it, BTW, is "root").
    "Take a Walk on a Sunny Day, Greet everyone along the way, and Make Somebody Smile, Today"
    Gerry Jack Macks"Walk On A Sunny Day" GerryJackMacks.net

Page 1 of 5 123 ... 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
  •