Jump to content











Photo
- - - - -

Experimental NTFS support for Syslinux: Please test


  • Please log in to reply
73 replies to this topic

#26 Sha0

Sha0

    WinVBlock Dev

  • Developer
  • 1682 posts
  • Location:reboot.pro Forums
  • Interests:Booting
  •  
    Canada

Posted 13 August 2011 - 09:57 AM

Hey Paulo and Icecube,

Please check out the attached NTFSTEST.EXE (with source code). I have to goto sleep now, but maybe Paulo can figure out how to plug it into the Syslinux Windows installer? We probably have to check 'fs_type' and leave the libfat stuff intact, for now.

NTFSTEST.EXE dumps cluster and sector information for a file on an NTFS partition.

D'oh! I can't attach the file! I've reported this problem. (Thanks for fixing this, team reboot!)

Attached! Attached File  ntfssect.tar.gz   38.17KB   17 downloads

Also at NTFSTEST.EXE source code in a git repository (hosted by H. Peter Anvin :) )

#27 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 13 August 2011 - 11:16 AM

When you are awake ;) check:

C:\>ntfstest.exe
File sector info . . . . . . . . . . . . . . . . . . . . Shao Miller, 2011

Usage: FILESECT.EXE <filename>

Attempts to dump cluster and sector info for <filename>.

Maybe useful, maybe not:
http://www.wd-3.com/...e/luserland.htm
http://www.codeproje...iles/FDump.aspx

Both above tools and yours do not find/take into consideration the "small files" that go directly into the $MFT. (BOOT.INI is a common example of a file that usually is NOT on a cluster, but stored directly inside the $MFT)

:cheers:
Wonko

#28 Paulo Alcantara

Paulo Alcantara

    Newbie

  • Members
  • 20 posts
  •  
    Brazil

Posted 13 August 2011 - 02:59 PM

When you are awake ;) check:

Maybe useful, maybe not:
http://www.wd-3.com/...e/luserland.htm
http://www.codeproje...iles/FDump.aspx

Both above tools and yours do not find/take into consideration the "small files" that go directly into the $MFT. (BOOT.INI is a common example of a file that usually is NOT on a cluster, but stored directly inside the $MFT)

:cheers:
Wonko


The purpose of this application was to find the ldlinux.sys within an NTFS partition, patch it,
and write it again in a contiguous way. As ldlinux.sys is bigger than 1 KiB, then it will never fit
in a MFT record and will be stored as a non-resident attribute.

#29 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 13 August 2011 - 03:13 PM


The purpose of this application was to find the ldlinux.sys within an NTFS partition, patch it,
and write it again in a contiguous way. As ldlinux.sys is bigger than 1 KiB, then it will never fit
in a MFT record and will be stored as a non-resident attribute.



Sure :), just pointing out a (missing) feature of all three apps, that's the idea of the "maybe useful, maybe not" incipit.

:cheers:
Wonko

#30 Sha0

Sha0

    WinVBlock Dev

  • Developer
  • 1682 posts
  • Location:reboot.pro Forums
  • Interests:Booting
  •  
    Canada

Posted 13 August 2011 - 05:24 PM

When you are awake ;) check: ...

I could have sworn that the last thing I did before uploading and gotoing sleep was to switch the FILESECT reference to NTFSTEST. I guess not! I must have done them in the other order. :)

Maybe useful, maybe not:
http://www.wd-3.com/...e/luserland.htm

This link appears in each of the source files.

http://www.codeproje...iles/FDump.aspx

Both above tools and yours do not find/take into consideration the &quot;small files&quot; that go directly into the $MFT. (BOOT.INI is a common example of a file that usually is NOT on a cluster, but stored directly inside the $MFT)

True. Then it can't report clusters nor LBA for those files, I guess. :)

#31 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 14 August 2011 - 12:16 PM

True. Then it can't report clusters nor LBA for those files, I guess. :)


Yep. :)
Again, maybe useful, maybe not:
http://www.forensicf...iewtopic&t=7970
http://code.google.com/p/mft2csv/

:cheers:
Wonko

#32 Paulo Alcantara

Paulo Alcantara

    Newbie

  • Members
  • 20 posts
  •  
    Brazil

Posted 15 August 2011 - 07:03 PM


Yep. :)
Again, maybe useful, maybe not:
http://www.forensicf...iewtopic&t=7970
http://code.google.com/p/mft2csv/

:cheers:
Wonko


Hi,

Uhrm - These links seem to be relevant for what we're looking for.
Thanks!


Regards,

Paulo

#33 Sha0

Sha0

    WinVBlock Dev

  • Developer
  • 1682 posts
  • Location:reboot.pro Forums
  • Interests:Booting
  •  
    Canada

Posted 29 August 2011 - 07:24 PM

Here is the latest work, attached.
---EDIT--- Newer version in a more recent post. The version that was attached to this post had been downloaded 10 times.

extlinux - Linux 32-bit installer
fresh_hdd.7z - 7-Zip archive w/ a 100 MiB HDD image w/ a fresh NTFS partition
ntfstest.exe - Dumps NTFS file cluster info
syslinux.exe - Windows 32-bit installer



#34 jimicus

jimicus
  • Members
  • 2 posts
  •  
    United Kingdom

Posted 02 September 2011 - 10:16 AM

Hi guys

This is quite well timed for me; I'm putting together a slightly hacked version of DBAN which can be run directly from Windows and SYSLINUX is much easier to set up than GRUB.

I've found Sha0's version works in a Windows 7 VirtualBox machine. I'm installing using the following command line:

syslinux -m -i -a -f %SYSTEMDRIVE%

At point where boot starts, I get an error:

EDD: Error 0100 reading sector 537077760


This doesn't stop DBAN from loading and running properly.

#35 Sha0

Sha0

    WinVBlock Dev

  • Developer
  • 1682 posts
  • Location:reboot.pro Forums
  • Interests:Booting
  •  
    Canada

Posted 03 September 2011 - 10:14 PM

Here is the latest version, attached.Attached File  ntfslinux.zip   102.27KB   48 downloads
This one passed more tests than the last one. Now I can boot Syslinux on my NTFS partition nicely! Enjoy. :)

Testers' efforts would be very appreciated!

C:\Documents and Settings\User\Desktop>syslinux.exe -f -i c:

 

C:\Documents and Settings\User\Desktop>copy con c:\syslinux.cfg

LABEL ntldr

  COM32 chain.c32

  APPEND fs ntldr=/ntldr

^Z (<CONTROL>-<Z> on the keyboard)

C:\Documents and Settings\User\Desktop>copy syslinux_download_dir\com32\modules\chain.c32 c:\

  1 file(s) copied.


P. S. Thanks for trying it out, jimicus!

#36 jimicus

jimicus
  • Members
  • 2 posts
  •  
    United Kingdom

Posted 04 September 2011 - 11:00 AM

The error reading sector issue is gone, but it seems to take a very long time (several seconds) to load the image. Given that DBAN.BZI is only 10MB, I'd have expected it to be quite quick.

Two questions:
  • Is there any plan to submit these changes upstream?
  • Is the link for the latest source code the github one Paulo posted up before?


#37 Sha0

Sha0

    WinVBlock Dev

  • Developer
  • 1682 posts
  • Location:reboot.pro Forums
  • Interests:Booting
  •  
    Canada

Posted 04 September 2011 - 12:56 PM

The error reading sector issue is gone, but it seems to take a very long time (several seconds) to load the image. Given that DBAN.BZI is only 10MB, I'd have expected it to be quite quick.

It's possible that speed improvements can be made.

Two questions:

  • Is there any plan to submit these changes upstream?

If users test and tests pass, then it's possible that H. Peter Anvin will accept Paulo's branch, I believe. This is why testing is appreciated. :)

  • Is the link for the latest source code the github one Paulo posted up before?

The source code is here.

#38 windstar

windstar
  • Members
  • 4 posts
  •  
    South Korea

Posted 21 November 2011 - 12:54 AM

I was wondering whether there is any progress on this promising project... I'd love to see this realized one day! :)

#39 Icecube

Icecube

    Gold Member

  • Team Reboot
  • 1063 posts
  •  
    Belgium

Posted 01 December 2011 - 10:39 PM

I compiled the last version of the experimental NTFS branch.
32-bit and 64-bit Windows syslinux.exe installers included.

Edit: Removed attachment. Newer version attached below.
  • Bas Neve likes this

#40 CorreoMail

CorreoMail
  • Members
  • 1 posts
  •  
    Mexico

Posted 08 December 2011 - 05:42 PM

Sha0 & Icecube, both versions boots but doesnt shows the menu, looks like bucle reading the hard drive any clue about it?

Im trying to install it in a 160Gb USB Drive

#41 Icecube

Icecube

    Gold Member

  • Team Reboot
  • 1063 posts
  •  
    Belgium

Posted 09 December 2011 - 09:51 AM

@ CorreoMail
Can you show the exact commands you used to install Syslinux?
Can you post your syslinux.cfg file (and the location: which directory)?
Add ls.c32 to your USB drive (preferable in the root of the partition) and try to list the files in different directories from the boot: prompt:
boot: /ls.c32 /



boot: /ls.c32 /some_dir


#42 Paulo Alcantara

Paulo Alcantara

    Newbie

  • Members
  • 20 posts
  •  
    Brazil

Posted 12 December 2011 - 05:42 PM

I compiled the last version of the experimental NTFS branch.
32-bit and 64-bit Windows syslinux.exe installers included.


Thanks Shao and Gerth for your helps.

It's been a while that I don't touch Syslinux code and don't post
anything in here. (Maintaining PySide drags me out too much)

I uploaded them out again for the #syslinux's people being able to download
them without being a reboot.pro's user and the only guy which tested it got it
working properly and tested hdt.c32 and ls.c32 at the "boot: " prompt.


Paulo

#43 Paulo Alcantara

Paulo Alcantara

    Newbie

  • Members
  • 20 posts
  •  
    Brazil

Posted 14 December 2011 - 09:21 PM

Night all,

Gracefully NTFS readonly file system support is now available on Syslinux version 4.06.
Since commit d2240176af6ac239216b160611ed74d481095a4b.

If any of you find out a bug on the implementation, please report that to the
Syslinux mailing list.


Paulo

#44 windstar

windstar
  • Members
  • 4 posts
  •  
    South Korea

Posted 14 December 2011 - 09:28 PM

Great news there Paulo, going to test it in a couple of days. ;)

#45 Paulo Alcantara

Paulo Alcantara

    Newbie

  • Members
  • 20 posts
  •  
    Brazil

Posted 14 December 2011 - 09:37 PM

Great news there Paulo, going to test it in a couple of days. ;)


Hi,

Indeed!
And thanks for pretending to test it. Heh :-)


Paulo

#46 Icecube

Icecube

    Gold Member

  • Team Reboot
  • 1063 posts
  •  
    Belgium

Posted 15 December 2011 - 08:32 AM

Syslinux 4.06 pre-releases:
http://www.kernel.or...x/Testing/4.06/

#47 Icecube

Icecube

    Gold Member

  • Team Reboot
  • 1063 posts
  •  
    Belgium

Posted 26 December 2011 - 11:48 PM

Newer version which patches some bugs, attached.

Attached Files



#48 Icecube

Icecube

    Gold Member

  • Team Reboot
  • 1063 posts
  •  
    Belgium

Posted 21 January 2012 - 09:15 PM

Last test version attached. Please test and report back if you find bugs.

Edit: Removed attachment.

#49 Icecube

Icecube

    Gold Member

  • Team Reboot
  • 1063 posts
  •  
    Belgium

Posted 24 January 2012 - 01:22 PM

Last test version attached (bug fix). Please test and report back if you find bugs.

Edit: removed attachment.

#50 NetFanTom

NetFanTom

    Frequent Member

  • .script developer
  • 117 posts
  •  
    Germany

Posted 25 January 2012 - 10:05 AM

@Icecube:
syslinux-ntfs-2012-01-23.tar.7z

Sorry, i miss the win32syslinux.exe and the win64syslinux64.exe.

Regards,
NetFanTom




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users