General :: Extending Partition Into Another Physical Drive?

Oct 4, 2010

Is it possible if I am only using ext3 and no LVM or anything else to re-size the partition into another physical device? I am pretty sure the answer to this is no but I was still curious as I am facing a full 1tb disk and need to add a new drive and unsure how to do this due to shared folders existing on the old drive and no way to actually expand them without linking in new files or something.

View 8 Replies


ADVERTISEMENT

Software :: Adding Drive - Extending VG And LV - Partition New Drive?

May 10, 2010

I need to expand one logical volume which is now in 99% utilization. The volume group only have 5GB and they need 25GB more so that I can add 30GB. The disks will be coming from SAN Storage. If the SAN Admin can successfully add the disks to the server and I can see it, should I still partition it and change the type to Linux LVM?

I have tried just doing a pvcreate without partitioning and do a vgextend and it works without actually partitioning the disks. But when I do "fdisk -l", it actually shows that the disk don't have partition.

Whether I need to partition the drive to 8e (Linux LVM) before doing? Which one is better? Below are my steps and please let me know if this the correct one.

Here's my steps:

1.) dmesg | grep sd (to check the newly added disks)
2.) fdisk /dev/sdx (create primary partition and assign Linux LVM to type)
3.) pvcreate /dev/sdx
4.) vgextend VolumeName /dev/sdx
5.) lvextend -L+30G Volume01 /dev/Volume01/lv01
6.) umount /dev/Volume01/lv01
7.) resize2fs /dev/Volume01/lv01
8.) mount /dev/Volume01/lv01 /lv01
9.) df -h (check if resized successfully)

View 9 Replies View Related

General :: Extending Root Partition By Shrinking VAR Space

Apr 5, 2011

I have serwer Debian with my website. My provider splited the disc into 5GB partition for / and 495GB partition for /var. Everything was going ok for over two years but now I don't have enough memory on /. I'd like to increase the partition but the problem is that /var is just next to it so I can't easily change the end of the first one. I need some safe solution. It might be even just shrinking partition for /var, adding new one after if it helps anyhow (I have about 450GB free memory).

Some outputs
Code: # df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 5201536 5173904 0 100% /
tmpfs 1023464 0 1023464 0% /lib/init/rw
udev 10240 2672 7568 27% /dev
tmpfs 1023464 0 1023464 0% /dev/shm
/dev/sda2 478812280 10336484 444345032 3% /var
overflow 1024 4 1020 1% /tmp

# parted print
GNU Parted 2.3
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: ATA ST3500418AS (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 512B 5369MB 5369MB primary ext3 boot
2 5369MB 500GB 494GB primary ext3
3 500GB 500GB 538MB primary linux-swap(v1)

View 2 Replies View Related

Ubuntu :: Extending Partition Into Unallocated Space

Aug 31, 2010

i would like to extend my main file system into the unallocated space that i have on my hard drive, the unallocated space is most of it, as it used to be a partition but was deleted, do i have to do this with a boot up disk because i think that it can only be done on an unmounted partition, or is there a way to do this while linux is running in the main partition.

View 1 Replies View Related

Ubuntu Servers :: Extending File System Partition Remotely?

Aug 24, 2010

I'm still pretty new to servers and ubuntu and have ran into something I could see being a problem in the future. On a dedicated remote server I have installed a web server using the "How To Forge - Perfect server set up for ubuntu 10.04 and ispconfig". I have a forum and email up and running and shoutcast radio and teamspeak3 servers also. We can also nx into it if need be. I can reformat the 1T hdd remotely from my provider control panel and ssh is installed at the same time and a new root password is sent via email. The thing is I now realise that by default the file system is written to a 10gig partition.

This might usually be ok but ispconfig uses the /var/www folder on the file system to house the forum I host and the partition is filling up. My mate I co rent with is talking about starting a parrot/bird owners forum and i might eventually like to have a gaming forum as well. I realise I should probably have set things up differently but like I said I am new at all this and tbh the home directories never going to have much in it so theres 900 gig doing nothing. So my question is can I use anything to enlarge that partition remotely? I know theres gparted on disc and all the articles I found say I need to use a disc which obviously is out of the question.

So what I think I need is some sort of partition magic for ubuntu. I would really like to expand it so all my current files etc on it would stay as is. I'm also currently looking into back up methods and wondered if that would be the way to go? Back up my file system and home directories and then reformat and make the partition larger? Or could I copy the entire www folder to a newly created folder in /home and re write the site enabled files to point to it? Would this work and if so what else would I need to edit?

View 9 Replies View Related

Red Hat / Fedora :: Extending Primary Partition - Allocating Space To SDA1

Jun 27, 2010

I have installed oracle enterprise linux on VM ware with 20 gb allocated to guest OS. Now I want to install oracle apps in the guest Os, so I need to extend the volume. I have extended in Vm , but I have to partition in the guest OS, for that purpose I am using Gparted. But I am unable to extend to sda1. I need to have all the unallocation space allocated to sda1. Here is the screen shot, how can I do that. Right now when in press the command df -h in terminal I am gettig 18 gb as space available for sda1, I want to make it 200 gb, in which I would like to install oracle apps. Check out my screen shot.

View 5 Replies View Related

Red Hat / Fedora :: Extending Root Partition - Volume Group Not Found

Sep 20, 2010

I am trying to extend my / size as its full. Well the volume group is VolGroup00 & logical volume is LogVol00 but when. I run the command vgextend VolGroup00 /dev/sda8. It says volume group not found. Can it be because I have WindowsXP in my /dev/sda1, which falls under same Volgroup??

View 1 Replies View Related

General :: Free Up An LVM Logic Volumn Into A Physical Partition?

May 13, 2010

In my computer there is only one hard disk with two partitions. /dev/sda1 is mounted as /boot, while /dev/sda2 is used as LVM. In that LVM partition I have only one logic volumn group with several logic volumns. One of the logic volumns is mounted as /data, and now I want to remove this logic volumn, free up the space and make it another physical partition outside LVM as /dev/sda3. Can someone help me on this, especially the procedure of steps I should go through ?

View 7 Replies View Related

General :: Associate A Physical Disk Partition With Directory?

Dec 14, 2010

i would like to determine the hard drive partition associated with a directory. ie i have a disk partition as user with mount point Home. this i think contains my Home directory. a downloaded program resides in /usr/bin. now there is a /usr/local/bin with nothing in it. my question is how can i tell what disk partition /usr/bin resides on. if it is on my user defined partition i will not lose the program on a system install i think?

View 5 Replies View Related

General :: Mounting - Checking Or Reading Partition ( Probably A Physical Damage )?

Mar 21, 2010

I have a problem when trying mounting, checking my ext3 partition. Is a external HD with my "portable" Linux system. Suddenly started to fail, when I try to boot it, the GRUB can't locate the config file, and show me the command line. I boot from my internal HD and try to mount it and have this messages.

Code:
sd 2:0:0:0: [sdb] Attached SCSI disk
sd 2:0:0:0: Attached scsi generic sg2 type 0
sd 2:0:0:0: [sdb] Unhandled sense code
sd 2:0:0:0: [sdb] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE,SUGGEST_OK
sd 2:0:0:0: [sdb] Sense Key : Medium Error [current]
sd 2:0:0:0: [sdb] Add. Sense: Unrecovered read error

[Code]...

1.- What exactly is in this first sectors (ext3 metadata?)

2.- Is there some way to fix this quickly, maybe with some "sectors relocation", Or re-create the first logical sectors.

3.- If not, who could i make a full backup (something like dd copy), of all the partition.

4.- How fix it?, even with a long prosses, i don't know, maybe backup the file structure (with forensic tools) and copy into a new (and re-located) partition. This is my last option because the forensic tools sometime can't recover all files and sometimes only parts, or very old files.

View 7 Replies View Related

General :: Extending A Redhat 5 /var Mount?

Jun 23, 2011

I have extended the Logical Volume and when I do an lvmdiskscan it shows the new extened value but when I do a df -h the mount (/var) still shows the old value?

View 1 Replies View Related

Ubuntu :: Can't Use Second Physical Drive?

Jun 27, 2011

I installed a 30 gig hard drive for extra storage space. It is currently using the ext2 file system. When looking at it in gparted, there is a key icon next to the drive. I would like to use this drive for storage with programs running in WINE, but can't even see the drive from there. From the normal OS, I can see and mount the drive, but can't use it for anything.

I am going to go out on a limb and guess that the key icon means it is locked somehow. How do I unlock/use this drive? Is there a command to use in the terminal, or within the Disk Utility that will do it?

View 3 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

Ubuntu Installation :: Clone Physical Drive To Another One

Jun 27, 2010

My Ubuntu system drive is starting to throw up S.M.A.R.T. errors. I have two partitions on the drive (/home and /) and grub in the mbr. Is there a way to exactly clone this drive to another one so I don't need to reinstall or re-setup anything?

View 1 Replies View Related

Ubuntu :: DVD Drive (physical) Doesn't Work?

Aug 3, 2011

I am using MSI X620. I just intalled ubuntu 10.04 in it. Everything is fine except my DVD drive. The dvd drive doesn't work at all! When i press eject button ..nothing happens and there is no light blinking in the drive....when i load windows it works fine though! do i need to install drivers or something?

View 9 Replies View Related

Fedora Installation :: Partition Does Not Start On Physical Sector Boundary?

Aug 22, 2011

fdisk -l: Disk /dev/sda: 750.2 GB, 750156374016 bytes.

[Code]...

I've tried other installations, but I always get errors like this. /dev/sda 5, 7 and 8 are occupied by PCLinuxOs. /dev/sda 9, 10, 11 and 12 by Fedora. I made room for Linux installations by GParted (last version). Really, I made no errors. The installer of PCLOS is a bit strange: it changed the NTFS partition sda5 in sda 6! In a previous installation with Fedora and Kubuntu only the extend partition sda 4 complained about not starting on physical sector boundary. The hard disk is Western Digital with Advanced Format. Probably this is the cause of the problem. The systems are snappy and responsive. I do not encounter any problem. What to do? Ignoring the problem or reinstalling? May be it would be better to get rid of PCLOS and to dual boot Windows with Fedora?

View 5 Replies View Related

Fedora Installation :: 15 - Make A Bootable USB Drive Instead Of Using A Physical DVD

Jun 3, 2011

I downloaded the Fedora-15-i386-DVD.iso and want to install Fedora 15 from it. I don't want to use the LiveCD version since it doesn't have all the packages. So I follow the tutorial given here under the section titled "How to Make a bootable USB Drive to Install Fedora instead of using a physical DVD ". Everything finishes off well. However. when I boot my computer using the USB, it says "USB doesn't have operating system. Safely remove and reboot".

Now, what to do? I also didn't get the line the tutorial saying, "You should now have a bootable USB stick which will run an 15 install. When you boot the stick, you may also add askmethod to the boot line and select a hard drive install and select the drive as /dev/sdb1 (or your USB device drive) and the path should be / " What am I supposed to do?

View 1 Replies View Related

Fedora :: Unable To Add A Physical Drive To An Existing Filesystem?

Aug 15, 2011

I want to be able to add a physical drive to an existing filesystem, and PRESTO! That filesystem has more storage and/or redundancy. When one of the physical drives eventually fail, no problem, Ive lost some redundancy, I just have to install a new drive before another one fails.Lets assume I have 4 physical drives.*What Is This Configuration? *[URL]...But I am unclear how to get a logical volume that is mirrored and linear.

The last time I tried software RAID 1 (dm-x) under lvm, it was very fragile. Systemd could not start it,and then an update to mdadm put a stake through its heart. So I know that does not work.

View 5 Replies View Related

Ubuntu :: Clone A Physical Harddrive Into A Virtual Box Drive?

Jul 8, 2010

I have two old windows 95 computers. The problem is I have files and programs that have specific settings that I need. The computers are old and I want to just make a copy of the hard drive and insert it into virtual box. How can I do this?

View 4 Replies View Related

Server :: Removing Physical Drive From LVM Logical Volume?

Jul 5, 2011

I have a 7.9 TB logical volume I've created from 8 1 TB RAID 0 devices. The volume is formatted with XFS so I can resize when ready. However, I think I want to do something that is not possible. I have 2.5 TB free on my logical volume. I'd like to shrink the volume down to be 6 TB by getting rid of 2 of the 1 TB devices in the physical volume. However pvmove seems to require free extents in order to work. Do I need to add 6 TB of storage, pvmove everything onto it, and then decommission the original 8 1 TB physical devices from the volume?

View 5 Replies View Related

Ubuntu Installation :: Accidentally Deleted Partition Table On Lvm Physical Volume.

Jul 18, 2010

I was trying to remove the physical volume from an old drive. So I opened gparted and told it to rewrite the partition table. The only problem is I targeted the wrong volume, I wiped the partition table on my 4tb raid5 array This 4tb array has everything! All my movies, tv shows, music. The only things I have backup up off site are my smaller files like documents. I was about to lose my whole media collection.

I did some research and found a solution that I will post here in the hopes that someone will google "I deleted the partition table on my lvm" and be find the solution.You should find in your filesystem a /etc/lvm/backup folder. LVM puts a copy of the crucial lvm information there every time you change the the volume group.

In this folder you will find a file for each volume group. In this file you will find the uuid for all of the physical volumes that make up that group.The first step is to recreate each physical volume with their original uuids. In my case I had only 1 physical volume, which was my raid5 array. My recreation command looked like this:

pvcreate --uuid cLrY02-zrVi-D0Vi-cIPB-6fF5-ed0c-XFF0os /dev/md0

Now I have a physical volume with the same uuid it had before. It is essential that you correctly match up the uuids with the correct physical deviecs.The recreated pv is empty, the volume group needs to be recovered. This is done by using a special tool and the backup file. For me the command looked like this:

vgcfgrestore --file /etc/lvm/backup/raid5 raid5

This tells it to recreate the volume group using the information in the backup file. The backup files looks for the uuid of the PV, which now matches the correct volume. The coordinates in the backup file match up to the data on the array an suddenly everything is back!

When I deleted my LVM partition table I did not damage any of the actual volumes on the volume group, I just wiped out the table of contents. The backup file had the information needed to rewrite this table of contents.

View 1 Replies View Related

Ubuntu :: Create A Single Logical Drive Out Of Two Physical Drives?

Mar 4, 2010

I'm installing Ubuntu to be used as an NFS storage server for my VMWare ESX servers. I've got a server that has two 2TB drives in it. The hardware raid controller isn't an option because it only sees up to 1TB of each drive. So, I'm trying to figure out to do this using either LVM or Parted. I don't know much about doing this, and LVM was the first thing I tried but it didn't seem to do much. It looks like it just created a smaller partition to install Ubuntu on. It didn't ask me what I wanted to do with the rest of the drive space. I've messed around with Parted and am not sure what to do, to be honest. I found a few blog posts but most started off assuming that I knew how to get to where they were starting from.

It's just two drives, /dev/sda /dev/sdb

View 3 Replies View Related

Ubuntu Installation :: Installing From Virtual Drive To Another Physical Disk

Aug 17, 2010

I am currently using windows xp, but I have acquired another hard drive and wish to install ubuntu to it, unfortunately i do not have a working cd drive. I have loaded the newest iso in daemon tools and it asks me if i want to install it in windows, or restart my computer to do a full install. i wish to do neither. i want to install a full copy to my other drive with the virtual cd drive. I have found alot of help dealing with installing it on the same drive as windows or something that would require a floppy drive. this task seems like it would be alot simpler than installing on the same drive, buy maybe not. Did i miss a tutorial somewhere?

View 2 Replies View Related

Slackware :: Add A Second Physical Drive With Windows 7 On It To The Boot Options In Lilo?

Mar 14, 2011

I'm familiar with editing Grub's "menu.lst" file to add additional OS's to the boot list. Does Slackwares Lilo have a similar config file ? I need to add a second physical drive with Windows 7 on it to the boot options in Lilo. If it's not a config file, how do I add a second os to it ? Slack and Windows are both already installed on two different physical drives so I won't be installing, I just need to add the Windows drive to Lilo.

View 5 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

Hardware :: How To Find The /dev/sd Device Currently Assigned To A Physical Flash Drive Port

Jul 17, 2011

I have (at least 4) native USB ports that contain flash drives. I know that the /dev/sd[abcd] devices are created in the order they were inserted, but say you have all four plugged in at boot time, or further, they can be plugged and unplugged in real time. At times, /dev/sdf, /dev/sdg, etc. are created as well. I'm ignoring external hubs for now.

I need to know which drive is plugged into the "top port on the front panel", etc, by physical location. From dmesg I can check right after booting and get the physical assignment of a PCI device, say, PCI 0000:00:10.3, as being assigned to the EHCI usb bus. From /proc/bus/usb/devices, and the "T:" field, I have learned that the physical connectors I'm interested are known as USB Bus 1, Port=00, Port=01, Port=04, and Port=05.

From lsusb I can see all sorts of information from the USB point of view, but with no /dev/sd references.

From /proc/scsi/scsi, I can see what scsi devices have been created, with a count consistent with the number of flash drives plugged in, but no USB data.

So, I can get lots of information from the USB storage point of view, and lots of information from the SCSI point of view, but nowhere can I find how to correlate them. In other words, if I want to mount the drive plugged into a given physical slot, how can I find the /dev/sd device I need to mount? udev isn't really interesting here, because I'm just looking for the information that udev would use to answer the same question.

I've done some heaving exploring in the /sys and /proc filesystems and have not yet found where the USB and SCSI worlds intersect.

The closest I have found is (where "Port" is the physical port number from above):

This seems to have some mapping to the physical port and references a "/dev/sd[a-z]" value, but I don't know how reliable it might be, nor do I know if my having to increment that physical port by 1 is meaningful. Anyone have a simpler approach?

So, my goal becomes
mount /dev/<sd that was created for the top slot> /mnt/top
mount /dev/<sd that was created for the bottom slot> /mnt/bottom etc.

View 2 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

General :: Partition My Had Drive ?

Jan 25, 2011

I have the Ubuntu 10.10 netbook saved to my thumbdrive and can boot it up to where I can try it or install. When I go to install I get to the part where t asks if I want to replace windows or run in side by side. I choose side by side and then it takes me to the screen where I have to partition my hard drive. It will not give me the option to do it automatically, only the advanced manually option or replace windows is there.

So when I have to manually partition the hard drive, this is where my lack of knowledge emerges and where I need your help. I have 239 GB available. I was going to leave 189GB dedicated to windows and use 50 to run ubuntu. The part that is Japanese to me is the file format, boot, root, nfts, etc, etc. Can anyone break it down for me BARNEY style?

I have backed up all my windows data and defraged the hard drive. I just want to get this ubuntu working.

View 8 Replies View Related

General :: Partition - Drive Layout ?

Nov 20, 2008

I'm at a stage where I can start using Linux for all the tasks that I currently do on Windows and am keen to make a full switch to Linux. I have played with Linux a few times over the years, installing different distros etc, but I've never set up the hard drive partitions manually. I only want to make the switch once I have a good grasp of how to configure the hard drives as I have a lot of precious data.

A question I have is that normally I would set up a small partition for the OS, then have another large partition purely for data. What would be the best way to recreate this kind of set up with a Linux file system (i.e. keeping OS and user data separate)? Where would be the best place to store a mass of data that wouldn't necessarily be associated with one particular user? I've seen about having a separate partition for users home directories, but I don't really want the data associated with one user so it would seem more logical to store it somewhere more general.

View 5 Replies View Related

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 View Related







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