fstab in tiger

lpx

Registered
Hi,

I was trying to use a separated partition for swap but there is no fstab in tiger...

exists a file named fstab.hd but inside is message saying to ignore that file.

i tried to change /etc/rc to point to a partition that i have already named swap but i think that by the moment the swapfile is created the swap partition isnt so the result is a new swap directory and the real swap partition named swap1

does anyone knows how to pass this problem?

cheers,
 
Um, just make the file /etc/fstab. It works. I use this to mount a partition at /var/vm. And to mount a few other partitions at other places (one at ~/Music). Works fine in Tiger!

For anyone wanting to do this, this is how my /etc/fstab file looks:

#Device Mount point Type Setting Dump fsck order

LABEL=Swap /private/var/vm ufs auto,rw 1 2
LABEL=Projects /Users/*/Projects hfs auto,rw 1 3
LABEL=Music /Users/*/Music hfs auto,rw 1 4
LABEL=Backup /opt hfs auto,rw 1 5

Note: The LABEL="name" is the name of the drive/partition. And the * was put there just to edit out my user name, you'd put your actual name if you wanted to do that.

If you want to go this route, you'd need to edit /etc/rc as well. It would start the dynamic_pager (which handles swap files) before the swap volume is mounted, which I figured was a bad idea. So I edited out those parts (and for the app_profile stuff, too). Then I made a startup item using the old way (in /Library/StartupItems) that starts up those things after the disks have been mounted.

I did all this in 10.1, and it still works fine. I'll probably need to figure out a way to start the dynamic_pager after the disks mount using Tiger's new launchd stuff, since it looks like startup items are on the way out, but for now it still works fine.

You don't have to use the LABEL= thing, either. Back when I did this, drives weren't usually at the same /dev node and so it was a pain to get stuff to mount at the right spot sometimes. It looks like the drives are always at the same /dev node all the time since 10.3 (at least, they have been for me), so you can probably just use them instead. If you do it that way, then you don't have to worry about issues with the drives not mounting like above - they'll be mounted by that point. With the above way, the drives aren't mounted until a bit later in the boot process.
 
very strange.

i tried to make the fstab file but it didnt work.

i'll try again and then ill feedback

cheers
 
Back
Top