2 roots, 1 time

Eric Lee Elliott linux at ericelliott.us
Wed Aug 18 13:55:15 UTC 2010


On Tue, Aug 17, 2010 at 12:46 AM, Goh Lip <g.lip at gmx.com> wrote:
 > > On 08/17/2010 07:15 AM, Eric Lee Elliott wrote:
 >> >> Partition Manager 1.01 shows 2 roots; /dev/sda4 &?/dev/sda6 are both
 >> >> listed as root &?both have same UUID.
 >> >> I have no clue where & how to go from here. I only found this in
 >> >> preparation to install Maverick in a partition. This system 
should have
 >> >> a sda1 boot partition, a sda4 20 GB Linux partition& ?a sda3 logical
 >> >> partition containing ?2 more sda5-6 20 GB Linux partitions& ?a 385 GB
 >> >> sda3 partition for my files.?Instead the logical partition has 3 
Linux
 >> >> partitions, not 2.
 >> >> I will search for a command to determine which is root but the 
duplicate
 >> >> UUID worries me.
 > >
 > > Please show output of
 > > sudo blkid
 > > sudo fdisk -l
 > > sudo parted -l
 > >
 > > Please confirm you are not using lvm or raid.

Straight single 500 GB drive.  No lvm or raid.

sudo blkid
/dev/sda1: LABEL="boot" UUID="a38a082d-fa4c-4853-a9b3-dc14f6d09765" 
TYPE="ext2"
/dev/sda2: LABEL="Mine" UUID="9f2e1e20-8560-4c72-ac65-b516e49efb80" 
TYPE="ext4"
/dev/sda4: LABEL="Kubu10" UUID="3f6e7b6c-0548-4b4b-8245-98561717fc8c" 
TYPE="ext4"
/dev/sda5: LABEL="Slack13" UUID="9ed1e17c-7676-42a2-9193-5b96161302a9" 
TYPE="ext4"
/dev/sda6: UUID="0f16f0e1-9f3b-4158-908a-8fd559da6e4f" TYPE="ext4"
/dev/sda7: LABEL="Fedora-13-i686-L" 
UUID="c2b5239c-0828-4d48-a984-3cdfc8ed860c" TYPE="ext4"
/dev/sda8: UUID="b2ee2c6c-68b1-48ae-9dc0-5d3d8f65d29e" TYPE="swap"
/dev/sdc: LABEL="M-9M-3M-:I#^[IGM-IM-^Ky" UUID="B53D-6AAC" TYPE="vfat"

sudo fdisk -l
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 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: 0x000f2ab4

    Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   83  Linux
/dev/sda2           10597       60801   403271662+  83  Linux
/dev/sda3            2564       10596    64525042    5  Extended
/dev/sda4              14        2563    20482875   83  Linux
/dev/sda5            2564        5113    20482843+  83  Linux
/dev/sda6            5114        7663    20482843+  83  Linux
/dev/sda7            7664       10213    20482843+  83  Linux
/dev/sda8           10214       10596     3076416   82  Linux swap / Solaris

Partition table entries are not in disk order

Disk /dev/sdc: 4040 MB, 4040724480 bytes
125 heads, 62 sectors/track, 1018 cylinders
Units = cylinders of 7750 * 512 = 3968000 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

sudo parted -l
Model: ATA ST9500420AS (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type      File system     Flags
  1      32.3kB  107MB   107MB   primary   ext2            boot
  4      107MB   21.1GB  21.0GB  primary   ext4
  3      21.1GB  87.2GB  66.1GB  extended
  5      21.1GB  42.1GB  21.0GB  logical   ext4
  6      42.1GB  63.0GB  21.0GB  logical   ext4
  7      63.0GB  84.0GB  21.0GB  logical   ext4
  8      84.0GB  87.2GB  3150MB  logical   linux-swap(v1)
  2      87.2GB  500GB   413GB   primary   ext4


TomH asked for more information:
 >>As well as the output of "cat /etc/fstab" and "mount -l" when booted
 >>from your current install.
 >>
 >>Did you clone your root partition as some point? I'm not familiar with
 >>Partition Manager and its root designation (unless it is a label that
 >>you have given your / partition) but if you have cloned your root
 >>partition changing the uuid of the clone is simple (with ext2/3/4, but
 >>I assume that it is with other filesystems too).

Reply:
Tom, I tried install of Maverick to sda6, it failed in several ways, 
made sda4 also unusable.  Now using new install of 10.04 in sda5 to 
answer you request.
cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' 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>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sda6 during installation
UUID=0f16f0e1-9f3b-4158-908a-8fd559da6e4f /               ext4 
errors=remount-ro 0       1
# swap was on /dev/sda8 during installation
UUID=b2ee2c6c-68b1-48ae-9dc0-5d3d8f65d29e none            swap    sw 
        0       0

mount -l
/dev/sda6 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
none on /var/lib/ureadahead/debugfs type debugfs (rw,relatime)
/dev/sda2 on /media/Mine type ext4 (rw,nosuid,nodev,uhelper=hal) [Mine]
/dev/sda4 on /media/Kubu10 type ext4 (rw,nosuid,nodev,uhelper=hal) [Kubu10]
/dev/sdc on /media/disk type vfat 
(rw,nosuid,nodev,uhelper=hal,uid=1000,utf8,shortname=mixed,flush) [���I#Gɋy]

If I had copied one partition to another, would that have duplicated 
UUID?  No clone command was used.  Would sudo cp -R /dev/sda4/* 
/dev/sda6, cause duplicate UUID & a system using both partitions as root 
@ 1 time?  Simple copy of sda4 to sda6 was done before install of kernel 
2.6.35.

Partition Manager listed both partitions as / & mounted as root.

Still hard to believe a simple copy of files & directories would include 
UUID & so confuse both system & user.  Thanks for your attention

-- 
God Bless You,

Eric Lee Elliott




More information about the kubuntu-users mailing list