Trouble with hda-diskmount

magstheblue
Posts: 1
Joined: Sun Nov 04, 2012 8:07 pm

Re: Trouble with hda-diskmount

Postby magstheblue » Sun Nov 04, 2012 8:19 pm

Hi Bigfoot65

i am having the exact same issue with this,

"Ignoring /dev/sda1 - already in /etc/fstab as /dev/sda1
This device appears to be commented out of your /etc/fstab. You will need to remove it from there for hda-diskmount to be able to mount it."

and i don't know enough to understand the issue nor how to fix it.

how this came about....

i have 200gb ATA drive plugged in and installed Ubuntu then Amahi
then i powered down and plugged the power in on the 4 drives i want for storage = 4x 1TB SATA drives.

Seems to be any sata drive plugged in gets listed first starting from /dev/sda1 with my ATA drive being last in the list, in this case SDE1 / SDE5

i was able to follow gstreet and get the UUID of the first drive, but i do not know what to do from there.

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

Re: Trouble with hda-diskmount

Postby bigfoot65 » Mon Nov 05, 2012 5:47 am

You will need to determine in what order the drives will boot based on the cabling. If you look carefully at the mother board, you should see them listed. Typically SATA is listed 0-3 for 4 drives.

There also may be a setting in the BIOS for what drives boot first, IDE or SATA. When you first enter the BIOS, it should display the drives in order. Ensure the drive you want to boot is listed first. Then check the boot parameters to ensure it is listed as first there as well.

Worse case scenario, disconnect the 4 drives completely, power and dvice cable, then reinstall. The key is that the BIOS and OS does not see any drive other than the one you intend to use.

Hope that helps.
ßîgƒσστ65
Applications Manager

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

gstreet
Posts: 14
Joined: Sat Oct 20, 2012 6:19 pm
Location: Adelaide Hills, South Australia

Re: Trouble with hda-diskmount

Postby gstreet » Tue Nov 06, 2012 4:57 am

Hi Bigfoot65

i am having the exact same issue with this,

"Ignoring /dev/sda1 - already in /etc/fstab as /dev/sda1
This device appears to be commented out of your /etc/fstab. You will need to remove it from there for hda-diskmount to be able to mount it."

and i don't know enough to understand the issue nor how to fix it.
Hi Magstheblue,

I am a Linux novice but following is how I fixed it for me (hope I remember everything right!). I had my 4 x 2TB storage drives as sda, sdb, sdc & sdd while my OS was on sde.

1. first get UUID for each drive by opening a terminal and entering command sudo blkid

Code: Select all

gstreet@gstreet-MicroServer:~$ sudo blkid [sudo] password for gstreet: /dev/sda1: LABEL="Seagate-Alpha2TB" UUID="55d9333f-d801-425a-b2af-d65c5966d56f" TYPE="ext4" /dev/sdb1: LABEL="Seagate-Beta2TB" UUID="5bd5498f-30c1-4780-948e-ca46656507d2" TYPE="ext4" /dev/sdc1: LABEL="WD-Charlie2TB" UUID="a7337504-376a-4d36-9f7a-1a24c0f55fbd" TYPE="ext4" /dev/sdd1: LABEL="WD-Delta2TB" UUID="8d881dcb-8de3-4621-b9bd-00025196868a" TYPE="ext4" /dev/sde1: LABEL="root" UUID="4d6f8004-d190-4234-a03b-b68de988abf0" TYPE="ext4" /dev/sde3: LABEL="home" UUID="d0531fa1-9311-4d53-b838-f35898adbd98" TYPE="ext4" /dev/sde5: LABEL="swap" UUID="3c39206c-ba60-47ff-a1fe-f5821b2ab543" TYPE="swap"
Note that I just cut and paste UUID's straight from the terminal to make it easier - no typo's!

2. Then edit fstab to mount each drive - easiest to do this in a graphical editor. Note that first thing I did was to create a copy called fstab.bak (use the "save as" command, close file and then gedit the original fstab again)

Code: Select all

sudo gedit /etc/fstab
3. I then carefully added lines into the end of the fstab file (# means a comment - line ignored) per the hda-diskmount but with my UUID's for each drive.

It should look something like this when you add the lines for each of your five drives. Make sure you choose the right UUID, drive number and drive file system (ext4 in my case).

Code: Select all

# Mounting Greyhole Drives for Drive Pool. # # Drive1 = Seagate-Alpha2TB in Microserver Bay 1 from left UUID=55d9333f-d801-425a-b2af-d65c5966d56f /var/hda/files/drives/drive1 ext4 defaults 1 2 # # Drive2 = Seagate-Beta2TB in Microserver Bay 2 from left UUID=5bd5498f-30c1-4780-948e-ca46656507d2 /var/hda/files/drives/drive2 ext4 defaults 1 2 # # Drive3 = WD-Charlie2TB in Microserver Bay 3 from left UUID=a7337504-376a-4d36-9f7a-1a24c0f55fbd /var/hda/files/drives/drive3 ext4 defaults 1 2 # # Drive4 = WD-Delta2TB in Microserver Bay 4 from left UUID=8d881dcb-8de3-4621-b9bd-00025196868a /var/hda/files/drives/drive4 ext4 defaults 1 2 #
Note that the hda-dismount command had already added lines to mount my OS drive which had two partitions (root or /, and home). Save file and close.

4) Save file and reboot machine.

5) Check drives in Amahi hda (Setup - Shares - Storage Pool)

In my case looked like
Image

I hope this helps! I've been solving problems one by one now. Finally got SMART disk monitoring working with email notification and tonight solved my remote desktop issues so I can run my server headless (FreeNX works fantastic when I remote over from a MacBook Pro).

Cheers,
Carl

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

Re: Trouble with hda-diskmount

Postby bigfoot65 » Tue Nov 06, 2012 5:43 am

This would be good to add to the wiki. Would you be willing to do so? We could add a tips area to the existing page.

We prefer to put this type of info in the wiki to make it easier for users to find. You might say the wiki is our documentation repository.
ßîgƒσστ65
Applications Manager

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

gstreet
Posts: 14
Joined: Sat Oct 20, 2012 6:19 pm
Location: Adelaide Hills, South Australia

Re: Trouble with hda-diskmount

Postby gstreet » Thu Nov 08, 2012 4:44 am

This would be good to add to the wiki. Would you be willing to do so? We could add a tips area to the existing page.

We prefer to put this type of info in the wiki to make it easier for users to find. You might say the wiki is our documentation repository.
Okay, I had a whack at putting the info into the Wiki - see http://wiki.amahi.org/index.php/Adding_ ... o_your_HDA

Cheers,
Carl

_

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

Re: Trouble with hda-diskmount

Postby bigfoot65 » Thu Nov 08, 2012 7:35 am

Awesome! Thanks for adding it. Should help others with similar issues.
ßî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: Bing [Bot] and 62 guests