[SOLVED] Remote install: how to convert LVM swap to a linux partition

Advertisement
November 30

I am trying to install arch onto a remote server using the instructions at https://wiki.archlinux.org/index.php/Re … ux_Install , which outline a way to convert the swap partition to the new root partition:
# swapoff /dev/sdaX
# fdisk /dev/sda
(set /dev/sdaX ID field to "Linux" - Hex 83)
# mke2fs -j /dev/sdaX
The problem I'm having is that the disks on the server are managed by LVM and I'm not sure how to convert the swap partition.  How do I make it available for the install?  fdisk does not want to operate on the disks because it doesn't support GPT.  Can parted do it?  Alternatively, the server has two hard drives so maybe one could be used for the install.
/etc/fstab contains
/dev/mapper/nc1-root / ext3 errors=remount-ro 0 1
# /boot was on /dev/sda2 during installation
UUID=c9bcfdd6-ae9a-4ea9-b679-53f29b95c63c /boot ext2 defaults 0 2
/dev/mapper/nc1-swap_1 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0
fdisk -l gives
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sda1 1 243202 1953514583+ ee GPT
Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x36613b58
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 63 498688 fd Linux raid autodetect
Partition 1 does not end on cylinder boundary.
/dev/sdb2 63 243202 1953014784 fd Linux raid autodetect
Disk /dev/dm-0: 1967.2 GB, 1967191490560 bytes
255 heads, 63 sectors/track, 239164 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/dm-0 doesn't contain a valid partition table
Disk /dev/dm-1: 32.9 GB, 32946257920 bytes
255 heads, 63 sectors/track, 4005 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/dm-1 doesn't contain a valid partition table
dmsetup info gives
Name: nc1-root
State: ACTIVE
Read Ahead: 256
Tables present: LIVE
Open count: 1
Event number: 0
Major, minor: 254, 0
Number of targets: 1
UUID: LVM-Jlpnv3mTyxFgW3HKlMKlaTsGN0Edd0n3iybhIaeGjTu7l27UQXd7TTMfVuhFyKzJ
Name: nc1-swap_1
State: ACTIVE
Read Ahead: 256
Tables present: LIVE
Open count: 1
Event number: 0
Major, minor: 254, 1
Number of targets: 1
UUID: LVM-Jlpnv3mTyxFgW3HKlMKlaTsGN0Edd0n32wFEDu3V7u1C540QamjiPSe4qGR10o1A
parted print all gives
Model: ATA WDC WD2002FYPS-0 (scsi)
Disk /dev/sda: 2000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 17.4kB 1018kB 1000kB bios_grub
2 1018kB 257MB 256MB ext2 boot
3 257MB 2000GB 2000GB lvm
Model: ATA WDC WD2002FYPS-0 (scsi)
Disk /dev/sdb: 2000GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 512MB 511MB primary boot, raid
2 512MB 2000GB 2000GB primary raid
Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/nc1-swap_1: 32.9GB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Number Start End Size File system Flags
1 0.00B 32.9GB 32.9GB linux-swap(v1)
Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/nc1-root: 1967GB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Number Start End Size File system Flags
1 0.00B 1967GB 1967GB ext3
Last edited by rhodie (2015-05-31 08:39:02)

Advertisement

Replay

gdisk is a GPT analog of fdisk, FYI. However, since the swap partition is inside an LVM container, you don't need to touch the underlying disk at all. You should be able to run mkfs on the partition immediately after swapoff.

View 3 Replies

How to Remote Install Mac OS X on MBP

November 30

I have taken out my cd drive to install a second hard drive, but when I opened iMovie it says that i am missing an important quicktime file that is needed to import, export, and save files.......and to put in the install disks again to reinstall it.

View All Replies

Help! How to convert an instance from java.lang.Object to a particula class

November 30

* How to convert an instance from java.lang.Object class to a particular class witch is known only at the running time? Roster EJB component is make up of RosterHome, Roster and RosterBean. RosterHome is the home interface of Roster EJB. Roster is th

View All Replies

How to Convert an RMI Server into WINNT service

November 30

I have an RMI Server, that looks like the following SimpleRMIServer.java import java.io.*; import java.rmi.*; import java.rmi.server.*; import java.rmi.registry.*; import java.rmi.*; import java.rmi.server.UnicastRemoteObject; public class SimpleRMIS

View All Replies

How to convert a word document into the PDF format?

November 30

Please instruct me step by step on how to convert several Word documents into the PDF format?If properly installed and updated (depending on the WORD version), you can simply do any of the following: 1. Open the doc in WORD and select Print, choose t

View All Replies

How to convert .caf files to WAV, MP3, WMA etc

November 30

I use QuickVoice free app on my ipad2 to record memos. I've just found out how to convert the files and play them on my Windows computer. First I used this program call QuickVoice Sync to copy my recording on my computer, used this link: www.nFinityI

View All Replies

How to convert special characters in ABAP to XML?

October 11

Hi All. We have a scenario where from XI (exchange Infrastructure), a BAPI is called which returns an XML. From that XML, a PDF is generated. Now, if the XML contains any special characters, it will fail. So if any CHinese char or >, # etc signs are

View All Replies

How to convert FLAC to Apple Lossless

November 30

how to convert FLAC to Apple LosslessHandbrake really is only for converting video and the audio attached to that video. With that said, there are many efficient ways to do this, personally, I am perfectly content just converting the file into a .wav

View All Replies

How to convert decimal numbers to Hours and minutes

November 30

Hi, I am using SSRS 2005. I want to convert decimal numbers to Hours and minutes. Say suppose, I am adding daily work hours and minutes and the total is 208.63. Here 208 hrs and 63 minutes. How to convert this to 209 hrs 03 minutes in SSRS. Any In-bu

View All Replies

Freezing when trying to remote install

November 30

I can't successfully complete a remote install of my installation disk because every time I have less than an hour left (I'm doing it over wireless so it takes awhile) the pinwheel on the airbook starts spinning and it freezes at whatever time it has

View All Replies

I can't install the DNG converter 5.7

November 30

It downloaded, but won't intstall.  I have to abort. PamWhy don't you try to install the DNG converter 7.1 instead?  There's not really any good reason to try to run an older version. http://www.adobe.com/support/downloads/detail.jsp?ftpID=5389 http:

View All Replies

How to convert pdf  to binary

November 30

hi all,    how to convert pdf  to binary . regards, sheetalrefer this - http://www.geocities.com/rmtiwari/main.html?http://www.geocities.com/rmtiwari/Resources/MySolutions/Dev/Codes/Report/Z_RMTIWARI_XSTRING_TEXT_CONVER.htmlRead other 4 answers

View All Replies

After a clean install, how can I continue using Time Machine?

October 11

After a clean install, how can I continue using Time Machine? I booted from my recovery partition, erased my HD, installed the same OS, (Lion, 10.7.5) then restored from my TM. If it asks if i want to use TM, I say yes. When I chose the drive, it see

View All Replies

How do I open my H&R Block tax files, transferred to my Mac Pro from my PC? I guess they're in Windows format,but I don't know how to convert.

November 30

How do I open my H&R Block tax files, transferred to my Mac Pro from my PC? I guess they're in Windows format,but I don't know how to convert. CaptainTom1There should be an H&R block format.  Windows or no. Just like JPEG or MP3 is a format readab

View All Replies

How to convert serialized DefaultTreeModel between JVM1.3 and 1.4

November 30

Hi folks, I made and use an applicatition which saves a Treemodel. Sun warned for an incompatibility with future releases of the JVM. This turns to be true. Even setting the serialVersionUID to a fixed value does not help. Did any of you figure out h

View All Replies

ELELEMTS 120, FIRST INSTALL A PRINMTER, PRINTER IS INSTALLED, HOW TO FIX, PLEASE?

November 30

ELELEMTS 120, FIRST INSTALL A PRINMTER, PRINTER IS INSTALLED, HOW TO FIX, PLEASE?Sometimes because of the long names of the Printer, Elements does not recognise it. Rename the printer as see if it works: http://forums.adobe.com/thread/1112269Read oth

View All Replies

Hi I m having iphone 5.it was working well.I dont know what happened to it today.It started showing "No sim card installed ".How can I get rid of this problem.

October 11

hi I m having iphone 5.I got it on my birthday, it was working well till today...I dont know what happened to it today..it started showing "No sim card installed ".how is it possible i talked to my friend on the same phone only 2 min before ds n

View All Replies

Could someone please tell me how to convert a powerpoint to a movie, with a voice over? thankyou :)

November 30

could someone please tell me how to convert a powerpoint to a movie, with a voice over? thankyouOpen the powerpoint presentation, on the click on the 'file' button located at the top left of the menu bar, click on 'save as' at the bottom of the windo

View All Replies

How to convert oracle form fmb file to java swing file using Jdeveloper

November 30

how to convert oracle form fmb file to java swing file using Jdeveloper.Please explain with detailes steps if possible or please give a link where it is available thanks Message was edited by: user591884There is no automatic way to do this in JDevelo

View All Replies

How to convert from pt to mm

November 30

Dear all, Does anybody know how to convert value of pt to value of mm according to language and font? Thanks a lot! Best regards, Christo Edited by: Christo Tan on Dec 22, 2011 5:51 AM Edited by: Christo Tan on Dec 22, 2011 6:00 AMThe standard system

View All Replies

Tags:

  1. migo stock type
  2. will z10 pair with ive-w530
  3. macbook pro osx10.6.8 hdmi display on tv
  4. application nokia rm-243 6120c(b20.01)
  5. download intex cloud fx pdf opener
  6. hp m1319f no print cartridge error
  7. sap note 1113277
  8. BExGetData
  9. ni update service disable
  10. content
Copyrights 2017 Fcffair BigData Resource, All rights reserved