anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#1
This is not recommended so use at your own risk.

Latest antiX-test2 allows booting from an ntfs partition (windows) with persistence. You need a working grub legacy. The following steps should work.

1. Download the latest antiX-test2.iso (full or base or even core) and run it live from a cd or usb stick.
Either:
2. Boot live cd/usb and once at desktop, click run. Type rox /media, check 'Run as root' - ok.
You will be prompted for your live password which is root
3. In rox /media click on your windows folder eg /sda1
4. Open another rox filer as root, but type rox /live/boot-dev
Copy all of those files to your windows partition.
Or:
Use midnight commander to transfer the live files from the iso to your windows partition if you have a running linux.

Now we set up persistence for the windows folder.

5. Menu->Applications->Other->RemasterCC, root password and click on Set up live file system.
6. Directory MUST be where you copied the files to on your windows partition. eg /media/sda1/antiX
7. You need a homefs file to save user files in /home and a rootfs file to save admin changes eg new apps.
8. Once you have added your rootfs and homefs files, persistence will be ready on first boot.

Your /media/sda1/antiX folder should have linuxfs, rootfs, homefs, vmlinuz, initrd.gz, linuxfs.md5, antiX (sym link to linuxfs).

Now we need to set up the working /boot/grub/menu.lst
The antiX live persistence entry should look like this. Obviously use your own partitions. The examples are for sda1 and sdb2 respectively.

Code: Select all

title antiXl-ntfs-sda1
root (hd0,0)
kernel /antiX/vmlinuz quiet noxorg bdev=sda1 vga=791 bdir=antiX antiX=LMXD 
initrd /antiX/initrd.gz

Code: Select all

title antiXl-ntfs-sdb2
root (hd1,1)
kernel /antiX/vmlinuz quiet noxorg bdev=sdb2 vga=791 bdir=antiX antiX=LMXD 
initrd /antiX/initrd.gz
More information about persistence can be found here:

live-persistence-t3566.html
Posts: 76
newbody
Joined: 28 Mar 2010
#2
Thanks for making this thread.

Jay, this worked very well. I still have to follow
the description on how to add the homefs and rootfs
but it booted very well. I never understood the LMXD
what that stood for but seems to work __{{emoticon}}__

Hopefully I got persistence later. But seems the restricted user
are not allowed to even look at the drive I booted from but root
maybe have that permission. I have to look to find out.

Thanks for caring about me. I know I am annoying. Not that I want to though.

oops I should not have run that in terminal now when I run it in Run then
I saw the root thing. So I try again.

I do something wrong. Have no idea what. I am root. When I ask whoami
then it says root but it fails to do this
3. In rox /media click on your windows folder eg /sda1

Nothing happens it say error and a lot of texts. MC does not get me into sda1 or sda2 either

So maybe I have to mount sda2 with root priv.

I trust that it fails due to the sda1 and sda2 are owned by initrd or wmlinuz kernel
or the demo boot up process. Are there no other way to get to these files?
Can I reboot into Puppy linux and reach them from there by mounting some
file in the antiX directory?

I try to copy exactly what it says.
Mounting /media/sda2
Mount is denied because the NTFS volume is already exclusively opened.
The volume may be already mounted, or another software may use it which
could be identified for example by the help of the 'fuser' command.
Mount failed

Done
There was one error.
So I have to install it on a usb to get hold of these files but that would not help would it?

I would still get this error even then? The homefs and rootfs does not change that permission
or that the drive is already busy. the drive would still be busy due to being mounted by the
live Demo user or the boot up process? I am just trying to get how it works.

I had same problem using Crunchbang and other debians.

Edit again. I should try to find my oldest postings about 8.5
Did I not get that one to accept to read and write to the HD?

I ahve that notion but I fail to find it now. I caim in one thread that I got Swift to work.
That is surprising because it is supposed to be like AntiX only with his personal changes.

Could he have made some deeper change to the initrd thing so it allow access to the drive
one mount from or is is my memory that fails me. I ahve to look if he still is around.
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#3
Just to check a few things.

1. Have you managed to boot from your ntfs partition without persistence?
If yes, good. That means your grub/menu.lst is working ok.
At the moment you can not make the rootfs and homefs while running from the ntfs partition as it is ro (read only).

2. If you have puppy or any other linux or a live antiX cd you can use any to transfer your rootfs and homefs files to your folder on the ntfs partition.

Here's how. It *should* work presuming 1. above is true.

1. Boot from your ntfs partition as normal.
2. As normal user, copy the antiX folder and its contents of /live/boot-dev to your /home/demo folder.
3. Use RemasterCC as explained in the first post of this thread, but save the rootfs and homefs files to /home/demo/antiX folder (the one you copied to in 2.)
4. Copy those 2 files roootfs and homefs to a usb stick or to a hard drive you can access.
5. Using Puppy or any other linux, now copy the files from the usb stick to the antiX folder on your windows partition.

Good luck!
Posts: 76
newbody
Joined: 28 Mar 2010
#4
Thanks. Yes that sound logical to me. But it does not help me get access to my internal HD
where I have all music and texts and so on.

I would need to install AntiX to a usb and use homefs and rootfs on that usb or
maybe have them on the HD but always boot from the usb.

As I get it logically what you described above would not allow me access to the hd.
I mean none of that text change that the hd is locked to the boot up.

I did copy the text telling that. So that is only solved if one boot from USB or CD
Debian seems made that way. I most likely where mistaken about Swift being different.
Now I even fail to boot it. Thanks for helping me to boot it but if I have no access to
the internal HD then I can not use it. I wait until I see somebody else having success
booting from internal NTFS HD with access to it and then I ask them how they did that.

No use being able to save to a HD that I even fail to read after the info got saved to it.
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#5
Can you answer question 1?

it you can do this, then antiX can be made to work with persistence
Posts: 76
newbody
Joined: 28 Mar 2010
#6
I wrote this:"Jay, this worked very well." but did not repeat it in next post. I thought you already knew.

Sorry my poor English misled you. I did tell this in the post above and thought that where obvious.
How else would I be able to do everything I described?

Yes it boots but it says this when I try to mount the hd following the instructions.

"Mounting /media/sda2
Mount is denied because the NTFS volume is already exclusively opened.
The volume may be already mounted, or another software may use it which
could be identified for example by the help of the 'fuser' command.
Mount failed

Done
There was one error."

I could not have seen that if I where not booted could I?

I am not good at logic but I thought it where crystal clear that I where booted and
that is why I could boot into the forum and make that copy while it did happen.

So my question still stand. How do you explain that I can do as you say
if the drive is still owned or busy by the boot process. Nothing of what
you wrote relates to that does it? No criticism at all I just try to get the logic of it all.

Sidux or Aptosid that is named does allow me to see the internal HD that it booted from
but like Crunchbang and other Debians it does not allow me to write to it.
Same message as I just copied.
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#7
What is on the computer you are using apart from windows? Post your working /boot/grub/menu.lst you use to boot antiX-test2 on ntfs.

The instructions refer to running live antiX on a stick or cd, not from the windows ntfs partition. You must set up the persistence files rootfs/homefs either by running live cd or live usb or the method in my second boot.

Once you transfer the rootfs and homefs files to your antiX folder on ntfs, then persistence will work and you can read and write.
(You need to add the cheat persist)
Posts: 76
newbody
Joined: 28 Mar 2010
#8
Yes sorry I assumed too much. So frugal install only work if
those two files are there? You are the Boss so you should
know such things but it is not logical seen from my noob
perspective. Have never heard of such elaborate ways
to do a frugal install before.

But I give it a try. Now I only need to find the text that
describes how to manually install it on usb then.

What I have in menu.lst? okay here is the list. In no
priority order it is just happens to be in that order
due to my finding them on the internet.

title lupu-528-004 processor.max_cstate=1 i915.modeset=1 nosmp rootnoverify (hd0,1) works good

title Polarpup Puppy Linux 5 FireFox 3.6.23 1024x768 JWM. nolapic works good

title Snow Puppy Linux 5 FireFox 3.6.23 1024x768 JWM. nolapic works good

title Slacko Puppy Linux woorks good but have some quirks still

title Saluki Puppy Linux not my style of puppy but do work

title Porteus w/changes works good does save to save file. one of the best non-puppy

title subito rootnoverify (hd0,1) interesting but way above my head.

title Netrunner 2011 frugal iso boot of netrunner-3.2.iso one of the best"cheat" booting Ubuntu.


title LM12 2011 frugal iso boot of LM12 one of the best"cheat" booting Ubuntu. second to netrunner

title SliTaz 4RC2 usernam root psw root works good but above my head. do allow writes to the ntfs.

title dreamstudio_11.10 one of the best"cheat" booting Ubuntu. but too big making it slow on 1GB

title Slacko Puppy Linux works good

title 3head Luci Puppy Linux works good

title Pussy Linux hotRoxPussy by jbv Boots but don't allow writes to ntfs drive

title antiXl-ntfs-sda2 booted but failed to edit on the drive and not mount it.
root (hd0,1)
kernel /antiX/vmlinuz noxorg bdev=sda2 vga=791 bdir=antiX antiX=LMXD
initrd /antiX/initrd.gz

These three I I tested today from DistroWatch
title kepler frugal iso boot of netrunner-3.2.iso failed to boot

title sidux 32bit from ISO booted but did not allow write on the ntfs drive

title Nosonja failed to boot
Posts: 76
newbody
Joined: 28 Mar 2010
#9
I will test with this one for usb tomorrow

title antiXl-ntfs-sdb2
root (hd1,1)
kernel /antiX/vmlinuz quiet noxorg bdev=sdb2 vga=791 bdir=antiX antiX=LMXD
initrd /antiX/initrd.gz
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#10
If you want to save changes then rootfs and homefs are needed. They are like the puppy sfs files.

You can create these 2 files while using puppy if you like and copy them over to the antiX folder which has your initrd.gz, linuxfs, vmlinuz files.

The code to make a rootfs is this: In a root terminal, type

Code: Select all

SIZE=500
dd if=/dev/zero of=rootfs bs=1M count=0 seek=$SIZE
mkfs.ext2 -q -m 0 -O ^has_journal -F rootfs
For homefs

Code: Select all

SIZE=100
dd if=/dev/zero of=homefs bs=1M count=0 seek=$SIZE
mkfs.ext2 -q -m 0 -O ^has_journal -F homefs
Obviously you choose the SIZE for rootfs and homefs.

Once you have rootfs and homefs in your folder on ntfs (sda2) then your grub/menu.lst will be like this.

Code: Select all

title antiXl-ntfs-sda2
root (hd0,1)
kernel /antiX/vmlinuz quiet noxorg bdev=sda2 vga=791 bdir=antiX antiX=LMXD persist 
initrd /antiX/initrd.gz
Posts: 76
newbody
Joined: 28 Mar 2010
#11
Much appreciated.
Then I would not have to go over usb to make an AntiX install to USB
and then do all that manual stuff of having two Rox and such that I barely
know how to do.

I tried to follow the description but being a confused noob I where very unsure of
if one should take them line by line or all of them as a whole. One need to know such things.

Anyway those two files got created and I am booted now and it asked me to change passwords
for both root and demo. Looking in terminal I am obviously demo now so maybe that is why
I am not allowed to look at sda2 the drive and partition that I booted from.

But it behaves as I anticipated. And I tried to make a screenshot so you can see for yourself.

Should not demo be allowed to at least look at sda2? I don't remember how to be root
but I will try to start up the file manager as root whereever that one is. I get back
Posts: 76
newbody
Joined: 28 Mar 2010
#12
oops I should do this thing
"click run. Type rox /media, check 'Run as root' - ok."

I did that and it still give this error message

Mounting /media/sda2
Mount is denied because the NTFS volume is already exclusively opened.
The volume may be already mounted, or another software may use it which
could be identified for example by the help of the 'fuser' command.
Mount failed

Done
There was one error.

So I would need to do either to ram so all of AntiX is loaded in RAM
and then do an unmount of the drive. But I trust it still would say the
drive is owned by the boot up process.

So I will still ahve to do an USB install. Could you maybe help me do a dd if antix to a 4GB usb?

Now I am a very confused linux user. Logically that would still not allow me to boot from
NTFS HD or ext3 HD either because it is the boot up sequence that set the drive as owned
by the live user process.

Debian original Developers most likely has set it that way to live up to some Unix policy
of what a demo or"Live" user should be allowed. Them working at a University or a big
company has to protect themselves against careless employees doing all sort of things
while us are on our own single user or at most a family that respect each other and not
make havoc of each other.

So hopefully you are right and I am wrong but it looks bad from here.
So what do you suggest now? I reboot now and see what happens

Edit as I anticipated when wanting to log out it told me that it could not save to the homfs
due to same reason as I gave quotes to above. I tried to make a new screenshot but
don't know where it went so I feel rather sure that Debian simply don't allow these kind of things.

What computer do you have and did you do frugal install on it. Could it be that I use
grub4dos and that that loader activate something in the script that have other permissions
then if grub legacy would boot same os? Is that logical. I thought them would treat it similar?

Anyway feel very unsure of what to do.

Do you know any pure 100% compatible with Debian version that allow this?
Knoppix is not 100% Debian. I see it as a fork or something. I will go to DW and Wiki
and look for debian varieties and see what they say. I thought me had tested all of
the most known Debian derivatives like Mepis and Crunchbang and Debian Mine and AntiX though.


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://distrowatch.com/dwres.php?resource=independence"
linktext was:"http://distrowatch.com/dwres.php?resource=independence"
====================================
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#13
Ok, you have persistence working from your ntfs partition.
There is no need to go to the media. sda2 folder as you are already using it. You are in it as your antiX frugal folder is on sda2. (the windows partition).

Instead what you have to do is go to /live/boot-dev. All your windows stuff and anything else on the ntfs partition is there.
If you want to make changes while running frugal-antiX, you can save a file for example in your /home/demo folder and changes are saved so next time you use antiX-frugal it will be there is /home/demo.
If you want to access what you do in antiX eg a file when using windows, you must save it in /live/boot-dev.

Try this.

Run antiX frugal with the persist option.
When at the desktop, open the filer to /home/demo and in there create and save a file.
Use antiX control centre to change the wallpaper.
Reboot and you should boot into the new wallpaper and that file you created in /home/demo should still be there.
No need to use root (yet).

What else is on your sda2 partition? You should see them when running antiX-frugal in /live/boot-dev
Posts: 76
newbody
Joined: 28 Mar 2010
#14
Thanks Anti.

I will try what you suggest

"Try this.

Run antiX frugal with the persist option.
When at the desktop, open the filer to /home/demo and in there create and save a file.
Use antiX control centre to change the wallpaper.
Reboot and you should boot into the new wallpaper and that file you created in /home/demo should still be there.
No need to use root (yet)."

Edit from within AntiX booted as you described.
It gave a boot error that confirm my take on what fails.

But I will follow what you suggest anway.

I ahve now changed the wallpaper and I have edit a text file in Demo
and save it but that is only saved in RAM. I ahve set the saving to
Automatic so I hope it give it a try. Last time I tested this then it gave
and error that the drive where busy and I told you so.

I try now and get back and report what did happen now today.
So give me some minute or so or 5 even if it succeeds so
I can reboot

Edit it says antiX Save Persistent Root Error
So now I will read BitJam again and see what difference that text can make.
I am not familiar with it so have to read it again. Thanks

But read the following too.

I told BitJam over at the other thread
post23817.html#p23817
that maybe it is better we concentrate it to this thread
so my exclusive need to boot from NTFS get answered
in one spot instead of two.

Now what to say. As is obvious I am not on that level.
Sure it can work if I give it a try but I am deeply pessimistic.

Over at Puppy linux I talked to Sickgut who makes a debian
derivate that is 100% compatible with Debian and he had asked
the Devs that are active on the irc chat at freenode and they
told him that it is a low priority thing they will look into some day
in the future and none know whenever that will happen.

So unless you have actually changed something then it should
not work. It simply is no way for it to work.

So don't get me wrong now. Can you tell me why you think it
does work. Have you actually done it on a computer that does
not already have AntiX on it so it does not find other ways to boot
and that is why you have that experience that it should work.

I have tested Linux Mind Debian Ed and Crunchbang and asked in
their forum and I have tested Sidux and Aptosid and other known
Debian versions and everybody tells me it is not possible to change
that situation.

The boot code will always set the drive that one boot from as ro
read only and that it is busy and owned by the live boot session
and the only way to work around it would be to remaster the initrd
or some other code and there change it. Would be a big job that
none are motivated to do because so few need it and it is a PITA
to do it. Takes months of hard work.

So you have to forgive me. I will only work with this if you show
that you have it working on your computer and that it does not
borrow code from somewhere else like other partitions or so
and that it actually can change things on the same drive that you boot from.

I am writing from Knoppix now and that one just worked instantly so
most likely I accept that as close as I can get to Debian. Is is not close?
Last edited by newbody on 07 Mar 2012, 16:01, edited 2 times in total.
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#15
The boot code will always set the drive that one boot from as ro
read only and that it is busy and owned by the live boot session
and the only way to work around it would be to remaster the initrd
or some other code and there change it. Would be a big job that
none are motivated to do because so few need it and it is a PITA
to do it. Takes months of hard work.
That is exactly what BitJam has done to make it possible in antiX.