Find the answer to your Linux question:
Results 1 to 9 of 9
a little while ago, I decided that it would be better to move ubuntu into an extended partition (i forgot exactly why). anyway, i copied the partition, and rebooted. a ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2008
    Posts
    6

    wierd disk error


    a little while ago, I decided that it would be better to move ubuntu into an extended partition (i forgot exactly why). anyway, i copied the partition, and rebooted. a wierd error occurred on gparted where it could not find the mount point of the new copied partition. i eventually forgot about it.

    today, now having no idea why i did that, i deleted the copied parition. immediately, gparted gave me an error said the kernel could not read the partition table or something along the lines of that, and that i should reboot. i rebooted, and got all these errors saying the root filesystem was corrupted and i had to drop to a root shell, but my root password would not work!

    it took me a second to figure out this error occurred when ubuntu was checking the filesystem (obviously), so being on a laptop, i just unplugged the laptop so it would skip the check. ubuntu booted up normally, with one exception: it was as if my computer had gone back in time. openoffice 3 was no longer installed, and there were tons of updates that i had taken care of a month ago.

    could anyone shed some light on how copying a partition could cause a confusion in mount points, and possibly storing my system on a separate partition, even though all records show the original is mounted?

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Hi and Welcome !

    We have to check Partition Table of your Harddisk and contents of a few conf files.
    Open Terminal and execute this
    Code:
    sudo fdisk -l
    df -h
    Post output here. Post the contents of /boot/grub/menu.lst and /etc/fstab files here.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Oct 2008
    Posts
    6
    Well, here is my list of device files:
    Device Boot Start End Blocks Id System
    /dev/sda1 1 10597 85120371 7 HPFS/NTFS
    /dev/sda2 * 18397 19457 8522482+ 17 Hidden HPFS/NTFS
    /dev/sda3 10598 16754 49456102+ 5 Extended
    /dev/sda4 16755 18396 13189365 83 Linux
    /dev/sda5 10598 11119 4192933+ 82 Linux swap / Solaris
    /dev/sda6 15036 16097 8530483+ 7 HPFS/NTFS
    /dev/sda7 16098 16754 5277321 7 HPFS/NTFS
    /dev/sda8 11120 15035 31455238+ 83 Linux

    And here is the list of filesystems:
    Filesystem Size Used Avail Use% Mounted on
    /dev/sda4 13G 9.7G 2.2G 83% /
    varrun 501M 152K 501M 1% /var/run
    varlock 501M 0 501M 0% /var/lock
    udev 501M 60K 501M 1% /dev
    devshm 501M 44K 501M 1% /dev/shm
    lrm 501M 39M 462M 8% /lib/modules/2.6.24-21-generic/volatile
    /dev/sda1 82G 58G 24G 71% /media/sda1
    gvfs-fuse-daemon 13G 9.7G 2.2G 83% /home/parent5446/.gvfs

  4. #4
    Just Joined!
    Join Date
    Oct 2008
    Posts
    6
    Oh, almost forgot, here's grub:

    # menu.lst - See: grub(, info grub, update-grub(
    # grub-install(, grub-floppy(,
    # grub-md5-crypt, /usr/share/doc/grub
    # and /usr/share/doc/grub-doc/.

    title Linux Operating Systems:
    root

    title Ubuntu
    password --md5 $1$???????????????????????
    root (hd0,3)
    kernel /boot/vmlinuz-2.6.24-21-generic root=UUID=6073cf9c-8c70-4a89-954f-dd212e227628 ro quiet splash
    initrd /boot/initrd.img-2.6.24-21-generic
    quiet

    title Ubuntu (Recovery Mode)
    password --md5 $1$???????????????????????
    root (hd0,3)
    kernel /boot/vmlinuz-2.6.24-21-generic root=UUID=6073cf9c-8c70-4a89-954f-dd212e227628 ro single
    initrd /boot/initrd.img-2.6.24-21-generic


    title Windows Operating Systems:
    root

    title Windows Vista
    root (hd0,0)
    savedefault
    makeactive
    chainloader +1



    title Windows Vista (Recovery Mode)
    root (hd0,1)
    savedefault
    makeactive
    chainloader +1


    And here's fstab

    # /etc/fstab: static file system information.
    #
    # <file system> <mount point> <type> <options> <dump> <pass>
    proc /proc proc defaults 0 0
    # /dev/sda4
    UUID=6073cf9c-8c70-4a89-954f-dd212e227628 / ext3 defaults,errors=remount-ro 0 1
    # /dev/sda1
    UUID=1A9913452A715227 /media/sda1 ntfs defaults,umask=007,gid=46 0 1
    # /dev/sda2
    UUID=2C88743C8874071C /media/sda2 ntfs defaults,umask=007,gid=46 0 1

    /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec 0 0
    Last edited by parent5446; 10-26-2008 at 01:57 PM. Reason: Removing large unnecessary comment blocks

  5. #5
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    You have two Linux Partitions. /dev/sda4 is root partition. What is in other ( /dev/sda8 ) ? Mount /dev/sda8 partition and post list of its root.
    Code:
    sudo mkdir /media/sda8
    sudo mount -t ext3 /dev/sda8 /media/sda8
    cd /media/sda8
    ls
    Post output here.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  6. #6
    Just Joined!
    Join Date
    Oct 2008
    Posts
    6
    sda4 is my main linux partition, and sda8 is the partition i copied linux to. right now, sda8 is an empty ext3 partition. i am just wondering how copying my linux partition while it is running could cause the kernel to have problems reading the partition table, and somehow confuse the mount points to where instead of storing my setting and everything on sda4, it stores it on the copy sda8

  7. #7
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Post the output of this
    Code:
    uname -a
    ls /boot
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  8. #8
    Just Joined!
    Join Date
    Oct 2008
    Posts
    6
    Linux Parent5446-Lapu 2.6.24-21-generic #1 SMP Mon Aug 25 17:32:09 UTC 2008 i686 GNU/Linux

    abi-2.6.22-14-generic
    config-2.6.24-17-generic
    initrd.img-2.6.22-14-generic.bak memtest86+.bin
    vmlinuz-2.6.22-14-generic
    abi-2.6.24-17-generic
    config-2.6.24-20-generic
    initrd.img-2.6.24-17-generic
    sarge.bmp
    vmlinuz-2.6.24-17-generic
    abi-2.6.24-20-generic
    config-2.6.24-21-generic
    initrd.img-2.6.24-17-generic.bak
    sid.bmp
    vmlinuz-2.6.24-20-generic
    abi-2.6.24-21-generic
    debian.bmp
    initrd.img-2.6.24-20-generic
    System.map-2.6.22-14-generic
    vmlinuz-2.6.24-21-generic
    boot.0810
    debianlilo.bmp
    initrd.img-2.6.24-20-generic.bak
    System.map-2.6.24-17-generic
    coffee.bmp
    grub
    initrd.img-2.6.24-21-generic
    System.map-2.6.24-20-generic
    config-2.6.22-14-generic
    initrd.img-2.6.22-14-generic
    initrd.img-2.6.24-21-generic.bak
    System.map-2.6.24-21-generic

  9. #9
    Just Joined!
    Join Date
    Oct 2008
    Posts
    6
    I think I answered the question myself. This probably occurred because I did not change fstab in the copied partition.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •