Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Not able to mount disks to /home
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Not able to mount disks to /home

I wish to mount /dev/sdb to /home with the command:
mount -t ext4 /dev/sdb /home

no error or any response from the terminal, but using mount or df it just not mounted.
I tried to rm -rf /home and mkdir -p /home still the same.

But with the same code, I can mount it to /data

Does anyone know what's wrong with it?

Comments

  • First-RootFirst-Root Member, Host Rep
    edited April 2019

    shot in the blind: /home is already a mounted fs? Normally that would throw an error but you never know...

  • LeviLevi Member

    Paste output from:

    mount
    mount -v - t ext4 /dev/sdb /home
    cat /etc/fstab

  • RazzaRazza Member

    You seem to be trying to mount the disk it self normally you mount just a partition like mount /dev/sdb1 /home

  • First-RootFirst-Root Member, Host Rep

    @Razza said:
    You seem to be trying to mount the disk it self normally you mount just a partition like mount /dev/sdb1 /home

    this

  • LeviLevi Member

    You say that he CAN mount disk it-self on /data but not on /home?

  • I wonder if this could be because of SELinux? I cannot try on my Centos dedi, I have nothing to mount...

  • First-RootFirst-Root Member, Host Rep

    @LTniger said:

    You say that he CAN mount disk it-self on /data but not on /home?

    No. My thought was that /home is already a mounted partition while /data is a folder.

  • FR_Michael said: No. My thought was that /home is already a mounted partition while /data is a folder.

    Linux will quite happily mount multiple volumes onto a single mountpoint.

  • Shot2Shot2 Member

    @liujason said:
    I wish to mount /dev/sdb to /home with the command:
    mount -t ext4 /dev/sdb /home

    no error or any response from the terminal, but using mount or df it just not mounted.
    I tried to rm -rf /home and mkdir -p /home still the same.

    But with the same code, I can mount it to /data

    Does anyone know what's wrong with it?

    OS ? System ? any other info ?

  • ese_enzoese_enzo Member
    edited April 2019

    lsof /home ?

  • Start with fdisk -l people, JFC.

  • Shot2Shot2 Member

    systemctl daemon-reload, then a partprobe for good measure :P

  • IkoulaIkoula Member, Host Rep

    Maybe his user does not have suffisant privilege ?

  • angstromangstrom Moderator

    The thing is that everyone else in this thread seems to care more about the OP's problem than the OP himself cares about it.

  • Maybe it's a trolling act that had everyone hook, line and sinker.

Sign In or Register to comment.