Page 1 of 1

Improvement to hda-diskmount for GPT drives

Posted: Sun Jan 02, 2011 9:41 am
by VirtualMe
I'm running Fedora 14 and just waiting patiently for Amahi to be released. Now that that is out of the way..

I added some drives to my server with the partition table as GPT and ext4 file systems.
hda-diskmount couldn't find them.

In the "drivesext=" line, I changed

Code: Select all

grep -i 'Linux'
to

Code: Select all

egrep -iw 'Linux|GPT'
and it found and mounted them right away.

Not being super Linux savvy, I don't know if there is a situation where this would be a bad idea, but I thought I would throw it out there.

Re: Improvement to hda-diskmount for GPT drives

Posted: Mon Jan 17, 2011 7:14 pm
by sgtfoo
could you go into some detail on how to get into the script and change the line? methinks many of us will end up with 3tb+ drives soon enough ;)

Re: Improvement to hda-diskmount for GPT drives

Posted: Mon Jan 17, 2011 8:56 pm
by VirtualMe
No problem.

1) Open /usr/sbin/hda-diskmount in nano, gedit, vi whatever floats your boat. I prefer nano, e.g. "nano /usr/sbin/hda-diskmount".
2) Find the line "# Now for the real work". It's at line 54 for me. I presume everyone has the same version of this file.
3) Goto the last line in that block. It starts with "drivesext=".
4) Change "grep -i 'Linux'" to "egrep -iw 'Linux|GPT'". Removing the double quotes of course. And don't miss the single quote next to the last double quote.

I changed that and it mounted my disks without any trouble at all.

Re: Improvement to hda-diskmount for GPT drives

Posted: Sat May 12, 2012 1:11 pm
by cpg
thanks. not bad for a linux newb :)

we just tentatively applied this patch to the tool and will be testing it more locally, then release it.

thanks!