Software :: LVM Resizing - Pvdisplay Showing Drive Smaller

Jun 28, 2010

I'm a bit new to LVM administration, and I have a question that the Clonezilla Live forum referred here. Below is the question.

2010-06-24 07:10:00 UTC
So, I was moving from a 250G disk to a 320G disk because I was running out of space on my laptop. My problem is that my new drive seems convinced that it is only 250G in size, and I'm wondering how to persuade it otherwise. I'm not sure if it matters, but I did use the -k1 option when Clonezilla was restoring in order to resize the partitions proportionally. Here is the output of fdisk -l and pvdisplay:

root@nansen: [/]$ fdisk -l
Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 17 133610 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 17 38911 312412851+ 8e Linux LVM

So fdisk knows that the drive is 320Gb, and the sda2 partition is about 319Gb in size. But LVM isn't buying it:

root@nansen: [/]$ pvdisplay
--- Physical volume ---
PV Name /dev/sda2
VG Name VolGroup00
PV Size 232.78 GB / not usable 2.71 MB
Allocatable yes
PE Size (KByte) 32768
Total PE 7449
Free PE 1
Allocated PE 7448
PV UUID RKhtpa-J34H-GnvD-26v3-bAEI-wccm-f55hwS

Is there some sort of pvchange command that I need to run? Here is some more info in case you need it.

root@nansen: [/]$ pvs
PV VG Fmt Attr PSize PFree
/dev/sda2 VolGroup00 lvm2 a- 232.78G 32.00M
root@nansen: [/]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00 225G 209G 4.5G 98% /
/dev/sda1 127M 12M 108M 10% /boot
tmpfs 125M 0 125M 0% /dev/shm

steven_shiau (Clonezilla Live moderator)
2010-06-24 14:03:48 UTC
Option "-k1" is only for partition size, it won't deal with LVM yet. I think you need other tool to resize the LVM.

View 1 Replies


ADVERTISEMENT

Ubuntu :: Replace A Hard Drive With Smaller Drive?

Jan 20, 2010

I have ubuntu server acting as a router installed on a 60 gig drive, i'd like to use that drive in another machine and replace it with a 5 gig drive. how can i transfer from the 60 gig drive to the 5 gig drive?

View 9 Replies View Related

General :: Backing Up To Smaller Drive?

May 24, 2010

In a few hours I'll have a new 500GB Sony laptop, filled with the usual Sony rubbish which I'll promptly be replacing with Ubuntu or Crunchbang or something. However, first I want to make a full clone of the drive (including recovery partitions), should I wish to return it to Sony or sell it on in its factory state.

The problem is that the only backup drives I have are less than 500GB - the biggest I have is 250GB or so! So I need to backup and compress on-the-fly.

What's the best way to do this? Presumably dd piped into gzip would do the trick, or does anyone have any other suggestions to accomplish this?

View 3 Replies View Related

General :: Move Smaller Hard Drive To Partition On A Larger Hard Drive?

Mar 16, 2010

My parents bought a new hard drive for a laptop that I've owned for several years. It's much larger than the current one, so I plan on splitting it up to dual boot it with Ubuntu.I have no problem with partitioning a drive (I always keep a LiveCD handy), but my question is this: how can I go about moving the existing partition to the new drive? This is a laptop, so I can't simply plug the new drive into another slot.

Also, even if I manage to move it, will Windows still work on the new drive in a larger partition? I've had this laptop for quite a while, and I've lost the recovery discs that came with it a long time ago. I also have a lot of software without CDs to reinstall them with. This makes not reinstalling Windows a high priority.

View 3 Replies View Related

CentOS 5 :: LVM - Add The New Big Drive To The VG - Use Pvmove To Move The Smaller PV Onto The New PV

Apr 28, 2011

I have a volume group that is made up of a number of physical volumes. I am thinking of consolidating all the small physical volumes onto one big drive. Is there any benefit in this, besides making administration easier? How do I go about doing this? From what I have read, it looks like I should have to do the following

1. add the new big drive to the VG
2. use pvmove to move the smaller PV onto the new PV
3. use pvchange -xn to make sure the old PV can no longer be allocated
4. repeat for all the small PVs.
5. use pvremove to remove all the small PVs

Is this the correct procudure to follow?

View 4 Replies View Related

Ubuntu Installation :: 'Bad Primary Partition' After G4u Big Drive To Smaller One

Sep 5, 2010

I have recently ghosted, using g4u, an 80 gig drive to a 30 gig drive. The data size is about 15 gig so no problem there.The system does work and it doing everything it should, except for some errors in dmsg log.The thing is though, that the system works! all the services are running and live.And i have years worth of customizations in this machine. Has been running for several years, so i dont just want to reformat and reinstall. Its hard to get linux the way you want it sometimes!So my question is this, is there a way to fix my partition or somehow tell the machine what the current boundries <i>should</i> be?

View 5 Replies View Related

Ubuntu :: Clone Bootable USB Stick To Smaller Drive?

Aug 22, 2011

I wanted to back up my 4Gb boot drive and the new drive I had was slightly smaller. Couldn't find any info on here and precious little on the internet but I have previously used this technique to clone an 8Gb disk onto a 4Gb one. Since I have gained a lot of useful info from this forum over the years its probably time I contributed something. I used my netbook but this would work equally well from a live CD. Note the disk has to be unmounted so you can't use the live system. Firstly your USB stick probably has 2 partitions one for "/" and one for swap.

The first step is to reduce the "/" partition on the source drive to a size smaller than your target drive. I used gparted for this. Next create a partition on your target drive that is the same size or bigger than your newly shrunken partition. I formatted this although I'm not sure this is necessary. Personally I just used the whole drive and used a file on a hard disk as swap. Next you have to use dd to copy the partition.What is important is that you are copying the partition not the drive. So your source would be /dev/sdx1 and target /dev/sdy1 (you will need to find your own values for x&y).

Once again be very careful that you get these the right way around or you will destroy your souce disk. Even better do it in two stages - copy your source to a file and then the file to the target. Now you have a replica of your original disk but it is not bootable. If you are planning to use a swap partition you may as well create it now. Remember you will probably have to change /etc/fstab to read the new swap - at least on my system this was referenced by UUID. No need to change anything for the replicated partition as the UUID came over with everything else.

View 3 Replies View Related

General :: Cloning Dual Boot Drive Onto Smaller One

May 28, 2010

I've decided that I want to use another, smaller, hard drive for my OS and I'd like to clone /dev/sda onto /dev/sdc. I want it to be an exact clone except my partition for my "/home" will be smaller (since there's not room for it). I was gonna try with dd but I'm not sure if I should build the partition table and use dd-command on one partition at the time? Will this then include GRUB boot loader and will it be working properly?

Do I have to clone the disk completely for it to boot properly? I'm not sure how or where GRUB places itself on disks as you install it. Can I perhaps copy the partitions one by one and then install GRUB from CD afterwards? Should I leave some unallocated space somewhere in between the partitions as I build and clone them?

View 4 Replies View Related

Ubuntu :: Resizing The Usb Xfs Drive?

Jul 1, 2010

I have an external 1tb usb drive. It has 1 partition which is in the XFS format. I want to resize the drive to make it smaller, but I cant seem to find a way to do it without losing my data, I have tried using Gparted but the resize option is always greyed out and im not sure how else to go about it.

View 2 Replies View Related

Ubuntu :: 10.04 LTS Lucid - Root Is Getting Smaller And Smaller

Jan 22, 2011

I am using 10.04 LTS Lucid, and I notice the free space of root is getting smaller and smaller.

Five months ago, there was about 3.9GB free space of root, but now it is only 1.6GB. I always run sudo apt-get autoremove and sudo apt-get autoclean every time the update is finished, and also use Bleachbit to clean the system, but both are useless.

I never faced such problem with older versions of Ubuntu, is there any measure to fix it?

View 6 Replies View Related

Ubuntu :: Restoring Disk Image To A Smaller Hard Drive Than The Original?

Jan 13, 2011

I am looking for an Open Source software making it possible to make a disk image of an Ubuntu installation as well as a Windows XP installation.I have checked out Clonezilla which almost solved the problem. However, the disk to which you restore needs to be the same size or bigger. I want to restore the whole thingo a smaller disk than the original.I am considering getting myself an SSD disk which will be considerably smaller than the 160 gb disk I have right now. I need it to work for Windows as well. Unfortunately I can't get rid of Windows quite yet I often participate in webinars on GotoWebinar and they do not support Linux ...

View 9 Replies View Related

Ubuntu :: Resizing Partitions Without An Optical Drive?

Apr 21, 2010

I have this rather old Compaq Presario 2184 (Celeron processor), with a completely busted optical drive - which means I cant boot from Live CD, and it doesn't boot from USB, either... which means I cant use a live memory stick, either. It's currently running Xubuntu 9.04.

I'm seriously running short of space on my root partition - can't upgrade to 9.10...

I had a Windoze partiion that I decided to remove, using Gparted. Identified the NTFS partition, right click, delete. After that, I couldn't do anything else... I then found this page, that told me that I cant resize all partitions while booting from hard drive, and that I needed a Live CD. For the reasons mentioned above, that's just not possible...

Are there any alternatives that the good folks here can suggest? For example, can I create a new partition, and move my entire /usr there? It would solve the space problem, but I'm not confident of doing it without screwing up something... could someone kindly guide me through the process?

View 8 Replies View Related

Ubuntu :: Resizing Windows In Evolution \ Resizing Doesn't Work And It Only Moves Horisontally, Not Vertically?

Oct 28, 2010

maybe this is something extremely simple and my brains are just mush after a whole night of struggling (and succeeding) with wifi driver issues.i'm running a brand new 10.10 netbook on a brand new asus eee 1015. i am trying to set up my email in evolution and the evolution windows are larger than the netbook screen, which means that the OK, SAVE, etc buttons are outside reach. i tried to resize, move window - resizing doesn't work and it only moves horisontally, not vertically.

View 9 Replies View Related

Ubuntu :: Resizing Partition Without Formatting Hard Drive?

Jan 14, 2010

I made a new partition on my hard drive, and installed Windows XP on it. However, because of space shortage on the disc (didn't bring my external HDD's with me) I could not "afford" to make the partition bigger than about 7GB. Turns out that's not quite enough. So I thought I'd try to resize the partition. Booted from my Ubuntu LiveCD and entered the partition manager. I'm able to tell the program that I want to resize the Linux-partition (so it sets the now freed space as "unused", but when I chose to "resize/move" on the XP-partition I do not have any free space. Does this mean that I have to resize the Linux-partition (until now I didn't actually resize it, only set the job as "pending" hoping that I could select both to shrink the Linux-partition and extend the XP-partition in one session), or do I have to format the XP-partition and make a new one (larger this time), then reinstall XP?

/dev/sda1 is XP; /dev/sda2 is Linux Mint

View 4 Replies View Related

Ubuntu :: Root Is Getting Smaller And Smaller

Jan 23, 2011

I am using 10.04 LTS Lucid, and I notice the free space of root is getting smaller and smaller. Five months ago, there was about 3.9GB free space of root, but now it is only 1.6GB. I always run sudo apt-get autoremove and sudo apt-get autoclean every time the update is finished, and also use Bleachbit to clean the system, but both are useless.

I never faced such problem with older versions of Ubuntu, is there any measure to fix it?
1. There is not any .deb in the /var/cache/apt/archives.
2. The total content of /var/log is only 167.6 MB, that won't be a problem.

View 5 Replies View Related

Debian Configuration :: Re - Size A Drive But After A Message Of Successful Resizing, Nothing Changes?

Jul 24, 2011

I am trying to re size a drive but after a message of successful resizing, nothing changes !
This is original size

Filesystem Size Used Avail Use% Mounted on
/dev/mapper/k9-root 322M 253M 53M 83% /
tmpfs 2.0G 0 2.0G 0% /lib/init/rw
udev 2.0G 204K 2.0G 1% /dev
tmpfs 2.0G 1.0M 2.0G 1% /dev/shm
/dev/sda1 228M 15M 201M 7% /boot

[Code]...

View 6 Replies View Related

Debian Installation :: Resizing Drive During Install Leaves Empty Space Unusable

Sep 12, 2015

I just bought a new HP desktop, and I want to install Debian on the hard drive. I ran the Windows program on the Debian CD to start the install.

I selected Manual drive setting, and resized the large C: partition to 50 GB. I want to install Debian in some of the free space, only their isn''t any free space! The 400+ GB I took out of the C: partition is labeled "unusable" instead of "free space."

If I double click the unusable space, I am just given the cylinder/head/sector numbers. How I can make that space usable?

I would boot my Gparted CD, but I don't know how to get to the BIOS. The boot screen goes right to Windows without showing me the key to get to the BIOS. I tried hitting DEL, but to no effect. Do you know what the HP computers use to interrupt the boot?

View 4 Replies View Related

CentOS 5 Hardware :: How To Clone CentOS Installation To Smaller Drive

May 9, 2010

I am trying to clone the hard drive to a slightly smaller hard drive in the same computer, same setup.What software or commands do you use to clone the entire system and resize the partition automatically?The original HD is a little larger than the destination HD. The source partition only has about 20 GB in use and the rest is blank.

I have 2 partition, a small 100MB boot partition and another 500GB LVM partition.I can't just clone from the original disk to the new disk. (for another long reason) I need to make an image of the original disk on an external USB drive first, then move that image onto a new disk.I have tried creating an image of the whole disk with Clonezilla, but then the restoration didn't work because the target drive is smaller than the original.

View 7 Replies View Related

General :: Pvdisplay Shows Sdb2 And Df -h Has No Mention Of Sdb2

Sep 30, 2010

Why pvdisplay shows sdb2, and df -h has no mention of sdb2.

[root@localhost ~]# pvdisplay
--- Physical volume ---
PV Name /dev/sdb2
VG Name VolGroup00
PV Size 465.57 GB / not usable 5.43 MB

[Code]....

View 3 Replies View Related

Ubuntu Installation :: Resizing Partition On Usb Ubuntu Drive?

Jun 5, 2011

A few months ago I installed ubuntu 10.10 on a 250 g usb hardrive to boot to. I have it set up the way I like it. I let the install disk auto install the program. There are two partitions. Works great.

I have an older desktop that was running win xp and the main drive was starting to fail so I used easus disk copy to clone the drive and decided to use the second slot for a ubuntu drive. I installed a 120 g drive to install ubuntu onto and set grub for dual boot. Then I decided instead of downloading and resetting up the ubuntu drive maybe i could disc copy from the 250 to the 120.

In order to do so I need to resize the partition on the 250g usb drive so the copy will fit on the 120g. Easus partition nor windows device manager recognizes the format the the ubuntu disc used when it installed on the usb drive...I tried gparted live ( booting form the cd )but it doesn't recognize the usb drive at all.

My question is what program can I used to resize the partition of the usb drive in order to get it to a size that disk copy will allow me to copy onto the 120 g drive. The second question is what file format does ubuntu put on the disk during install that isn't detected by these programs.

View 2 Replies View Related

Ubuntu :: USB Drive Not Showing Up?

May 31, 2011

I can not see my usb stick on the desktop. I have set the options for storage media to automount, and when I run lsusb in as terminal, the usb stick is there. It just seems as if ubuntu is not realizing that the stick is a storage device... I can acess the device in windows XP, so i know that it isn't broken. This appeared when I upgraded from Xubuntu 10.10 to 11.04.

View 5 Replies View Related

Ubuntu :: USB Flash Drive Not Showing?

May 10, 2011

I use a flash drive for regular back up and other work and this has been very successful until two days ago. None of my USB flask drives are showing in the Places menu when I connect them. I have a dual boot with Mint and they work perfectly in Mint. A few days ago I was unsuccessfully trying to get my Broadcom wifi card to work and was following threads to install and uninstall various firmware programs. I am not sure if this caused the loss of the USB drive. When I go into System Profiler and Benchmark nothing is showing under USB devices.

View 9 Replies View Related

Ubuntu :: Second Hard Drive Not Showing Up?

Jun 29, 2011

Alright. So recently I've been having computer trouble and need to clean install my OS on my main Hard Drive. That normally wouldn't be a problem but there's some stuff on my main hard drive that I really don't want to part with, SOOO I figured I'd pick up a new HD and OS and move the files I want to keep before clean installing. I have my new HD installed and everything and it even shows up as a option in the boot menu. I'm currently running Ubuntu from a Flash Drive but only my old hard drive will show up. How can I access my other HD?

View 1 Replies View Related

Software :: Drive Not Showing Up In Dolphin?

May 27, 2010

I just added a new drive, formatted it, and everything is ready. except that it does not show up under "places" in dolphin. Removable drives show up almost instantly, and same with all my other useful partitions*, but not this one. I can add a link to the folder it is mounted in, but that is just not the same...

is there something I need to do to fix this?


*(swap are not usable partitions)

View 1 Replies View Related

Fedora Installation :: Hard Drive Not Showing Up?

Sep 19, 2009

I just bought a brand new hard drive, installed fedora with no errors. However when I try to click on the hard drive i get this errorunable to mount physical volume, not a mountable file system, ( I only have 1 hard drive and fedora boots up fine so its got to be working)I installed hardware browser and no hard drives come up

View 10 Replies View Related

Fedora :: Flash Drive Showing As 2 Volumes?

Sep 8, 2011

I have a load of Maxell 2GB flash drives which I bought new.

It has a Public Partition and a Secure partition on the flash drive.

gparted and disk utility see it as 2 volumes. I need remove the 2MB secure partition to make the 2GB stick bootable. However since it's showing up as 2 volumes I can't see how to do it. Probably requires totally wiping the flash drive.

Can anyone recommend how I go about this?

View 2 Replies View Related

Ubuntu :: Windows Drive Not Showing In Lucid?

Jul 1, 2010

I have installed Winxp & ubuntu 10.04. All are running excellently but i cannot brows my windows drive from lucid. in jaunty or karmic i use to work in ubuntu but all files were stored in windows drive. But in lucid i cannot find windows drives.

View 3 Replies View Related

Ubuntu :: Mount Drive Without Showing On Desktop?

Jul 25, 2010

I have an Ubuntu 8.04 machine, I have a NFS drive being mounted when the system starts up. The entry in /etc/fstab looks like:Code:server:/srv/Pictures /mnt/share nfs rw,hard,intr 0 0The drive is mounting fine, but I would really like it if the icon did not show up on the desktop for this drive.Is there anyway to keep it from showing?

View 3 Replies View Related

Ubuntu :: External Drive. All Files Not Showing Up?

Aug 29, 2010

I have an western digital elements external drive that is mounted on ubuntu 9.10. It mounts ok however when I go to a certain folder on the drive only some of the files show up. HOwever if I try to access it thru another program (xbmc file manager) all the files show up.

The files are there but I cannot view them. Also if I copy or move a file to that folder is dissappears but the file is still on the drive.

Any help. I also already hit show hidden files and nothing.

View 2 Replies View Related

Ubuntu :: Secondary Slave Drive Not Showing Up / See That?

Jun 2, 2011

I just installed ubuntu, this is my first time with it so excuse my ignorance regarding it. My issue is that ubuntu does not show my secondary slave seagate hdd .. it only shows and installs on my western digital master primary one. I need to have access to my slave drive because it has data on it which i wanna use.
My secondary slave shows up in my windows and bios just fine. So what gives?

View 5 Replies View Related







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