[svlug] LVM Logical Volumes viewing partitions, mounting, creating, sda moved to sdb. KUbuntu 10.4
Mark Weisler
mark at weisler-saratoga-ca.us
Sat May 15 17:19:11 PDT 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
giovanni_re wrote:
> I got no answer on the Ubuntu mail list about this. Maybe you know? :)
>
> =
> KU 10.4. Desktop with2 hdisks. 1.5TB has 9.04, was hda/sda. Now install a 2TB as sda, move old disk to sdb.
>
> Alternate install 10.4 on the 2TB sda. Grub finds the 9.04 install on sdb, & installs fine on sda.
>
> Both installs have a /home partition in their sda4 logical partition, probably sda5 on each drive when they were installed.
>
> 10.4 boots fine on the 2tb, but 9.4 refuses to boot off now sdb.
>
> Less important question: Suggestions for getting the 9.4 to boot when that drive has been moved from sda to sdb (data connector on the motherboard). It's probably a mount issue?
>
>
> == How does one see the logical partitions??
>
> fdisk -l, & parted -l, & gparted, I have used - a few days ago, so I don't recall the specifics right now.
>
> IIRC, on 9.04 as sda, gparted would see the LVs, & show some info about them.
>
> When I boot 10.4, IIRC gparted doesn't pull up any info about the LV's, even on the sda drive with the 10.4 os it booted from. :(
>
> IIRC, none of those programs show info about the LV's on sdb, which has the 9.4 install on it.
>
> So, is LVM properly supported in some partition creation/diagnostic sw??? ex: fdisk, parted, gparted? Is there some other program that will at least see, & perhaps show some info about those partitions?
>
> How about creating more LVs in the free space on the drives? What sw can do that from the running 10.4 system? (ie, I don't want to have to use the alternate installer disk to do partitioning, now that the os is installed. I'm hoping that is possible - hasn't LVM been out for quite a while? Why don't fdisk & parted support it properly yet? BTW, what orgs create & support the LVM sw? GNU? Linux Kernel?? Other?
>
> ==
> Most Important: How can I get 10.4 to be able to see & mount the 9.4 /home partition which is now on (probably) sdb5? What info will be needed by the mount command? UDEV #? What sw (parted, fdisk,???) will show the info necessary to use in the mount commnad??
Here's a little more information showing the use of fdisk to set some
parameters for a partition.
Note the '8e' hex specification for 'Linux LVM'. 'fd' is being used here
to set up RAID.
'83' is what we typically use for non-LVM Linux work.
[root at server1 ~]# fdisk /dev/sdb
Command (m for help): <- m
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)
Command (m for help): <- t
Partition number (1-4): <- 1
Hex code (type L to list codes): <- L
0 Empty 1e Hidden W95 FAT1 80 Old Minix be Solaris boot
1 FAT12 24 NEC DOS 81 Minix / old Lin bf Solaris
2 XENIX root 39 Plan 9 82 Linux swap / So c1
DRDOS/sec (FAT-
3 XENIX usr 3c PartitionMagic 83 Linux c4
DRDOS/sec (FAT-
4 FAT16 <32M 40 Venix 80286 84 OS/2 hidden C: c6
DRDOS/sec (FAT-
5 Extended 41 PPC PReP Boot 85 Linux extended c7 Syrinx
6 FAT16 42 SFS 86 NTFS volume set da Non-FS data
7 HPFS/NTFS 4d QNX4.x 87 NTFS volume set db CP/M /
CTOS / .
8 AIX 4e QNX4.x 2nd part 88 Linux plaintext de Dell Utility
9 AIX bootable 4f QNX4.x 3rd part 8e Linux LVM df BootIt
a OS/2 Boot Manag 50 OnTrack DM 93 Amoeba e1 DOS access
b W95 FAT32 51 OnTrack DM6 Aux 94 Amoeba BBT e3 DOS R/O
c W95 FAT32 (LBA) 52 CP/M 9f BSD/OS e4 SpeedStor
e W95 FAT16 (LBA) 53 OnTrack DM6 Aux a0 IBM Thinkpad hi eb BeOS fs
f W95 Ext'd (LBA) 54 OnTrackDM6 a5 FreeBSD ee EFI GPT
10 OPUS 55 EZ-Drive a6 OpenBSD ef EFI
(FAT-12/16/
11 Hidden FAT12 56 Golden Bow a7 NeXTSTEP f0
Linux/PA-RISC b
12 Compaq diagnost 5c Priam Edisk a8 Darwin UFS f1 SpeedStor
14 Hidden FAT16 <3 61 SpeedStor a9 NetBSD f4 SpeedStor
16 Hidden FAT16 63 GNU HURD or Sys ab Darwin boot f2 DOS
secondary
17 Hidden HPFS/NTF 64 Novell Netware b7 BSDI fs fd Linux
raid auto
18 AST SmartSleep 65 Novell Netware b8 BSDI swap fe LANstep
1b Hidden W95 FAT3 70 DiskSecure Mult bb Boot Wizard hid ff BBT
1c Hidden W95 FAT3 75 PC/IX
Hex code (type L to list codes): <- fd
Changed system type of partition 1 to fd (Linux raid autodetect)
Command (m for help): <- t
Partition number (1-4): <- 2
Hex code (type L to list codes): <- fd
Changed system type of partition 2 to fd (Linux raid autodetect)
Command (m for help): <- w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
[root at server1 ~]#
- --
Mark Weisler
PGP Key ID 68E462B6
PGP Key fingerprint 87D5 A77B FC47 3CC3 DFF0 586D 23FF F8B4 68E4 62B6
ʎɐqǝ uo pɹɐoqʎǝʞ ɐ ʎnq ı ǝɯıʇ ʇsɐן ǝɥʇ sı sıɥʇ
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.12 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkvvOf8ACgkQI//4tGjkYraxswCcDw8u+7gLeezSAZz3XNtsgLaG
6K0An1AqBavI3hQbYyCPAQ/NFVfZ0YRe
=0Mmw
-----END PGP SIGNATURE-----
More information about the svlug
mailing list