Ubuntu :: Move /usr Directory From Sda1 To Sdb1?

Jun 16, 2010

I have 2 hard disks, one is full and I would like to move my /usr directory from sda1 to sdb1.

I tried the following..

sudo mkdir /driveb
sudo mount /sdb1 /driveb
cd /driveb
sudo mkdir /usr
sudo cp -b --copy-contents -r /usr /driveb/usr
code....

I don't fully understand the difference between a directory and a mount point and I may be treating them wrong.

I would like /usr to point to sdb.

is it possible, or should I try to change my path instead and ignore this problem?

View 8 Replies


ADVERTISEMENT

Red Hat / Fedora :: Adding Existing Memory In Sdb1 To Sda1?

Nov 30, 2010

Here is the output of disk free space

# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00 940287756 3320512 888432924 1% /
/dev/sda1 101086 21142 74725 23% /boot
tmpfs 7730504 0 7730504 0% /dev/shm
/dev/sdb1 2884158292 74736 273757667 1% /data

Now,I wanna add a large amount of memory in sdb1 to sda1 to increase the available memory.Is there a way I can do this?

View 4 Replies View Related

Ubuntu Installation :: Wrongly Mkfs To /dev/sda1 Insted Of /dev/sdb1 Data Deleted?

Jun 6, 2011

I had a working Ubuntu 9.10 with Windows 7 installed, and i was writing an image of IPCOP [URL] to the USB drive incorrectly, i did mkfs on my primary partation i.e. /dev/sda1 now i am trapped in situation, i was trying to write and usb-hdd image of ipcop on USB Drive, while doing so, i have given following commands

1. mkfs.vfat /dev/sda1
2. e2label usb-pen
3. zcat filename > /dev/sda1

* now the stupid thing i have done, is given /sda1( My HDD ) instead of /sdb1 (USB Drive), it has successfully loaded IPCOP bootable on my primary drive, and my laptop is not working now.

Laptop Partation Info:
/dev/sda1 - NTFS (Windows 7 Prof)
/dev/sda2 - NTFS

[code].....

now i want to get my partitions & data back, if anybody have idea about how to get rid of this situation. The good thing i have done, is that, i didn't tried to install anything on the drive after this happened, with hopes that i can get my data back i guess that it can be recovered but confusion is that, which data recovery software to use, and for linux or windows, as i had my data on NTFS filesystem and currently there is Free Space and EXT4 partition.

View 2 Replies View Related

Software :: Add Partition To Software Raid 1 - /dev/sda1 And /dev/sdb1 Do Not Exist ?

Mar 1, 2010

I have just installed a new version of fedora 12 64bit and have setup the following drive configuration -

Code:

But for some reason I am getting dm-1 and dm-3.

How can I change the array so it contains the normal /dev/sda and /dev/sdb disks and partitions?

Why is the system telling me my drives are dm devices? I have no bios raid features on the motherboard.

How do I use md-1 and md-3 partitions?

How do I go back to the traditional /dev/sda and /dev/sdb devices?

By the way the system tells me that /dev/sda1 and /dev/sdb1 do not exist.

View 3 Replies View Related

Ubuntu :: Unable To Open -m/dev/sda1 - No Such File Or Directory

Dec 31, 2008

I have two large HDD's in my windows based system. Of course I partitioned them and such (by the way the OS is XP Home) I decided that i would like to try Ubuntu so set up a live CD of version 8.10. now I used the install directions on the disk and installed onto a external 500 gig HDD.Now I can't boot to XP and I get GRUB errors. Some times iit's error 17 sometimes it's 21 . I try using the command terminal ...sudo ms-sys /dev sda1 (my boot-able NTFS disk) but I get "Unable to open -m/dev/sda1, No such file or directory"

View 5 Replies View Related

Slackware :: Move Into New Directory To Get Wine Working In New Directory?

Aug 1, 2010

I came from the Debian world so I did not do much building software from source. I successfully built wine from source, now the wine binary is in the same directory where the Makefile and all of the other source stuff is. I can run wine from that directory fine, but I sort of want to move it somewhere else. I tried moving the wine binary somewhere else, but when I try to run it I get

[code]...

What all do I have to move into the new directory to get wine working in the new directory? By convention, where should I move wine, I want it available for all users, should I move it to /opt/wine, or /usr/local/wine, or somewhere else?

View 6 Replies View Related

Ubuntu :: Saying Cannot Move, Directory Not Empty?

Jul 20, 2010

I'm trying to move a folder via sudo mv ioncube /usr/local/bin/

but it says something cannot move since directory is not empty. What do I do now?

View 5 Replies View Related

Ubuntu :: Rename/Move Directory With Bad Name?

May 17, 2011

I have a directory which was downloaded and has a silly name like "-=Directory=-" on my headless (no GUI) linux box and when I try to deal with this directory using "mv" in order to rename it or move it somewhere, it simply does not work. Terminal instead says:

Code:
mv: invalid option -- '='

how I can rename or move it?!

View 6 Replies View Related

Ubuntu :: Move The /home Directory To A Different Location?

Jun 29, 2010

I would like to move the /home directory to a different location, there only seem to be guides on how to move it to it's own partition.

I have a drive (/dev/sda5) mounted as /media/data

I would like to move /home to /media/data/home?

I have tried usermod but get the following error:

Code:
test@TestServer:/media/data$ sudo mkdir /media/data/home
test@TestServer:/media/data$ ls
home lost+found
test@TestServer:/media/data$ sudo usermod -dm /media/data/home
usermod: user '/media/data/home' does not exist

View 2 Replies View Related

Ubuntu :: Cannot Move Mysql Data Directory

Nov 6, 2010

Ubuntu 10.04. I've tried every method I can find and none work. Here's what I know...

1. My /etc/my.cnf is ignored. I can even delete it and phpmyadmin continues to work as it did before.

2. If I move /var/lib/mysql and replace it with a new directory (chowned to mysql:mysql so it looks like it's got the same ownership & permissions as the original) I get a write permission problem, e.g.

Quote:

What I ultimately want to do is used existing database files on a FAT32 partition but I can't even get to first base.

View 2 Replies View Related

Ubuntu :: Unable To Move Home Directory

Dec 28, 2010

Ubuntu 10.10 32 bit/ and /storage are on two different partitions. I want to move my home directory to the /storage partition, so I went to System -> Administration -> Users and Groups then Advanced Settings then the Advanced tab. I changed Home Directory from /home/billy to /storage/home/billy. I click on ok and I'm asked if I want to copy all the user's files over to the new location or start fresh. I click, Copy Files. It acts like it's doing something, but all it does is create the home/billy directories inside /storage, but it never copies files over and the next time I go to /home/billy it's still in the old location. What the heck is the deal?

View 7 Replies View Related

Ubuntu :: Move M /home Directory To New Partition?

Jun 22, 2011

How do you do this without breaking all the links and preferences in /home? Does the system take care of everything? Has anyone done it or is it actually system crippling?

View 2 Replies View Related

Ubuntu :: Script Or Command To Move Files To Directory Of Same Name

Mar 12, 2010

I'm doing a little work on my media center and the scrappers seem to do a much better job when each movie is in a directory with the name of the movie. However that's not how i have things set up.I have a few hundred avi files i need moved to directory named the same as the avi file.

View 3 Replies View Related

Ubuntu :: Copy / Move Random Files From One Directory To Another

May 7, 2011

We have two folders: source folder and destination folder. In source folder we have many sub folders and many files of different type!Script that would copy or move defined number of files from source to destination folder. Files must be selected randomly and sub folder in source folders must be selected randomly and we don't copy or move defined number of files just form one sub folder in source folder. In destination folder sub directory structure of source folder should not be preserved. Solution should be robust and as simple as possible.

View 9 Replies View Related

Ubuntu :: Move Files From Folder/subfolders To A Different Directory?

Jan 10, 2011

I would like to know how to move all the files from a single folder and its subfolders to a single, different location in as few steps as possible. For example when I download files from one of my school's websites, the file I want is located in a deep sub-directory. So, I have to cd many times just to get to the file I want. Is there a way to recursively move all the files within a folder's subdirectories into a new location?

View 2 Replies View Related

General :: Move The Srv Directory To Another Partition?

Jun 28, 2010

When installing Ubuntu (10.04) I chose the /home to be installed in a separate partition.I would now like to move the /srv directory into the same partition. The problem I found is that Ubuntu did not make a /home directory inside the partition itself. It just places the account directories in the partition and mounts it to /home. So I cannot just easily move the /srv folder into the partition.

How can I:

Move those account directories into a home folder inside the partition Make that new home folder the default /home folder. ditto with the /srv folder, or any I choose in the future.

View 3 Replies View Related

General :: Move Old File To Other Directory?

Feb 2, 2010

I have a directory , there are many files created in it , I want to use the command to move the files which elder than 30 days and gzip it and then move it to /tmp , and then remove those files , I tried use below command but not work.

find ~path -type f -mtime 30 -exec tar -zcvf - {} --remove-files > /tmp/oldfile.tgz ;

View 1 Replies View Related

Ubuntu :: Move The Users Home Directory To An External Drive?

Jan 19, 2010

As I regularly move between Mac and PC, I thought it would be a good idea to put all my data on an external drive. As Windows 7 and OS X have similar home folder layouts, I just simply put all the folders I need for both on the root of the external drive and changed a few settings so that the Home folder for my user is on the external drive on both Windows and OS X.

Whilst Ubuntu also has a similar structure, I cannot work out how to have it so that my users home folder is on the external drive. I have done a little research and all I can find is how to have the /home directory on another partition. a) this is not what I'm trying to do, just the folder for my user and b) this would mean formatting the external drive to extX format, which just wouldn't work for me.

I am using 9.10 (or will be once the upgrade is complete)

View 9 Replies View Related

Ubuntu :: Move Music Files From All Subdirectories To Parent Directory?

Mar 1, 2010

I've found several posts discussing how to do this in with the terminal, but none exactly fit what I am trying to do. And since I'm still very new, I was hoping for some help.

I have a parent directory called "Music." The subdirectories all start with "artist", some go further as in "artist/album/cd1". So right now the structure varies in the following ways code...

How can I move all the files (or the file types that I choose) to the parent directory "music"?

(By the way, for any who are interested, this is so that I can use an external hd with a PS3. ("playstation 3"--for anyone who was in my predicament searching the threads)

View 7 Replies View Related

Ubuntu :: Error - Docky Could Not Move The File To The Requested Directory

Apr 14, 2010

I'm running Ubuntu 9.10 and Gnome-Do 0.8.3.1. I have two issues I hope someone can help with.First I've managed to add two folders to the doc, however when I hover over the icon the name is displayed as "..." This might be because the path of the folder is "/home/eric/Desktop/500" which is a link to "/mnt/500" I cannot add the folder without the error listed below. When trying to add folders, and some applications I receive the error:

"Docky Error - Docky could not move the file to the requested Directory. check file name permissions and try again."

View 1 Replies View Related

Ubuntu :: Move Directory / File To External (usb) Hard Drive

Nov 11, 2010

i want to move a directory to an external hard drive this is what i did

Code: konlah@konlah-laptop:~/Downloads$ sudo mv -i LinuxCBT /mnt/EXTERNAL after that i did

Code: konlah@konlah-laptop:~/Downloads$ ls so the file wasn't there anymore.. but i couldn't find it in my external hard drive.

View 1 Replies View Related

Debian :: Find All Pictures And Move Them To One Tmp Directory?

Feb 16, 2010

I have directory with sub directories in it. Inside I have bunch of pictures. I would like to find all pictures, and move them to one tmp directory. While moving there might be files with same names. The command I use:

--- find . -name '*JPG' -exec mv -i {} /home/xxx/xxx/xxx/Pictures/2004/tmp ; ---

now the problem comes with overwrite if there are two files with same name. Is there any simple way to copy all files into one directory and not to loose any, appending certain, even random char, to the 2nd file would do.

View 2 Replies View Related

General :: Move Files To Another Directory Using A Cron Job?

Sep 29, 2009

I have a php script in cron directory that generates 5 textfiles, after the files are generated, I want to create a script that will move the 5 text fiels to anoher folder name "web".

View 2 Replies View Related

General :: Move The Home Directory To Another Partition?

May 25, 2010

I created a partition in my hard disk for my data (documents, multimedia, etc.).How can I:Move the /home/ directory to the new partitionMake the OS (Ubuntu Linux) treat that directory as the default /home/.

View 1 Replies View Related

General :: Move All Files And Folders Into A New Directory?

Jan 25, 2011

Unix - In Linux, how do I move all files and folders into a new directory?

View 4 Replies View Related

General :: Move And Create A Directory At The Same Time?

Nov 19, 2010

I am trying to clean my computer. Basically I try to order some movies to put all of them in directories. I started by hand but I am loosing time I guess. I want to do something like:

mv *.avi /nonexisting_directory/

nonexisting_directory being the name of the file without .avi, changing for each file. How can I write in command lineor in script?

View 10 Replies View Related

General :: Use Wget To Move Content From One Directory To Another?

Sep 21, 2010

I am new to linux and wget...what would be the syntax to use wget to move content from one local directory to an svn repository (svn commit)? For instance if i have a directory c:\dir1, and i want to move it's content onto an SVN repo...is this possible using wget? If so, how do I get this done?

View 2 Replies View Related

Ubuntu Servers :: Error Occurs When We Use Move Upload File, To The New Directory Within Our PHP App

Oct 7, 2010

We are running into issues with a File Upload script written in PHP. We can upload files without issues except with .*x files (such as .docx) We are getting permission denied errors. The error occurs when we use move upload file, to the new directory within our PHP app. If we give the uploads folder 777 access, it works fine without error. I dont like that. So I set it to 775 (Also dont like this), but it didnt work until I gave group ownership to www-data (I really dont like this)

This issue only happens on our production server, which is Ubuntu 9.04, running Apache2.2 and PHP5 will all the newest updates. We also have all MIME's configured, and are able to download the file from Apache without error. The first thing we noticed before the file permissions error, was that the MIME type changed to .zip when we used mime content type function. But yet using the FILES array, it still showed .docx.

View 2 Replies View Related

Ubuntu Security :: Move To Encrypted Home Directory Not Losing Data?

Jul 20, 2011

I am running ubuntu 11.04 I'd like to encrypt my home folder. - how can it be done, without creating new user/starting from scratch. -I'd like to keep all the files and desktop settings - the only change should be that the folder is encrypted now.

View 2 Replies View Related

Fedora :: Shrink Home Directory And Move It To The End Of The Drive?

Aug 1, 2009

So I messed up a little and didn't leave enough room on my disk. I want to shrink my home directory and move it to the end of the drive. Is this possible? It's ext4 but no an LVM partition though.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved