Fedora Installation :: Clone Partition And Restore It To Logical Volume?
Nov 17, 2009
I'd like to clone a partition, and then restore it to a logical volume. I have all three operating systems at my disposal (Mac, Windows, Linux Live CD) What is the best way to achieve this. The partition I am trying to resize is only 200MB, so I can store it on usb if need be.
View 9 Replies
ADVERTISEMENT
Aug 24, 2010
I installed fedora 13 64 bit and it works great but I encountered several issues when setting up guest OS with KVM. The problem seems to be related to selinux. But let me first ask question about logical volume. By Default fedora created logical volumes:
[Code].....
"If you expect that you or other users will store data on the system, create a separate partition for the /home directory within a volume group. With a separate /home partition, you may upgrade or reinstall Fedora without erasing user data files." seems to suggest I have to create a separate physical partition and assign that to /home. But reading elsewhere it seems to suggest logical volume acts like a partition. My goal is to make it easy in case fedora is hosed and I have to re-install it without affecting /home where my cirtical data resides. Given above do I need to create a separate physical partition or I am just fine?
I have a second hard disk that originally had windows and all my data. Windows is hosed but I can see my data from within Fedora and Windows is gone and I created created new partition in its place which used ot be the C:/ drive appears as 53 Gb filesystem. My data which was originally D drive appears as 215 GB filesystem. As given in [URL] I want to create a new logical volume in 53 Gb filesystem which I want to use as space for virtual disk to install guest OS's in KVM. Currrently 53 GB filesystem is mounted as /media/3467BH89JK789 but this does not work well with KVM. how do I create this logical volume out of 53 Gb filesystem partition and add proper selinux info and do I add to vg_vostrolx volume group and in a different volume group?
View 1 Replies
View Related
Jul 30, 2010
I have 3 harddisks, 1 for system and 2 for data.
To manage it more easy, I tied 2 harddisk in LVM. And I made an logical volume. It used ext4 for it's filesystem.
Today, I wanted to format and reinstall the system. So I booted the system using Ubuntu CD. But managing the partition, I accidently delete the logical volume. Because backup(/etc/lvm) was in itself, I couldn't restore the old config. I just create new logical volume.
As I expected, I couldn't mount it correctly. Mount said that "Mount: Mouting failed A on B! Invalid argument!"
I must recover it, because it has a lot of import data. What should I do?
View 1 Replies
View Related
May 17, 2010
Ok so I have one drive. /boot /lv_root and /lv_swap
At the end of the drive I have 32 gigs of free space still contained in the logical volume group. I want to remove it from the LVG but this is on one device. Supposedly there is a way to do this, pvresize and fdisk.
[URL]
Quote:
Originally Posted by source
#I've tried to shrink the PV with pvresize which didn't throw errors -
Good.
#but fdisk still shows me the same LVM partition size as before.
That's normal. pvresize "just" updates the PV header and VG metadata.
#So I guess the partition table has to be modified somehow?
Yes. That was mentioned in my reply: "Then shrink the partition in the partition table."
You can use fdisk or any other partition table editor for this. Some don't support resizing a partition. In that case, you can delete and create a smaller one. If doing the delete/create dance, you *must* create the new partition on the same cylinder boundary as the current one to preserve the current data.
Ive read from every source on LVM its not possible to do this. Why on earth would any Linux developer put LVM on a single drive system by default? Were they even paying attention? I dont mean to go off on a rant but if there are multiple drives LVM makes sense. However if you only have one large drive LVM holds your system hostage and you have to crawl thru the pit of hell to get it back.
I understand you have a choice in the matter when you install Fedora but its really the worst possible choice for default. Many newcomers to Linux run into this problem with LVM. If you cannot resize LVG's the software should have never been put into a Linux distro in the first place.
View 13 Replies
View Related
Jan 10, 2009
I've just upgraded from F9 to F10. I can boot okay but I seem to have lost some data in one of my logical volumes. My drive is organised as follows:
/dev/mapper/main_group-various: UUID="f7c452cf-9f03-4f97-8676-b71b07a812aa" TYPE="ext3" SEC_TYPE="ext2"
/dev/mapper/main_group-root: UUID="173f1845-72c9-49e8-9d49-2a5776c4267c" TYPE="ext3" SEC_TYPE="ext2"
/dev/mapper/main_group-music: UUID="f5411861-4614-4652-a5f5-a3a8c2efcdd3" TYPE="ext3" SEC_TYPE="ext2"
[code].....
The logical volume for work still seems to be there. I presume (and hope) that all the information in /dev/main_group/work is still there. How can the folders in /dev/main_group/work be retrieved?
View 1 Replies
View Related
Sep 4, 2009
I've just started playing with virtualization and I started my first VM. I would like to know if it's possible for the host machine to mount the partitions of the VM when it's closed. Right now the VM uses /dev/vg0/vm1 and has 3 partitions on it. I tried mount /dev/vg0/vm1 ~/vm1 at first before I remembered that I'd need a way to mount a specific partition inside the logical volume, not the volume itself!
View 2 Replies
View Related
May 9, 2011
I have extended a logical volume from a partition on one disk into a entirely seperatedisk.I wish to extend the file system from the original partition onto the newly extend volume.I attempted this using extend2fs but it did not work, and did not mention why.The command I used was -$ sudo resize2fs /dev/glab1/glab-share1/I attempted this on ubuntu server 10.04.
View 5 Replies
View Related
Jan 1, 2010
so i have f12 installed on my hd with lvm using the whole extent of the HD , i want to reduce it so i can dual boot it with a windows system, i managed to reduce the logical volume to free some space, but i cant seem to reduce the physical volume, is this possible and how ?
View 2 Replies
View Related
Feb 16, 2009
just about to install Fedora 10 on my MSI WIND laptop and read abit about file system on Linux and come across alot of recommendations on how many logical mounts or partition to create..so far i have created /boot of 100MB.i'm unsure of what sizes i will give to my [root] / and /home and /swap
i am thinking of assigning 1GB to /swap which leaves me with 40GB left for / and /home.i'm going to install alot of softwares and probably try out wine as well.i want a separate /home directory incase i change distro then i'll keep it... where does the programs go to under?
View 4 Replies
View Related
Apr 7, 2010
I have a Fedora 8 system that uses LVM on one of it's drives (/dev/sdb2). One of the logical volumes is getting full (LogVol02). There is an unused, unmounted logical volume (LogVol03) available. I can see two possible options.
1) Mount the unused logical volume (LogVol03) on a new mount point (/home2) and create more space there
2) Delete the LogVol03 logical volume and extend the nearly full volume (LogVol02) into the now available space.
Option 2 seems like the better approach, since it will seem seamless to the system users. I'm looking for suggestions on how I should go about doing this and what I need to look out for. Is it better to use the command line tools (lvm ...) or the GUI (system-config-lvm) to do this?
View 2 Replies
View Related
Sep 1, 2011
I'm currently on Ubuntu Server 11.04 x86_64 and have configured a logical volume that contains 2x 2TB HDD's and mounted that volume in /data. The OS is installed to the first HDD (a 500GB one). So the system has 3 HDD's in total (1x 500GB OS disk and 2x 2TB data disks).I want to do a fresh install of Ubuntu Desktop on the system without losing the data in the 4TB logical volume currently mounted in /data. Is this possible and if so, how?
View 6 Replies
View Related
Nov 13, 2009
My computer: (Lenovo T61 Thinkpad, running fc11 for about 2 and half months). Apparently I when I made my partitions I didn't leave quite enough room in my root directory, because I just completely ran out. Here is how my hard drive is partitioned:
1 physical volume group (sda)
4 logical volumes (home, root, swap, var)
The root had about 15 gigs on it, which just filled up. When I restarted to see if that would help, when it rebooted it went fine up to the log-in screen. Instead of the usual fedora blue background, it was black except for the log-in window, which looked very low-res. A little pop-up kept coming up saying the GNOME power configuration settings failed to load or something. When I logged in, the whole screen was black except for the mouse, and I could get no response. I have plenty of space left in home, so I rebooted to rescue mode using the first fedora installation disk, and tried the following command:
Code:
lvreduce -L90G /dev/mapper/DRIVE
which only returned:
Code:
lvreduce: relocation error: lvreduce: symbol dm_tree_node_size_changed, version Base not defined in file libdevmapper.so.1.02
So I couldn't reduce the size of home, and thus couldn't increase the size of root.
IN SUMMARY:
a) the lack of memory in root the probable cause for my computer not working
b) there a good way to reduce home and increase root while running this live disk
Note: When I am looking at it now in the logical volume manager, it says that on the whole physical volume there is only 400MB free. However, when I last looked (about 30 mins before I started having problems) it said there were about 100 Gb free.
Edit: Nevermind. I did some more research and it turned out to be more of a gnome power manager thing rather than a memory space thing, although I'm certainly going to increase my root memory now.
View 3 Replies
View Related
Jul 22, 2011
I've got a big problem. Earlier this afternoon I tried to unlock my screen, but the password dialog didn't appear (the background did, and I could move the pointer, but no dialog). So I restarted the computer, only for the Fedora bootup icon to get about 3/4 of the way full before the screen blanked out and I got the message "Boot has failed. Sleeping forever." I booted into the liveCD and opened the system installer to see if maybe I could just reinstall the system in place while leaving my data intact. When I got to the partitioning stage, my old partition layout was there...except one LVM volume group was totally missing. And this is the volume group that contained my / and /home, among other things. Another volume group sitting on a different RAID was still there, but ironically it was the one for short-term data.
I have three hard drives, using soft RAID and LVM. Each drive is split into 4 partitions. The first partition of each is part of a RAID-1 where /boot sits. The second of each makes up a RAID-5 on which sits my "Main" volume group for my important data (this is the one that has gone AWOL). The third of each makes up a RAID-0 on which my "Volatile" volume group sits (for /tmp, /var/tmp, and the like). The fourth is swap.
Is there any chance I can restore my volume group so my data can be recovered? I'm not sure if I've got the full layout with volume sizes written down anywhere.
View 1 Replies
View Related
Mar 6, 2011
I have a system with a single disk that is partitioned as below:
1) hda
hda1 - boot partition - 0.3GB
hda2 - System - 15.7GB
There are 2 volumes on single group. The boot partion is a physical volume and the system is a logical volume. The disk has more room up to 40GB. How can I extend the logical volume. Tried system-config-lvm, but it does not gives the option.
View 4 Replies
View Related
Dec 1, 2010
I'm rearranging a bunch of disks on my server at home and I find myself in the position of wanting to move a bunch of LVM logical volumes to another volume group. Is there a simple way to do this? I saw mention of a cplv command but this seems to be either old or not something that was ever available for linux.
View 2 Replies
View Related
Aug 31, 2011
I am installing Debian for the very first time and having read websites similar to [url] I have come across parts of the installation which I do not understand.
For example, I have created logical volumes using the logical volume manager however am unclear what the message regarding writing changes to disk before configuring Logical Volume Manager means.
Once I have created the volume group, I am presented with a window that provides me with the ability to
Display configuration details
Create volume groups
Create logical volume
Delete logical volume
Extend volume group
Option 2 is pretty self-explanatory however am unsure whether it is advisable to segment directories between 2 or more volume groups. What benefits does it serve?
Option 5 provides me to extend a volume group however am unsure how this works?
Does it mean I can assign free space available one 1 physical drive to the existing volume group or does it mean I can assign free space available on a second phyical drive or does it mean both? How does it affect security, performance, etc?
Currently the only way I can see the logical volumes I have created by selection Option 4. Is there any other way? How do most people keep track of the logical volumes they have created e.g. checking off against a checklist, etc?
Next I have the ability to map the logical volumes to mount points however am confused what purpose the none mount point serves as I have the option to select it?
What are mount options for?
What do I use labels for?
What are reserved blocks for?
What does typical usage refer to?
How does the option to copy data from another partition work? What is it for?
View 1 Replies
View Related
May 4, 2011
I (again) ran into trouble since two months i was trying out fedora lovelock "nightly build" in a virtualbox my host is Ubuntu 11.04 (previously 10.10 i upgraded yesterday) (had worked fine .. just was slow because i alloted only 512 MB ram) ... now i uninstalled virtualbox and deleted .virtualbox in home folder, but i couldn't recover my 8 GB space when i installed i made virtual disk fixed storage (my mistake i guess!! ) ) i don't know much about it either .. just wanted to try out fedora 15 so experimented it using virtuallbox ...
i'm running out of disk space (don't have bucks to purchase external hard disk .. otherwise i wouldn't have cared .. also don't have time to do a reinstallation of ubuntu/some other os (may be fedora) on my laptop ...
i just got 24 GB left .. i intend to store a few more movies and songs .. i would run out of disk space fairly quickly ... 8GB would be buffer if i get it back ...
View 3 Replies
View Related
May 7, 2011
I have a system with a 2TB RAID level 1 installed (2 x 2TB drives, configured as RAID1 through the BIOS). I installed Centos 5.5 and it runs fine. I now added another 2x2TB drives and configured them as RAID1 through the BIOS.
How do I add this new RAID volume to the existing logical volume?
View 5 Replies
View Related
Jul 16, 2011
I have a Fedora 15/Ubuntu 11.04 dual boot. In Fedora, I just created a new logical volume. How do I ensure that anything I put in it - all files and folders - will be accessible in Ubuntu? II also want to be able to add files and folders in Ubuntu and then read and write them in Fedora...
Here's the output from "lvdisplay" for the logical volume in question:
--- Logical volume ---
LV Name /dev/fedora/Everything
VG Name fedora
[Code]....
/home/gwyn/Everything is the mount point for the logical volume. I got full access over all files in the LV.
But when I shutdown Fedora and start up Ubuntu, I have to run the same chmod command again. How can I make read/write permissions endure between both distros?
View 14 Replies
View Related
Jun 23, 2011
My LogVol00 has 1 Tb free space. Now I want to share 500gb of LogVol00 to LogVol04. How can I do this?
View 1 Replies
View Related
Aug 22, 2011
After fixing drive partition numbers, I got the following error from cfdisk: Code: FATAL ERROR: Bad logical partition 6: enlarged logical partitions overlap Press any key to exit cfdisk However, I can see all my partitions with fdisk and gparted, I can mount and use all of them.I used the following guide to fix the drive numbers order: Reorder partition drive numbers in linux | LinkedBits Does somebody know whet is cfdisks problem and how can I fix it?
View 6 Replies
View Related
Jun 13, 2011
I would like to create Logical partition in Extended partition using fdisk in Fedora 14 I created extended but fail to create logical partition.
View 6 Replies
View Related
Sep 1, 2010
I have been using Ubuntu for about a year and I decided to switch to Fedora just to see how it goes with getting everything in my system working again. I would say that with Ubuntu and Fedora installations I have installed and reinstalled 15 times, which I mention because I am not new to installing linux. I have used GParted to partition and resize my HD numerous times and reinstalled linux on a partition and so on. I know how to do all of that without any problems.
NOW HERE IS WHAT HAPPENED... I installed Fedora on my Desktop which I had partitioned into a 190 GB partition onto which Windows is installed and then I had another 30 GB partition onto which I chose to install Fedora. I chose the "replace existing Linux systems" in anaconda... and what resulted was a 30 GB partition with Fedora that is now showing up as LVM. I have never seen an LVM partition and I am not sure if I can use GPARTED to resize it without destroying it. I have used GPARTED to resize Linux partitions before, but they were never showing up as LVM. The forums on GPARTED only show info from about a year or two ago.
Here is what I want to do (and reading around on forums doesn't really give a good explanation of whether it is possible)... Is it possible to install Linux Mint into that 30 GB Fedora LVM partition by just resizing the Fedora part of the volume? So, the question is this: How can I resize the Fedora part of the LVM volume and then install Mint into that LVM partition?
If Fedora was on an ordinary 30 GB partition I would have no problem with using GPARTED to chop that in half and then use the 15 GB I freed up to install Mint. I just don't want to destroy the Fedora stuff by messing around the with the LVM partition so I would like to hear from others who have worked around this issue and please don't link to the ordinary LVM howto's you get through a simple google search as I have already read them and I don't find them too illuminating.
View 6 Replies
View Related
May 7, 2010
Is there a way to clone a partition (40GB) and put it on another partition (on a another hdd) with the size of 20GB? The partition that is cloned is using only 3 GB of 40 GB.
View 2 Replies
View Related
May 22, 2011
Can somebody help ma move my win partition in to a logical?
it will not boot after updating ubuntu.
Ok, here is the new log from the boot info script code...
View 2 Replies
View Related
Feb 3, 2011
I have a bunch of computers with the same configuration, so I would like to install Ubuntu only to one master computer and later on just copy the partition layout and the filesystem unto other computers. Previously I was able to simply copy the partition layout (via the sfdisk utility), the filesystem (a simple "cp -a") and install Grub (via script). Now I had to use the parted utility to partition the 2TB drive and Grub2 is the default boot loader.
My questions are now:
1. How do I copy the partition layout from /dev/sda (master) to /dev/sdb (clone)?
2. How do I batch install install Grub2 to the other disk (e.g. /dev/sdb) ?
In Grub 0.97 it used to be something like that:
Code:
# GRUB the disk
grub --no-floppy --batch <<EOF_GRUB
root ($GRUB,0)
setup ($GRUB)
quit
EOF_GRUB .....
In Grub 2 I tried with:
Code:
grub-install --force --root-directory=/mnt/sdb1/ /dev/sdb
Only to get this error: .....
The Grub2 syntax is way different compared to Grub0.97. Yes, I do could use the Grub2-suggested option but since the partition layouts on both partitions are equal, I see little point in setting the BIOS Boot Partition option, since the master computer works without it and I don't remember any error message during the install.
View 9 Replies
View Related
Aug 25, 2011
Installed Ubuntu from an iso and now can boot only from /dev/loop0 need to clone this to /dev/sda, is this possible if so what are the commands.
View 9 Replies
View Related
May 27, 2011
I installed Debian stable and I see these errors in the xsession error file
/etc/gdm3/Xsession: Beginning session setup...
GNOMEKEYRINGCONTROL=/tmp/keyring-j0E6Br
SSHAUTHSOCK=/tmp/keyring-j0E6Br/ssh
GNOMEKEYRINGCONTROL=/tmp/keyring-j0E6Br
[code]....
View 4 Replies
View Related
Jan 16, 2011
I have a very specific issue that I am having trouble resolving. I have an old laptop and a new laptop with a smaller HDD. I want to copy the windows partition from the new lappy to the old bigger HDD so I have room for Ubuntu. All of my files are on a Maverick install on the old lappy. How can I get all my files and windows to the old HDD and into the new laptop. I am a little stuck on this one because of my limited options.
View 8 Replies
View Related
May 23, 2011
I'm using Fedora 14 x86_64.I want to take 200GB from the /home Extended-Logical Partition, and install Archlinux on it, how do I do that? In this 200GB Free Extended Space I want to create another 4 Logical Partitions for Archlinux.
View 7 Replies
View Related