WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: boot from ntfs  (Read 15473 times)

Offline wysiwyg

  • Sr. Member
  • ****
  • Posts: 266
boot from ntfs
« on: January 24, 2015, 10:24:40 PM »
Good evening everyone!  I am trying to get TC booting from an NTFS partition and have read the following threads:

http://forum.tinycorelinux.net/index.php/topic,7416.msg39355.html#msg39355
http://forum.tinycorelinux.net/index.php/topic,6931.0.html

Both of which seem out dated (using TC 3.x) so I decided to give it a whirl.  I added ntfs-3g.tcz and fuse.tcz to a remastered image (ran ldconfig beforehand to grab the new libs), but I can seem to get TC to mount the NTFS partition during the boot cycle (where the tce directory is).  Any thoughts on what needs to be fixed?

Thanks,
Dave

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: boot from ntfs
« Reply #1 on: January 24, 2015, 10:36:28 PM »
For tce on ntfs, remastering with ntfs-3g is sufficient.
Ezremaster works fine for this.
« Last Edit: January 24, 2015, 10:39:36 PM by gerald_clark »

Offline Lee

  • Hero Member
  • *****
  • Posts: 645
    • My Core wiki user page
Re: boot from ntfs
« Reply #2 on: January 25, 2015, 01:27:36 PM »
Isn't there still an ntfs-3g.gz file that can be loaded alongside core.gz to provide this functionality without even needing to remaster?
32 bit core4.7.7, Xprogs, Xorg-7.6, wbar, jwm  |  - Testing -
PPR, data persistence through filetool.sh          |  32 bit core 8.0 alpha 1
USB Flash drive, one partition, ext2, grub4dos  | Otherwise similar

Offline wysiwyg

  • Sr. Member
  • ****
  • Posts: 266
Re: boot from ntfs
« Reply #3 on: January 26, 2015, 09:40:00 AM »
Good morning everyone!

@gerald_clark I didn't use the remaster tool, but I followed the directions in the wiki to repackage with ntfs-3g so unless something was missing from there, I'm not sure what could be going on.  I can mount the drive once I get to a prompt without any issues.  The distro just doesn't seem to see the tce directory to load other extensions during bootup.  Additional thoughts?

@Lee I don't think this would be possible because you will run into an issue where Linux will need to mount the ntfs partition to load the ntfs-3g.tcz extension, but not have the tools to do so.  There does appear to be several ways to include ntfs-3g (or other extensions for that matter) into the gzipped cpio ramdisk though.  Check the wiki for details.

Dave

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: boot from ntfs
« Reply #4 on: January 26, 2015, 09:48:18 AM »
You do not need ntfs-3g to read ntfs partition, the Linux kernel fs driver can do the job if it is available at boot time (ntfs module is not in base).
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline wysiwyg

  • Sr. Member
  • ****
  • Posts: 266
Re: boot from ntfs
« Reply #5 on: January 26, 2015, 10:28:43 AM »
You do not need ntfs-3g to read ntfs partition, the Linux kernel fs driver can do the job if it is available at boot time (ntfs module is not in base).

It doesn't appear to be using the internal ntfs driver or the ntfs-3g driver to mount at boot time.  Any thoughts as to why not?

Thanks,
Dave

Offline wysiwyg

  • Sr. Member
  • ****
  • Posts: 266
Re: boot from ntfs
« Reply #6 on: January 26, 2015, 11:14:05 AM »
BTW, the boot parameters being used are:

kernel (hd0,2)/xinix64/corepure64-vmlinuz quiet tce=LABEL=OS/xinix64 host=DEVICE1 settime

The partition where the files are located is /dev/sda3 so the line above matches correctly...

Dave

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: boot from ntfs
« Reply #7 on: January 26, 2015, 11:47:17 AM »
LABELS may not be readable at that point.  Try specifying tce=sda3/xinix64 ( assuming you are using the directory xinix64 instead of tce ).

Offline wysiwyg

  • Sr. Member
  • ****
  • Posts: 266
Re: boot from ntfs
« Reply #8 on: January 26, 2015, 12:01:00 PM »
Thanks for the help gerald_clark.  I adjusted the menu.lst file to use sda3 instead of using the partition label, but it is still exhibiting the same behavior...

I also noticed that the mount.ntfs and mount.ntfs-3g symlinks were missing from the ntfs-3g package, so I added them to a remastered cpio file.  I can see the sda3 partition being auto-mounted once I get to a prompt, but it still isn't installing the modules.  Again, once I'm at a prompt I can run "tce-load -i bash" and everything works as designed.  No idea why this isn't loading during bootup.

Dave

Offline wysiwyg

  • Sr. Member
  • ****
  • Posts: 266
Re: boot from ntfs
« Reply #9 on: January 26, 2015, 02:23:28 PM »
Would there be a reason why the drive is getting mounted, but the tce directory wouldn't get processed?

Thanks,
Dave

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: boot from ntfs
« Reply #10 on: January 26, 2015, 05:33:34 PM »
Show us the output of 'showbootcodes'.

Offline wysiwyg

  • Sr. Member
  • ****
  • Posts: 266
Re: boot from ntfs
« Reply #11 on: January 26, 2015, 06:25:13 PM »
Show us the output of 'showbootcodes'.

quiet tce=sda3/xinix64 host=DEVICE1 settime

Offline wysiwyg

  • Sr. Member
  • ****
  • Posts: 266
Re: boot from ntfs
« Reply #12 on: January 26, 2015, 07:45:30 PM »
Are there any logs or debug info I can see during the boot cycle to find out where things are going wrong?  I would imagine either the partition isn't getting mounted quickly enough to access the extension files or something is preventing the reading of those files.

Dave

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: boot from ntfs
« Reply #13 on: January 26, 2015, 08:58:51 PM »
Remove 'quiet' from the boot options.
Then add a 'pause' option.
The system will then pause for the enter key before running login.
This gives you a chance to use shift and arrow/PG keys to scroll through output.

Offline wysiwyg

  • Sr. Member
  • ****
  • Posts: 266
Re: boot from ntfs
« Reply #14 on: January 27, 2015, 09:17:37 AM »
Per your advice gerald_clark, I edited the menu.lst file and rebooted.  The only error messages I could see are similar to ones I posted from my 'by-id' thread:

udev[258]: failed to execute '/lib/udev/ata_id' 'ata_id --export /dev/sda': No such file or directory

udev[259]: failed to execute '/lib/udev/ata_id' 'ata_id --export /dev/sr0': No such file or directory

udev[279]: failed to execute '/lib/udev/scsi_id' 'scsi_id --export --whitelisted -d /dev/sda': No such file or directory

udev[311]: failed to execute '/lib/udev/scsi_id' 'scsi_id --export --whitelisted -d /dev/sr0': No such file or directory

The numbers are different, but the messages are the same.  Could this be the issue that is keeping things from working?  What I don't understand is, by the time I get to the cli, the Windows partition is mounted.

Also, right after the "Setting hostname..." line, I can see that squashfs module is being loaded so that should allow the mounting of the extensions.  No messages could be identified that prevents the partition from being used as the tce directory.  Any thoughts on something else to do to identify the problem?  Is there something I can edit to see debug output?

Thanks,
Dave