Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm trying to move my Ubuntu system from a 320GB Disk to a Raid1 Volume. Based on the artikel: How do I move my LVM 250 GB root partition to a new 120GB hard disk?

What I have done so far:

  • Physically removed the system disk
  • Attached 2 500GB HDs
  • created a RAID 1 Volume
  • started a ubuntu installation (13.04 x86) to get the partitions to the raid disk
  • aborted the ubuntu installation
  • removed the new vg "ubuntu-vg" from the raid 1 "disks"
  • removed missing vg (vgreduce --removemissing)
  • extended the new raid 1 volume to the old vg "ubuntu"
  • moved the volume group to the raid 1 volume
  • split the volume group of the old system disk

Now I'm trying to make my raid system bootable:

sudo mount /dev/mapper/ubuntu-root /mnt
sudo chroot /mnt

--> Error, because of the wrong ubuntu version on the usb boot stick

--> Created a new usb boot stick with ubuntu 13.04 amd64 and tried again

??? CAN ANYBODY GIVE ME SOME HINTS HOW TO MAKE MY SYSTEM BOOTABLE AGAIN AND FIX THE FOLLOWING ERRORS ???

update-grub

--> /usr/sbin/grub-probe: Fehler: Gerät für / konnte nicht gefunden werden (ist /dev eingehängt?). --> Device / can't be found (is /dev mounted?)

vi /etc/fstab

--> "/etc/fstab" E212: Can't open file for writing

I've also tried to modify the /etc/fstab before chroot but the error is the same

PS: SOME DETAILS OF MY SYSTEM

sudo mount

/dev/mapper/ubuntu-root on /mnt type ext4 (rw)

sudo blkid

/dev/loop0: TYPE="squashfs" 
/dev/sda: TYPE="isw_raid_member" 
/dev/sdb1: UUID="cb0e1a1f-aeeb-4c47-85aa-f010944bfa43" TYPE="ext2" 
/dev/sdb5: UUID="VUe9Vg-8cd5-iU7L-zuz7-PiRs-UapW-AsgBdo" TYPE="LVM2_member" 
/dev/sdc5: UUID="b1ScbV-4nuS-4pIs-Uqyy-lv4l-qqnr-2iUbaW" TYPE="LVM2_member" 
/dev/sdd1: LABEL="UBUNTU 1304" UUID="4C89-5323" TYPE="vfat" 
/dev/mapper/ubuntu-root: UUID="dfc16cd8-c11d-47ea-90f7-a135e44fefeb" TYPE="ext4" 
/dev/mapper/ubuntu-swap_1: UUID="1964e003-21a5-4bc1-8cc8-6add974bda44" TYPE="swap" 

cat /mnt/etc/fstab

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
/dev/mapper/ubuntu-root /               ext4    errors=remount-ro 0       1
# /boot was on /dev/sda1 during installation
UUID=cb0e1a1f-aeeb-4c47-85aa-f010944bfa43 /boot           ext2    defaults        0       2
#UUID=dfc16cd8-c11d-47ea-90f7-a135e44fefeB /boot           ext2    defaults        0       2
/dev/mapper/ubuntu-swap_1 none            swap    sw              0       0

sudo pvdisplay

  --- Physical volume ---
  PV Name               /dev/sdc5
  VG Name               ubuntu
  PV Size               465,52 GiB / not usable 4,00 MiB
  Allocatable           yes 
  PE Size               4,00 MiB
  Total PE              119172
  Free PE               42927
  Allocated PE          76245
  PV UUID               b1ScbV-4nuS-4pIs-Uqyy-lv4l-qqnr-2iUbaW

  --- Physical volume ---
  PV Name               /dev/sdb5
  VG Name               ubuntu-vg
  PV Size               297,85 GiB / not usable 4,00 MiB
  Allocatable           yes 
  PE Size               4,00 MiB
  Total PE              76249
  Free PE               76249
  Allocated PE          0
  PV UUID               VUe9Vg-8cd5-iU7L-zuz7-PiRs-UapW-AsgBdo

sudo lvdisplay

  --- Logical volume ---
  LV Path                /dev/ubuntu/root
  LV Name                root
  VG Name                ubuntu
  LV UUID                7Yyb04-iH38-Vuox-k3qq-ewe5-GuzO-yEwN5Z
  LV Write Access        read/write
  LV Creation host, time ubuntu, 2013-03-14 21:11:04 +0000
  LV Status              available
  # open                 1
  LV Size                295,85 GiB
  Current LE             75738
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:0

  --- Logical volume ---
  LV Path                /dev/ubuntu/swap_1
  LV Name                swap_1
  VG Name                ubuntu
  LV UUID                hPJCne-fHgg-VC0y-ZLFK-QDdJ-WoY5-ourMDl
  LV Write Access        read/write
  LV Creation host, time ubuntu, 2013-03-14 21:11:06 +0000
  LV Status              available
  # open                 0
  LV Size                1,98 GiB
  Current LE             507
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:1

sudo fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x000d33ad

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048      499711      248832   83  Linux
/dev/sda2          501758   976766975   488132609    5  Extended
Partition 2 does not start on physical sector boundary.
/dev/sda5          501760   976766975   488132608   8e  Linux LVM

Disk /dev/sdb: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000c2777

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *        2048      499711      248832   83  Linux
/dev/sdb2          501758   625141759   312320001    5  Extended
/dev/sdb5          501760   625141759   312320000   8e  Linux LVM

Disk /dev/sdc: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000d33ad

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1            2048      499711      248832   83  Linux
/dev/sdc2          501758   976766975   488132609    5  Extended
/dev/sdc5          501760   976766975   488132608   8e  Linux LVM

Disk /dev/sdd: 1010 MB, 1010827264 bytes
255 heads, 63 sectors/track, 122 cylinders, total 1974272 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x050e7bae

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1   *        2048     1974271      986112    c  W95 FAT32 (LBA)

Disk /dev/mapper/ubuntu-root: 317.7 GB, 317668196352 bytes
255 heads, 63 sectors/track, 38620 cylinders, total 620445696 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/ubuntu-root doesn't contain a valid partition table

Disk /dev/mapper/ubuntu-swap_1: 2126 MB, 2126512128 bytes
255 heads, 63 sectors/track, 258 cylinders, total 4153344 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/ubuntu-swap_1 doesn't contain a valid partition table
share|improve this question
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.