Ok, so this may be located somewhere else in the forum but I have not been able to locate it, so if it is please point me in that direction.
Basically, what I would like to accomplish is to move the "/opt" directory from a partition that is currently dedicated only to /opt - to a folder on the /home directory and then rededicate that partion for other uses.
What I am afraid is going to happen though is that once the /opt directory is relocated, none of the programs in it will maintain the shortcuts in the kickoff application launcher or the other associated program pointers. So I guess there really is a couple of questions.
Current Disk volume setup:
sda1: fat32 - Reserved for future use if I absolutely have to put XP on this system.
sda2: ext4 - / (boot)
sda3: sda5: ext4 /home
sda6: ext4 /opt
sda4: Swap partition
So, I am sure some are wondering why I would do such a thing - but basically it boils down to being new to linux. It was a fresh drive when I was loading kubuntu 9.10 and I knew that I did not want the whole thing as one partition and as I had done some research on the file systems available and how to set them up so I could put windows-crap on it later if need be, I had not run across the "/opt" terminology - so I equated it to user-defined-optional, thinking that this would be where I would stick all the multimedia and other mostly static files. Only later did I find out - because the partition did not mount the way I expected it to (read as: not directly visible in Dolphin) that for some unknown reason opt is the directory that all the applications get loaded into. Go figure... Really, wouldn't /app or /apps be a better suited name?
So... what I think I know:
From the man page on the move command mv and the associated info file, it looks like this could copy the files, so for example, I could use (from root):
mv -n /opt -T /home/opt
but this appears to be a 'drag-n-drop' sort of option, if you will. And I am not certain, but would appear to break any existing links. Plus of course, they are both mounted partitions.
There is of course in the man page for mount, the move option also.
Mount -M /opt /home/opt
But while this will solve the mounted issue, it still appears to be a d-n-d.
Other then that, I'm at a loss. The partitions are the correct size and location that I want so I don't think a Live partition CD is going to do what I want. Maybe there is one that will, I just don't know.
So question one: am I worried over nothing? Is moving the /opt directory just not that big of a deal? and that kubuntu will sort it all out after I do it so that all the application links still work?
Q2: if it is at least a bit of an ordeal, then how do you suggest I go about it? What would be the best method? Do I just need to reload the boot disk and start over? Or is there a command out there that will work? One of the above? Or something else?
Thanks - in - advance
Basically, what I would like to accomplish is to move the "/opt" directory from a partition that is currently dedicated only to /opt - to a folder on the /home directory and then rededicate that partion for other uses.
What I am afraid is going to happen though is that once the /opt directory is relocated, none of the programs in it will maintain the shortcuts in the kickoff application launcher or the other associated program pointers. So I guess there really is a couple of questions.
Current Disk volume setup:
sda1: fat32 - Reserved for future use if I absolutely have to put XP on this system.
sda2: ext4 - / (boot)
sda3: sda5: ext4 /home
sda6: ext4 /opt
sda4: Swap partition
So, I am sure some are wondering why I would do such a thing - but basically it boils down to being new to linux. It was a fresh drive when I was loading kubuntu 9.10 and I knew that I did not want the whole thing as one partition and as I had done some research on the file systems available and how to set them up so I could put windows-crap on it later if need be, I had not run across the "/opt" terminology - so I equated it to user-defined-optional, thinking that this would be where I would stick all the multimedia and other mostly static files. Only later did I find out - because the partition did not mount the way I expected it to (read as: not directly visible in Dolphin) that for some unknown reason opt is the directory that all the applications get loaded into. Go figure... Really, wouldn't /app or /apps be a better suited name?
So... what I think I know:
From the man page on the move command mv and the associated info file, it looks like this could copy the files, so for example, I could use (from root):
mv -n /opt -T /home/opt
but this appears to be a 'drag-n-drop' sort of option, if you will. And I am not certain, but would appear to break any existing links. Plus of course, they are both mounted partitions.
There is of course in the man page for mount, the move option also.
Mount -M /opt /home/opt
But while this will solve the mounted issue, it still appears to be a d-n-d.
Other then that, I'm at a loss. The partitions are the correct size and location that I want so I don't think a Live partition CD is going to do what I want. Maybe there is one that will, I just don't know.
So question one: am I worried over nothing? Is moving the /opt directory just not that big of a deal? and that kubuntu will sort it all out after I do it so that all the application links still work?
Q2: if it is at least a bit of an ordeal, then how do you suggest I go about it? What would be the best method? Do I just need to reload the boot disk and start over? Or is there a command out there that will work? One of the above? Or something else?
Thanks - in - advance
Comment