RESOLVED: Issue adding new Hard Drive

phreaq
Posts: 87
Joined: Sun Jul 20, 2014 10:39 am

RESOLVED: Issue adding new Hard Drive

Postby phreaq » Fri Mar 27, 2015 8:39 am

I am following the wiki in adding a new drive, and I'm having and issue with hda-diskmount not showing my new drive.

After following the steps again, I noticed something odd when doing 'diff before.txt after.txt' (* the wiki is flawed here, and I'll explain below)

When I run 'ls -l /dev/disk/by-id/' I get the following:

Code: Select all

lrwxrwxrwx 1 root root 9 Mar 27 09:18 ata-ADATA_SX900_02224145500300002062 -> ../../sda lrwxrwxrwx 1 root root 10 Mar 27 09:18 ata-ADATA_SX900_02224145500300002062-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Mar 27 09:18 ata-ADATA_SX900_02224145500300002062-part2 -> ../../sda2 lrwxrwxrwx 1 root root 10 Mar 27 09:18 ata-ADATA_SX900_02224145500300002062-part3 -> ../../sda3 lrwxrwxrwx 1 root root 9 Mar 27 09:18 ata-WDC_WD30EZRX-00D8PB0_WD-WCC4N0740277 -> ../../sdb lrwxrwxrwx 1 root root 10 Mar 27 09:19 ata-WDC_WD30EZRX-00D8PB0_WD-WCC4N0740277-part1 -> ../../sdb1 lrwxrwxrwx 1 root root 9 Mar 27 09:19 usb-ST2000DM_001-9YN164_000000000000-0:3 -> ../../sdj lrwxrwxrwx 1 root root 10 Mar 27 09:19 usb-ST2000DM_001-9YN164_000000000000-0:3-part1 -> ../../sdj1 lrwxrwxrwx 1 root root 9 Mar 27 09:18 usb-ST330006_51AS_152D20339006-0:2 -> ../../sde lrwxrwxrwx 1 root root 10 Mar 27 09:18 usb-ST330006_51AS_152D20339006-0:2-part1 -> ../../sde1 lrwxrwxrwx 1 root root 9 Mar 27 09:19 usb-WDC_WD20_EARX-00PASB0_000000000000-0:1 -> ../../sdh lrwxrwxrwx 1 root root 10 Mar 27 09:19 usb-WDC_WD20_EARX-00PASB0_000000000000-0:1-part1 -> ../../sdh1 lrwxrwxrwx 1 root root 9 Mar 27 09:19 usb-WDC_WD20_EZRX-00DC0B0_000000000000-0:0 -> ../../sdg lrwxrwxrwx 1 root root 10 Mar 27 09:19 usb-WDC_WD20_EZRX-00DC0B0_000000000000-0:0-part1 -> ../../sdg1 lrwxrwxrwx 1 root root 9 Mar 27 09:18 usb-WDC_WD20_EZRX-00DC0B0_152D20339006-0:3 -> ../../sdf lrwxrwxrwx 1 root root 10 Mar 27 09:18 usb-WDC_WD20_EZRX-00DC0B0_152D20339006-0:3-part1 -> ../../sdf1 lrwxrwxrwx 1 root root 9 Mar 27 09:18 usb-WDC_WD30_EZRX-00D8PB0_152D20339006-0:1 -> ../../sdd lrwxrwxrwx 1 root root 10 Mar 27 09:18 usb-WDC_WD30_EZRX-00D8PB0_152D20339006-0:1-part1 -> ../../sdd1 lrwxrwxrwx 1 root root 9 Mar 27 09:18 usb-WDC_WD30_EZRX-00MMMB0_152D20339006-0:0 -> ../../sdc lrwxrwxrwx 1 root root 10 Mar 27 09:18 usb-WDC_WD30_EZRX-00MMMB0_152D20339006-0:0-part1 -> ../../sdc1 lrwxrwxrwx 1 root root 9 Mar 27 09:19 usb-WDC_WD30_EZRX-00SPEB0_000000000000-0:2 -> ../../sdi lrwxrwxrwx 1 root root 10 Mar 27 09:19 usb-WDC_WD30_EZRX-00SPEB0_000000000000-0:2-part1 -> ../../sdi1 lrwxrwxrwx 1 root root 9 Mar 27 09:19 usb-WD_My_Book_1140_574D41575A30333839333736-0:0 -> ../../sdk lrwxrwxrwx 1 root root 10 Mar 27 09:19 usb-WD_My_Book_1140_574D41575A30333839333736-0:0-part1 -> ../../sdk1 lrwxrwxrwx 1 root root 9 Mar 27 09:18 wwn-0x50014ee209cbcfed -> ../../sdb lrwxrwxrwx 1 root root 10 Mar 27 09:19 wwn-0x50014ee209cbcfed-part1 -> ../../sdb1
notice /sdb and /sdb1 are listed twice.

Code: Select all

... lrwxrwxrwx 1 root root 9 Mar 27 09:18 ata-WDC_WD30EZRX-00D8PB0_WD-WCC4N0740277 -> ../../sdb lrwxrwxrwx 1 root root 10 Mar 27 09:19 ata-WDC_WD30EZRX-00D8PB0_WD-WCC4N0740277-part1 -> ../../sdb1 ... lrwxrwxrwx 1 root root 9 Mar 27 09:18 wwn-0x50014ee209cbcfed -> ../../sdb lrwxrwxrwx 1 root root 10 Mar 27 09:19 wwn-0x50014ee209cbcfed-part1 -> ../../sdb1
This doesn't seem right, right?

*I believe the wiki is flawed in the following way:

step 1: run ls -l /dev/disk/by-id/ > before.txt
step 2: shut down, add drive, restart
step 3: run ls -l /dev/disk/by-id/ > after.txt
step 4: run diff before.txt after.txt

The expected result is to show the details for the new drive. However, the .txt file's contain a time stamp, and step 2 may take longer than 1 min to complete, so all drives appear in the diff results

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Issue adding new Hard Drive

Postby bigfoot65 » Fri Mar 27, 2015 1:14 pm

Not sure I follow here.

The before.txt should only reflect drives that were connected to the HDA at that time.

If you add a new drive, then start the machine it should not have appeared in the before.txt, only in the after.txt.

So why do you have a listing with two drives, assigned to the same device of sdb and sdb1?

The wiki guidance was developed based on a basic HDA setup. Do you have RAID set up or something else that is out of the ordinary with your hardware or HDA configuration?

I have not heard of any issues before with this guidance, so I am a bit baffled by your results. Please help me understand.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

phreaq
Posts: 87
Joined: Sun Jul 20, 2014 10:39 am

Re: Issue adding new Hard Drive

Postby phreaq » Fri Mar 27, 2015 1:24 pm

no, I am not doing anything fancy with a raid, just regular drives.

Here's the contents of my before.txt

Code: Select all

lrwxrwxrwx 1 root root 9 Mar 27 07:50 ata-ADATA_SX900_02224145500300002062 -> ../../sda lrwxrwxrwx 1 root root 10 Mar 27 07:50 ata-ADATA_SX900_02224145500300002062-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Mar 27 07:50 ata-ADATA_SX900_02224145500300002062-part2 -> ../../sda2 lrwxrwxrwx 1 root root 10 Mar 27 07:50 ata-ADATA_SX900_02224145500300002062-part3 -> ../../sda3 lrwxrwxrwx 1 root root 9 Mar 27 07:50 usb-ST2000DM_001-9YN164_000000000000-0:3 -> ../../sdj lrwxrwxrwx 1 root root 10 Mar 27 07:50 usb-ST2000DM_001-9YN164_000000000000-0:3-part1 -> ../../sdj1 lrwxrwxrwx 1 root root 9 Mar 27 07:50 usb-ST330006_51AS_152D20339006-0:2 -> ../../sde lrwxrwxrwx 1 root root 10 Mar 27 07:50 usb-ST330006_51AS_152D20339006-0:2-part1 -> ../../sde1 lrwxrwxrwx 1 root root 9 Mar 27 07:50 usb-WDC_WD20_EARX-00PASB0_000000000000-0:1 -> ../../sdh lrwxrwxrwx 1 root root 10 Mar 27 07:50 usb-WDC_WD20_EARX-00PASB0_000000000000-0:1-part1 -> ../../sdh1 lrwxrwxrwx 1 root root 9 Mar 27 07:50 usb-WDC_WD20_EZRX-00DC0B0_000000000000-0:0 -> ../../sdg lrwxrwxrwx 1 root root 10 Mar 27 07:50 usb-WDC_WD20_EZRX-00DC0B0_000000000000-0:0-part1 -> ../../sdg1 lrwxrwxrwx 1 root root 9 Mar 27 07:50 usb-WDC_WD20_EZRX-00DC0B0_152D20339006-0:3 -> ../../sdf lrwxrwxrwx 1 root root 10 Mar 27 07:50 usb-WDC_WD20_EZRX-00DC0B0_152D20339006-0:3-part1 -> ../../sdf1 lrwxrwxrwx 1 root root 9 Mar 27 07:50 usb-WDC_WD30_EZRX-00D8PB0_152D20339006-0:1 -> ../../sdd lrwxrwxrwx 1 root root 10 Mar 27 07:50 usb-WDC_WD30_EZRX-00D8PB0_152D20339006-0:1-part1 -> ../../sdd1 lrwxrwxrwx 1 root root 9 Mar 27 07:50 usb-WDC_WD30_EZRX-00MMMB0_152D20339006-0:0 -> ../../sdc lrwxrwxrwx 1 root root 10 Mar 27 07:50 usb-WDC_WD30_EZRX-00MMMB0_152D20339006-0:0-part1 -> ../../sdc1 lrwxrwxrwx 1 root root 9 Mar 27 07:50 usb-WDC_WD30_EZRX-00SPEB0_000000000000-0:2 -> ../../sdi lrwxrwxrwx 1 root root 10 Mar 27 07:51 usb-WDC_WD30_EZRX-00SPEB0_000000000000-0:2-part1 -> ../../sdi1 lrwxrwxrwx 1 root root 9 Mar 27 07:50 usb-WD_My_Book_1140_574D41575A30333839333736-0:0 -> ../../sdk lrwxrwxrwx 1 root root 10 Mar 27 07:50 usb-WD_My_Book_1140_574D41575A30333839333736-0:0-part1 -> ../../sdk1
here is my after:

Code: Select all

lrwxrwxrwx 1 root root 9 Mar 27 09:18 ata-ADATA_SX900_02224145500300002062 -> ../../sda lrwxrwxrwx 1 root root 10 Mar 27 09:18 ata-ADATA_SX900_02224145500300002062-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Mar 27 09:18 ata-ADATA_SX900_02224145500300002062-part2 -> ../../sda2 lrwxrwxrwx 1 root root 10 Mar 27 09:18 ata-ADATA_SX900_02224145500300002062-part3 -> ../../sda3 lrwxrwxrwx 1 root root 9 Mar 27 09:18 ata-WDC_WD30EZRX-00D8PB0_WD-WCC4N0740277 -> ../../sdb lrwxrwxrwx 1 root root 10 Mar 27 09:19 ata-WDC_WD30EZRX-00D8PB0_WD-WCC4N0740277-part1 -> ../../sdb1 lrwxrwxrwx 1 root root 9 Mar 27 09:19 usb-ST2000DM_001-9YN164_000000000000-0:3 -> ../../sdj lrwxrwxrwx 1 root root 10 Mar 27 09:19 usb-ST2000DM_001-9YN164_000000000000-0:3-part1 -> ../../sdj1 lrwxrwxrwx 1 root root 9 Mar 27 09:18 usb-ST330006_51AS_152D20339006-0:2 -> ../../sde lrwxrwxrwx 1 root root 10 Mar 27 09:18 usb-ST330006_51AS_152D20339006-0:2-part1 -> ../../sde1 lrwxrwxrwx 1 root root 9 Mar 27 09:19 usb-WDC_WD20_EARX-00PASB0_000000000000-0:1 -> ../../sdh lrwxrwxrwx 1 root root 10 Mar 27 09:19 usb-WDC_WD20_EARX-00PASB0_000000000000-0:1-part1 -> ../../sdh1 lrwxrwxrwx 1 root root 9 Mar 27 09:19 usb-WDC_WD20_EZRX-00DC0B0_000000000000-0:0 -> ../../sdg lrwxrwxrwx 1 root root 10 Mar 27 09:19 usb-WDC_WD20_EZRX-00DC0B0_000000000000-0:0-part1 -> ../../sdg1 lrwxrwxrwx 1 root root 9 Mar 27 09:18 usb-WDC_WD20_EZRX-00DC0B0_152D20339006-0:3 -> ../../sdf lrwxrwxrwx 1 root root 10 Mar 27 09:18 usb-WDC_WD20_EZRX-00DC0B0_152D20339006-0:3-part1 -> ../../sdf1 lrwxrwxrwx 1 root root 9 Mar 27 09:18 usb-WDC_WD30_EZRX-00D8PB0_152D20339006-0:1 -> ../../sdd lrwxrwxrwx 1 root root 10 Mar 27 09:18 usb-WDC_WD30_EZRX-00D8PB0_152D20339006-0:1-part1 -> ../../sdd1 lrwxrwxrwx 1 root root 9 Mar 27 09:18 usb-WDC_WD30_EZRX-00MMMB0_152D20339006-0:0 -> ../../sdc lrwxrwxrwx 1 root root 10 Mar 27 09:18 usb-WDC_WD30_EZRX-00MMMB0_152D20339006-0:0-part1 -> ../../sdc1 lrwxrwxrwx 1 root root 9 Mar 27 09:19 usb-WDC_WD30_EZRX-00SPEB0_000000000000-0:2 -> ../../sdi lrwxrwxrwx 1 root root 10 Mar 27 09:19 usb-WDC_WD30_EZRX-00SPEB0_000000000000-0:2-part1 -> ../../sdi1 lrwxrwxrwx 1 root root 9 Mar 27 09:19 usb-WD_My_Book_1140_574D41575A30333839333736-0:0 -> ../../sdk lrwxrwxrwx 1 root root 10 Mar 27 09:19 usb-WD_My_Book_1140_574D41575A30333839333736-0:0-part1 -> ../../sdk1 lrwxrwxrwx 1 root root 9 Mar 27 09:18 wwn-0x50014ee209cbcfed -> ../../sdb lrwxrwxrwx 1 root root 10 Mar 27 09:19 wwn-0x50014ee209cbcfed-part1 -> ../../sdb1

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Issue adding new Hard Drive

Postby bigfoot65 » Fri Mar 27, 2015 1:40 pm

Ok, so what is the drive that's listed twice? I see the prefix wwn in your after.txt but not in the before.

Is the new drive you added in the after.txt at all? I did not see anything, but might have overlooked it.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

phreaq
Posts: 87
Joined: Sun Jul 20, 2014 10:39 am

Re: Issue adding new Hard Drive

Postby phreaq » Fri Mar 27, 2015 1:55 pm

yes, it would appear as wwn-0x50014ee209cbcfed is the new drive.

But hda-diskmount sees no change, and the manual method involves calling off sdX, which is duplicated for me.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Issue adding new Hard Drive

Postby bigfoot65 » Fri Mar 27, 2015 2:03 pm

Well if hda-diskmount does not recognize the drive, then I recommend you follow the hda-diskmount troubleshooting guidance for mounting the drive. The remaining guidance for formatting should still apply to the drive.

The wiki does not appear to be the flaw, but maybe hda-diskmount. If you can provide enough specifics about the drive, it might be worth submitting a bug report so we can explore this more. There might be a need to update the script for a different type of drive or device that we have not encountered before.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

phreaq
Posts: 87
Joined: Sun Jul 20, 2014 10:39 am

Re: Issue adding new Hard Drive

Postby phreaq » Fri Mar 27, 2015 2:36 pm

ok, I tried the manual method, all I am able to connect to the drive now.

odd.... and, thanks!

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Issue adding new Hard Drive

Postby bigfoot65 » Fri Mar 27, 2015 3:08 pm

No problem. Glad it's working for you now.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 7 guests