Improvement to hda-diskmount for GPT drives

VirtualMe
Posts: 13
Joined: Sun Nov 28, 2010 5:27 pm

Improvement to hda-diskmount for GPT drives

Postby VirtualMe » Sun Jan 02, 2011 9:41 am

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.

User avatar
sgtfoo
Posts: 419
Joined: Sun Jul 18, 2010 8:27 pm

Re: Improvement to hda-diskmount for GPT drives

Postby sgtfoo » Mon Jan 17, 2011 7:14 pm

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 ;)
SgtFoo
HDA: VM inside oVirt FX-8300 95w (2 cores for HDA), 32GB RAM (2GB for HDA)
My PC: FX-8300, 16GB RAM, 3x 1TB HDDs, Radeon HD6970 2GB video; Win10 Pro x64
Other: PC, Asus 1215n (LXLE), Debian openZFS server (3x(2x2tb) mirrors)
Modem&Network: Thomson DCM475; Asus RT-AC66U; HP 1800-24G switch

VirtualMe
Posts: 13
Joined: Sun Nov 28, 2010 5:27 pm

Re: Improvement to hda-diskmount for GPT drives

Postby VirtualMe » Mon Jan 17, 2011 8:56 pm

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.

User avatar
cpg
Administrator
Posts: 2603
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: Improvement to hda-diskmount for GPT drives

Postby cpg » Sat May 12, 2012 1:11 pm

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!
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

Who is online

Users browsing this forum: No registered users and 1 guest