You are not logged in.
I have a project I'm working on where I have to upgrade some servers that I have no physical access to. One thing I thought would make my life way easier is if I could be able to mount /newroot on a filesystem as / to the system somehow. Is there a way to do this?
Offline
sure, try sshfs or even ftps
Offline
@Caveman85de: I don't think that's what synthead meant
I don't know of a way, but will faking that with chroot help you? (I use "fake" here because I don't actually know enough about chroot to tell you something more specific...)
Last edited by jac (2010-06-24 12:12:20)
Offline
I'm not trying to mount a remote filesystem on a local server ... I know this sounds tricky, but this is kinda what I'm trying to do. Of course, this is not how you would do this (why I'm posting here), but this is more like what I'm trying to do:
UUID=0ba11cd0-a42d-4a25-bbe7-746841e09985/newroot / ext3 defaults,noatime 0
Or perhaps ...
/dev/sda1/newroot / ext3 defaults,noatime 0
Imagine that in your fstab. I'm using the /newroot folder in the root of that filesystem as the root to the mounted filesystem. Again, this is wrong, but is there a way to make this work?
Offline
@Caveman85de: I don't think that's what synthead meant
I don't know of a way, but will faking that with chroot help you? (I use "fake" here because I don't actually know enough about chroot to tell you something more specific...)
Interesting ... yeah. This would be on a production environment, so I don't think a chroot would suffice, but that's definitely something to consider.
I'm thinking I could so something like this. I would create a very small partition somehow, perhaps loopbacked to a file. This would have all the directory structures needed in the new filesystem as well as other directories to mount the old filesystem partitions. I could call this .oldroot. I would create .newroot in every partition too, then use binds to "mount" the new folders in the partitions where the old ones used to be.
newroot.img / udf defaults,loop 0 0
/dev/sda1 /.oldroot ext3 defaults 0 1
/.oldroot/.newroot / none bind 0 0
Again, proof of concept ...
Offline
Can I mount drives as /x/y/z without mounting a / partition first?
Offline
Not really, as the mount-point has to exist prior to mounting.
I still don't get what you are up to...
Are you trying to (re)mount the already mounted FS of another system that is still running?
Offline
UUID=0ba11cd0-a42d-4a25-bbe7-746841e09985/newroot / ext3 defaults,noatime 0
Or perhaps ...
/dev/sda1/newroot / ext3 defaults,noatime 0
Both of these are impossible - you are trying to specify a subdirectory of a block device.
Offline
Both of these are impossible - you are trying to specify a subdirectory of a block device.
So this isn't possible at all by any means?
Offline