This Save-session file problem exist with ALL modern PUPs

Please post any bugs you have found
Message
Author
User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#16 Post by 01micko »

jamesbond wrote:Check the version of ntfs-3g used inside initrd (that is, part of woof)
It's old:

Code: Select all

 ./ntfs-3g --help

ntfs-3g 2010.1.16 integrated FUSE 27 - Third Generation NTFS Driver
		XATTRS are on, POSIX ACLS are off

Copyright (C) 2005-2007 Yura Pakhuchiy
Copyright (C) 2006-2009 Szabolcs Szakacsits
Copyright (C) 2007-2009 Jean-Pierre Andre
Copyright (C) 2009 Erik Larsson

Usage:    ntfs-3g [-o option[,...]] <device|image_file> <mount_point>

Options:  ro (read-only mount), remove_hiberfile, uid=, gid=,
          umask=, fmask=, dmask=, streams_interface=.
          Please see the details in the manual (type: man ntfs-3g).

Example: ntfs-3g /dev/sda1 /mnt/windows

Ntfs-3g news, support and information:  http://ntfs-3g.org
It's a static compile by Barry. I have no idea how to update it. Little help?
Puppy Linux Blog - contact me for access

User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#17 Post by pemasu »

Barry`s post how he did it.
http://bkhome.org/blog/?viewDetailed=01316

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#18 Post by 01micko »

Ha, was just about to search that, downloading the uClibc filesystem now, but it's old! (2005). We'll see if it works, I'll grab the latest ntfs-3g sources. (edit, found an image from 2008, had to expand it to make room for the compile resize2fs root_fs_i386.ext2 150M then mount it, copy the ntfs-3g source, chroot, compile)

- Later...


ok, I got it compiled, the binary is 420k stripped, Barry's is 391k, so that's not too bad considering there would be natural bloat from bugfixes, extra features etc. I didn't test it as I don't have any compressed ntfs drives.

To test, unpack and add the binary to your PATH (suggest /root/my-applicatins/bin or /usr/local/bin) and move (or rename) the original (usually /bin/ntfs-3g) then try to mount an compressed ntfs partition

Code: Select all

mkdir -p /mnt/ntfs-test 
mount -t ntfs-3g /dev/sda2  /mnt/ntfs-test 
replacing sda2 with whatever your target partition is. That should mount it rw. (That's the code on the ntfs-3g site).

Don't forget to unmount when you've finished testing.. umount /mnt/ntfs-test

If it works you can just click on your initrd.gz in a frugal and it should unpack in /root. Replace the ntfs-3g file in /bin then repack the initrd.gz. Remaster. See what happens!

NO WARRANTY

EDIT: if it works, there is no need to recompile in your distro as it's completely static. Wouldn't matter what distro you built it in.. (x86 32 bit of course)

Cheers
Puppy Linux Blog - contact me for access

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

This Save-session file problem exist with ALL modern PUPs

#19 Post by L18L »

gcmartin wrote:Here's more info from tests done with Carolina, for it seems to help hint at where to look for the save-session problems in Woof build PUPs. ...
about pupsaveconfig BarryK wrote: Excellent work, but I never put that into Woof, as I wanted to do it a bit differently.
see http://bkhome.org/blog/?viewDetailed=02489

So please forget the term "ALL modern PUPs" :lol:

(I prefer the official ones :D )

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

Re: More evidence of problem happening at save-session Shutdown

#20 Post by rcrsn51 »

gcmartin wrote:Hope this gives clear, repeatable evidence ..
Not really. You haven't stated whether you are still dealing with COMPRESSED NTFS partitions.

As a test, I booted Carolina 005 off its Live CD.

I applied the rc.shutdown patch as described in the Slacko 5.4 thread.

I made a save file on an UNcompressed NTFS flash drive.

I rebooted. The save file was detected. Everything worked correctly.

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

#21 Post by jamesbond »

01micko wrote:

Code: Select all

 ./ntfs-3g --help

ntfs-3g 2010.1.16 integrated FUSE 27 - Third Generation NTFS Driver
No wonder it's not working. See http://www.tuxera.com/community/ntfs-3g ... mpression/ - it says compressed NTFS is only fully supported after 2010.8.8.
It's a static compile by Barry. I have no idea how to update it. Little help?
Well I can see you don't need that already :lol:
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#22 Post by 01micko »

jamesbond wrote: Well I can see you don't need that already :lol:
Yeah, was surprisingly easy. :) . Yet to hear a report if it works though, but no reason it shouldn't.

BTW: works just fine to mount a normal ntfs partition using my above instructions, except I called with full path to binary, that way you don't need to whack it in PATH or move your existing ntfs-3g binary, creating unnecessary whiteout files.
Puppy Linux Blog - contact me for access

gcmartin

Test with01Micko's new module

#23 Post by gcmartin »

Thanks for the newer module. Here what I did and found

On the NTFs partition, I have a folder where I've put boot directories for Slacko, Pemasu's Precise, Barry's Precise. and Carolina. GRUB4DOS was set up as a Boot Manager with entries to boot each distro.

Using Pemasu's Precise,
  1. I downloaded 01Micko's NTFS fix
  2. double-clicked each directory's "initrd.gz" file which opened to allow /bin/ntfs-3g file to be replaced with 01Micko's entry of ntfs-3g
Next,
  • I booted each distro - no problem
  • made FirstRUN changes in each distro - no problems
  • Started a "reboot plus save-session" for each distro
Here what I found
  • Carolina, no problem in reboot. Carolina found and used the save-session that was there
  • Pemasu's Precise, no problem in reboot. Pemasu's Precise found and used the save-session that was there
  • Barry's Precise ran into boot-time issues with Messages "uncompression error" and "System halted"
  • Slacko, indicated I/O errors in shutdown processing. On reboot, it failed as soon as it touched the save-session file.
Here to help

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#24 Post by BarryK »

gcmartin,
Just to eliminate them, could you test these, make sure that they are correctly identifying your (compressed) ntfs partition...

For example, say it is /dev/sda1:

# guess_fstype /dev/sda1
# blkid /dev/sda1
# disktype /dev/sda1
# fdisk -l /dev/sda1

This is assuming that you are using the recent ntfs-3g that supports compressed ntfs.
[url]https://bkhome.org/news/[/url]

gcmartin

#25 Post by gcmartin »

BarryK wrote:gcmartin,
Just to eliminate them, could you test these, make sure that they are correctly identifying your (compressed) ntfs partition...

For example, say it is /dev/sda1:

# guess_fstype /dev/sda1
# blkid /dev/sda1
# disktype /dev/sda1
# fdisk -l /dev/sda1

This is assuming that you are using the recent ntfs-3g that supports compressed ntfs.
I wouldn't have any problem doing this. But, I would like someone to recommend a distro which either has the latest in its REPO or built-into the base distro. (I would prefer providing feedback from any distro with this in the base).

Thanks in advance for any recommendation(s).

Edited: .Both of Pemasu's latest Upup versions have ntfs-3g updated version through woof.

gcmartin

NTFS resolution FOUND. Works both compressed & non-compress

#26 Post by gcmartin »

Resolved
Pemasu's uPUP 54X7 with the NTFS fix works fine. No errs at Shutdown, as system acknowledges save-session. System, on reboot, starts; finding and using the save-session file as expected. At desktop, the customization from last session exist as expected.

The results asked for

Code: Select all

# guess_fstype /dev/sda5
ntfs

# blkid /dev/sda5
/dev/sda5: LABEL="Compressed" UUID="E2B45070B4504965" TYPE="ntfs"

# disktype /dev/sda5

--- /dev/sda5
Block device, size 18.95 GiB (20345406464 bytes)
Windows NTLDR boot loader
NTFS file system
  Volume size 18.95 GiB (20345405952 bytes, 39737121 sectors)

# fdisk -l /dev/sda

Disk /dev/sda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders, total 117210240 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x41ab2316

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *          63      112454       56196   de  Dell Utility
/dev/sda2          112455    61552639    30720092+   7  HPFS/NTFS
/dev/sda3        61552640   109883391    24165376    5  Extended
/dev/sda4       109884600   117210239     3662820   1c  Hidden W95 FAT32 (LBA)
/dev/sda5        61552703   101289824    19868561    7  HPFS/NTFS
/dev/sda6       101292032   109883391     4295680   82  Linux swap / Solaris
Here to help
Attachments
capture29757.png
Gparted view
(78.12 KiB) Downloaded 559 times

Post Reply