A thing to remember when moving your /usr partition

June 25, 2009...... at 9:13 pm | Posted in Uncategorized | Leave a comment

Having successfully moved my root partition and home partitions in the past I thought this one would go without a hitch, but it was not to be.
sudo mkdir /mnt/usr
sudo mount /dev/md3 /mnt/usr
sudo cp -a -u /usr /mnt/usr
sudo rm -rf /usr
sudo mkdir /usr
**error /usr/bin/sudo file does not exist**
doh 😦

Remember not to delete the usr folder itself, just the directories underneath it. Also found that something weird happened when I rebooted. Fstab mapped /dev/md3 to /usr (once I had shelled out and created the dir again) but somehow md3 became md_d3 so failed to boot until I changed the fstab entry to mount md_d3 rather than md3.

Advertisements

Leave a Comment »

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.
Entries and comments feeds.

%d bloggers like this: