General :: Moving A Partition With Dd To Another Drive

Dec 7, 2010

Lets say I have /dev/VolGroup00/LogVol00 which is a 5.8 GB ext3 partition that resides on a 10GB drive. This is just a logical volume partition, one of a few... this being the one that isn't swap, the main data.

I have a 20GB drive... I want to move the LogVol00 to it, and it is /dev/sdb. I partition /dev/sdb1 to be 8192 MiB in size in gParted.

I move as such:

dd if=/dev/VolGroup00/LogVol00 of=/dev/sdb1

The operation finishes with no problems.

Fsck reports clean... so... I run:

fsck -l /dev/sdb1

A few small errors pop up and they get fixed.

My free space remaining, as expected, is 5.8 GB.

I go into gParted and resize the partition to 15GB in size, still working on the 20GB drive.

It does so, the operation completes.

I have what I want: the partition was taken out of LVM, data was retained, I have no issues resizing it. Additionally I tried writing random junk to this new filesystem to test to see if it's broken, and also deleted 3gb of files already on it with no problems.

I just want someone to look this over and tell me if they see any problems with what I've done. I've tested this twice so far with success each time. Is there a better or easier way to do this? I do not want to keep LVM for various reasons. By the way, you might be wondering why I made the partition 8GB for an almost 6GB system. Because the first time I did it, I put down a number that was too exact and it didn't work. Overestimating to 2GB fixed the issue - I'm guessing this is probably due to block size.

View 5 Replies


ADVERTISEMENT

Ubuntu :: Won't Boot After Moving To New Hard Drive And Partition Structure

Dec 9, 2010

Old drive is dying, so I copied the system over to my new drive. I've moved /home and /tmp to separate partitions and updated fstab and grub with the appropriate UUIDs from blkid. Grub wasn't loading but that's been fixed now.

Problem:

The problem now is that when I boot I get the following screen:

Errors were found while checking the disk drive for /

Press F to attempt to fix the errors, I to ignore, S to skip mounting or M for manual recovery

F doesn't work, and in manual recovery the file system is read-only. How to proceed?

View 9 Replies View Related

General :: Moving Users To Another Partition ?

Apr 26, 2010

I have 2 harddisks, and a very new SuSE 10 installation.

Suppose I have a user called test in the users group. At present its home directory is /home/test. This is on one of the harddisks, sda.

Now I have a partition on the other harddisk /other. I would like all my users to be on sdb, so that their home directories are /other/users/test for instance for the test user.

I have played around with YaST to create another user "toets" in /other/gebruikers, but I would like to have it as /other/users/toets.

I want all the user accounts on /other.

View 7 Replies View Related

General :: Fix Grub After Moving Root Partition?

May 15, 2010

Because I am using one of the new WD disks I am trying to aling my root partition with the real sectors, as described here:[URL]31So I copied all files to a temp location, deleted my partition (/dev/sda3), recreated it a few cylinders later (same name) and copied the files to the newly created partition. But now when I try to boot, I get my old grub menu but after selecting my kernel version it hangs

View 15 Replies View Related

General :: Moving A LVM/LUKS Encrypted Partition To The End Of A Harddrive?

May 16, 2011

I need to move a LUKS encrypted partition to the end of a harddrive to expand another partition. Does anyone know how to do this?

Is it possible to do this with other partition editing programs?

Gparted doesnt support LUKS/LVM

View 1 Replies View Related

General :: Uninstalling Ubuntu 10.10 - Or Moving Onto Another Hard Drive

Apr 1, 2011

I installed Ubuntu 10.10 on my laptop alongside Windows 7 on the second 320 GB hard drives and now I want to replace it with a 750 GB hard drive, but when I removed it the grub was gone and Windows (on the first hard drive) wouldn't load. This was a mistake, since the grub is installed on the same hard disk as Ubuntu. I want to use GPorted to delete the partitions on the hard drive, but when I boot with it and use the hard drive partition editor it won't let me delete or move one of the partitions. Does this partition contain the grub and if so how do I move it onto my other hard drive?

View 3 Replies View Related

General :: Moving A File To The Root Of The Drive Via Command Line

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

General :: Moving Install To New Hard Drive (Fc12) Mount - Grub.conf, And Rsync?

May 31, 2010

As my proficiency with Linux improves slowly, I've been trying to find the answers for myself, but in this situation I must admit I find myself rather stumped. I have a perfectly nicely working Fedora 12 install on an 80GB SATA drive, and when it hit an error and wouldn't boot last week (easily fixed with fsck from the initial command line) I panicked and ordered a new 250 GB drive. It got here and I might as well use it, I thought to myself, so I went about trying to figure out how to move my install without having to reset all of my settings, programs and so on. I didn't want to mess with dd because I'm not so so clear on resizing my partitions once the copy is done (if someone thinks this is a better idea I'm open to suggestions.) After some poking around I found this set of instructions which I attempted to follow to the letter, but hit some snags. I understand this thread I am referring to may be a bit outdated, which is why (I assume) I hit a bump here

Code:
# mount /dev/hdy1 /boot
mount returns an error demanding I specify the file system type. At a loss, I barreled on until
Code:

[Code]...

To summarize, I partitioned and mounted my new drive using fdfisk and the instructions provided above, then used rsync to copy over all of the files, so as far as I know the new drive is ready to go, just not yet bootable. Opening the Grub.conf file in Kwrite (as root) returns a blank page. What do I do now?

As a side note, you can see that I am not too squeamish about the terminal, so I would prefer to find a "command line only" solution to this relatively simple (?) procedure.

View 5 Replies View Related

General :: Automating USB Drive Configuration Of Partition Table, Partition And File System

Jan 26, 2011

I have tried to automate the configuration of a usb drive with not much success.

The problem that I have is that I have a large amount of usb drives that have a partition table of type "loop" and I need to change them to "msdos". The size of the drives vary and I need to use FAT32 or FAT16 file system.

I've tried various partitioning commands and gui applications but cant find one that I can give a one line command to to set the partition table, maximum partition size and file system.

View 9 Replies View Related

General :: Copying A Partition From One Hard Drive To The Same Partition On Another Hard Drive

Mar 23, 2010

I am trying to move a whole bunch of files from one partition on one hard drive to the same partition on another hard drive. Can I mount the same partition (same name, different drives, i.e. /data on /dev/hda1 and /data on /dev/hdb1)and copy those files? Shutdown the server, take out /dev/hda1 and boot up with the new drive and it's /data contents.

View 1 Replies View Related

Fedora :: Moving /usr To A New Partition

Jul 31, 2011

I'm running Fedora 14 as a KVM guest on a CentOS host. I decided to give preupgrade-cli a shot to get Fedora 15.

After reboot, I got a not enough free space error, so I decided to add another virtual drive and move /usr to it.

The partition on the new drive is ext4 formatted (just like my / partition)

Code:

Then I mounted the new partition on /newusr, and copied the files using cp and rsync

Code:

Code:

I also tried rsync without the HAX options, same results.

I then changed my /etc/fstab to reflect the new /usr

Code:

Then I reboot and watch the booting process, it fails first at loading NetworkManager, then elsewhere, and system stops. Of course I could revert back using a live CD and try all the other options, but nothing works for me.

There is an error in /var/log/boot.log, but I don't think it is related, as it shows when booting normally as well.

Code:

View 4 Replies View Related

Debian :: Boot - After Moving /usr To Own Partition ?

May 18, 2011

I'm running Debian Wheezy on a Dell XPS M1530 laptop, 64-bit.

I'm having a boot problem after moving my /usr directory out of the root partition and into its own partition.

I followed the "easy way" here: [url]

Basically, I moved the contents of /usr to a new partition -- renamed /usr in root to /oldusr -- and edited fstab and tried to reboot... but the boot process wasn't able to find the new /usr.

After using /dev/sda7 in fstab (to no success) I ran blkid to find the UUID and used that (again, to no success).

My fstab is below:

For what it's worth, grub is also looking different -- none of the debian backgrounds that were there previously remain. While it lists the same kernels to boot into the boot (as described above) fails.

View 14 Replies View Related

OpenSUSE Install :: Moving Partition To A New HDD ?

Jan 1, 2010

I installed openSUSE 11.2 on an external HDD to test. I think it's brilliant, and want to move it to an internal HDD. What is the best way to do this? I don't want to lose all the programs / tweaks I've made to SUSE so far.

Coming from the Windows' world, it's as easy as taking an image of a partition and restoring it over a new HDD partition.

View 5 Replies View Related

Ubuntu :: Moving /home To Another Partition?

Apr 23, 2010

I know there is a lot of tutorials about this but I`m kind a new in Ubuntu and Linux. I know that it is good to set different partition for /home. But when I installed my ubuntu 9.10 I made 4 partitions

swap
/boot
/ - 40GB
/usr - 200GB

[Code]...

View 2 Replies View Related

Ubuntu :: Moving To Dedicated Partition?

Jun 17, 2010

right now i m using ubuntu 10.04 installed on virtual hard disk (wubi), but now i want to move it to dedicated hard drive partition. i found is to use LVPM however that software is NOT compatible with ubuntu 10.04. . .

View 3 Replies View Related

Ubuntu Installation :: Moving From One Partition To Another

Dec 9, 2010

I work with ubuntu 10.10 64 bit on a hp pavilion 2713ca laptop. Everything is fine presently, except for the fact that I will be soon out of space on the actual sda6 partition (only 2 gig left).

I would like to move the ubuntu partition with all its content to a second one where there is a lot of space, that is sda2. So my question would be twofold.

1) What software can I use to do that (gparted, clonezilla, ... ) and is someone is familiar with the procedure?

2) Will there be an easy way to change the grub.cfg file? (for example, will the command grub update be enough to boot to new setup)

View 1 Replies View Related

Ubuntu :: Stuck On Moving To New Partition

Apr 4, 2011

I have a laptop with a large harddrive. Originally I had the sda1 which was a dell recovery partition, sda2 which is my Win7 partition. I created a new primary partition to try out ubuntu. Falling in love with the OS, I wished to grow the partition but I already had 4 primary partitions.

I deleted my swap partition and converted that to an extended partition, I then grew it to a 100gb extended partition. I created 2 new primary partitions, one for swap and one for the OS..

So my drives are as follows:

This is what I have done thus far:
1. Booted to live CD
2. Mounted /dev/sda4 and /dev/sda6
3. cp -afvR /oldOSPartition /newOSPartition
4. In the NEW OS partition, I updated /etc/fstab to reflect the UUID's of the new disks.
5. I updated /etc/mtools.conf and /etc/mtab as well.
6. I rebooted to old OS partition and ran update-grub && update-grub2
7. I can see the new entries in the grub boot menu
8. I select the kernel entry for /dev/sda6 (NEW OS), it boots, but when I hit the desktop, I open an terminal and do a "mount" and I am somehow still mounted/booted to sda4 (old OS).

From here, I re-mounted /dev/sda6 to a temporary mount point and did a "cd /; grep -r 'sda4' * > /matches.txt"
I also searched for the UUID and I found no matches so I don't know why it reverted to sda4.

Even if I boot to the recovery console entry for /dev/sda6 in the grub menu, same thing, it keeps mounting sda4.

View 9 Replies View Related

Ubuntu :: Moving /tmp And /var To Another Partition (after Install)

Jun 12, 2011

i am going to be upgrading to a ssd and would like to move /var and /tmp to a separate partition (it can be separate but preferably the same) how would i extract /var and /tmp to a different partition (need fstab lines and permission settings) when i get another stick of ram i will make /tmp into a ram disk here is my partition layout

View 3 Replies View Related

CentOS 5 :: Moving Files To Second Partition?

Dec 8, 2009

Here is a dumb question (For some reason I can never remember Linux commands but can always remember DOS commands). I don't know what it is, but I think it's the "everything is a file or a directory" nature of Linux that I can't remember it.

Anyhow, I have an instance running on Amazon EC2. I have noticed recently that FreePBX (an Asterisk GUI) is warning me of shortage of disk space. So here is the output:

[root@ip-10-251-123-3 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 9.9G 8.8G 621M 94% /
/dev/sda2 147G 188M 140G 1% /mnt

[Code].....

So, it seems that I have a lot of space in sda2 but I don't know how to access it. how to do a symbolic link (or I can search with google) to move some folders to sda2 and then link them.

View 12 Replies View Related

OpenSUSE Install :: Moving XFS To New EXT3 Partition

Feb 5, 2009

I have an 80 GB XFS / partition which is dying. Got some errors like this:
ata9: SError: { UnrecovData Dispar BadCRC Handshk }

It's not a problem to create another partition, I've got 2 500GB and 2 1TB disks, all EXT3. I've also 2 80 GB disks, 1 for / and 1 for /home. I will remove the 2 80 GB disks but I have a lot of stuff compiled myself. I use openSUSE 11.1. Is it possible to create a 80 GB EXT3 partition on each of the 500 GB hdd, 1 for / and 1 for /home and move the data to it? must it be done with the DD command or can I easily copy everything within a live-cd. The /boot and swap are already on one of the 500GB disks, and there is no bootrecord on the 80 GB disks.

View 9 Replies View Related

OpenSUSE Install :: Moving /usr To Separate Partition?

Jul 24, 2011

I have a dual boot system with Vista and OpenSUSE 11.3 . Linux is distributed over 2 partitions: one for /home and one root partition for all the rest. As this root partition is getting filled, I thought of taking a 10 GB partition from the Vista partition and using this for the /usr folder (= 6 GB). This partition is a primary partition, while the rest of Linux is on secondary partitions.To be save, I renamed the existing /usr to /usr-old and created an empty /usr as mount point. I changed fstab to load the root partition, the /usr partition and then the /home partition.But when I started the system, there were a lot of errors about files not found in the /usr folder, lthought this folder and is content were clearly present when browsing the filesystem. What went wrong? Hard links? Other system configurations to change? Not possible to put /usr on a separate partition?

View 9 Replies View Related

Ubuntu :: Moving Home Directory To New Partition?

Jul 16, 2010

I am trying to move my home directory from my install partition to a new partition. I cloned my installation from a previous ~78 gb HD using g4l to a new 250 GB drive. Now that I am using the new drive i created a new partition to used for files called "files". New partition is sda3 and the boot partition is sd1. I am trying to follow this guide [URL] but I am having no success.

The output of:
Code:
find . -depth -print0 | cpio --null --sparse -pvd /media/sda3
is

Code:
pio: /dev/sda3//./.jungledisk/cache/jd2-a114b643324c576f1c36e3f17a9043f4-us/Files/cf-1381.tmp: Cannot open: Not a directory
cpio: `/dev/sda3' exists but is not a directory
cpio: /dev/sda3//./.jungledisk/cache/jd2-a114b643324c576f1c36e3f17a9043f4-us/Files/cf-1336.tmp: Cannot open: Not a directory
cpio: `/dev/sda3' exists but is not a directory
cpio: /dev/sda3//./.jungledisk/cache/jd2-a114b643324c576f1c36e3f17a9043f4-us/Files/cf-1387.tmp: Cannot open: Not a directory
cpio: `/dev/sda3' exists but is not a directory .....

View 6 Replies View Related

Ubuntu Installation :: Moving Wubi To Partition ?

Jul 30, 2010

I've tried to install Ubuntu 9.04 last year but my modem was malfunctioning, so i gave up on Ubuntu, but i got a new modem and installed Ubuntu using wubi, i loved it and ill make it my main OS, but now i have 2 problems:

1.-I tried using lvpm, but i ended up with a 60 GB new.disk and my hard drive has just 30 Gb (30 gb wubi installation and the 60gb from the new.disk)

2.-i dont know how to shrink windows partition and i dont want to loose my config, tweaks and installed apps my hard drive has 230 gb capacity and i want to leave at least 100 gb to windows

I decided to uninstal wubi and im going to install ubuntu the right way.. it just seems easier..

View 2 Replies View Related

Ubuntu :: Gparted Crashed While Moving Partition?

Feb 28, 2011

So I was moving and resizing a ntfs partition and i just touched gparted window and it crashed!! it was about 66% of finishing the operation... Now i guess i have a big mess in my hard drive and i dont know how to start solving it! i am in a ubuntu live cd?

If i open gparted now it shows the same partition table than before resizing and moving.. so i guess now part of my data is in this unallocated space after the sda5 partition.

View 6 Replies View Related

Ubuntu :: How Safe Is Moving A Boot Partition

Mar 2, 2011

Using gparted as shown on the partitions in the image:

sda1 is Windows 7
sda2 is swap
sda3 is root
sda4 is home

I'd like to move sda4 to the end of the drive, thus shrinking it by 20GB, and shunt every other partition along to make an extra 20GB for sda1 at the start of the drive, and expand this partition into the 20GB of space I created.

When I start moving and shrinking sda4 (before I apply and execute the command) I get a warning saying that it is very dangerous to move a boot partition and it could render my system unbootable etc etc.

How safe is it to do this? If I bork it, can I recover easily?

I assume the error has something to do with start/end disk sectors in the grub2 list (however this works these days). In short, messages like this do what they should and scare me just enough to seek assistance from this wonderful online community!

View 6 Replies View Related

Ubuntu :: Moving Wubi To Normal Partition?

Mar 31, 2011

I have been using wubi for more than half an year. Now I want to move this wubi to local partition (normal ubuntu install). What is the best way to do it? It should be working parallel with windows 7 which i have already.

Is it possible to let windows control the booting, even after installing ubuntu?

View 4 Replies View Related

Ubuntu :: Moving A Partition - Unmounting Root ?

May 11, 2011

I want to move my / partition to the end of my drive (sda). To do this with gparted, I have to unmount it, but I'm not comfortable with the idea of unmounting root partition... Should I do it from a live cd? More important : is the operation safe?

View 5 Replies View Related

Ubuntu :: Moving Tmp Partition - GDM Special Files

Aug 14, 2011

I'm in the process of moving /tmp out of the root filesystem to it's own (larger) partition. From a LiveCD I've:

1. Created the new part (ext4 format and is /dev/sda4)
2. Mounted the installed OS root filesystem (/dev/sda1) as /slash
3. Mounted /dev/sda4 as /newtmp
4. Using gksudo nautilus I'm trying to copy the contents of /slash/tmp to /newtmp

I have 4 files that won't copy - returning the error "Can't copy special files". These are related to ORBit it seems:

[code]...

Questions are: a. Will GDM or ORBit fail if I start up without these? b. Or will they just be recreated on the fly if found to be missing? c. What's the best way to proceed?

View 1 Replies View Related

Software :: Moving Boot Partition Which Uses Grub ?

Jul 21, 2010

I need to move a Linux boot partition which uses grub into some unallocated space to its left on a hard disk in order to make more room for the partition after it. The boot code is not in the MBR but in its own partition. I have a multi-boot program which currently correctly boots the partition. The partition order will not change.

I have non-Linux software that can move the partition. The software suggests I have to run some Linux command after the move, but does not say what to do for grub. I would be glad to move the partition within Linux if that makes it easier, perhaps with gparted or kparted.

Can someone tell me if there is anything I have to do for grub if I move the partition to its left ? My multi-boot loader will find the partition to boot once I move it. If I move it with gparted or kparted do I have to do anything after that to make sure grub works correctly once my multi-boot program boots the partition ?

View 5 Replies View Related

Slackware :: Fail To Boot After Moving The Partition ?

Dec 16, 2010

I have a system which previously have 3 OS installed on one physical HDD; WinXP on sda1, Win7 on sda2 and Slackware linux on sda3. Lilo is used as the boot loader.

Recently I bought another HDD and decided to reinstalled my Win7 on it and I use GParted to move Slackware to the original Win7 slot on my first HDD so now my Slackware partition has been move from sda3 to sda2.

I modified the /etc/lilo.conf file so that it reflects the new Slackware partition and run lilo to installed it.

The lilo installed correctly I can boot into WinXP and Win7 without problem but when I try to boot into Slackware, it fail at the root filesystem check, apparently the e2fsck still try to check sda3.

Is there anything that I can do to correct the problem without having to reinstall Linux?

View 4 Replies View Related







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