Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Cannot Mount drive, even as root

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
User avatar
DarthSatan
Posts: 7
Joined: 2018-08-17 22:29
Location: Latveria

Cannot Mount drive, even as root

#1 Post by DarthSatan »

So this one is fun, been at this for a few hours, Google, Bing, help in no way.

This is my uname -a output
Linux Ultron-Debian 4.17.0-0.bpo.1-amd64 #1 SMP Debian 4.17.8-1~bpo9+1 (2018-07-23) x86_64 GNU/Linux

Normally I just log in open up Dolphin, click on the drives I want to mount put in my root password and bam, drives mounted. Easy as pie.
Well today i get this when I try to follow that procedure:
I click on a drive named External and instead of getting a prompt for root password I get:
An error occurred while accessing 'Home', the system responded: An unspecified error has occurred: Not authorized to perform operation
The Device notifier pops up and says
External: you are not authorized to mount this deice

So I run fdisk -l

Code: Select all

root@Ultron-Debian:/home# fdisk -l
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: 0x0dda3196

Device     Boot Start        End    Sectors   Size Id Type
/dev/sda1        2048 1953523711 1953521664 931.5G 83 Linux


Disk /dev/sdb: 1.8 TiB, 2000398934016 bytes, 3907029168 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: 5A6729BA-D7BC-49AA-807D-9FF479262EF7

Device     Start        End    Sectors  Size Type
/dev/sdb1   2048 3907028991 3907026944  1.8T Microsoft basic data


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

Device     Boot     Start        End   Sectors   Size Id Type
/dev/sdc1  *         2048  976769023 976766976 465.8G  7 HPFS/NTFS/exFAT
/dev/sdc2       976771072 1953521663 976750592 465.8G  7 HPFS/NTFS/exFAT


Disk /dev/sdd: 223.6 GiB, 240057409536 bytes, 468862128 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: B810EE75-02D8-481F-99AC-E69F6A256A75

Device       Start       End   Sectors  Size Type
/dev/sdd1     2048   1023999   1021952  499M Windows recovery environment
/dev/sdd2  1024000   1228799    204800  100M EFI System
/dev/sdd3  1228800   1261567     32768   16M Microsoft reserved
/dev/sdd4  1261568 468860927 467599360  223G Microsoft basic data


Disk /dev/sdf: 465.8 GiB, 500107862016 bytes, 976773168 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: 0xe7f9ab74

Device     Boot Start       End   Sectors   Size Id Type
/dev/sdf1        2048 976773119 976771072 465.8G 83 Linux


Disk /dev/sde: 14.9 GiB, 16000221184 bytes, 31250432 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: 0x0011bcf4

Device     Boot Start      End  Sectors  Size Id Type
/dev/sde1  *     2048 31250431 31248384 14.9G  c W95 FAT32 (LBA)


Disk /dev/sdg: 111.8 GiB, 120034123776 bytes, 234441648 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: 0xaf549c15

Device     Boot     Start       End   Sectors  Size Id Type
/dev/sdg1  *         2048 184315903 184313856 87.9G 83 Linux
/dev/sdg2       184317950 234440703  50122754 23.9G  5 Extended
/dev/sdg5       184317952 234440703  50122752 23.9G 82 Linux swap / Solaris


Disk /dev/sdh: 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: 0x95b1beae
This external drive is /dev/sdf

So I think no problemo, I will just mount the drive to /media/doctordoom/External
So I make an directory named External under /media/doctordoom/

Code: Select all

doctordoom@Ultron-Debian:/$ cd /media/doctordoom
doctordoom@Ultron-Debian:/media/doctordoom$ ls
External

Then I go to the terminal and run

Code: Select all

doctordoom@Ultron-Debian:~$ sudo mount /dev/sdf /media/doctordoom/External
mount: mount /dev/sdf on /media/doctordoom/External failed: Bad address
Ok, bad address? Check the Google-Machine
only references to CIFS and NAS shares, nope this is an External USB Drive

I did find an obscure reference to an empty line in fstab that could cause an issue like this, but the error is invalid paramter. So I figure what the heck I will check it

Code: Select all

doctordoom@Ultron-Debian:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sdg1 during installation
UUID=599c1b4d-02f9-4530-bde2-e262fd261aba /               ext4    errors=remount-ro 0       1
# swap was on /dev/sdg5 during installation
UUID=3d9bd1d3-4cee-4cb3-b637-bd2183a775f8 none            swap    sw              0       0
UUID=e1e09d13-a7ad-4ce4-ba27-f271b1c749b9  /home/doctordoom   ext4    defaults   0   2
doctordoom@Ultron-Debian:~$ 
Nope no empty lines, so that rules that out

So finally as a last hoorah I try mounting it as root

Code: Select all

root@Ultron-Debian:/# mount /dev/sdf /home/doctordoom/External
mount: mount /dev/sdf on /home/doctordoom/External failed: Bad address
root@Ultron-Debian:/# 
So at this point I have no clue where to go. I don't pretend to be a Linux power user. I know enough to get through my daily routine but this stinks of something foul that is out of my wheel house.
I should put something profound here, but you try thinking in an iron mask during the summer

Segfault
Posts: 993
Joined: 2005-09-24 12:24
Has thanked: 5 times
Been thanked: 17 times

Re: Cannot Mount drive, even as root

#2 Post by Segfault »

Looks like the drive is going bad. Try running fsck on /dev/sdf1, do a dry run, just to see what it finds.

User avatar
DarthSatan
Posts: 7
Joined: 2018-08-17 22:29
Location: Latveria

Re: Cannot Mount drive, even as root

#3 Post by DarthSatan »

Segfault wrote:Looks like the drive is going bad. Try running fsck on /dev/sdf1, do a dry run, just to see what it finds.
Oh I should mention, it does this on /dev/sdb1, /dev/sdc1, /dev/sdc2, /dev/sdd1, /dev/sdd2, /dev/sdd3, /dev/sdd4, /dev/sde1, and /dev/sdh1

Code: Select all

fsck from util-linux 2.29.2
e2fsck 1.43.4 (31-Jan-2017)
External: clean, 78729/30531584 files, 90535766/122096384 blocks
I should put something profound here, but you try thinking in an iron mask during the summer

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5346
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 12 times
Been thanked: 66 times

Re: Cannot Mount drive, even as root

#4 Post by dilberts_left_nut »

DarthSatan wrote:

Code: Select all

doctordoom@Ultron-Debian:~$ sudo mount /dev/sdf /media/doctordoom/External
mount: mount /dev/sdf on /media/doctordoom/External failed: Bad address
sdf1 contains your filesystem - mount that instead.
AdrianTM wrote:There's no hacker in my grandma...

User avatar
DarthSatan
Posts: 7
Joined: 2018-08-17 22:29
Location: Latveria

Re: Cannot Mount drive, even as root

#5 Post by DarthSatan »

dilberts_left_nut wrote:
DarthSatan wrote:

Code: Select all

doctordoom@Ultron-Debian:~$ sudo mount /dev/sdf /media/doctordoom/External
mount: mount /dev/sdf on /media/doctordoom/External failed: Bad address
sdf1 contains your filesystem - mount that instead.

Same thing

Code: Select all

doctordoom@Ultron-Debian:/media/doctordoom$ sudo mount /dev/sdf1 /media/doctordoom/External
mount: mount /dev/sdf1 on /media/doctordoom/External failed: Bad address
I should put something profound here, but you try thinking in an iron mask during the summer

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5346
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 12 times
Been thanked: 66 times

Re: Cannot Mount drive, even as root

#6 Post by dilberts_left_nut »

Code: Select all

ls -ld /media{,/doctordoom{,/External}}
?
AdrianTM wrote:There's no hacker in my grandma...

User avatar
DarthSatan
Posts: 7
Joined: 2018-08-17 22:29
Location: Latveria

Re: Cannot Mount drive, even as root

#7 Post by DarthSatan »

dilberts_left_nut wrote:

Code: Select all

ls -ld /media{,/doctordoom{,/External}}
?

Code: Select all

root@Ultron-Debian:/home# ls -ld /media{,/doctordoom{,/External}}
drwxr-xr-x  4 root root 4096 Aug  7 01:46 /media
drwxr-x---+ 3 root root 4096 Aug 17 17:42 /media/doctordoom
drwxr-xr-x  2 root root 4096 Aug 17 17:42 /media/doctordoom/External
I should put something profound here, but you try thinking in an iron mask during the summer

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5346
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 12 times
Been thanked: 66 times

Re: Cannot Mount drive, even as root

#8 Post by dilberts_left_nut »

/media/doctordoom has extended attributes for "user automounting".
Mount it somewhere else if doing it manually as root, or investigate further how the system is supposed to work.
AdrianTM wrote:There's no hacker in my grandma...

User avatar
DarthSatan
Posts: 7
Joined: 2018-08-17 22:29
Location: Latveria

Re: Cannot Mount drive, even as root

#9 Post by DarthSatan »

dilberts_left_nut wrote:/media/doctordoom has extended attributes for "user automounting".
Mount it somewhere else if doing it manually as root, or investigate further how the system is supposed to work.

Yeah I tried to mount it else where. I get the same issue

Code: Select all

root@Ultron-Debian:/# ls
bin   etc         initrd.img.old  lost+found  opt   run   sys  var
boot  home        lib             media       proc  sbin  tmp  vmlinuz
dev   initrd.img  lib64           mnt         root  srv   usr  vmlinuz.old
root@Ultron-Debian:/# mkdir /mnt/external
root@Ultron-Debian:/mnt# ls
external
root@Ultron-Debian:/# mount /dev/sdf1 /mnt/external
mount: mount /dev/sdf on /mnt/external failed: Bad address
I feel like there might be something corrupt on the file system itself or there is a permissions issue somewhere
I should put something profound here, but you try thinking in an iron mask during the summer

User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5346
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 12 times
Been thanked: 66 times

Re: Cannot Mount drive, even as root

#10 Post by dilberts_left_nut »

DarthSatan wrote:root@Ultron-Debian:/# mount /dev/sdf1 /mnt/external
mount: mount /dev/sdf on /mnt/external failed: Bad address
Something funky is going on here - maybe a bad drive indeed.
Check dmesg.
AdrianTM wrote:There's no hacker in my grandma...

User avatar
DarthSatan
Posts: 7
Joined: 2018-08-17 22:29
Location: Latveria

Re: Cannot Mount drive, even as root

#11 Post by DarthSatan »

dilberts_left_nut wrote:
DarthSatan wrote:root@Ultron-Debian:/# mount /dev/sdf1 /mnt/external
mount: mount /dev/sdf on /mnt/external failed: Bad address
Something funky is going on here - maybe a bad drive indeed.
Check dmesg.

yeah all the drives work on Mint. So I am pretty sure that either Debian just did the dirty all all over itself(highly unlikely) or this 8 year old Intel SSD decided that life was not worth living any more.
I should put something profound here, but you try thinking in an iron mask during the summer

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: Cannot Mount drive, even as root

#12 Post by debiman »

^ but you said earlier it's happening with all drives & partitions?

anyhow, did this start after an upgrade, and did you reboot after the (kernel) upgrade?

User avatar
DarthSatan
Posts: 7
Joined: 2018-08-17 22:29
Location: Latveria

Re: Cannot Mount drive, even as root

#13 Post by DarthSatan »

debiman wrote:^ but you said earlier it's happening with all drives & partitions?

anyhow, did this start after an upgrade, and did you reboot after the (kernel) upgrade?

No kernel upgrade up dates. The only thing that I can think of it I had moved my home folder to another hard drive. Then added the proper entry into fstab. It has been a few days since I did that, and yesterday when I turned my PC on it started doing all of this bad address business. I can't imagine how moving /home to a different drive would cause something like this.
I should put something profound here, but you try thinking in an iron mask during the summer

Post Reply