[syslinux] extlinux device trouble

Johann Obermayr johann.obermayr at sigmatek.at
Wed Jan 15 04:50:12 PST 2014


Am 15.01.2014 13:34, schrieb Gene Cumm:
> On Wed, Jan 15, 2014 at 3:26 AM, Johann Obermayr
> <johann.obermayr at sigmatek.at> wrote:
>> Am 15.01.2014 04:57, schrieb Gene Cumm:
>>
>>> On Tue, Jan 14, 2014 at 10:50 PM, Gene Cumm <gene.cumm at gmail.com> wrote:
>>>> On Tue, Jan 14, 2014 at 9:28 AM, Johann Obermayr
>>>> <johann.obermayr at sigmatek.at> wrote:
>>>>> Hello,
>>>>>
>>>>> i'm using version 4.07.
>>>>> On my computer extlinux does not work.
>>>>> after debugging, i found the trouble.
>>>>>
>>>>> in the function parse_mountinfo there was using a function get_string.
>>>>> in the function get_string there was a line (42) } else if (ch == '\\')
>>>>> {
>>>>> but in my mountinfo list, there was \ , but not with octal digit.
>>>>> so the function get_string will fail.
>>>>>
>>>>> here are some information
>>>>> ### fstab ###
>>>>> #Mount Build environment
>>>>> //10.30.20.61/platform          /home/platform  smbfs guest,ro        0
>>>>> 0
>>>>> //10.30.20.61/builds            /home/builds            smbfs guest,ro
>>>>> 0 0
>>>>>
>>>>> #### this is a part from /proc/self/mountinfo ########
>>>>> 33 20 0:23 / /home/builds ro,relatime - cifs //10.30.20.61/builds
>>>>>
>>>>> ro,sec=ntlm,unc=\\10.30.20.61\builds,username=,uid=0,noforceuid,gid=0,noforcegid,addr=10.30.20.61,unix,posixpaths,serverino,acl,rsize=1048576,wsize=65536,actimeo=1
>>>>> 32 20 0:24 / /home/platform ro,relatime - cifs //10.30.20.61/platform
>>>>>
>>>>> ro,sec=ntlm,unc=\\10.30.20.61\platform,username=,uid=0,noforceuid,gid=0,noforcegid,addr=10.30.20.61,unix,posixpaths,serverino,acl,rsize=1048576,wsize=65536,actimeo=1
>>>>>
>>>>> and after this entrys, there are my mounting points. extlinux does not
>>>>> found
>>>>> the correct entry.
>>>> If I'm reading correctly, you feel the get_string() call on line 163
>>>> (retrieving the mount options for m->mountopt will return -1 due to
>>>> the double backslash).  Am I correct?  This seems rather odd that your
>>>> mount options have the DOS form of the UNC path.
>>> Your mountinfo should have \134\134 not \\.
>>>
>> Hello,
>>
>> all our Linux Computer use Ubuntu 12.04 with the same mount entrys.
>> And all have unc=\\ipaddr.....  in the file /proc/<pid>/mountinfo
>> We don't known, how to change this to \134\134.
> I presume these are mounted on boot from the fstab entry above.  What
> kernel version?
>
/proc/version
Linux version 3.2.0-58-generic-pae (buildd at akateko) (gcc version 4.6.3 
(Ubuntu/Linaro 4.6.3-1ubuntu5) ) #88-Ubuntu SMP Tue Dec 3 18:00:02 UTC 2013

/proc/version_signature
Ubuntu 3.2.0-58.88-generic-pae 3.2.53

Regards
   Johann



More information about the Syslinux mailing list