Ubuntu :: Moving A File Between Partitions?
Apr 19, 2011
My temp file is currently located int the root partition which is a a relatively small partition. As it is, if my root partition id more than half full I am unable to make a backup of the whole system. I would like to move that folder into the home partition and maybe even make it a hidden folder. Since a lot of apps depend on the other folders within the temp folder - what I am wondering about is whether I can just move the folder or if I need to be concerned that those apps will not be able to find the folder then. Would I end up needing to go into every app that uses it and change settings? Is there things within the o/s that use it that I would need to reconfigure or something?
Ubuntu 11.04 with the Unity Desktop on a HP ze2000
View 7 Replies
ADVERTISEMENT
Jan 14, 2011
I have windows 7 and am soon to partition a large amount of my drive over to linux. I'd rather all of my computer be linux but I'm unsure how to get my files to my other partition, I don't have a thumbdrive and my email doesn't have much space. I have 300 gbs of room, 150 will be linux, how do I get the 100 gigs moved from my windows partition to my linux so I have more space on my linux.
View 1 Replies
View Related
Jun 27, 2010
I have two "Ubuntu" installations, for the record. My HDD is laid out like so:
PRIMARY - First Ubuntu
PRIMARY - Second Ubuntu [XBMC Live]
4GB Free
14GB LOGICAL
-4GB Free
-10GB Swap
Now, GRUB is currently on XBMC Live. I have terminal and root access if needed, and a "Live CD" ready to use. What I want to know is how I can move GRUB, preferably on its own partition but it can go back the the first partition.
View 5 Replies
View Related
Aug 29, 2010
I have 1 HD with the following OSes, each on his own partition:
p1 WinXP
p2 Win7
p3 Ubuntu
p4 Ubuntu Studio
p5 Unallocated (not actually a partition)
I intended to create a 5th partition, formatted as NTFS, for data. That's when I found out that Windows only supports 4 partitions per disk (yeah, I know, should've looked it up first). On Win7 Disk Management applet, they're all listed as "Primary Partition".
I've come up with a few possible solutions: s1. Move partitions p3 & p4 down towards the end of the HD, and add half of the available space to partition p2 (Win7) and the other half to partition p4 (Ubuntu Studio).
s2. Move partitions p3 & p4 to the end of the HD, and add all available space to partition p2 (Win7).
s3. Increase partition p4 (Ubuntu Studio) to take up all the available space.
My questions:
q1. Win7 Disk Management applet gives me no option to move or resize (other than shrink) the partitions. Does this mean I'll have to use another partition manager (e.g., gparted)?
q2. If I move the partitions p3 & p4 (both Ubuntu), will there be any impact on grub?
q3. Is there any way to turn partition p4 to extended instead of primary? If so, what are the consequences?
View 6 Replies
View Related
Dec 30, 2010
im using ubuntu server 64 bit on intel atom410D. when im using my SATA DRIVE as AHCI mode while i moving 4 GB files from one partition to another my server is getting so slow that it will take me to login on ssh 2 minutes. so i have seen a thing or two about a bug on it. i changed the AHCI mode to IDE mode and now it seems to work better.
View 2 Replies
View Related
Jan 28, 2011
On my laptop, squeeze has /, /boot, /usr, /home and I think /tmp /var on separate partitions. I want more space for apps and to not have to be so frugal with /home. Earlier this week I shrank sda1, freeing up 40 GB. I wanted to start moving the squeeze partitions, but GParted logically enough denied it since they were mounted, duh. I'm glad for that, because I was getting overeager and hadn't made even a full system backup.
This is one of those situations where choice, while good, makes it hard to get started. I wouldn't mind using dump, but doesn't it inefficiently copy the whole partition regardless of empty space? I figure tar could do as well, but is it a problem that it doesn't preserve all the meta info? As a starting point, I'd like to have an "quick" and safe way to make sure that if something happens while moving partitions, I can do a restore. I can progress to more optimal solutions later on, like semi- or fully automated incremental backup.
So what is a sure-fire way to do this while preserving all info? Should I stick with something like clonezilla, can I manage it from within Debian (CLI, ready-made script, GUI), is there a still better way?
View 5 Replies
View Related
Apr 3, 2009
Especially /var because I am running a MYSQL server on this box. I want to know if there is a safe procedure to follow to move these partitions from the current sda2 and sda3 that they are now to sdb2 and sbd3 because this is a much bigger disk. I don't want to break MYSQL and I don't want to be down for a long period. I have heard of some people suggesting a sym link to a /newvar and /newuser on sdb but I have also read this will not work when moving to a different physical drive.
View 3 Replies
View Related
Dec 29, 2009
I have Windows XP and OpenSuSE 11.1 installed on my laptop. I have recently removed the recovery partition provided by the laptop manufacturer (HP) to free up some space and ideally I would like to be able to add the free space to the existing Windows partition.The current partition set up is as follows:
Code:
Disk size 93Gb, P = Primary, L = Logical, U = Unallocated
P Windows XP 36Gb /dev/sda1 /windows
[code]...
View 1 Replies
View Related
Mar 29, 2010
Here's my fdisk -l:
Code:
Now, i'd like to join partitions sda7 and sda8 in a single partition. However, it seems that GRUB is residing on sda8, where there is a Ubuntu installation I don't need anymore, while I use the Ubuntu 9.10 installation on sda7.
To make it more clear, I see two /boot/grub dirs on both partitions, but my pc seems to use the one on sda8.
What's the correct way to handle this problem?
I believe I use Grub1.97 but I don't know if the system is showing me the "wrong" grub (on sda7) instead of the one that's really used.
View 3 Replies
View Related
Jan 4, 2010
I'm using Ubuntu 7.04 on a live boot right now so I can move from files from a hard drive on a computer that won't boot. This is my work computer, which contains about three years worth of accounting and inventory information that I absolutely must recover from the drive. The computer runs one SATA drive, and has no ports for additional drives. Otherwise I have two USB drives connected and an IDE connected through a USB adapter. (The SATA drive will not work through the adapter for some reason). I have absolutely no access to another computer with SATA support.
All the drives mount on 7.04, and I can view the files on the SATA drive - which leads me to believe the drive isn't completely dead. So i'm hoping to move the files I need over to one of the USB drives.
However, i'm getting flags when I move files. -Without- installing Linux, is there a way for me to grant myself permissions to move/copy/delete files on my hard drives? Otherwise, is there a simple way (that won't compromise the data on the drive) for me to re-do the partitions the SATA drive so I can install linux?
View 9 Replies
View Related
Mar 12, 2011
I'm told to go to /home/jbander/Downloads, so how do I do that, I assume you do it in terminal but what do you do next, I can get to home but thats it. How do I go from one directory or file or whatever they are, to another and once I'm there what do I do to see what is in the download file. One more question if I want to change it from e.g. cow to e.g. duck how would I do that(they are just arbitrary names) how do I get rid of cow and how do I put duck in it's place.
View 4 Replies
View Related
Apr 3, 2011
In vim, how do I go to a given line? In particular, how do I go to the top of the file or to the bottom? And when searching, how do I unhighlight the found words
View 3 Replies
View Related
Apr 26, 2011
I'd like to know if the mv command is supposed to apply the default acl of the destination directory to the moved file?
I'm on RHEL5, and when moving a file with no acl, to a directory with a default acl, the acl is not being applied.
Note: cp does apply the acl as expected.
View 7 Replies
View Related
Nov 24, 2010
i want to move a file. User will give (file_name,current_path,destination_path)as command
View 2 Replies
View Related
Jun 14, 2010
I've got a text file listing 1823 files that need to be copied from their current locations, i.e.To another folder, any idea how I should do this?
View 4 Replies
View Related
Dec 4, 2010
Im trying to move some files from my desktop to /usr/share/ProjectM Project M is a visualization program, and Im trying to move some presets I downloaded there. The error I get is
Code:
There was an error moving the file into /usr/share/projectM/presets.
Error moving file: Permission denied
I am logged in as administrator, why can't I move these files?
View 7 Replies
View Related
Mar 27, 2011
I like the buttons on the left. I'm running 10.04 & I know how to move them. The problem is that changing themes will move them back right. OK, if the new theme has them on the right that's OK. But going back to the other theme doesn't change them back. They don't seem to be controlled by the theme, or I'm just not doing it right.
View 2 Replies
View Related
Dec 16, 2009
my partitioning layout was as follows
Vista Recovery
Windows 7
GRUB
Extended
-->Fedora 12 (ext4)
so, I shrunk my recovery in Windows 7 successfully, and booted into my Fedora 12 live cd to run Gparted, and move the partitions so that the free space could go towards fedora, I did such, and then I couldn't expand the partition to my dismay. Next, I woke up this morning, tried to boot to fedora to run SSH, grub loaded, but when I tried to boot fedora, I got the "File system check failed" error, and when I tried 7, it just went to a blank screen with a single "_" in the top left-hand corner.
View 7 Replies
View Related
Apr 28, 2011
I had need of putting a file in one of the directories of the $PATH.The echo $PATH is/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/Majara/binI did in the terminal:mv file /home/Majara/binI have learned now that /home/Majara/bin isot a directory, but the file is not anywhere
View 2 Replies
View Related
Sep 13, 2009
I have installed fedora 11, now i want to install touch driver for my dell 15 laptop. when i m moving cursur its moving but when i m clcking on touch pad to open anything its not opening, to open i have 2 select any file then i have to click touchpad keys.
View 2 Replies
View Related
Jan 7, 2010
I have an external hard drive that needs to be readable and writable between MacOSX, Ubuntu, and Windows. I also need to work with files over 4gb in size (which can't be done with Fat32, which happens to work with all 3 OS's) I tried MacOS journaled, that didnt work. Before I start reformatting and doing a bunch of guess and check, I wanted to know if the answer was known.
View 7 Replies
View Related
Jul 16, 2010
I am versioning my config files with git. Now I need to move some of my config files to a different repository, to achieve a clean structure. Is there a way I can keep the change log for a file if I move it to a different repository? I would like to have all commits of repo A in repo B that touched file A/a if I move it to B/a. Ideally, if I afterwards move A/x to B/x, I would want to see B/a and B/x appear together in commits that touched both files in repository A. I would not expect to have any development step of A/a merged into any of the commits of B, I just want them to appear there afterwards.
View 2 Replies
View Related
May 1, 2010
I have an obsession of packing a large number of distros into one hard disk. Many distro installers do not like it even though their kernels can support higher number partitions. Typically an installer, say from a Debian family, would freeze when checking a hard disk that has more than 15 partitions. However if I put the same distro on a hard disk with less than 16 partition the installer will be very happy to install. I then copy the distro back to the original disk to a different partition, change the boot loader setting and fstab and the new distro will be happily working in the next hard disk that has 57 partitions.
This scheme works for any distro until recently Fedora refuses the move. I didn't investigate the cause then but I have just come up against a brick wall with the Red Hat Enterrise Linux 6. It was one out of the 4 I just moved. The others are operating happily. The RHEL will boot to a Grub screen. When I select the user account and type in the password it just refreshes the screen as though the password could not be accepted. I can boot up another Linux, mount the RHEL partition, change root to it and change my normal user password. Better still why don't I create a new user and another password.
Same result. I could not pass the log in screen with revised password or from a new account which got displayed. How about a little trick told by Justlinux library file --> to alter the run level. So I mounted the RHEL partition, changed root to it, edited the /etc/inittab and amended the run level from 5 (for X desktop) to 1 (single user - terminal mode). RHEL now boots to a root terminal! Success in a sense that my RHEL boots as expected and there was never a problem with booting. However newer Linux do not permit root log on to the desktop so I cannot check the log in with the ordinary user account to X. After I fiddled with the various files/parameters related to the gdm and X still no joy so I cut my loss and post the question here.
View 10 Replies
View Related
Feb 1, 2010
Objective: To move or backup all the 30 days old files to the other server within LAN. I have tried testing it first within the server by performing below commands:
find /usr/test1/* -mtime +30 -exec mv {} /usr/test2/ ;
But I'm getting "mv: missing file argument" error when I try this.
View 1 Replies
View Related
Apr 30, 2011
I have a bunch of .7z files in a directory, and I need to put each one of them into a separate directory, named after the file (without extention). The command line I use:
Code:
find . -type f | mkdir `sed -e "s:..(.*)...:1:"` ; ls | grep .7z | cp * `sed -e "s:(.*)...:./1/:"`
Copying fails though:
[Code]....
PS. I don't want to use scripts, I want to do it using simple commands and piping.
View 5 Replies
View Related
Oct 17, 2010
How can I move a directory to the root of a drive via command line?
In MS-DOS it would be 'move C:/GAMES/QUAKE C:/'
What is the equivilent in Linux?
View 8 Replies
View Related
Aug 26, 2009
How do you rename:
abc123.txt
abc124.txt
abc125.txt
to
abc.txt.123
abc.txt.124
abc.txt.125
Basically, I want to move the digits from the filename to after the extension.
It works for one file if I type:
rename 123.txt .txt.123 abc.txt.123
but I have thousands of files like these.
View 1 Replies
View Related
Dec 5, 2010
I'm starting bash shell script and I'm looping without any solution.
I'm trying to find some files under a folder hierarchy and in case of errors moving these files to a destination folder under the same hierarchy recreating this hierarchy if not exists.
Finding all ._* files under /src and moving them to /dest recreating folder1 or the others which contains ._* files but without moving files which does not correspond to the pattern.
Code:
I tried find command and I'am getting all needed files
Code:
But I don't know how to use the output to get the parent folder of files which are found to
1- create folder with mkdir -p /dest/folder1 or /dest/folder1/folder4
2- move found files from /src/... to /dest/... with rm command
I'm working on a find command as this trying to do all in the same line but ... little lost
Code:
View 8 Replies
View Related
Apr 5, 2010
I'm using two NTFS formatted partitions. One is internal and holds all my data. The other is on an external hard disk and is where I back up all my data to. What I'd like to do is copy all my files from the data partition to the backup partition and preserve all the windows' timestamps (including the file creation dates).How hard can this be? Well it appears that in the case of Ubuntu the answer is very hard indeed.I'm aware that Linux does not support the concept of a file creation date natively. However, according to the ntfs-3g website, all of the windows' timestamps (including the creation date) are mapped on to the system.ntfs_times extended attribute (link). So if you preserve the extended attributes when making a copy then, in theory at least, the timestamps should also be preserved.
I read on another forum that a file's timestamps will be listed (albeit in an unreadable hex format) if you run the following command:getfattr -h -e hex -n system.ntfs_times <filename>Unfortunately however, I just cannot get it to work. With every file I've tried I simply get a message saying "no such attribute".
View 9 Replies
View Related
Mar 22, 2009
I have just recovered my desktop Ubuntu system, thanks to SuperGrub, and Larryfroot, who pointed me to it. It had crashed due to an incomplete install to a pen drive, but prior to this I had made some changes to my partition layout, and now if such moves could cause the problems I'm having now.I wanted to be able to access my pictures, music, and projects while testing different Linux distros from CD or pen drive (DreamLinux looks much like the Mac interface, which I like, it's rated for speed, gotta try), but I've not been able to do that from any which I've tried yet. I learned somewhere that replacing the unused bulk of the OS partition with a big FAT32, and moving your files to that drive should make them accessible to most systems. I just viewed my files from the DreamLinux distro CD, so it seems to be working. I knew the action on this type of partition would be slower, and it really is when I move files to it, so is there a better way to get what I want than this?I have since had the following annoyances from Ubuntu's Nautilus file browser, and am wondering if the drive changes had anything to do with the following:
1. I am getting error messages when I try to move files to this drive through the Nautilus GUI file browser, but then these errors are wierdly negated when the file transfer is performed anyway. Well, I should be happy that it does what I ask, but where are these false error messages coming from?
2. It gets even more strange - when viewing files on Fat32 through Nautilus, in my Ubuntu hard drive partition, the file window has a banner which states "These files are on a Picture CD". Huh??? I know where I moved my files to, and they are not on CD! What is a "Picture CD" anyway?
Can anyone find a logical explanation for these weird messages, or does it look as much to you like corruption damage?
View 2 Replies
View Related