Click to See Complete Forum and Search --> : Remounting my HDD
Atealtha
04-06-2003, 03:04 PM
I got two HDDs.
One is mounted / and other /usr
Is there a way to unmount my /dev/hdb2 on /usr and remount on something more conspicuous like /backup or something?
sajchurchey
04-06-2003, 03:20 PM
well try
umount /dev/hdb2
mkdir /backup
mount /dev/hdb2 /backup
Then change your /etc/fstab to reflect this by changing the directories that it mounts to.
But it is a necessity to have a /usr directory I believe, and some of your symbolic links in /usr/bin and others may not work w/out it mounted where it's supposed to be.
Atealtha
04-06-2003, 03:58 PM
wouldn't /usr also be on my hda1?
michaelk
04-06-2003, 09:32 PM
Yes it is in a sortof. You will have a /usr in your / but just like a floppy or cdrom it will be empty if the hdb2 partition is not mounted.
Here are the steps to move /usr back to the / partition. check to be sure your / partition has enough space for everything in /usr
Check your /etc/fstab to verify /usr partition.
(As root)
unmount /dev/hdb2
mkdir /mnt/backup
mount -t <fstype> /dev/hdb2 /mnt/backup
cp -R /mnt/backup/* /usr
Delete /usr entry from /etc/fstab
In reality you can stick the the files anywhere and create a link to /usr. But yes you do need a /usr. If you install applications the default location is usually /usr/local.
So what are you really trying to accomplish?