On 03/24/12 23:58, Stan Hoeppner wrote:
On 3/25/2012 12:46 AM, Marc Shapiro wrote:
I have an old 40GB disk and a recently purchased 1TB disk. The new disk
has been partitioned into a 2GB swap partition, two 500MB partitions
that are currently empty and the remainder is an LVM2 PV which I have
added to my VG, so I now have plenty of space. So far, so good.
My problem is that I am still booting off of the 40GB disk and my /
partition has pretty much run out of space (it is about 280MB). I want
to migrate everything from there into one of the 500MB partitions on the
new drive and boot from there. What is the best way to do this? Any
suggestions?
Need more details. Output of fdisk -l for both drives, lilo/grub conf
files, and /etc/fstab would be helpful, as well as the LVM config.
Sorry, I just realized this morning that I had not mentioned that I am
using lilo, not GRUB. (NOTE: All three lvm partitions are in a single
volume group, so that is all taken care of. All that I need to migrate
is the / partition so that I can get some extra space for it. I may
move the swap on the new drive into the lvm. No reason not to really,
is there? If I do that, however, it can wait until after I am able to
boot from the new disk.
/boot/lilo.conf:
boot=/dev/disk/by-id/ata-WDC_WD400EB-00CPF0_WD-WCAAT1261081
large-memory
compact
lba32
vga=normal
prompt
timeout=100
default=Linux
image=/vmlinuz
root="UUID=5e0d4da4-aba3-4965-8fb4-788501b0fe69"
initrd=/initrd.img
label=Linux
read-only
image=/vmlinuz.old
root="UUID=5e0d4da4-aba3-4965-8fb4-788501b0fe69"
initrd=/initrd.img.old
label="Linux_Old"
read-only
image=/boot/memtest86+.bin
label = memtest86+
#other=/dev/hdc1
# label=Win98SE
# map-drive=0x80
# to=0x81
# map-drive=0x81
# to=0x80
As for the rest:
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump>
<pass>
UUID=5e0d4da4-aba3-4965-8fb4-788501b0fe69 / ext3
errors=remount-ro 0 1
UUID=babd50db-38b8-4b64-940a-6832af5bd0a9 none swap
sw 00
proc /proc proc defaults
0 0
none /proc/bus/usb usbfs defaults
0 0
/dev/mapper/vg1-tmp /tmp ext3 defaults
0 2
/dev/mapper/vg1-var2 /var ext3 defaults
0 2
/dev/mapper/vg1-usr /usr ext3 defaults
0 2
/dev/mapper/vg1-photos /usr/local/photos ext3 defaults
0 2
/dev/mapper/vg1-home /home ext3 defaults
0 2
/dev/mapper/vg1-vDisks /home/testuser/VirtualBoxDisks ext3
defaults0 2
#
# Removeable Media
#
#/dev/lasonic /media/mp3r vfat defaults,user,noauto
0 0
/dev/fd0 /media/floppy auto user,noauto
0 0
/dev/cdrom5 /media/cdrom iso9660 ro,user,noauto
0 0
#/dev/sdb1 /media/pen vfat user,umask=0000,noauto
0 0
#/dev/sdb1 /media/camera vfat user,umask=0000,noauto
0 0
UUID=A8B0-984A /media/mp3a vfat defaults,user,noauto
0 0
LABEL=PHILIPS /media/mp3r vfat defaults,user,noauto
0 0
UUID=DA74-E37F /media/sandisk vfat defaults,user,noauto
0 0
UUID=A8B0-984A /media/eclipse vfat defaults,user,noauto
0 0
UUID=261A-40DE /media/kingston vfat defaults,user,noauto
0 0
UUID=0C50-B006 /media/mp3r2 vfat defaults,user,noauto
0 0
UUID=6A3D-C6A2 /media/pen/anna vfat defaults,user,noauto
0 0
obexfs#-b74:A7:22:01:5D:ED /media/phone fuse defaults,user,noauto
0 0
Old drive:
Disk /dev/sda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 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: 0xa51aa51a
Device Boot Start End Blocks Id System
/dev/sda1 * 1 36 289138+ 83 Linux
/dev/sda2 37 72 289170 83 Linux
/dev/sda3 73 2323 18081157+ 8e Linux LVM
/dev/sda4 2324 4865 20418615 8e Linux LVM
New Drive:
Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
222 heads, 30 sectors/track, 293322 cylinders
Units = cylinders of 6660 * 512 = 3409920 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x20677b30
Device Boot Start End Blocks Id System
/dev/sdc1 1 631 2101215 82 Linux swap / Solaris
/dev/sdc2 632 781 499500 83 Linux
/dev/sdc3 782 931 499500 83 Linux
/dev/sdc4 932 293322 973662030 8e Linux LVM
--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4f6f525e.7090...@gmail.com