Find the answer to your Linux question:
Results 1 to 7 of 7
Hi, my grub menu and settings recently vanished and i have managed to restore them and boot my pc again, i can get into windows fine. The problem starts when ...
  1. #1
    Just Joined!
    Join Date
    Jul 2007
    Location
    Birmingham, UK
    Posts
    4

    Boot problem with fsck

    Hi, my grub menu and settings recently vanished and i have managed to restore them and boot my pc again, i can get into windows fine. The problem starts when SUSE is booting, i get about halfway and then fsck wants to mount my disk and run its checks etc, but it says it is already mounted and to mount manually and the error is 0X8. I dont have clue what this is, its obvious the drive has to be already mounted because it is booting from it?.

    It is trying to mount /dev/sda2 which is where my linux is installed, it attempts a few times and then gives the same output that it cant mount, and then it asks me for my root password and im logged into the terminal.

    If anyone knows how to fix this problem with fsck and why it wont mount my drive now when it worked fine yesterday??. Please reply.

    Thanks Liam (i hate windows i want my linux back and working )

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

    post the contents of /etc/fstab file and output of fdisk -l command.
    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
    Jul 2007
    Location
    Birmingham, UK
    Posts
    4

    fdisk -l & FSTAB OutputsHi

    Hi, here is the output of fdisk -l (from what i can see everything is fine here), i had to write it down and now type it in i didnt now how to output it to a file or something.

    fdisk -l

    Disk /dev/hdc:20.0GB, 20003880960 bytes
    255 heads, 63 sectors/track, 2432 cylinders
    units = cylinders of 16065 *512 = 8225280

    Device Boot Boot Start End Blocks Id System
    /dev/hdc1 1 7 56196 de Dell Utility
    /dev/hdc2 * 8 2431 19470780 7 HPFS/NTFS

    Disk /dev/sda:164.4GB, 16469555520 bytes
    255 heads, 63 sectors/track, 20023 cylinders
    units = cylinders of 16065 * 512 = 8225280

    Device Boot Boot Start End Block Id System
    /dev/sda1 1 72 578308+ 82 Linux Swap
    /dev/sda2 73 2019 15639277+ 83 Linux Native
    /dev/sda3 2020 2657 5124735 83 Linux Native
    /dev/sda4 * 7556 19957 99619065 7 HPFS/NTFS

    SDA1 is my linux swap with 512MB space or 556MB its one of them. SDA2 is where SUSE is installed, SDA3 is blank for now bit thats where im going to install BackTrack 2 Final. And SDA4 is my STORAGE drive which is used in widnwos and linux, i have lots of files on there. The drive listing looks fine to be besides that it has a * in the boot colum on my NTFS Storage drive.

    Here is my fstab, i can see problems with this i will explain below.

    /etc/fstab

    # /etc/fstab: static file system information.
    #
    #<file system> <mount point> <type> <options> <dump> <pass>
    proc /proc proc defaults 0 0
    sysfs /sys sysfs noauto 0 0
    usbfs /proc/bus/usb usbfs noauto 0 0
    devpts /dev/pts devpts mode=0620,gid=5 0 0
    /dev/sda3 / ext3 acl,user_xattr 1 1
    /dev/hdc2 /windows/C ntfs defaults,nls=utf8,umask=0222,users 0 0
    /dev/sda2 /windows/D ntfs-3g defaults,users,locale=en_GB.UTF-8 0 0
    /dev/sda1 swap swap defaults 0 0
    debugfs /sys/kernel/debug debugfs noauto 0 0


    /dev/sda2 /data2 ext3 defaults 1 1
    /dev/sda2 /data3 ext3 defaults 1 1
    /dev/sda2 /data4 ext3 defaults 1 1
    /dev/sda2 /data5 ext3 defaults 1 1
    /dev/sda2 /data6 ext3 defaults 1 1
    /dev/sda2 /data7 ext3 defaults 1 1

    Some things seem fine but i think i know where the problem is, when booting it is mounting my linux system as ntfs /windows/D which should be SDA4 (STORAGE), so it is mounting it as a drive and hten trying to run fsck on it. Also SDA4 is missing from fstab, and i have lots of /dev/sda2 /data# which i have no clue what they are at the bottom.

    So if you could please reply with some advice, but i tihnk i have to change sda2 and put a 4 there and then do i have to add sda2 my SUSE partition to fstab or will that make it mount and not be able to run fsck on it at boot.

    Thanks

    Liam

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    /etc/fstab file is not correct. there are a lot of mistakes and wrong mount options.
    replace /etc/fstab file with this one
    Code:
    proc    /proc    proc    defaults    0    0
    sysfs    /sys    sysfs    noauto     0    0
    usbfs    /proc/bus/usb    usbfs    noauto   0    0
    devpts    /dev/pts    devpts    mode=0620,gid=5   0    0
    /dev/sda3    /       ext3    acl,user_xattr   1    1
    /dev/sda2   /data7     ext3    defaults    1    1
    /dev/sda1   swap       swap   defaults    0    0
    debugfs    /sys/kernel/debug    debugfs    noauto    0    0
    
    /dev/hdc2    /windows/C    ntfs    defaults,umask=0    0    0
    /dev/sda4    /windows/D    ntfs    defaults,umask=0    0    0
    what is in /dev/sda2 partition? did you create separate Home partition during installation?
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Just Joined!
    Join Date
    Jul 2007
    Location
    Birmingham, UK
    Posts
    4
    Hi, thanks for your reply, i will put that into my fstab and delete the current data, i will have to edit this in windows, then put it on my memory stick and copy it over to suse thourgh the console. I will also need to change hte mount option for sda4 so its rw and mounted with ntfs-3g.

    SDA2 is my linux partition which contains all system files (SDA2 is where linux is installed) also it is my /home. I do not have a seperrate /home partition.

    Should the fstab for sda2 be:

    /dev/sda2 / ext3 defaults 1 1

    as it is my linux partition, and what the hell is /data7.

    Thanks Liam

  6. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    according to fstab file, sda3 is / ( root ) partition. are you sure that sda2 is / partition?
    as it is my linux partition, and what the hell is /data7.
    you should know better because /data7 is not created automatically like other mount points. you must have created it.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  7. #7
    Just Joined!
    Join Date
    Jul 2007
    Location
    Birmingham, UK
    Posts
    4
    Yes i am totally sure sda2 is my root partition, sda3 is blank and it is only 5GB and i ma going to install backtrack 2 on there soon. My root partition is sda2 of 15GB.

    I didnt create /data7, when it wouldnt boot i inserted the my suse cd and went to setup then when it said new install or upgrade i clicked other and then repair. When i ran the check's it said there were mount point missing obviously the setup created this and put it in my fstab file.

    I will be able to sort it out now i understand the fstab more.

    Thanks

    Liam

Posting Permissions

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