Announcement

Collapse
No announcement yet.

Trouble with recognizing hard disk

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Trouble with recognizing hard disk

    I'm using linux for exactly on week now so i recon i am still a newbie to it.
    Today i tried to get an extra hard disk to work, since i didn't know how to put files to that hard disk i went to Disk & Filesystems - System settings
    Somehow i get the distinct impression that i screwed up somewhere since when i tried to reboot i got a /etc/.... error and he wouldn't reboot at all.
    I put in the live cd and managed to get the extra 80 gig harddisk to get enabled and mounted to /media.

    My problem is that the disk with kubuntu 7.10 installed on it will not be enabled to be mounted on the / again.
    The error i encounter is the following:

    An error occurred while enabling /.
    The system reported: mount: wrong fs type, bad option, bad superblock on unionfs,
    missing codepage or other error
    In some cases useful info is found in syslog - try
    dmesg | tail or so

    Details: Return code from mount was 32.
    "mount failure"

    I opened the terminal and tried that dmesg | tail and got:

    ubuntu@ubuntu:~$ dmesg | tail
    [ 1364.366410] unionfs: dirs option required
    [ 1364.366430] unionfs_read_super: error while parsing options (err = -22)
    [ 1582.224585] unionfs: dirs option required
    [ 1582.224605] unionfs_read_super: error while parsing options (err = -22)
    [ 1599.532575] unionfs: dirs option required
    [ 1599.532593] unionfs_read_super: error while parsing options (err = -22)
    [ 1670.613571] unionfs: dirs option required
    [ 1670.613592] unionfs_read_super: error while parsing options (err = -22)
    [ 1884.638577] unionfs: dirs option required
    [ 1884.638595] unionfs_read_super: error while parsing options (err = -22)

    How can i enable the main 20gig disk ( /dev/sda1 ) to / ?

    Thanks for reading this, and hoping for an answer,

    Ben.

    #2
    Re: Trouble with recognizing hard disk

    that is the first google result I got:

    http://ubuntuforums.org/archive/index.php/t-297644.html

    How far does the boot go, where exactly does it fail?
    Once your problem is solved please mark the topic of the first post as SOLVED so others know and can benefit from your experience! / FAQ

    Comment


      #3
      Re: Trouble with recognizing hard disk

      Thank you for the link, I guess i used the wrong searchterms.


      During the kubuntu loading screen i get the following error:
      etc/init.d/rc: 2: SH: Permission denied
      etc/init.d/rc: 2: Usplash_write: permission denied
      etc/init.d/rc: 2: Sed: permission denied

      Init: unable to excecite "/bin/sh" for RC-default: permission denied
      Init: rc-default main proces (3817) terminated with status 255

      After the reboot i noticed that my adjustments in disk & filesystems - system settings did not get rememberd, is that because of the live disk rebooting?

      Comment


        #4
        Re: Trouble with recognizing hard disk

        Yep, sounds like you screwed up changing rights/boot flags somewhere along the line. But are you saying that you can still boot into KDE? Is everything behaving properly?

        Usplash is only the programme giving you the pretty screen during boot up so I wouldn't worry on that front.

        Out of interest, could you please let us have a copy of your /etc/fstab and post the output of
        Code:
        sudo fdisk -l
        Also do
        Code:
        cd /
        followed by
        Code:
        ls -la
        and post the result...
        Once your problem is solved please mark the topic of the first post as SOLVED so others know and can benefit from your experience! / FAQ

        Comment


          #5
          Re: Trouble with recognizing hard disk

          Well i can boot with the live cd, i can't boot without it.
          It seems that it won't recognize the kubuntu i installed on the first 20gig disk.

          on the commands:
          sudo fdisk -l:

          Disk /dev/sda: 20.0 GB, 20020396032 bytes
          255 heads, 63 sectors/track, 2434 cylinders
          Units = cylinders of 16065 * 512 = 8225280 bytes

          Device Boot Start End Blocks Id System
          /dev/sda1 * 1 2327 18691596 83 Linux
          /dev/sda2 2328 2434 859477+ 5 Extended
          /dev/sda5 2328 2434 859446 82 Linux swap / Solaris

          Disk /dev/sdb: 80.0 GB, 80026361856 bytes
          255 heads, 63 sectors/track, 9729 cylinders
          Units = cylinders of 16065 * 512 = 8225280 bytes

          Device Boot Start End Blocks Id System
          /dev/sdb1 * 1 9729 78148161 c W95 FAT32 (LBA)




          ubuntu@ubuntu:/$ ls -la
          total 4
          drwxrwxrwt 30 root root 240 2008-01-14 20:26 .
          drwxrwxrwt 30 root root 240 2008-01-14 20:26 ..
          drwxr-xr-x 2 root root 1601 2007-04-17 05:29 bin
          drwxr-xr-x 2 root root 186 2007-04-17 05:31 boot
          dr-xr-xr-x 13 root root 4096 2007-04-17 05:55 cdrom
          drwxr-xr-x 13 root root 14000 2008-01-14 20:26 dev
          drwxr-xr-x 112 root root 1940 2008-01-14 20:26 etc
          drwxr-xr-x 3 root root 60 2008-01-14 20:25 home
          drwxr-xr-x 2 root root 3 2007-04-17 05:19 initrd
          lrwxrwxrwx 1 root root 33 2007-04-17 05:25 initrd.img -> boot/initrd.img-2.6.20-15-generic
          drwxr-xr-x 19 root root 60 2008-01-14 20:25 lib
          drwxr-xr-x 2 root root 60 2008-01-14 20:26 media
          drwxr-xr-x 2 root root 3 2007-04-12 09:11 mnt
          drwxr-xr-x 2 root root 3 2007-04-17 05:19 opt
          dr-xr-xr-x 128 root root 0 2008-01-14 20:24 proc
          drwxr-xr-x 20 root root 247 2007-04-17 05:25 rofs
          drwxr-xr-x 2 root root 37 2007-04-17 05:19 root
          drwxr-xr-x 2 root root 60 2008-01-14 20:25 sbin
          drwxr-xr-x 2 root root 3 2007-04-17 05:19 srv
          drwxr-xr-x 11 root root 0 2008-01-14 20:24 sys
          drwxrwxrwt 7 root root 160 2008-01-14 20:28 tmp
          drwxr-xr-x 12 root root 60 2008-01-14 20:25 usr
          drwxr-xr-x 20 root root 180 2008-01-14 20:26 var
          lrwxrwxrwx 1 root root 30 2007-04-17 05:25 vmlinuz -> boot/vmlinuz-2.6.20-15-generic

          Also i thought it would be a good idea to manually through the hard ware to give the 20gig linux disk master and that 80gig disk slave, so i did that, but it really did not make any difference.

          Comment


            #6
            Re: Trouble with recognizing hard disk

            Thanks. Could you also please post the contents of your /etc/fstab? Failing that I'd go for a reinstall with both disks installed. The 80GB is a fat system anyway and you'll probably want to ditch that as soon as you can. But first a copy of that fstab would be useful
            Once your problem is solved please mark the topic of the first post as SOLVED so others know and can benefit from your experience! / FAQ

            Comment


              #7
              Re: Trouble with recognizing hard disk

              The 80gb a fat system? what exactly do you mean?
              And how can i post the contents of my /etc/fstab?
              Are you looking for the text file fstab in /etc ?
              If so, then:
              unionfs / unionfs rw 0 0
              tmpfs /tmp tmpfs nosuid,nodev 0 0
              /dev/sda5 swap swap defaults 0 0

              btw, if i would reinstal kubuntu, would i lose the data on the disk?
              or is it possible to instal kubuntu on the 80gb disk and get from there to the 20gb disk where my documents are?

              Oh and thanks again for your help thusfar, it's really appreciated.

              Comment


                #8
                Re: Trouble with recognizing hard disk

                The 80gb a fat system? what exactly do you mean?
                I meant a FAT file system
                Code:
                /dev/sdb1  *      1    9729  78148161  c W95 FAT32 (LBA)
                This is the way windblows formats its disks - it is liable to defragmentation among other things. Depending on block size it is also fairly wasteful...

                Your idea of doing a clean install on sdb (see above, the 80GB disk) is a good one. One tip - when the installer comes to partitioning don't just click "use the whole disk" but go for assisted partitioning. You will need a swap partition of 2GB or thereabouts, a / (root) partition of 10GB or thereabouts and the rest you can for now make your /home partition.

                As to your fstab - I mean the one on sda1 (quick guide to sd thingamajig... the third letter is the 'number' of your disk, a=1, b=2, etc. The number after that designates the partition number on that disk - so sda1 is the first disk and the first partition). To post its contents boot your live CD, go into konqueror, system, disk devices (or whatever it is called) and find sda1 (what is it, 18GBs?). Click on it, select the "etc" folder and then click on the "fstab" file - bingo.
                Once your problem is solved please mark the topic of the first post as SOLVED so others know and can benefit from your experience! / FAQ

                Comment


                  #9
                  Re: Trouble with recognizing hard disk

                  Ah thanks, i will try to clean install 7.04 on sdb1 then. Will it fight with 7.10 that ( presumably ) still is installed on sda1?

                  Btw on fstab, i only find when opening konqueror: the home folder, storage media, network folders, thrash, applications and about kubuntu.
                  Not system. sda1 is 17.8gb.

                  Comment


                    #10
                    Re: Trouble with recognizing hard disk

                    storage media - that is the one! (I'm on Debian Etch and don't have it). Click on there, select etc and then fstab

                    and no, your install on sdb will not interfere with what is on sda.
                    Once your problem is solved please mark the topic of the first post as SOLVED so others know and can benefit from your experience! / FAQ

                    Comment


                      #11
                      Re: Trouble with recognizing hard disk

                      Well, part of the problem is that i can't seem to see a single file/folder/item in storage media.
                      I guess i will have to mount the disk to find something on that, but that's pretty much a thing that just doesn't work

                      Comment


                        #12
                        Re: Trouble with recognizing hard disk

                        storage media empty I am afraid I am too tired to give any more coherent (or useful) advice. Wait 'til tomorrow, plenty of sensible folk here...
                        Once your problem is solved please mark the topic of the first post as SOLVED so others know and can benefit from your experience! / FAQ

                        Comment


                          #13
                          Re: Trouble with recognizing hard disk

                          Hehe, yeah i can imagine.
                          Thanks for your help!

                          Comment


                            #14
                            Re: Trouble with recognizing hard disk

                            Can anybody verify that if i reinstall kubuntu on the larger hard disk that my problems will be solved regarding the unmountebleness of my hard disks?

                            Comment


                              #15
                              Re: Trouble with recognizing hard disk

                              Morning again,

                              first question to ask is, does your BIOS see both hard disks? Depending on the BIOS version you may have to enter the BIOS itself to check this.
                              Once your problem is solved please mark the topic of the first post as SOLVED so others know and can benefit from your experience! / FAQ

                              Comment

                              Working...
                              X