LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-30-2005, 02:06 AM   #1
StianLangvann
LQ Newbie
 
Registered: Jun 2005
Posts: 10

Rep: Reputation: 0
ubuntu - Probelems with mount.


I was not sure about where to post this thread, since its related to hardware..
If anyone feel like moving it, please do so.
I've also searched for related problems, but i could't seem to find any.

Additional Information in case it might be relative:
It is a fresh install of ubuntu with post-installed KDE and a dist-upgrade.
Quote:
uname -a == Linux nutz 2.6.10-1-386 #1 Fri Mar 11 02:31:59 EST 2005 i686 GNU/Linux
cat /proc/version == Linux version 2.6.10-1-386 (dilinger@mouth) (gcc version 3.3.5 (Debian 1:3.3.5-8)) #1 Fri Mar 11 02:31:59 EST 2005
glib-config --version == 1.2.10
mount --version == mount: mount-2.12p
Ok, straight to the case:
I wanted to upgrade my kernel from 2.6.8 -> 2.6.10-1-386, because my nvidia drivers wouldn't install on the 2.6.8 kernel. (I used apt)
So after i upgraded the kernel, the nvidia drivers installs perfect, but then another problem occured:

I've added the line below into /etc/fstab:
/dev/hdb1 /disk/1 ext3 defaults 0 0
But when i try to do "mount -a", i get this error:
root@nutz:~ # mount -a
mount: /dev/hdb1 already mounted or /disk/1 busy
I also get this error when I try to do the mount completely manually:
mount -t ext3 /dev/hdb1 /disk/1

As you probably can see below, this is not true:

Quote:
root@nutz:~ # cat /proc/mounts
rootfs / rootfs rw 0 0
/dev2/root2 / ext3 rw 0 0
proc /proc proc rw,nodiratime 0 0
sysfs /sys sysfs rw 0 0
/dev2/root2 /dev/.static/dev ext3 rw 0 0
tmpfs /dev tmpfs rw 0 0
devpts /dev/pts devpts rw 0 0
tmpfs /dev/shm tmpfs rw 0 0
usbfs /proc/bus/usb usbfs rw 0 0
"lsof |grep /dev/hdb1" gives a new line. (Meaning that it could't find anything)
Quote:
root@nutz:~ # df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda1 113G 85G 22G 80% /
tmpfs 253M 4.0K 253M 1% /dev/shm
tmpfs 10M 2.8M 7.3M 28% /dev
root@nutz:~ #
Quote:
root@nutz:~ # ls -ald /disk/1/
drwxr-xr-x 2 root root 4096 Mar 24 11:36 /disk/1/
root@nutz:~ #
"lsof |grep /dev/disk/1" Also gives a new line..
Quote:
root@nutz:~ # umount /dev/hdb1
umount: /dev/hdb1: not mounted
root@nutz:~ #
Does anyone know what my problem can be related to? And most importantly, does anyone know how to fix this?


nohope@EFnet.

Last edited by StianLangvann; 06-30-2005 at 02:35 AM.
 
Old 06-30-2005, 08:29 PM   #2
aikidoist72
Member
 
Registered: Jan 2005
Location: Australia
Distribution: Slackware Archlinux FreeBSD
Posts: 218

Rep: Reputation: 30
Could you post your fstab file. Also make sure you have permission to access your disks by adding yourself to the disk group.

Cheers
 
Old 07-01-2005, 10:52 AM   #3
StianLangvann
LQ Newbie
 
Registered: Jun 2005
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hda1 / ext3 defaults,errors=remount-ro 0 1
/dev/hda5 none swap sw 0 0
/dev/hdd /media/cdrom0 udf,iso9660 ro,user,noauto 0 0
/dev/hdb1 /disk/1 ext3 defaults 0 0
/dev/hdc1 /disk/2 ext3 defaults 0 0
This is my fstab.

Nothing really happened when i added myself to the disk-group.
Problem is still there.

If you need anything else, please just tell me.
I can't figure out what the problem might be.

Last edited by StianLangvann; 07-01-2005 at 10:55 AM.
 
Old 07-01-2005, 07:28 PM   #4
aikidoist72
Member
 
Registered: Jan 2005
Location: Australia
Distribution: Slackware Archlinux FreeBSD
Posts: 218

Rep: Reputation: 30
After adding yourself to the disk group, you need to log out to make this effective, and I assume you have done this by now. Next quirk that nobody seems to mention is that if anything is referencing the hard drive or the folder while you are mounting it, then it spits out the message you are receiving. This includes a file manager opened at the folder you are trying to open.

Two things I would suggest you do and a trouble shooter.

1. open up Kwikdisk and have a look at the mounted status
2. make a desktop shortcut by right clicking on your desktop and create new link to device. This will allow a little more control via GUI.

Close everything down, and have just the terminal up if you wish. Try mounting via the icon on the desktop. Check Kwikdisk to see what it says.

Also - just to check - you do have a folder /mnt/1 that you created which the fstab is referencing. Otherwise you will get this error again.

Let me know how it goes :-)

Cheers
 
Old 07-03-2005, 06:32 AM   #5
StianLangvann
LQ Newbie
 
Registered: Jun 2005
Posts: 10

Original Poster
Rep: Reputation: 0
I have tried everything. But it doesn't work.
Is it possible to work around a EBUSY-signal ?
 
Old 07-03-2005, 07:59 AM   #6
aikidoist72
Member
 
Registered: Jan 2005
Location: Australia
Distribution: Slackware Archlinux FreeBSD
Posts: 218

Rep: Reputation: 30
Troubleshooting time.

As a point of interest, does your bios show two drives or one?

Try renaming your fstab entry for /mnt/1 to /mnt/hdb1 and rename your folder to match. Try to mount again using the CLI. If this works yipee...... if not step two.

If you have a live cd, try to mount the hard drive, if you can..... If you dont have a live cd... why not? Ubuntu ships them for free!!!

If mounting your hdb1 with a live cd fails, I would say you have a hard drive issue. If you can mount the hdb1, try to back up your docs.

Let me know how you go.
 
Old 07-03-2005, 10:31 AM   #7
StianLangvann
LQ Newbie
 
Registered: Jun 2005
Posts: 10

Original Poster
Rep: Reputation: 0
My bios does show two harddrives, dmesg does too.
It didnt work editing fstab.

I cant seem to find my live-cd with ubuntu. I know it is here somewhere..
locate "/../IRL" -iname "ubuntu" ..

When i boot with the ubunut live-cd the partition mounts perfectly, but then again. my nVidia-drivers wont work.
 
Old 07-03-2005, 04:53 PM   #8
aikidoist72
Member
 
Registered: Jan 2005
Location: Australia
Distribution: Slackware Archlinux FreeBSD
Posts: 218

Rep: Reputation: 30
There must be an error whilst mounting during boot. Try changing your fstab entry for hdb1 to
Code:
/dev/hdb1 /disk/hdb1 ext3 noauto,users,rw 1 1
Reboot and then try to mount hdb1 manually. The default signal will try to mount automatically during bootup, but by changing to noauto, it will remain unmounted. If you get an error message whilst mounting, it should be different, and also should show you the real cause of the problem.

Nvidia may not be a part of your kernel on the live cd. It would be upsetting for all those that use Readon or ATI to have nvidia loaded. That would be my assumption.

A few moons ago I tried Ubuntu. You are a sudo user by default if I remember but have you tweaked your settings to allow yourself to become root?

Last edited by aikidoist72; 07-03-2005 at 04:59 PM.
 
Old 07-03-2005, 08:09 PM   #9
StianLangvann
LQ Newbie
 
Registered: Jun 2005
Posts: 10

Original Poster
Rep: Reputation: 0
It doesnt work. It still gives the same error..
 
Old 07-03-2005, 08:23 PM   #10
aikidoist72
Member
 
Registered: Jan 2005
Location: Australia
Distribution: Slackware Archlinux FreeBSD
Posts: 218

Rep: Reputation: 30
Hmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm!!!!

try
Code:
chmod 777 /dev/hdb1
Code:
mount -t ext3 /dev/hdb1 /mnt/hdb1
Code:
df -ah
highlight all and post results please.

also have a squizzy at
Code:
man:/usr/man/man8/mount.8.gz
Just cut and past in Konqueror address bar or another file manager that you may use.
 
Old 07-04-2005, 06:58 AM   #11
StianLangvann
LQ Newbie
 
Registered: Jun 2005
Posts: 10

Original Poster
Rep: Reputation: 0
root@nutz:~ # chmod 777 /dev/hdb1
root@nutz:~ # mkdir /mnt/hdb1
root@nutz:~ # mount -t ext3 /dev/hdb1 /mnt/hdb1
mount: /dev/hdb1 already mounted or /mnt/hdb1 busy
root@nutz:~ # df -ah
Filesystem Size Used Avail Use% Mounted on
/dev/hda1 113G 86G 21G 81% /
proc 0 0 0 - /proc
sysfs 0 0 0 - /sys
devpts 0 0 0 - /dev/pts
tmpfs 253M 4.0K 253M 1% /dev/shm
tmpfs 10M 2.8M 7.3M 28% /dev
usbfs 0 0 0 - /proc/bus/usb
root@nutz:~ #
 
Old 07-04-2005, 05:12 PM   #12
aikidoist72
Member
 
Registered: Jan 2005
Location: Australia
Distribution: Slackware Archlinux FreeBSD
Posts: 218

Rep: Reputation: 30
how is the hd mounted?
Is it a new hd installation after you installed Ubuntu?

This message is created because something is trying to reference the hd or it is already mounted. You sound rather apt with the cli so I am not going treat you like a newbie.......but I must ask, are you sure hdc is not mixed up with hdb?

from you fstab
Code:
/dev/hdc1 /disk/2 ext3 defaults 0 0
I dont see this fstab entry showing under you df -ha output

Also your df -ha output says
Code:
tmpfs 10M 2.8M 7.3M 28% /dev
here is mine
Code:
tmpfs                 251M  764K  250M   1% /tmp

When you mount the HD with your live cd, what does the output of #df -ha say?
To get to the bottom of this, I will need to know a little more history ie how did you format the HD to ext3 etc.

If you were to enter
Code:
cfdisk /dev/hdb
can you see your hd? Hit 'q' to exit the screen

Give this a go and let me know any oddities

Cheers
 
Old 07-12-2005, 07:58 AM   #13
StianLangvann
LQ Newbie
 
Registered: Jun 2005
Posts: 10

Original Poster
Rep: Reputation: 0
Sorry guys. The problem was solved in the best way it could be solved:
I installed Debian :-)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I mount hda while using a Ubuntu Live CD? witiwap Linux - Newbie 10 10-22-2005 07:24 PM
Lineox 4053AS install probelems IPR Red Hat 0 10-11-2005 09:31 PM
mount windows xp partitions in ubuntu newbieSC Linux - Newbie 8 04-20-2005 09:47 PM
Ubuntu will not mount my other hard drive Trance56k Linux - Newbie 6 02-26-2005 01:08 PM
Mount problem in Ubuntu coolfrog Linux - General 1 12-30-2004 06:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration