Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: mb0 on July 30, 2012, 10:12:54 PM

Title: persistent partition??
Post by: mb0 on July 30, 2012, 10:12:54 PM
How can i make a partition persistent? It is only going to have media on it, no TC guts. I don't wish for it to act as home or opt, however (i read the wiki).
Title: Re: persistent partition??
Post by: gerald_clark on July 30, 2012, 10:19:10 PM
Just mount it.
Only partitions containing TC data will be left mounted at boot.
Others need to be mounted manually or by the /opt/bootlocal.sh script.
Title: Re: persistent partition??
Post by: mb0 on July 30, 2012, 10:23:20 PM
well it seems to be being mounted automatically? it always comes up as /mnt/sda2, without any intervention. So you are saying ignore this and mount it ('again') manually ?
e: ..yes, i think this is the case... /mnt/sda2 was just an illusion (placeholder) afaict now. Thanks.
Title: Re: persistent partition??
Post by: Rich on July 30, 2012, 10:29:51 PM
Hi mb0
No, don't try to mount it again. If it's being mounted automatically, you got what you were looking for, right?
Title: Re: persistent partition??
Post by: mb0 on July 30, 2012, 11:01:56 PM
@rich; No, i was writing to /mnt/sda2.. but i'm guessing this was just a placeholder folder and nothing was actually mounted-- everything written disappeared on reboot.

now, i have a knock-on problem.. from trying to set boot options 'opt=sda2' and 'home=sda2' (which have since been un-set) i now have /boot, /home and /opt directories on /dev/sda2, and i can't delete them[e: just /boot i can't delete] (permission denied).  >??
Title: Re: persistent partition??
Post by: gerald_clark on July 30, 2012, 11:46:37 PM
You do NOT want to delete /boot.  That contains your loader.
Title: Re: persistent partition??
Post by: Rich on July 31, 2012, 12:31:36 AM
Hi mb0
At this point I can't tell whether your drive is mounted or not, so , do this:
Code: [Select]
mount /mnt/sda2If the drive is already mounted, you will see a message indicating that. If the drive was not mounted, you
will not see any messages.
Title: Re: persistent partition??
Post by: mb0 on July 31, 2012, 11:22:52 AM
rich, i've sorted the mounting issue thanks, it wasn't but now it is.

as for /boot, i have it on both sda1 (primary partition 1, which was initially set w/ boot flag) and sda2. It seems it was added when trying setting home/opt = sda2 boot flags