Ubuntu This forum is for the discussion of Ubuntu Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-27-2007, 04:04 PM
|
#1
|
Member
Registered: Apr 2004
Location: Argentina
Distribution: netBSD/Linux
Posts: 256
Rep:
|
I messed up my usb external disk auto-mounting
I have an external usb disk. I messed up i touch the mounting properties, and changed the mount point. I did a leftclick on the desktop icon of my disk and changed it there... (this image is to point out where I changed it, this image is from my sdcard)
http://img294.imageshack.us/img294/4...rtiega1.th.png
Now it doesnt work anymore and everytime I plug the usb disk i get this:
http://img294.imageshack.us/img294/7...ountzj9.th.png
I dont know where to go and fix this. I looked at fstab...but nothing there.
HELP!
|
|
|
05-28-2007, 06:26 AM
|
#2
|
Member
Registered: Jun 2005
Location: Earth
Distribution: Ubuntu10.04
Posts: 308
Rep:
|
Hi,
You are looking on the wrong place. Look in /etc/mtab. I have a USB-hdd and in the mtab it looks like this:
/dev/sde1 /media/sde1 reiserfs rw,noexec,nosuid,nodev 0 0
Anyway, why should you mess up the automount options. If it works fine leave it that way. To unmount I only swith the disk itself to off.
Kind regards
Last edited by Sjonnie48; 05-28-2007 at 06:35 AM.
|
|
|
05-28-2007, 06:54 AM
|
#3
|
Member
Registered: Apr 2004
Location: Argentina
Distribution: netBSD/Linux
Posts: 256
Original Poster
Rep:
|
Quote:
Originally Posted by Sjonnie48
Hi,
You are looking on the wrong place. Look in /etc/mtab. I have a USB-hdd and in the mtab it looks like this:
/dev/sde1 /media/sde1 reiserfs rw,noexec,nosuid,nodev 0 0
Anyway, why should you mess up the automount options. If it works fine leave it that way. To unmount I only swith the disk itself to off.
Kind regards
|
Beacause its a external usb case for an internal disk. The disk is in ntfs filesystem, and although I installed the compatibility package to write into ntfs, it doesnt work. I though this would fix it.
There was no line refered to it, so I added a line, using my info... and but didnt work.
I added /dev/sda1 /media/ALEUSB ntfs rw,noexec,nosuid,nodev 0 0
and this was all that was on mtab
Quote:
/dev/hda1 / ext3 rw,errors=remount-ro 0 0
proc /proc proc rw,noexec,nosuid,nodev 0 0
/sys /sys sysfs rw,noexec,nosuid,nodev 0 0
varrun /var/run tmpfs rw,noexec,nosuid,nodev,mode=0755 0 0
varlock /var/lock tmpfs rw,noexec,nosuid,nodev,mode=1777 0 0
procbususb /proc/bus/usb usbfs rw 0 0
udev /dev tmpfs rw,mode=0755 0 0
devshm /dev/shm tmpfs rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
lrm /lib/modules/2.6.20-15-generic/volatile tmpfs rw 0 0
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
/dev/sdc1 /media/MEMORYSTICK vfat
rw,nosuid,nodev,shortname=mixed,uid=1000,utf8,umask=077 0 0
|
this is the syslog
Quote:
May 28 09:00:09 DeathStar kernel: [ 523.429316] usb 4-1.3: new high speed USB device using ehci_hcd and address 10
May 28 09:00:10 DeathStar kernel: [ 523.471187] usb 4-1.3: configuration #1 chosen from 1 choice
May 28 09:00:10 DeathStar kernel: [ 523.471344] scsi3 : SCSI emulation for USB Mass Storage devices
May 28 09:00:15 DeathStar kernel: [ 526.703147] scsi 3:0:0:0: Direct-Access ST380011 A 0000 PQ: 0 ANSI: 0
May 28 09:00:15 DeathStar kernel: [ 526.704998] SCSI device sda: 156301488 512-byte hdwr sectors (80026 MB)
May 28 09:00:15 DeathStar kernel: [ 526.705930] sda: Write Protect is off
May 28 09:00:15 DeathStar kernel: [ 526.706869] SCSI device sda: 156301488 512-byte hdwr sectors (80026 MB)
May 28 09:00:15 DeathStar kernel: [ 526.707742] sda: Write Protect is off
May 28 09:00:15 DeathStar kernel: [ 526.707750] sda: sda1
May 28 09:00:15 DeathStar kernel: [ 526.727301] sd 3:0:0:0: Attached scsi disk sda
May 28 09:00:15 DeathStar kernel: [ 526.727350] sd 3:0:0:0: Attached scsi generic sg0 type 0
May 28 09:00:23 DeathStar gconfd (root-6670): GConf server is not in use, shutting down.
May 28 09:00:23 DeathStar gconfd (root-6670): Exiting
|
Last edited by alek66; 05-28-2007 at 07:03 AM.
|
|
|
05-28-2007, 07:50 AM
|
#4
|
Member
Registered: Jun 2005
Location: Earth
Distribution: Ubuntu10.04
Posts: 308
Rep:
|
Give this procedure a try.
First of all I listed /etc/mtab with the following result:
/dev/sde1 /media/sde1 reiserfs rw,noexec,nosuid,nodev 0 0
Then I disconnected my usb harddisk.
Then I listed /etc/mtab with the following result:
Then I reconnected my usb harddisk.
Then I listed /etc/mtab with the following result:
/dev/sde1 /media/sde1 reiserfs rw,noexec,nosuid,nodev 0 0
Whenever I connect my usb harddisk the system asks me what to do. The options are:
Do nothing or Open in a new window
I usually select opening in a new window, then it opens in Konqueror, and in less than 10 seconds I can browse my usb harddrive. My drive is also an internal harddisk built in a usb-hub.
And do not touch that icon on your desktop :-)
Last edited by Sjonnie48; 05-28-2007 at 07:57 AM.
|
|
|
05-28-2007, 08:05 AM
|
#5
|
Member
Registered: Apr 2004
Location: Argentina
Distribution: netBSD/Linux
Posts: 256
Original Poster
Rep:
|
I disconnected the disk, this appears:
Code:
/dev/hda1 / ext3 rw,errors=remount-ro 0 0
proc /proc proc rw,noexec,nosuid,nodev 0 0
/sys /sys sysfs rw,noexec,nosuid,nodev 0 0
varrun /var/run tmpfs rw,noexec,nosuid,nodev,mode=0755 0 0
varlock /var/lock tmpfs rw,noexec,nosuid,nodev,mode=1777 0 0
procbususb /proc/bus/usb usbfs rw 0 0
udev /dev tmpfs rw,mode=0755 0 0
devshm /dev/shm tmpfs rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
lrm /lib/modules/2.6.20-15-generic/volatile tmpfs rw 0 0
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
/dev/sdc1 /media/MEMORYSTICK vfat rw,nosuid,nodev,shortname=mixed,uid=1000,utf8,umask=077 0 0
I connected the disk, (the error window appeared "Cannot mount volumen" is the image I posted first), this is the mtab.
Code:
/dev/hda1 / ext3 rw,errors=remount-ro 0 0
proc /proc proc rw,noexec,nosuid,nodev 0 0
/sys /sys sysfs rw,noexec,nosuid,nodev 0 0
varrun /var/run tmpfs rw,noexec,nosuid,nodev,mode=0755 0 0
varlock /var/lock tmpfs rw,noexec,nosuid,nodev,mode=1777 0 0
procbususb /proc/bus/usb usbfs rw 0 0
udev /dev tmpfs rw,mode=0755 0 0
devshm /dev/shm tmpfs rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
lrm /lib/modules/2.6.20-15-generic/volatile tmpfs rw 0 0
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
/dev/sdc1 /media/MEMORYSTICK vfat rw,nosuid,nodev,shortname=mixed,uid=1000,utf8,umask=077 0 0
Any thoughts?
|
|
|
05-28-2007, 08:26 AM
|
#6
|
Member
Registered: Jun 2005
Location: Earth
Distribution: Ubuntu10.04
Posts: 308
Rep:
|
There must be something wrong.
Your system tells you that you have connected a memorystick, not a harddisk.
I cannot tell you why your system sees a memorystick while my system recognizes it as a harddisk.
Maybe you still have a Windows system somewhere. You could connect the usb hdd to it, make it a share for your Ubuntu computer and then copy the contents to an internal harddisk.
The other option is to install the "memorystick" into your Ubuntu system, making it an internal harddisk.
Good luck!
|
|
|
05-28-2007, 08:28 AM
|
#7
|
Member
Registered: Apr 2004
Location: Argentina
Distribution: netBSD/Linux
Posts: 256
Original Poster
Rep:
|
Quote:
Originally Posted by Sjonnie48
There must be something wrong.
Your system tells you that you have connected a memorystick, not a harddisk.
I cannot tell you why your system sees a memorystick while my system recognizes it as a harddisk.
Maybe you still have a Windows system somewhere. You could connect the usb hdd to it, make it a share for your Ubuntu computer and then copy the contents to an internal harddisk.
The other option is to install the "memorystick" into your Ubuntu system, making it an internal harddisk.
Good luck!
|
The memorystick is an actual memorystick, besides de usb disk I have a cardreader. that works...
is there a way to wipe everything, so that it detects everything again, from scratch?
|
|
|
05-28-2007, 08:34 AM
|
#8
|
Member
Registered: Jun 2005
Location: Earth
Distribution: Ubuntu10.04
Posts: 308
Rep:
|
Maybe the confusion is caused by an inserted usb memorystick.
Remove the inserted memory-sticks and -cards before connecting the thing to your computer.
|
|
|
05-28-2007, 08:36 AM
|
#9
|
Member
Registered: Apr 2004
Location: Argentina
Distribution: netBSD/Linux
Posts: 256
Original Poster
Rep:
|
Quote:
Originally Posted by Sjonnie48
Maybe the confusion is caused by an inserted usb memorystick.
Remove the inserted memory-sticks and -cards before connecting the thing to your computer.
|
the hole thing started cause i added a mounting point where it should go, and now I can access the same place to change it back.
|
|
|
05-28-2007, 08:49 AM
|
#10
|
Member
Registered: Jun 2005
Location: Earth
Distribution: Ubuntu10.04
Posts: 308
Rep:
|
Quote:
Originally Posted by alek66
the hole thing started cause i added a mounting point where it should go, and now I can access the same place to change it back.
|
The /etc/fstab and /etc/mtab files have different functions:
mtab handles the mounted devices and is automatically updated by the mount command.
fstab is a description of the various file systems.
|
|
|
05-28-2007, 08:54 AM
|
#11
|
Member
Registered: Apr 2004
Location: Argentina
Distribution: netBSD/Linux
Posts: 256
Original Poster
Rep:
|
Quote:
Originally Posted by Sjonnie48
The /etc/fstab and /etc/mtab files have different functions:
mtab handles the mounted devices and is automatically updated by the mount command.
fstab is a description of the various file systems.
|
I get it, thats why I messed up.
Is there a way to clear everything, so as when I reboot, the system discovers everything again.
|
|
|
05-28-2007, 09:03 AM
|
#12
|
Member
Registered: Jun 2005
Location: Earth
Distribution: Ubuntu10.04
Posts: 308
Rep:
|
A reboot should clean up everything. Maybe you should disconnect the usb harddisk before rebooting. After rebooting you can reconnect it.
If you want to change mountpoints you'd better use the System Administration panel in the System Settings gui.
|
|
|
05-28-2007, 09:38 AM
|
#13
|
Member
Registered: Apr 2004
Location: Argentina
Distribution: netBSD/Linux
Posts: 256
Original Poster
Rep:
|
Already done reboot and nothing.
Thanks anyway
|
|
|
05-28-2007, 09:52 AM
|
#14
|
Member
Registered: Jun 2005
Location: Earth
Distribution: Ubuntu10.04
Posts: 308
Rep:
|
Don't you have a hardware problem?
Did you remove the lines that you added in /etc/fstab?
|
|
|
05-28-2007, 11:11 AM
|
#15
|
Member
Registered: Apr 2004
Location: Argentina
Distribution: netBSD/Linux
Posts: 256
Original Poster
Rep:
|
I tried to manually mount the disk and this came up
Quote:
alek@DeathStar:~$ sudo mount /dev/sda1 /media/ALEX
mount: mount point /media/ALEX does not exist
alek@DeathStar:~$ sudo mkdir /media/ALEX
alek@DeathStar:~$ sudo mount /dev/sda1 /media/ALEX
Cannot create link /etc/mtab~
Perhaps there is a stale lock file?
alek@DeathStar:~$ sudo umount /media/ALEX/
Cannot create link /etc/mtab~
Perhaps there is a stale lock file?
|
What is the stale lock file?
|
|
|
All times are GMT -5. The time now is 12:33 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|