No auto-mount

Don´t be shy, Linux is fun! =)
Post Reply
User avatar
ph0bYx
Staff Member
Staff Member
Posts: 2039
Joined: 22 Sep 2008, 16:00
15
Contact:

No auto-mount

Post by ph0bYx »

Hello everyone!

I have a dual boot Windows XP and Ubuntu 10.04. Recently I reinstalled Windows and I had to set up GRUB again, but this time there was a problem, I was constantly getting Error 15. I set up GRUB with these commands:

Code: Select all

sudo i
mount /dev/sda? /mnt
partition grub-install --root-directory=/mnt/ /dev/sda
And it worked. But now I can't see any of the partitions in the in the Places drop-down menu, where you just click on it and it mounts. I sort of fixed that by adding two entries in /etc/fstab for my Windows partitions and the one where I keep my media.
But there are still a few more problems:
- can't unmount the partitions without root privileges even though I chown to my account and chmod to 777
- when I plug in my external HDD I have to manually mount it
- it doesn't show my DVD drive at all (and it used to)
- and finally I updated the kernel a few times already but they don't show in GRUB, just the version that were there when I set it up again using that code up there

Any thoughts how I can fix these?

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Re: No auto-mount

Post by bad_brain »

ok, first post your fstab content. then have a look at /boot/grub/menu.list, maybe the new kernel entries are there but just commented out... :-k
Image

User avatar
ph0bYx
Staff Member
Staff Member
Posts: 2039
Joined: 22 Sep 2008, 16:00
15
Contact:

Re: No auto-mount

Post by ph0bYx »

Here you go:

fstab:

Code: Select all

# /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=3665a3c6-a647-40ff-9116-391ec24a3cff /               ext4    errors=remount-ro 0       1
# Windows /dev/sda1
UUID=88E00822E00818D8 /media/windows               ntfs    errors=remount-ro 0       1
# Hub /dev/sda3
UUID=402E24FA2E24EB1C /media/hub               ntfs     errors=remount-ro 0       1
# External /dev/sda3
#UUID=0060DE8060DE7C3A /media/external               ntfs    errors=remount-ro 0       1
# swap was on /dev/sda7 during installation
UUID=3c52c532-7d59-4e2c-944f-370b09a8eefe none            swap    sw              0       0
And here's GRUB's menu.lst:

Code: Select all

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

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default		0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout		3

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title		Windows 95/98/NT/2000
# root		(hd0,0)
# makeactive
# chainloader	+1
#
# title		Linux
# root		(hd0,1)
# kernel	/vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=3665a3c6-a647-40ff-9116-391ec24a3cff ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=3665a3c6-a647-40ff-9116-391ec24a3cff

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## should update-grub lock old automagic boot options
## e.g. lockold=false
##      lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
##      indomU=true
##      indomU=false
# indomU=detect

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title		Ubuntu 10.04.1 LTS, kernel 2.6.32-27-generic
uuid		3665a3c6-a647-40ff-9116-391ec24a3cff
kernel		/boot/vmlinuz-2.6.32-27-generic root=UUID=3665a3c6-a647-40ff-9116-391ec24a3cff ro quiet splash 
initrd		/boot/initrd.img-2.6.32-27-generic

title		Ubuntu 10.04.1 LTS, kernel 2.6.32-27-generic (recovery mode)
uuid		3665a3c6-a647-40ff-9116-391ec24a3cff
kernel		/boot/vmlinuz-2.6.32-27-generic root=UUID=3665a3c6-a647-40ff-9116-391ec24a3cff ro  single
initrd		/boot/initrd.img-2.6.32-27-generic

title		Ubuntu 10.04.1 LTS, kernel 2.6.32-26-generic
uuid		3665a3c6-a647-40ff-9116-391ec24a3cff
kernel		/boot/vmlinuz-2.6.32-26-generic root=UUID=3665a3c6-a647-40ff-9116-391ec24a3cff ro quiet splash 
initrd		/boot/initrd.img-2.6.32-26-generic

title		Ubuntu 10.04.1 LTS, kernel 2.6.32-26-generic (recovery mode)
uuid		3665a3c6-a647-40ff-9116-391ec24a3cff
kernel		/boot/vmlinuz-2.6.32-26-generic root=UUID=3665a3c6-a647-40ff-9116-391ec24a3cff ro  single
initrd		/boot/initrd.img-2.6.32-26-generic

title		Ubuntu 10.04.1 LTS, kernel 2.6.32-21-generic
uuid		3665a3c6-a647-40ff-9116-391ec24a3cff
kernel		/boot/vmlinuz-2.6.32-21-generic root=UUID=3665a3c6-a647-40ff-9116-391ec24a3cff ro quiet splash 
initrd		/boot/initrd.img-2.6.32-21-generic

title		Ubuntu 10.04.1 LTS, kernel 2.6.32-21-generic (recovery mode)
uuid		3665a3c6-a647-40ff-9116-391ec24a3cff
kernel		/boot/vmlinuz-2.6.32-21-generic root=UUID=3665a3c6-a647-40ff-9116-391ec24a3cff ro  single
initrd		/boot/initrd.img-2.6.32-21-generic

title		Chainload into GRUB 2
root		3665a3c6-a647-40ff-9116-391ec24a3cff
kernel		/boot/grub/core.img

title		Ubuntu 10.04.1 LTS, memtest86+
uuid		3665a3c6-a647-40ff-9116-391ec24a3cff
kernel		/boot/memtest86+.bin

### END DEBIAN AUTOMAGIC KERNELS LIST

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Re: No auto-mount

Post by bad_brain »

ok, check if the cdrom kernel modules are loaded at all and then list the drives so we can see which one is the cdrom and add it to fstab then. post the output of:

Code: Select all

sudo modprobe cdrom
ls /dev/hd*;ls /dev/sd*
and hmmm.....the different kernel versions seem to be all in the menu.list file of GRUB...what is the latest kernel you have installed, check with uname -a if it's the one which is loaded... :-k
Image

User avatar
ph0bYx
Staff Member
Staff Member
Posts: 2039
Joined: 22 Sep 2008, 16:00
15
Contact:

Re: No auto-mount

Post by ph0bYx »

OK, a little update. When I leave my external HDD plugged in while I start the computer, Ubuntu mounts it and basically everything works they way it should:
Image

Notice the labels? Like '160 GB Hard Disc: Hub'. When I don't plug in the labels are simple 'hub' and 'windows'. And there isn't a CD/DVD drive.

And here's the output of those:

Code: Select all

vedran@desktop:~$ sudo modprobe cdrom
[sudo] password for vedran: 
vedran@desktop:~$ ls /dev/hd*;ls /dev/sd*
ls: cannot access /dev/hd*: No such file or directory
/dev/sda   /dev/sda2  /dev/sda5  /dev/sdb
/dev/sda1  /dev/sda3  /dev/sda6  /dev/sdb1
vedran@desktop:~$ uname -a
Linux desktop 2.6.32-26-generic #48-Ubuntu SMP Wed Nov 24 09:00:03 UTC 2010 i686 GNU/Linux
vedran@desktop:~$ 

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Re: No auto-mount

Post by bad_brain »

hm...that's odd.
best boot 2 times (with and without the external HDD plugged in), then post the corresponding syslog entries.
looking into BIOS to check if boot from USB is enabled (or listed in the boot devices) might also be useful (if it is disable it and see if it has an effect).

to boot into the latest kernel I would simply comment all other boot entries out (except for the first 2), but of course it can happen it's not booting anymore if something is wrong with GRUB already in general.
so first comment out "hiddenmenu" in menu.list, the boot menu where you pick what kernel to boot should appear then. if it does, and all the kernels are listed it should be safe to comment out the old kernel entries... :-k
Image

User avatar
ph0bYx
Staff Member
Staff Member
Posts: 2039
Joined: 22 Sep 2008, 16:00
15
Contact:

Re: No auto-mount

Post by ph0bYx »

OK, I've commented out the hiddenmenu and it still displays the same kernels:

Image

Booting for a removable device is listed as the 3rd option in BIOS.

Here's the syslog without the external HDD plugged in:
http://code.suck-o.com/42340" onclick="window.open(this.href);return false;

And here's with:
http://code.suck-o.com/42341" onclick="window.open(this.href);return false;


It's got to be something faulty with GRUB since the problems started when I tried to set it up again.
Maybe I should do a reinstall? But I still think it would be an overkill.

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Re: No auto-mount

Post by bad_brain »

hmmm....this one looks a little fishy:

Code: Select all

ACPI Warning: Incorrect checksum in table [OEMB] - F1, should be EC
but it's not sure that this is causing teh problem with the CD drive.
check this:
System->Preferences->System Settings->Removable devices, make sure automatic mounting for removable devices is checked.

and before you reinstall the whole OS try reinstalling only GRUB:

Code: Select all

sudo grub
###if you don't know already check on which partition the boot directory is located###
find /boot/grub/stage1
###now pick the partition (grub shell), pleace the hd0,x with yours of course###
root (hd0,x)
###now install grub on the hdd (grub shell)###
setup (hd0)
###when done###
quit
then reboot and pray... :lol:
of course you should make backups of all important data first... :wink:
Image

User avatar
ph0bYx
Staff Member
Staff Member
Posts: 2039
Joined: 22 Sep 2008, 16:00
15
Contact:

Re: No auto-mount

Post by ph0bYx »

I did try to re-setup GRUB in that way but when I do 'find /boot/grub/stage1' I get Error 15: File not found...

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Re: No auto-mount

Post by bad_brain »

hm, cd manually into /boot/grub and see if the stage1 file is there... :-k

do you know what hdd/partition the linux system is on? should be first hdd (hd0), if you know what partition it is (1st, 2nd or 3rd) you can go ahead with the next command, even if the file is not there (which would be very surprising).

P.S. keep in mind that in Linux it starts with zero, so the first hdd is hd0, 1st partition on the first hdd is hd0,0 then.
Image

Post Reply