You are not logged in.

#1 2014-12-21 19:02:39

domadden
Member
Registered: 2014-12-21
Posts: 9

Hard drive won't mount.

I am running Arch x86_64 with Cinnamon as my DE. First off, Nautilus does not recognize the hard drive in question unless I run gparted. Then, when i try to mount the partition I get the error

fuse: mount failed: Device or resource busy

The drive that is not mounting is sdb. I have already tried using chkdsk in windows but it didn't find any problems (I use this drive mainly for windows but it is just for data like games, music...). When I tried creating a new partition with gparted, to try and fix the sdb2 (rename it to sdb1) it said the partition sdb1 is currently in use by the system or something like that. But trying umount /dev/sdb1 fails saying mountpoint not found.

The output of fdisk -l is

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: 0x4edb6660

Device     Boot Start        End    Sectors  Size Id Type
/dev/sdb2        2048 3907026943 3907024896  1.8T  7 HPFS/NTFS/exFAT

Disk /dev/sda: 55.9 GiB, 60022480896 bytes, 117231408 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: 0x43405e7e

Device     Boot    Start       End  Sectors  Size Id Type
/dev/sda1  *        2048    206847   204800  100M  7 HPFS/NTFS/exFAT
/dev/sda2         206848  61442047 61235200 29.2G  7 HPFS/NTFS/exFAT
/dev/sda3  *    61442048 117231407 55789360 26.6G 83 Linux

Disk /dev/sdc: 2.7 TiB, 3000592982016 bytes, 5860533168 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: gpt
Disk identifier: 741B5686-E066-42C9-A9BB-2C43FE729E26

Device          Start        End    Sectors  Size Type
/dev/sdc1        2048 2930266111 2930264064  1.4T Linux filesystem
/dev/sdc2  2930266112 5860532223 2930266112  1.4T Microsoft basic data

Disk /dev/sdd: 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: 0xc7b4b3c4

Device     Boot Start        End    Sectors  Size Id Type
/dev/sdd1          63 3907024064 3907024002  1.8T  7 HPFS/NTFS/exFAT

Any help is appreciated.

Offline

#2 2014-12-21 19:39:29

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Hard drive won't mount.

Is it an internal or external drive? Is it in your fstab? What is the output of `mount`? If the device is reported as busy, what does `lsof` tell you?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-12-21 20:03:32

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,536

Re: Hard drive won't mount.

Maybe this might help you.


do it good first, it will be faster than do it twice the saint wink

Offline

#4 2014-12-21 23:52:38

domadden
Member
Registered: 2014-12-21
Posts: 9

Re: Hard drive won't mount.

This is the output of mount

proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
dev on /dev type devtmpfs (rw,nosuid,relatime,size=8207764k,nr_inodes=2051941,mode=755)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
/dev/sda3 on / type ext4 (rw,relatime,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=23,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw)
mqueue on /dev/mqueue type mqueue (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=1642124k,mode=700,uid=1000,gid=1000)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
/dev/sdd1 on /run/media/doug/2TB type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks2)

It is not in my fstab. Partly because I just installed arch and to be safe, i just removed all the hard drives except for the boot drive. So when the fstab was generated, it only added the boot drive. I only just started adding in my other hard drives.

I don't see anything about the drive in lsof. Would it be listed as sdb or the uuid? Or should I be looking for something else in there. It's a lot of output so I would rather just post the relevant parts.

Offline

#5 2014-12-21 23:54:15

domadden
Member
Registered: 2014-12-21
Posts: 9

Re: Hard drive won't mount.

Forgot to add, it is an internal drive.

Offline

#6 2014-12-21 23:58:36

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Hard drive won't mount.

If it is internal, add an entry to /etc/fstab and `mount -a`...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2014-12-22 00:02:36

domadden
Member
Registered: 2014-12-21
Posts: 9

Re: Hard drive won't mount.

If that's all I had to do i'm going to feel really stupid.

Offline

#8 2014-12-22 00:39:25

domadden
Member
Registered: 2014-12-21
Posts: 9

Re: Hard drive won't mount.

It still won't mount. Even tried rebooting and this is what it says after trying to mount that drive.

systemd-fstab-generator[1186]: Failed to create mount unit file /run/systemd/generator/-.mount, as it already exists. Duplicate entry in /etc/fstab?

I currently only have 2 entries in my fstab

# /dev/sda3
UUID=d7a25960-4664-41bb-82a3-feac2247237e       /                       ext4    rw,relatime,data=ordered        0       1
#/dev/sdb2
UUID=01CCB28CC17493B0                           /                       ntfs    rw,relatime,data=ordered        0       2

Offline

#9 2014-12-22 00:46:37

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Hard drive won't mount.

Well, you can't mount both on /...

Read up on fstab. Also, for an NTFS drive, you'll need ntfs-3g https://wiki.archlinux.org/index.php/Ntfs


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#10 2014-12-22 00:52:37

domadden
Member
Registered: 2014-12-21
Posts: 9

Re: Hard drive won't mount.

Wait a minute. I thought I typed in /home. Anyway, I fixed that and mount -a prints

fuse: mount failed: Device or resource busy

Also, rebooting waits for 1 minute and 30 seconds to mount sdb, fails, and starts emergency mode.

I already have the ntfs3g package installed as well.

Last edited by domadden (2014-12-22 00:55:42)

Offline

#11 2014-12-22 00:58:20

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Hard drive won't mount.

Use `lsof` or fuser` to find out why it is busy.

Also, read the settings for NTFS mounts: https://wiki.archlinux.org/index.php/Nt … t_settings

And, you need to do more than just have it installed: you have to actually use it...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#12 2014-12-22 01:22:52

domadden
Member
Registered: 2014-12-21
Posts: 9

Re: Hard drive won't mount.

Both fuser and lsof have nothing about /dev/sdb2. I tried switching ntfs to ntfs-3g and the pass to 0 in the fstab entry for sdb2 and it still didn't not work. Same error as before. I guess because it thinks it is already in use.

Offline

#13 2014-12-22 01:27:02

domadden
Member
Registered: 2014-12-21
Posts: 9

Re: Hard drive won't mount.

Actually. mount -a is saying

mount: can't find UUID=01CCB28CC17493B0

but I am 100% sure that is the correct uuid. Is my format wrong or something?

Offline

#14 2014-12-22 01:27:58

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Hard drive won't mount.

If you mount it in Windows, then it may have left it in an odd state. I don't use Windows so I can't suggest anything else...

#edit: presumably, yes.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#15 2014-12-22 02:31:26

thisllub
Member
From: Northern NSW Australia
Registered: 2007-12-28
Posts: 231

Re: Hard drive won't mount.

It seems odd that there is an sdb2 but no sdb1 but It should mount as sdb2.
I wouldn't try UUID mounting until I knew the drive worked as sdb2.
Rather than mounting in user space I would see if it mounts as root first.
If that works check the user/groups section in the NTFS-3g page referred to above.

Offline

#16 2014-12-22 03:54:03

domadden
Member
Registered: 2014-12-21
Posts: 9

Re: Hard drive won't mount.

I had 3 partitions on the drive before. The partition with all the data was the middle. The last partition was a paging file for windows (swap file) and the first partition windows created when i made the paging file. I used gparted to remove these two partitions and expand the middle partition to fill the entire drive. It just kept the sdb2. I also disabled the paging file on the drive from windows so that shouldn't be causing any problems. I will probably test your suggestions tomorrow. Thanks for the help guys.

Offline

Board footer

Powered by FluxBB