Find the answer to your Linux question:
Results 1 to 6 of 6
I tried to install Ubuntu on a separate internal SATA hard drive and it appeared to overwrite the two internal raid drives. I'm afraid I lost my files now. Why ...
  1. #1
    Just Joined!
    Join Date
    May 2009
    Posts
    8

    Ubunut to wrote to the wrong drives AND gives an grub error 21

    I tried to install Ubuntu on a separate internal SATA hard drive and it appeared to overwrite the two internal raid drives. I'm afraid I lost my files now.

    Why did it do this? I know I selected the right drive while installing ubuntu.

    Also, when I tried to boot into ubuntu, it gave me an error message:

    Grub Error 21

    I'm in the middle of re-installing ubuntu to see if I can at least fix the grub error. But if that doesn't work, what should I do? Why did ubuntu write to drives that it should not have written to. I SWEAR I installed to the correct drive.

  2. #2
    Just Joined!
    Join Date
    May 2009
    Posts
    8
    UPDATE: Ubuntu finished re-installing at it works now. But when I go to Places/Computer my raid system is not even appearing.

  3. #3
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    2,941
    Grub will install to the MBR of the first hard drive by default ... Supergrub will probably fix the issue for you. You can see information for grub error messages here.

  4. #4
    Just Joined!
    Join Date
    May 2009
    Posts
    8
    What will supergrub do? I successfully was able to boot into linux now, so no more grub errors. But what about my raid setup? Ubuntu isn't showing them in my places/computer.

  5. #5
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    2,941
    Your last post indicating you had managed to install and boot occured at about the same time as I posted suggesting SuperGrub (within a minute of each other).

    Supergrub can be used to fix boot problems, restore Windows bootloader code to the MBR, install grub, boot OS directly etc. It's worth having a copy incase you have problems in future.

    I don't and have not used raid at all so probably won't be able to help a great deal ... but if you post the output of
    Code:
    sudo fdisk -l
    mount
    if it's obvious I may be able to spot the issue ... otherwise someone else with experience using raid maybe able to chip-in ...

  6. #6
    Just Joined!
    Join Date
    May 2009
    Posts
    8
    Code:
    henry@henry-desktop:~$ sudo fdisk -l
    
    Disk /dev/sda: 150.0 GB, 150039945216 bytes
    255 heads, 63 sectors/track, 18241 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x8e7b8e7b
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1       18581   149251851    7  HPFS/NTFS
    /dev/sda2           18582       36482   143789782+   7  HPFS/NTFS
    
    Disk /dev/sdb: 150.0 GB, 150039945216 bytes
    255 heads, 63 sectors/track, 18241 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x00b00002
    
    Disk /dev/sdb doesn't contain a valid partition table
    
    Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
    255 heads, 63 sectors/track, 121601 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x8e188e18
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdc1               1      121601   976760001    7  HPFS/NTFS
    
    Disk /dev/sdd: 1500.3 GB, 1500301910016 bytes
    255 heads, 63 sectors/track, 182401 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x00041890
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdd1   *           1      181178  1455312253+  83  Linux
    /dev/sdd2          181179      182401     9823747+   5  Extended
    /dev/sdd5          181179      182401     9823716   82  Linux swap / Solaris
    henry@henry-desktop:~$ mount
    /dev/sdd1 on / type ext3 (rw,relatime,errors=remount-ro)
    tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
    proc on /proc type proc (rw,noexec,nosuid,nodev)
    sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
    varrun on /var/run type tmpfs (rw,nosuid,mode=0755)
    varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
    udev on /dev type tmpfs (rw,mode=0755)
    tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
    devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
    fusectl on /sys/fs/fuse/connections type fusectl (rw)
    lrm on /lib/modules/2.6.28-11-generic/volatile type tmpfs (rw,mode=755)
    securityfs on /sys/kernel/security type securityfs (rw)
    binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
    gvfs-fuse-daemon on /home/henry/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=henry)
    /dev/sdc1 on /media/Hitachi type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)

Posting Permissions

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