CentOS 5 Hardware :: Partition A 6TB Volume Using Parted?
Feb 17, 2010
I am trying to partition a 6TB volume using parted, but I am a bit confused with the syntax. From the (parted) prompt, I know I should use the command "mkpart primary <start> <end>". I guess that <start> should =0. How do I tell what <end> should be? I want it to fill the entire volume but I don't see how to tell what the exact number should be.
I have a partition, which is 32GB and is mounted to / of the archlinux distribution.I want to create another partition, I need about 5GB and I want to take them from this partition.If I use parted to resize the partition will I lose any files?
I have slackware 13.1 installed on my desktop and I have all my hard drive dedicated to it. But now Im thinking about resizing my hard drive so that I can install windows so my brother can play games on it ( probly giving 50 Gigs to windows )I heard that parted ( located on slackware cd 1 ) is what I should use. So I was wondering if I need to backup any important files before doing the resizing? I would also appreciate it if someone could link an good tutorial for doing partition resizing .
I have a 10GB IDE disk that Parted says has a single 10GB partition (/dev/sdb1) which is mounted at /home. However, df and the Gnome file managers see it only as a 3GB partition. It was a 3GB partition when I was using Fedora 9 but the partition was resized to 10GB during the installation of Fedora 11.Can anyone suggest how to make df and Gnome see it as a 10GB partition?
Im using parted when doing a new disk. If the disk is ext[234], xfs, jfs, parted displays the partition correctly, but if the partition was formated using reiser4 or btrfs the "File System" part there is nothing, like there is no formating done to the partition.
This is how Im using parted:ex.: parted -s /dev/sda print
After trying without success change from windows to ubuntu (dual-boot unsolved problems), I decided to try slack as I have seen that user to user support for slack is usually best oriented and faster.But I am having some problems in order to install slack because of GPT support. As I know its a bad idea to start to asking for help without speak what I have tried, lets to this first:
At first I tried just to boot from DVD and went through the install using the help inside the disk. It doesn't work because either fdisk and cfdisk that are suggested in help doesn't offer support to GPT.
After that first try i looked to:url
But also it suggest the use of fdisk. However, it suggested too that I could use another partition application and since I have the live cd for ubuntu, I tried to partition from there and use those partitions for installation.
At first I tried to format as ext4, but i discovered that slack still dont offer support to this format (at least the version that I downloaded).So I tried again but this time using ext3 as format to my / and /home and use the swap offered in the application for use as swap (duh!)But every time I try to install using the dvd it doesnt find my partitions with fdisk, only with the parted command I can see my partition table displayed correctly.However, every time I try to run setup it say that it didnt found and linux partition (swap also when i try to target).So this is my dilemma, I cant use fdisk, in the parted manual (url) it only says that it supports ext2 (not mention ext3) and also i dont find any command to use with parted to mark the partition as 82.I ran through this 2 other posts (url), but as I am still waiting for some update there I decided to ask it here hoping to discover that this is an easy problem.
When I run 'parted' and then type 'print' to see the partitions that are available, I see two entries: /dev/sda1 and /dev/sda2. /dev/sda1 is of ext3 type whereas for /dev/sda2 nothing is specified for file system type. The LVM flags are set for /dev/sda2.
When I tried to resize /dev/sda2, it gives me the error "File system type not recognized". let me know how to find out the file system type of the partition.
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?
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?
When I recently installed Redhat onto my system, I had 2 hard drives in it, and apparently the default usage for the two hard drive is to put them all into 1 volume, so now I have files scattered across both hard drives (with boot on /dev/sdb). LVM won't let me remove the /dev/sdb partition due to not enough room in volume or whatever. What is the easiest way to shift everything, including the boot partition, onto one hard drive so I can remove the other one without reinstalling everything?
I am unable to hibernate my computer while using Ubuntu and I figured out the reason--Ubuntu is not using my swap partition. I would follow the existing tutorials on setting up a swap partition after installing Ubuntu, but since the volume uses hardware RAID 0, the swap partition is not assigned a /dev/ entry (like /dev/sdxx) and I am not sure how I can mount it.
I have a USB disk which has 2 partitions. It is the default behavior in the OS (Lucid 10.04 64 bit) that upon connecting a USB (be it thumb drive or hard disk) it will mount it in: /media.
I have 2 partitions on the USB hard disk as follows: ls -l /media drwxrwxrwx 2 tkmsr tkmsr 2048 2010-02-12 04:12 HPLAUNCHER drwx------ 7 tkmsr tkmsr 4096 1970-01-01 05:30 vol1 drwx------ 1 tkmsr tkmsr 20480 2011-01-03 17:43 vol2
I want to share vol2 on nfs. Here is the /etc/exports file entry on nfs server /media/vol2 192.168.1.0/24(rw,sync,no_subtree_check) On the client machine I tried to mount the above nfs volume mount -t nfs 192.168.1.19:/media/vol2 /mnt/nfs
Things worked well upto here. But I was not able to go inside the mounted volume at the client machine. Hence I checked the permissions on the folder on nfs server they were as follows drwx------ 1 tkmsr tkmsr 20480 2011-01-03 17:43 vol2 and the share mounted on client machine which was above only had following permissions: drwx------ 1 client_hostname client_hostname 20480 2011-01-03 17:43 vol2 Considering this to be source of problem I tried to change the permissions at the server: chmod -R 755 /media/vol2 but this attempt failed..
I checked by mount command the type of file system on USB disk: /dev/sdb2 on /media/vol1 type vfat (rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,flush) /dev/sdb5 on /media/vol2 type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions) /dev/sr1 on /media/HPLAUNCHER type iso9660 (ro,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,iocharset=utf8,mode=0400,dmode=0500)
and the /var/log/syslog shows Jan 6 10:24:12 tkmsr ntfs-3g[2278]: Mounted /dev/sdb5 (Read-Write, label "vol2", NTFS 3.1) Jan 6 10:24:12 tkmsr ntfs-3g[2278]: Cmdline options: rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,dmask=0077 Jan 6 10:24:12 tkmsr ntfs-3g[2278]: Mount options: rw,nosuid,nodev,uhelper=udisks,silent,allow_other,nonempty,relatime,fsname=/dev/sdb5,blkdev,blksize=4096,default_permissions Jan 6 10:24:12 tkmsr ntfs-3g[2278]: Global ownership and permissions enforced, configuration type 1
Where I see ntfs-3g driver in use for the above volume which I want to export on nfs.Can this be the source of my problems? Or I need to check some thing else? I notice the output of mount command: /dev/sdb5 on /media/vol2 type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions) Is there a way I can enforce to load changed permissions on the said USB and change this default behavior.
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.
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.
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.
I have an lvm volume group VG_GUESTS and inside it alogical volume LV_NTFSDATA that was connected to andformatted to NTFS by a guest virtual machine (KVM). I can mount the 1st NTFS partition on that lv manually like this:
Code: sudo kpartx -a /dev/VG_GUESTS/LV_NTFSDATA sudo mount -t ntfs-3g /dev/mapper/VG_GUESTS-LV_NTFSDATA1 /mnt/NTFSDATA1
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??
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!
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:
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.
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.
I am trying to install an ARM version of Ubuntu onto an SD card for a BeagleBoard from a .img file downloaded from http://releases.ubuntu.com/lucid/. I have tried several files of .img and .raw downloaded from several places. I am using 'dd' on a PC running Ubuntu 10.0.4. My question doesn't relate to the BeagleBoard at all since I never get that far. The files for Angstrom that I copy directly onto a formatted SD card boot up fine on the BeagleBoard, but I need Ubuntu on there and can't do it with these image files. The command I use is:
sudo dd if=<the downloaded file> of=/dev/sdb1 After it asks the root password, it chugs along for some time and then gives what appears to be a successful response like the following. (This time it was for the Maverick version of Ubuntu in a .raw file):
leiphasw@dell-linux:~/Downloads/ArmMaverickUbuntu$ sudo dd if=maverick-preinstalled-netbook-armel+omap.raw of=/dev/sdb1 4090632+0 records in 4090632+0 records out 2094403584 bytes (2.1 GB) copied, 167.38 s, 12.5 MB/s
Im trying to build parted 2.3, but I always end-up in the same error:
Code: In file included from arch/linux.c:42: /usr/include/scsi/scsi.h:152: error: expected specifier-qualifier-list before 'u8' /usr/include/scsi/scsi.h: In function 'scsi_varlen_cdb_length': /usr/include/scsi/scsi.h:163: error: 'struct scsi_varlen_cdb_hdr' has no member named 'additional_cdb_length'
In the last attempt I did, sdb,sdc and sdd all had the correct ordering of partitions, but sda looked like above, which means I would need to assemble by boot array partition array as /dev/md0 = /dev/sda3, /dev/sdb1, dev/sdc1, dev/sdd1
Why is the partition numbering moving around as I create them?
Just out of curiosity, has anyone experienced a problem similar to this:[URL]...after upgrading to 5.3? Comment #1 seems to be a particularly good description of the issue. I am finding this behavior with Bus 003 Device 002: ID 041e:3000 Creative Technology, Ltd SoundBlaster Extigy (USB sound)after upgrading to 5.3. Basically, trying to change the volume with the sliders (either with the gnome applet or the volume control gui) sometimes causes the volume to go way down when you are trying to raise the volume (both with scroll-wheel and dragging the sliders). The left-right bars also get unlocked sporadically. It is most prevalent when actually playing something like a move (eg. with Xine) and trying to change the volume with the volume manager or applet. It's especially noticeable if you are trying to change the volume quickly. I'm not sure much can be done about it, as it appears to be an upstream bug but I'm just curious if anyone else has seen this. I've just added my 2 cents on the RedHat Bugzilla site.
I am currently using an M-Audio 7.1 PCI sound card on a headless non-GUI Centos5.5 install. MPD is running in the background for jukebox usage. The problem is, I seem to be at 100% volume output on the jukebox and I can't figure out how to change volume. Using alsaunmute to set volume sets some kind of volume on the soundcard, from what I can tell, but it's like that new volume setting is not being respected by ALSA. I can also set the volume using 'alsamixer' which also produces no noticable effect (100% is the same as 0%, as loud as could be from the PC).
I'm using the digital coax output from the soundcard for this - not the 3.5mm jack (due to stereo reasons beyond my control). Perhaps I'm not modifying the master volume? Thing is, when modify volume settings via an MPD client, such as Minion or one on my phone,�the volume setting does change in the ALSA software, but there's no audible difference. It makes me think alsa is not being used for sound control, but I'm stumped as to how to check otherwise. At least sound plays!