PDA

View Full Version : How to NFS remount /home



sunburnt
04-14-2005, 08:23 AM
I try to remount /home & no go. I tried umount & it says it's busy.
I assume that it has to be mounted right the first time because
after that it's in use & can't be unmounted?
I've read alot & can't see how to remount it to /mnt/hda3/homes.
mtab is where it's mounted, & it's rewrote on boot, can't change it.
Need each client PC to unmount /home/knoppix on the ramdisk, &
nfs mount it on the server to /mnt/hda3/homes/$LOGNAME.
I can get the nfs mount to work, if I could unmount the old /home.

Dave_Bechtel
04-14-2005, 06:14 PM
Yikes, you're doing this from the livecd?

The way I see it, you have 2 options:

1. Remaster. Change the boot script(s) to mount the /home you want.

2. Mount your NFS /home at a different directory, and just give everybody access to it. Unless you're using custom BASH init scripts (like .profile) this would seem to be the better way to go. And you can always have everyone do ' source /home2/$USER/.profile ' manually if you need to.

Optionally, you can edit /etc/passwd and change the user's home directory (this is how root gets /root, and everybody else gets /home/blah. See ' man 5 passwd '.)

2nd Optionally:
' adduser knoppix2 ' and mount your stuff at /home/knoppix2. Save everything with the "persistent home" script. See if it works at reboot.

If ya can't attack it directly, sometimes ya can get around it. ;-)


I try to remount /home & no go. I tried umount & it says it's busy.
I assume that it has to be mounted right the first time because
after that it's in use & can't be unmounted?
I've read alot & can't see how to remount it to /mnt/hda3/homes.
mtab is where it's mounted, & it's rewrote on boot, can't change it.
Need each client PC to unmount /home/knoppix on the ramdisk, &
nfs mount it on the server to /mnt/hda3/homes/$LOGNAME.
I can get the nfs mount to work, if I could unmount the old /home.

sunburnt
04-15-2005, 12:14 AM
I usually say: poormans install to HD, a little easer to deal with
than the live CD when it comes to modifing the system.
I could full HD install, but I really don't need much changed...
A home for each client & remove some menu & task bar items.

I don't understand the complete interplay of all these parts,
just the basics of the descrete parts. When I do I'll do a Wikki!
Clarify please: clients boot from server but run their own apps.?
After clients boot the server's a NAS for apps. & clients homes?

If I do Persistant Home & Save Config. on each client, the files
will overwrite each other (correct?). Are file names/paths fixed?
This would be OK, but it seems real home dirs. are easer to do.
I'll need some config. changes to the clients though, menus, etc.

Need clients to mount /$LOGNAME or /$USER for work spaces.
Clients fstab it seems is made by: knoppix-terminalserver.
Modify it so fstab's it makes, mounts EACH clients work space?
Or have clients run a boot script using /$USER to mount it?

All this shows my ignorance, I'm trying to change that rapidly!
Many thanks for answering me, I hope you'll keep helping.
Is it OK to use your link to talk to you directly?
So you won't have to keep checking this post. .......... Terry B.

Dave_Bechtel
04-15-2005, 01:06 AM
Now you're getting esoteric. ~:-) It's better to keep it in the public forum, that way more eyes will see it. When it comes to terminal server / persistent home, I have no experience; I'm all installed-to-HD.

If you could describe your setup more completely (and why you "need" it that way) that would help. IMHO, you're better off installing to HD unless you're really strapped for HD space, or these aren't "dedicated" computers.


I usually say: poormans install to HD, a little easer to deal with
than the live CD when it comes to modifing the system.
I could full HD install, but I really don't need much changed...
A home for each client & remove some menu & task bar items.

I don't understand the complete interplay of all these parts,
just the basics of the descrete parts. When I do I'll do a Wikki!
Clarify please: clients boot from server but run their own apps.?
After clients boot the server's a NAS for apps. & clients homes?

If I do Persistant Home & Save Config. on each client, the files
will overwrite each other (correct?). Are file names/paths fixed?
This would be OK, but it seems real home dirs. are easer to do.
I'll need some config. changes to the clients though, menus, etc.

Need clients to mount /$LOGNAME or /$USER for work spaces.
Clients fstab it seems is made by: knoppix-terminalserver.
Modify it so fstab's it makes, mounts EACH clients work space?
Or have clients run a boot script using /$USER to mount it?

All this shows my ignorance, I'm trying to change that rapidly!
Many thanks for answering me, I hope you'll keep helping.
Is it OK to use your link to talk to you directly?
So you won't have to keep checking this post. .......... Terry B.

sunburnt
04-15-2005, 03:40 AM
Full HD had Term. server problems, but KDE login worked.
Poorman works so well just as it is (am I wrong).
It's probably different for each version, mine's Knoppix 3.3.

Good HD space, PCs are dedicated, CD copy's an easy install.
Workspaces can be called anything, $USER would allow users
to access their workspace from any machine with a login.
Many ways to do this, I'm not picky, just need workspacces.

So how to feed clients a modded fstab, or a mount command.
Poormans or full install, the problem's still the same I think.
Server: 900 duron, 160mb ram, 6gb HD, don't think this helps.
If there's anything specific you need to know... ask!

Dave_Bechtel
04-15-2005, 03:49 AM
3.3(!) You're a few versions behind...

You can get the latest ISO (bittorrent) here: http://torrent.unix-ag.uni-kl.de/

--BTW, my "bigbox" is a 900 Duron, as well. ;-)


Full HD had Term. server problems, but KDE login worked.
Poorman works so well just as it is (am I wrong).
It's probably different for each version, mine's Knoppix 3.3.

Good HD space, PCs are dedicated, CD copy's an easy install.
Workspaces can be called anything, $USER would allow users
to access their workspace from any machine with a login.
Many ways to do this, I'm not picky, just need workspacces.

So how to feed clients a modded fstab, or a mount command.
Poormans or full install, the problem's still the same I think.
Server: 900 duron, 160mb ram, 6gb HD, don't think this helps.
If there's anything specific you need to know... ask!

sunburnt
04-15-2005, 08:02 AM
Checked clients hostname & username & they're the same
as the servers. That & the fact the clients IP addresses are
dynamic, makes trying to nfs mount anything real tough.

So it's best to do a full HD install, until I understand more.

Can the full HD be copied to another HD, just like the CD?

Dave_Bechtel
04-15-2005, 10:44 AM
--The server, at least, should be installed to HD and have a static IP address. At that point, whether the clients are dynamic or not shouldn't matter, as long as /etc/hosts.allow and hosts.deny are commented out on server-side. You should however have all potential client IP's listed in /etc/hosts on the server.

--I can assist you with setting up a DHCP server with limited IP Address range; how many computers are you running this setup on?

--AFA copying the HD, in my experience you're better off doing individual installs unless 1) the hardware is EXACTLY the same across all machines, and 2) you really know what you're doing, and what needs to be modified per-machine.


Checked clients hostname & username & they're the same
as the servers. That & the fact the clients IP addresses are
dynamic, makes trying to nfs mount anything real tough.

So it's best to do a full HD install, until I understand more.

Can the full HD be copied to another HD, just like the CD?

sunburnt
04-15-2005, 11:33 PM
I'm convinced that the file: /usr/sbin/knoppix-terminalserver is the key to making the poormans install work, it mounts & copies stuff in a function called: mkinitrd().
I just wish I were more guruish at scripting so I could understand all of it!

Anyway... about a dozen PCs, but could be more, I used: x.x.x.101 to x.x.x.250.

So when installing to the HD, the hardware setup becomes fixed & the auto detection no longer takes place?
That's one of the major things I liked about Knoppix, PC portability.

How to wipe out Mepis to make room for full install? Mepis can't bring eth0 up anyway.

P.S. My other post about KDE login is part of this "project". How to get one at boot?

Dave_Bechtel
04-16-2005, 06:37 AM
o When installing to HD, you have the option to have HW detection occur at boot.

o To wipe Mepis, simply ' mkreiserfs /dev/hdXX ' on its partition (without it being mounted!) and run the install script (it used to be knx-hdinstall, but now I think it's knoppix-installer ; haven't used it for a while.)

--It may be a good idea to backup the mepis /etc and any other critical files that might come in handy before flaming it. I kept my old SuSE 7.3 /etc when I installed Kpx to HD and it came in handy.

--AFA KDE login, no experience; sorry.


I'm convinced that the file: /usr/sbin/knoppix-terminalserver is the key to making the poormans install work, it mounts & copies stuff in a function called: mkinitrd().
I just wish I were more guruish at scripting so I could understand all of it!

Anyway... about a dozen PCs, but could be more, I used: x.x.x.101 to x.x.x.250.

So when installing to the HD, the hardware setup becomes fixed & the auto detection no longer takes place?
That's one of the major things I liked about Knoppix, PC portability.

How to wipe out Mepis to make room for full install? Mepis can't bring eth0 up anyway.

P.S. My other post about KDE login is part of this "project". How to get one at boot?

sunburnt
04-16-2005, 09:37 AM
HD installed, server comes up, client gets pxe reply, & mounts /cdrom.
Then says cannot NFS mount /KNOPPIX... dropping to limited shell.
I guess if the Knoppix CD were in the drive it might have worked.
Not what's wanted anyway.

It's come back to me now, I've been here before, poormans worked.
3.8 is best no doubt, if I have to fix it also, I may as well begin now.
I have dialup, but have friends with cable, I'll tell you when it's on HD.

sunburnt
05-09-2005, 11:35 PM
It's been awhile, I tried both my friends with HiSpeed Internet & nether
could dnld a damn cd & get it burned!
Anyway I bought Knoppix 3.8.1 & Kanotix, I'm ready to go...finally!

Same as 3.3 hd install, term. server still doesn't work in a hd install.
I think separating the server os from the client os is a good idea.
Besides the server os only needs admin. tools & not much for apps.

Would it be a good idea to start a new post for this?