You are not logged in.

#1 2017-07-20 19:06:14

swiizard
Member
Registered: 2017-07-20
Posts: 6

[SOLVED] Second hdd partitions not detected at boot and not mountable

First of all a big thank you to the community here, I have found answers to my questions here more times than I can count.

However this problem has me baffled and unfortunatly my Google-fu is not sufficient. When my laptop boots up, it does not recognise the partitions of my secondary hard drive (which I use for data only).
This install has been running fine for the past two years.
After boot the hdd is detected, but no partitions are detected. They are detected after a partprobe, but then I am not able to mount any of the partitions: mount says they are busy.
The partitions work fine on Windows, and I also tested on with a Ubuntu live ISO, and there the partitions also worked fine.

I have three drives in my laptop:

  1. /dev/sda: A 1TB hard disk for data. It has four partitions: an old, unused swap partition, a NTFS partition for data (which is also used by Windows), a BTRFS partition for Linux only data, and a small ext4 partition with Linux (in case my OS drive suddenly fails)

  2. /dev/sdb: A 64GB GB SSD, used for caching the HDD on Windows using Intel Rapid Storage. Not in use on Linux.

  3. /dev/sdc: A 512 GB SSD for OS'es and frequently used data. Two Windows partitions, Arch root, Arch /boot and a swap partition.

My fstab looks like this:

# 
# /etc/fstab: static file system information
#
# <file system>	<dir>	<type>	<options>	<dump>	<pass>
# /dev/sdc3
UUID=6309ad11-8c57-4b5b-b16d-4a32ecc75b09	/        	 	btrfs     	noatime,compress=lzo,ssd,discard,autodefrag					0 0

# /dev/sda4
#UUID=7d7aad2a-921a-48bc-890e-33df4b078934	/mnt/rootbackup		ext4      	rw,relatime,data=ordered							0 2

# /dev/sda2 LABEL=Win-Data
UUID=2F2C114101709775				/mnt/windowsdata	ntfs      	rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,blksize=4096,nofail	0 0

# /dev/sda3 LABEL=Lin-Data
UUID=cd9ede27-2399-4e3e-ac10-0b8df2c5c3f9	/mnt/lindata		btrfs		rw,defaults,nofail								0 0

# /dev/sdc5 LABEL=Arch-boot
UUID=c709abc5-d2d3-4d58-afdc-350cd729dd6e	/boot			ext4		rw,defaults	0 1

# /dev/sdc6 LABEL=Swap
UUID=578da27f-de8c-4f5a-b1fc-f0b57c707863	swap			swap		defaults	0 0

/dev/usbfloppy					/mnt/floppy		auto		ro,defaults,noauto,user								0 0

The following output is just after a reboot (BEFORE running partprobe):
dmesg | grep sd:

[    0.000000] ACPI: SSDT 0x00000000A9B41580 001935 (v01 SaSsdt SaSsdt   00003000 INTL 20091112)
[    5.726377] sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[    5.726383] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    5.726400] sd 0:0:0:0: [sda] Write Protect is off
[    5.726404] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    5.726425] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    5.726551] sd 5:0:0:0: [sdc] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[    5.726565] sd 5:0:0:0: [sdc] Write Protect is off
[    5.726567] sd 5:0:0:0: [sdc] Mode Sense: 00 3a 00 00
[    5.726589] sd 5:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    5.726618] sd 4:0:0:0: [sdb] 125045424 512-byte logical blocks: (64.0 GB/59.6 GiB)
[    5.726647] sd 4:0:0:0: [sdb] Write Protect is off
[    5.726652] sd 4:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[    5.726716] sd 4:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    5.727399]  sdb:
[    5.727809]  sdc: sdc1 sdc2 sdc3 sdc4 < sdc5 sdc6 >
[    5.727846] sd 4:0:0:0: [sdb] Attached SCSI disk
[    5.728322] sd 5:0:0:0: [sdc] Attached SCSI disk
[    5.995594]  sda: sda1 sda2 sda3 sda4
[    5.996401] sd 0:0:0:0: [sda] Attached SCSI disk
[    6.489064] BTRFS: device label Lin-Data devid 1 transid 7556 /dev/sda3
[    6.490863] BTRFS: device label Arch devid 1 transid 208897 /dev/sdc3
[    6.514324] BTRFS info (device sdc3): disk space caching is enabled
[    6.532979] BTRFS info (device sdc3): detected SSD devices, enabling SSD mode
[    6.787250] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    6.787312] sd 4:0:0:0: Attached scsi generic sg2 type 0
[    6.787341] sd 5:0:0:0: Attached scsi generic sg3 type 0
[    6.810175] BTRFS info (device sdc3): use lzo compression
[    6.810179] BTRFS info (device sdc3): turning on discard
[    6.810181] BTRFS info (device sdc3): enabling auto defrag
[    6.810181] BTRFS info (device sdc3): disk space caching is enabled
[    7.207912] Adding 18874364k swap on /dev/sdc6.  Priority:-1 extents:1 across:18874364k SSFS
[    7.270134] EXT4-fs (sdc5): mounted filesystem with ordered data mode. Opts: (null)

cat /proc/partitions

major minor  #blocks  name

   8        0  976762584 sda
   8       32  488386584 sdc
   8       33     358400 sdc1
   8       34  364089344 sdc2
   8       35  104857600 sdc3
   8       36          1 sdc4
   8       37     203776 sdc5
   8       38   18874368 sdc6
   8       16   62522712 sdb
  11        0    1048575 sr0

lsblk

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 931.5G  0 disk 
sdb      8:16   0  59.6G  0 disk 
sdc      8:32   0 465.8G  0 disk 
├─sdc1   8:33   0   350M  0 part 
├─sdc2   8:34   0 347.2G  0 part 
├─sdc3   8:35   0   100G  0 part /
├─sdc4   8:36   0     1K  0 part 
├─sdc5   8:37   0   199M  0 part /boot
└─sdc6   8:38   0    18G  0 part [SWAP]
sr0     11:0    1  1024M  0 rom 

blkid

/dev/sda: TYPE="isw_raid_member"
/dev/sdc1: LABEL="System Reserved" UUID="26961E58961E2937" TYPE="ntfs" PARTUUID="355061c0-01"
/dev/sdc2: LABEL="Winblows" UUID="D68269A482698A37" TYPE="ntfs" PARTUUID="355061c0-02"
/dev/sdc3: LABEL="Arch" UUID="6309ad11-8c57-4b5b-b16d-4a32ecc75b09" UUID_SUB="364e861c-f631-4751-bc7f-f873d286a2f0" TYPE="btrfs" PARTUUID="355061c0-03"
/dev/sdc5: LABEL="Arch-boot" UUID="c709abc5-d2d3-4d58-afdc-350cd729dd6e" TYPE="ext4" PARTUUID="355061c0-05"
/dev/sdc6: LABEL="Swap" UUID="578da27f-de8c-4f5a-b1fc-f0b57c707863" TYPE="swap" PARTUUID="355061c0-06"
/dev/sdb: TYPE="isw_raid_member"

file -sL /dev/sda

/dev/sda: DOS/MBR boot sector

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 / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x000769d3

Device     Boot      Start        End    Sectors   Size Id Type
/dev/sda1             2048   15628287   15626240   7.5G 82 Linux swap / Solaris
/dev/sda2         15628288 1710811135 1695182848 808.3G  7 HPFS/NTFS/exFAT
/dev/sda3       1710811136 1933258751  222447616 106.1G 83 Linux
/dev/sda4       1933258752 1953241087   19982336   9.5G 83 Linux


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

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sdc1  *         2048    718847    716800   350M  7 HPFS/NTFS/exFAT
/dev/sdc2          718848 728897535 728178688 347.2G  7 HPFS/NTFS/exFAT
/dev/sdc3       728897536 938612735 209715200   100G 83 Linux
/dev/sdc4       938612736 976773119  38160384  18.2G  5 Extended
/dev/sdc5       976363520 976771071    407552   199M 83 Linux
/dev/sdc6       938614784 976363519  37748736    18G 82 Linux swap / Solaris

Partition table entries are not in disk order.


Disk /dev/sdb: 59.6 GiB, 64023257088 bytes, 125045424 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: 0x09df389f

And the following output is from AFTER running partprobe:

partprobe --summary

/dev/sda: msdos partitions 1 2 3 4
/dev/sdb: msdos partitions
/dev/sdc: msdos partitions 1 2 3 4 <6 5>

dmesg | grep sd

[    0.000000] ACPI: SSDT 0x00000000A9B41580 001935 (v01 SaSsdt SaSsdt   00003000 INTL 20091112)
[    5.726377] sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[    5.726383] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    5.726400] sd 0:0:0:0: [sda] Write Protect is off
[    5.726404] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    5.726425] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    5.726551] sd 5:0:0:0: [sdc] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[    5.726565] sd 5:0:0:0: [sdc] Write Protect is off
[    5.726567] sd 5:0:0:0: [sdc] Mode Sense: 00 3a 00 00
[    5.726589] sd 5:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    5.726618] sd 4:0:0:0: [sdb] 125045424 512-byte logical blocks: (64.0 GB/59.6 GiB)
[    5.726647] sd 4:0:0:0: [sdb] Write Protect is off
[    5.726652] sd 4:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[    5.726716] sd 4:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    5.727399]  sdb:
[    5.727809]  sdc: sdc1 sdc2 sdc3 sdc4 < sdc5 sdc6 >
[    5.727846] sd 4:0:0:0: [sdb] Attached SCSI disk
[    5.728322] sd 5:0:0:0: [sdc] Attached SCSI disk
[    5.995594]  sda: sda1 sda2 sda3 sda4
[    5.996401] sd 0:0:0:0: [sda] Attached SCSI disk
[    6.489064] BTRFS: device label Lin-Data devid 1 transid 7556 /dev/sda3
[    6.490863] BTRFS: device label Arch devid 1 transid 208897 /dev/sdc3
[    6.514324] BTRFS info (device sdc3): disk space caching is enabled
[    6.532979] BTRFS info (device sdc3): detected SSD devices, enabling SSD mode
[    6.787250] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    6.787312] sd 4:0:0:0: Attached scsi generic sg2 type 0
[    6.787341] sd 5:0:0:0: Attached scsi generic sg3 type 0
[    6.810175] BTRFS info (device sdc3): use lzo compression
[    6.810179] BTRFS info (device sdc3): turning on discard
[    6.810181] BTRFS info (device sdc3): enabling auto defrag
[    6.810181] BTRFS info (device sdc3): disk space caching is enabled
[    7.207912] Adding 18874364k swap on /dev/sdc6.  Priority:-1 extents:1 across:18874364k SSFS
[    7.270134] EXT4-fs (sdc5): mounted filesystem with ordered data mode. Opts: (null)
[  960.092143]  sda: sda1 sda2 sda3 sda4
[  960.094536]  sdb:
[  961.078024]  sdb:

cat /proc/partitions

major minor  #blocks  name

   8        0  976762584 sda
   8        1    7813120 sda1
   8        2  847591424 sda2
   8        3  111223808 sda3
   8        4    9991168 sda4
   8       32  488386584 sdc
   8       33     358400 sdc1
   8       34  364089344 sdc2
   8       35  104857600 sdc3
   8       37     203776 sdc5
   8       38   18874368 sdc6
   8       16   62522712 sdb
  11        0    1048575 sr0

lsblk

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 931.5G  0 disk 
├─sda1   8:1    0   7.5G  0 part 
├─sda2   8:2    0 808.3G  0 part 
├─sda3   8:3    0 106.1G  0 part 
└─sda4   8:4    0   9.5G  0 part 
sdb      8:16   0  59.6G  0 disk 
sdc      8:32   0 465.8G  0 disk 
├─sdc1   8:33   0   350M  0 part 
├─sdc2   8:34   0 347.2G  0 part 
├─sdc3   8:35   0   100G  0 part /
├─sdc5   8:37   0   199M  0 part /boot
└─sdc6   8:38   0    18G  0 part [SWAP]
sr0     11:0    1  1024M  0 rom

blkid

/dev/sdc1: LABEL="System Reserved" UUID="26961E58961E2937" TYPE="ntfs" PARTUUID="355061c0-01"
/dev/sdc2: LABEL="Winblows" UUID="D68269A482698A37" TYPE="ntfs" PARTUUID="355061c0-02"
/dev/sdc3: LABEL="Arch" UUID="6309ad11-8c57-4b5b-b16d-4a32ecc75b09" UUID_SUB="364e861c-f631-4751-bc7f-f873d286a2f0" TYPE="btrfs" PARTUUID="355061c0-03"
/dev/sdc5: LABEL="Arch-boot" UUID="c709abc5-d2d3-4d58-afdc-350cd729dd6e" TYPE="ext4" PARTUUID="355061c0-05"
/dev/sdc6: LABEL="Swap" UUID="578da27f-de8c-4f5a-b1fc-f0b57c707863" TYPE="swap" PARTUUID="355061c0-06"
/dev/sdb: TYPE="isw_raid_member"
/dev/sda1: UUID="4ab4f8f4-0386-4784-9b2b-5bbea1d12f3f" TYPE="swap" PARTUUID="000769d3-01"
/dev/sda2: LABEL="Win-Data" UUID="2F2C114101709775" TYPE="ntfs" PARTUUID="000769d3-02"
/dev/sda3: LABEL="Lin-Data" UUID="cd9ede27-2399-4e3e-ac10-0b8df2c5c3f9" UUID_SUB="b6f9775b-bdd2-494f-8b60-1be43cda1ef9" TYPE="btrfs" PARTUUID="000769d3-03"
/dev/sda4: LABEL="Emergency-Linux" UUID="7d7aad2a-921a-48bc-890e-33df4b078934" TYPE="ext4" PARTUUID="000769d3-04"

file -sL /dev/sda2

/dev/sda2: DOS/MBR boot sector, code offset 0x52+2, OEM-ID "NTFS    ", sectors/cluster 8, Media descriptor 0xf8, sectors/track 63, heads 255, hidden sectors 15628288, dos < 4.0 BootSector (0x80), FAT (1Y bit by descriptor); NTFS, sectors/track 63, sectors 1695182840, $MFT start cluster 4, $MFTMirror start cluster 24414079, bytes/RecordSegment 2^(-1*246), clusters/index block 1, serial number 02f2c114101709775; containsMicrosoft Windows XP/VISTA bootloader BOOTMGR

file -sL /dev/sda3

/dev/sda3: BTRFS Filesystem label "Lin-Data", sectorsize 4096, nodesize 16384, leafsize 16384, UUID=cd9ede27-2399-4e3e-ac10-0b8df2c5c3f9, 89259294720/113893179392 bytes used, 1 devices

mount /mnt/windowsdata/

WARNING: blksize option is ignored because ntfs-3g must calculate it.
fuse: mount failed: Device or resource busy

mount /mnt/lindata/

mount: /dev/sda3 is already mounted or /mnt/lindata busy

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=8148332k,nr_inodes=2037083,mode=755)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
/dev/sdc3 on / type btrfs (rw,noatime,compress=lzo,ssd,discard,space_cache,autodefrag,subvolid=5,subvol=/)
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/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
mqueue on /dev/mqueue type mqueue (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=35,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
/dev/sdc5 on /boot type ext4 (rw,relatime,data=ordered)
tmpfs on /run/user/120 type tmpfs (rw,nosuid,nodev,relatime,size=1632308k,mode=700,uid=120,gid=120)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=1632308k,mode=700,uid=1000,gid=1000)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)

To rule out a issue with the target mounting directory, I created a new directory in /mnt/ and tried to manually mount the partitions.
mount /dev/sda2 /mnt/tmp

fuse: mount failed: Device or resource busy

mount /dev/sda3 /mnt/tmp

mount: /dev/sda3 is already mounted or /mnt/tmpmnt busy

I am out of ideas to try and where to look, could anyone give me a pointer to what the issue could be or where to look next?

Last edited by swiizard (2017-07-21 18:12:34)

Offline

#2 2017-07-20 20:32:34

Maniaxx
Member
Registered: 2014-05-14
Posts: 738

Re: [SOLVED] Second hdd partitions not detected at boot and not mountable

What exactly is the problem? You cannot mount NTFS at all? Or just from one specific HDD? Do you have ntfs-3g installed?


sys2064

Offline

#3 2017-07-20 20:37:45

seth
Member
Registered: 2012-09-03
Posts: 51,204

Re: [SOLVED] Second hdd partitions not detected at boot and not mountable

Replace "nofail" by "noauto", add sda1/swap to fstab to prevent systemd from smartness (did you swapoff the partition?) and remove the "blksize" parameter from the ntfs partition.
Reboot and see whether you can mount partitions.

Online

#4 2017-07-20 20:44:52

swiizard
Member
Registered: 2017-07-20
Posts: 6

Re: [SOLVED] Second hdd partitions not detected at boot and not mountable

Maniaxx wrote:

What exactly is the problem? You cannot mount NTFS at all? Or just from one specific HDD? Do you have ntfs-3g installed?

I cannot mount any partition from /dev/sda, I tried both the Windows data (ntfs, /dev/sda2) and the Linux data (btrfs, /dev/sda3) partitions.

NTFS-3G is installed, my install was working fine until now. I can also mount external USB hard drives formatted as NTFS.

seth wrote:

Replace "nofail" by "noauto", add sda1/swap to fstab to prevent systemd from smartness (did you swapoff the partition?) and remove the "blksize" parameter from the ntfs partition.
Reboot and see whether you can mount partitions.

Thanks for the ssuggestions, I will try them tomorrow in the morning and edit this reply with the results.
---------------------------------------------------------------------------------------------------------------------------------------

I have tried your suggestions. Regarding swapoff: yes I did, it did not show up in /proc/swaps.

I edited my /etc/fstab to look like this:

# 
# /etc/fstab: static file system information
#
# <file system> <dir>   <type>  <options>       <dump>  <pass>
# /dev/sdc3
UUID=6309ad11-8c57-4b5b-b16d-4a32ecc75b09       /                       btrfs           noatime,compress=lzo,ssd,discard,autodefrag                                     0 0

# /dev/sda4
#UUID=7d7aad2a-921a-48bc-890e-33df4b078934      /mnt/rootbackup         ext4            rw,relatime,data=ordered                                                        0 2

# /dev/sda2 LABEL=Win-Data
UUID=2F2C114101709775                           /mnt/windowsdata        ntfs            rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,noauto                0 0

# /dev/sda3 LABEL=Lin-Data
UUID=cd9ede27-2399-4e3e-ac10-0b8df2c5c3f9       /mnt/lindata            btrfs           rw,defaults,noauto                                                              0 0

# /dev/sdc5 LABEL=Arch-boot
UUID=c709abc5-d2d3-4d58-afdc-350cd729dd6e       /boot                   ext4            rw,defaults                                                                     0 1

# /dev/sdc6 LABEL=Swap
UUID=578da27f-de8c-4f5a-b1fc-f0b57c707863       swap                    swap            defaults                                                                        0 0

/dev/usbfloppy                                  /mnt/floppy             auto            ro,defaults,noauto,user                                                         0 0

# /dev/sda1 Old swap not in use anymore
UUID=4ab4f8f4-0386-4784-9b2b-5bbea1d12f3f       swap                    seap            noauto                                                                          0 0

Unfortunatly this did not change any of the symptoms, after boot the partitions are not detected and after partprobe the partitions are not mountable.

Last edited by swiizard (2017-07-21 07:21:29)

Offline

#5 2017-07-21 07:56:41

Maniaxx
Member
Registered: 2014-05-14
Posts: 738

Re: [SOLVED] Second hdd partitions not detected at boot and not mountable

Looks like it was detected as raid. Check /proc/mdstat and maybe do 'mdadm --stop /dev/mdx'.


sys2064

Offline

#6 2017-07-21 09:14:29

swiizard
Member
Registered: 2017-07-20
Posts: 6

Re: [SOLVED] Second hdd partitions not detected at boot and not mountable

Unfortunatly that didn't help either.

cat /proc/mdstat:

Personalities : 
md126 : inactive sda[0](S)
      2128 blocks super external:imsm
       
md127 : inactive sdb[0](S)
      2132 blocks super external:imsm
       
unused devices: <none>

ls -R /dev/ | grep md

md
md126
md127
md-uuid-2dba2f28:1637dde2:baf6eada:347dd5e0
md-uuid-ab78e4b9:fb34e6ae:862d8482:89d079b7
/dev/md:

mdadm --stop /dev/md*

mdadm: /dev/md does not appear to be an md device
mdadm: Error connecting monitor with /run/mdadm/md126.sock: No such file or directory
mdadm: stopped /dev/md126
mdadm: Error connecting monitor with /run/mdadm/md127.sock: No such file or directory
mdadm: stopped /dev/md127

ls /run/mdadm:

map

I also ran the follwing commands on a Ubuntu 14.04 Live ISO for comparison:

cat /proc/partitions

major minor  #blocks  name

   7        0    1004544 loop0
   7        1     961232 loop1
   8        0  976762584 sda
   8        1    7813120 sda1
   8        2  847591424 sda2
   8        3  111223808 sda3
   8        4    9991168 sda4
  11        0    1048575 sr0
   8       16   62522712 sdb
   8       32  488386584 sdc
   8       33     358400 sdc1
   8       34  364089344 sdc2
   8       35  104857600 sdc3
   8       36          1 sdc4
   8       37     203776 sdc5
   8       38   18874368 sdc6
   8       48   15335424 sdd
   8       49   15334400 sdd1

cat /proc/mdstat

Personalities : 
unused devices: <none>

blkid

/dev/loop0: LABEL="Ubuntu 14.04.1 LTS amd64" TYPE="iso9660" 
/dev/loop1: TYPE="squashfs" 
/dev/sda1: UUID="4ab4f8f4-0386-4784-9b2b-5bbea1d12f3f" TYPE="swap" 
/dev/sda2: LABEL="Win-Data" UUID="2F2C114101709775" TYPE="ntfs" 
/dev/sda3: LABEL="Lin-Data" UUID="cd9ede27-2399-4e3e-ac10-0b8df2c5c3f9" UUID_SUB="b6f9775b-bdd2-494f-8b60-1be43cda1ef9" TYPE="btrfs" 
/dev/sda4: LABEL="Emergency-Linux" UUID="7d7aad2a-921a-48bc-890e-33df4b078934" TYPE="ext4" 
/dev/sdb: TYPE="isw_raid_member" 
/dev/sdc1: LABEL="System Reserved" UUID="26961E58961E2937" TYPE="ntfs" 
/dev/sdc2: LABEL="Winblows" UUID="D68269A482698A37" TYPE="ntfs" 
/dev/sdc3: LABEL="Arch" UUID="6309ad11-8c57-4b5b-b16d-4a32ecc75b09" UUID_SUB="364e861c-f631-4751-bc7f-f873d286a2f0" TYPE="btrfs" 
/dev/sdc5: LABEL="Arch-boot" UUID="c709abc5-d2d3-4d58-afdc-350cd729dd6e" TYPE="ext4" 
/dev/sdc6: LABEL="Swap" UUID="578da27f-de8c-4f5a-b1fc-f0b57c707863" TYPE="swap" 
/dev/sdd1: LABEL="BOOTSTICK" UUID="7F5E-FD96" TYPE="vfat"

lsblk -f

NAME   FSTYPE          LABEL                    MOUNTPOINT
sda    isw_raid_member                          
├─sda1 swap                                     
├─sda2 ntfs            Win-Data                 
├─sda3 btrfs           Lin-Data                 
└─sda4 ext4            Emergency-Linux          
sdb    isw_raid_member                          
sdc                                             
├─sdc1 ntfs            System Reserved          
├─sdc2 ntfs            Winblows                 
├─sdc3 btrfs           Arch                     
├─sdc4                                          
├─sdc5 ext4            Arch-boot                
└─sdc6 swap            Swap                     [SWAP]
sdd                                             
└─sdd1 vfat            BOOTSTICK                /isodevice
sr0                                             
loop0  iso9660         Ubuntu 14.04.1 LTS amd64 /cdrom
loop1  squashfs                                 /rofs

ls -R /dev/ | grep sd

sda
sda1
sda2
sda3
sda4
sdb
sdc
sdc1
sdc2
sdc3
sdc4
sdc5
sdc6
sdd
sdd1

ls -R /dev/ | grep md

Ubuntu\x2014.04.1\x20LTS\x20amd64

EDIT: some progress
It seems that indeed mdadm is at fault. After running partprobe first and after that mdadm --stop /dev/md*, I am able to mount the partitions.
When mdadm --stop /dev/md* is run before partprobe, I get the following error:

Error: Partition(s) 1 on /dev/sda have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use.  As a result, the old partition(s) will remain in use.  You should reboot now before making further changes.

After the incorrect order /proc/mdstat looks like this:

md126 : inactive sda[0](S)
      2128 blocks super external:imsm
       
md127 : inactive sdb[0](S)
      2132 blocks super external:imsm
       
unused devices: <none>

After running partprobe and then mdadm --stop /dev/md* (the correct order), /proc/mdstat looks like this:

Personalities : 
unused devices: <none>

My /etc/mdadm.conf looks llike this:

# mdadm configuration file
#
# mdadm will function properly without the use of a configuration file,
# but this file is useful for keeping track of arrays and member disks.
# In general, a mdadm.conf file is created, and updated, after arrays
# are created. This is the opposite behavior of /etc/raidtab which is
# created prior to array construction.
#
#
# the config file takes two types of lines:
#
#    DEVICE lines specify a list of devices of where to look for
#      potential member disks
#
#    ARRAY lines specify information about how to identify arrays so
#      so that they can be activated
#


# You can have more than one device line and use wild cards. The first 
# example includes SCSI the first partition of SCSI disks /dev/sdb,
# /dev/sdc, /dev/sdd, /dev/sdj, /dev/sdk, and /dev/sdl. The second 
# line looks for array slices on IDE disks.
#
#DEVICE /dev/sd[bcdjkl]1
#DEVICE /dev/hda1 /dev/hdb1
#
# The designation "partitions" will scan all partitions found in
# /proc/partitions
DEVICE partitions


# ARRAY lines specify an array to assemble and a method of identification.
# Arrays can currently be identified by using a UUID, superblock minor number,
# or a listing of devices.
#
#    super-minor is usually the minor number of the metadevice
#    UUID is the Universally Unique Identifier for the array
# Each can be obtained using
#
#     mdadm -D <md>
#
# To capture the UUIDs for all your RAID arrays to this file, run these:
#    to get a list of running arrays:
#    # mdadm -D --scan >>/etc/mdadm.conf
#    to get a list from superblocks:
#    # mdadm -E --scan >>/etc/mdadm.conf
#
#ARRAY /dev/md0 UUID=3aaa0122:29827cfa:5331ad66:ca767371
#ARRAY /dev/md1 super-minor=1
#ARRAY /dev/md2 devices=/dev/hda1,/dev/hdb1
#
# ARRAY lines can also specify a "spare-group" for each array.  mdadm --monitor
# will then move a spare between arrays in a spare-group if one array has a
# failed drive but no spare
#ARRAY /dev/md4 uuid=b23f3c6d:aec43a9f:fd65db85:369432df spare-group=group1
#ARRAY /dev/md5 uuid=19464854:03f71b1b:e0df2edd:246cc977 spare-group=group1
#


# When used in --follow (aka --monitor) mode, mdadm needs a
# mail address and/or a program.  To start mdadm's monitor mode, enable
# mdadm.service in systemd.
#
# If the lines are not found, mdadm will exit quietly
#MAILADDR root@mydomain.tld
#PROGRAM /usr/sbin/handle-mdadm-events

I also tried to comment out "DEVICE partitions" but that changed nothing.

Last edited by swiizard (2017-07-21 10:25:52)

Offline

#7 2017-07-21 10:51:49

Maniaxx
Member
Registered: 2014-05-14
Posts: 738

Re: [SOLVED] Second hdd partitions not detected at boot and not mountable

Looks like it finds raid superblocks in the first place. Did you ever create raids or have raid enabled in bios? Do you have any Win8+ with fastboot?

It is possible to flush the raid superblock with 'mdadm' but I'm not sure if that's potentially dangerous here.


sys2064

Offline

#8 2017-07-21 10:56:42

swiizard
Member
Registered: 2017-07-20
Posts: 6

Re: [SOLVED] Second hdd partitions not detected at boot and not mountable

I was just typing up a second edit about how i solved it, but will post it here:

I solved it by changing "DEVICE partitions" to "DEVICE /dev/null" as per this ServerFault answer.

This feels a bit hacky however, if anyone has a better/cleaner way of disabling mdadm I would be glad to hear.

And yes it is indeed a RAID for windows caching using the 64GB SSD (this is required for Intel Smart Response Technology (SRT), and for the time being I don't want to get rid of/change this setup.

Offline

#9 2017-07-21 14:07:01

seth
Member
Registered: 2012-09-03
Posts: 51,204

Online

#10 2017-07-21 17:10:19

swiizard
Member
Registered: 2017-07-20
Posts: 6

Re: [SOLVED] Second hdd partitions not detected at boot and not mountable

Thanks for the link. However, it is when I disable mdadm/fakeRAID that I can mount and access the drive. The caching SSD is setup with Intel SRT which is not compatible with Linux. So therefore that guide will not work for me.

Offline

#11 2017-07-21 17:42:18

seth
Member
Registered: 2012-09-03
Posts: 51,204

Re: [SOLVED] Second hdd partitions not detected at boot and not mountable

dmraid, not mdadm - intel srt is a software raid in the firmware, it should be "compatible" with dmraid.
However, read the article closely and avoid "experimenting" without a ***backup*** of the data on the touched disks or you might indeed find yourself in an unfortunate situation if there're unforeseen oddities (or you do shit, happens, happened ... ;-)

Online

#12 2017-07-21 18:11:38

swiizard
Member
Registered: 2017-07-20
Posts: 6

Re: [SOLVED] Second hdd partitions not detected at boot and not mountable

Well, I am a bit confused. The wiki states this:

Btw, it appears that Intel now recommends mdadm instead of dmraid (see Discussion). Update in progress. See "MBR Install" below for an example of a install using the MBR disk partition layout using intel FakeRAID and mdadm...

(snip)

...dmraid is currently unmaintained and might break with new linux versions. Using mdadm is highly recommended

I will leave it as it is currently, and "experiment" (with a backup) later. Marking this thread as SOLVED.

Thank you seth and Maniaxx for your help.

Offline

Board footer

Powered by FluxBB