Auto-mount but not auto-unmount!

Asked by Molly

Hi! I'm new in Ubuntu and I have [ problem mounting my NTFS drives.
My volumes mount when I start but won't unmount after shutting down:
 Any tips? Is there something i can change to unount?
Thanks :-)

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu nautilus Edit question
Assignee:
No assignee Edit question
Solved by:
Molly
Solved:
Last query:
Last reply:

This question was reopened

Revision history for this message
Wrwrwr (wrwrwr) said :
#1

Why would you want to unmount them before switching off your system? They should get automatically unmounted during the shutdown process. (And automatically mounted again during start up.)

If you really want to unmount them manually open a terminal (Applications-->Accessories-->Terminal) and type:

sudo umount /dev/sca1

("umount" is not a typo)

Revision history for this message
Molly (mollious) said :
#2

Thanks! I managed to unmount it. But still the system is not shuting down/reatarting.
I get these:

*unmounting temporary file system:

Revision history for this message
Molly (mollious) said :
#3

...(cont)...

*unmounting temporary file system OK
*Deactivating Swap Fail
*unmounting local filesystem
  cant link lock file /etc/mtab~: read only filesystem (use n-flag to override)
                                                                    Fail
/etc/init.d/rc:2:/etcrc6.d/S60 unmount root/input output error
/etc/init.d/rc:2:/etcrc6.d/S90 reboot
/etc/init.d/rc:2:/etcrc6.d/S90 killntfs3g

What is the problem here?

Revision history for this message
Molly (mollious) said :
#4

.

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#5

Is your drive connected (if it is removable) when you umount it... or when you shutdown the system...?

Revision history for this message
Molly (mollious) said :
#6

It's an internal harddisk two partitions. But I think i have worked it out with a couple of commands:
-- su
-- (gave the root password)
-- usermount
(unmounted the elements)

Now I can mount/unmount via Aplications/System tools/ Ntfs configuration tool.

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#7

Please umount this question ;-) changing the status to solved.
Thank you

Revision history for this message
Molly (mollious) said :
#8

Thanks Wrwrwr, that solved my question.

Revision history for this message
Alan (mrintegrity) said :
#9

Automatix is known to cause issues likethis. i recommend that you
reinstall from scratch and don't use automatix this time.

Alan
On Thu, 2007-10-04 at 16:10 +0000, Molly wrote:
> Question #14229 on nautilus in ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/nautilus/+question/14229
>
> Description changed to:
> Some days ago I installed "Automatix" to auto-mount my win (ntfs) drives.
> It worked but I got some other kind of problems so I unistalled the program. Still in my fstab file I have a string:
>
>
> which is causing problems after sutting down: my drives won't unmount automatically.
> I don't want to remove the string cause I like it tha way I can read/write on the drives but anounting them manually is irritating! Any tips? Is there something i can change in fstab without harming the automount thing?
> Thanks :-)Some days ago I installed "Automatix" to auto-mount my win (ntfs) drives.
> It worked but I got some other kind of problems so I unistalled the program. Still in my fstab file I have a string:
>
> # Generated by Automatix
> /dev/sda1 /media/sda1 ntfs-3g defaults,locale=en_US.utf8 0 0
> /dev/sda5 /media/sda5 ntfs-3g defaults,locale=en_US.utf8 0 0
> /dev/sdb1 /media/sdb1 ntfs-3g defaults,locale=en_US.utf8 0 0
> /dev/sdc1 /media/sdc1 ntfs-3g defaults,locale=en_US.utf8 0 0
> ## End of Automatix mounted partitions
>
>
> which is causing problems after sutting down: my drives won't unmount automatically.
> I don't want to remove the string cause I like it tha way I can read/write on the drives but anounting them manually is irritating! Any tips? Is there something i can change in fstab without harming the automount thing?
> Thanks :-)
>

Revision history for this message
Molly (mollious) said :
#10

Well, it looks like I still have the problem in a way.
Two days ago I installed "Automatix" to auto-mount my win (ntfs) drives.
It worked but I got some other kind of problems so I unistalled the program.
I found out that the mounting commands are in the fstab file so I opened it and found a string:

# Generated by Automatix
/dev/sda1 /media/sda1 ntfs-3g defaults,locale=en_US.utf8 0 0
/dev/sda5 /media/sda5 ntfs-3g defaults,locale=en_US.utf8 0 0
/dev/sdb1 /media/sdb1 ntfs-3g defaults,locale=en_US.utf8 0 0
/dev/sdc1 /media/sdc1 ntfs-3g defaults,locale=en_US.utf8 0 0
## End of Automatix mounted partitions

which is causing problems after sutting down: my drives won't unmount automatically.

I don't want to remove the string cause I like it tha way I can read/write on the drives but anounting them manually is irritating! Any tips? Is there something i can change in fstab without harming the automount thing?
Thanks :-)

Revision history for this message
Molly (mollious) said :
#11

Thanks Allan, but this is exactly what I' trying to avoid : reinstall! I'm sick and tired reinstalling from Windows, hehe!
Is there any way - supported but Ubuntu I mean and not crappy like Automatix - to mount/unount automatically?

Revision history for this message
Molly (mollious) said :
#12

...and one more thing: I really start liking Ubuntu a lot (I am an experianced win user) but I 'm just wondering if there is somthing to backup your system when it's ok, and restore the backed up session when you have made a mess out of it and regret it. In windows I had the option "system recovery" and Norton Ghost.

Revision history for this message
Wrwrwr (wrwrwr) said :
#13

Normally ubuntu mounts/unmounts your ntfs volumes automatically, without the need to use any additional software.

There is a program called ntfs-config (available from universe repository) that can be used to configure read/write access (which usually just works without the need to do anything).

Those entries from fstab look ok, mine are same except the use of uuid instead of old /dev/xxx and 1s instead of 0s in the last column (what means that the filesystem should be checked for errors).

This "cant link lock file /etc/mtab~" looks like there is some problem with mtab. Could you attach it, please? Also it says deactivating swap fails, so that's another problem.

Revision history for this message
Molly (mollious) said :
#14

Hi Wrwrwr!
Here is my mtab:

/media/host/wubi/disks/system.virtual.disk / ext3 rw,sync 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-16-generic/volatile tmpfs rw 0 0
/media/host/wubi/disks/home.virtual.disk /home ext3 rw,sync,loop=/dev/loop1 0 0
/dev/sda1 /media/sda1 fuseblk rw,nosuid,nodev,noatime,allow_other,blksize=4096 0 0
/dev/sda5 /media/sda5 fuseblk rw,nosuid,nodev,noatime,allow_other,blksize=4096 0 0
/dev/sdb1 /media/sdb1 fuseblk rw,nosuid,nodev,noatime,allow_other,blksize=4096 0 0
/dev/sdc1 /media/sdc1 fuseblk rw,nosuid,nodev,noatime,allow_other,blksize=4096 0 0
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0

Does it look ill?

Revision history for this message
Wrwrwr (wrwrwr) said :
#15

Backing up and restoring can be done manually:
http://ubuntuforums.org/showthread.php?t=35087

I guess you can still use ghost (at least some new version of it), but some additional steps probably will be required (like grub repairing):
http://service1.symantec.com/SUPPORT/on-technology.nsf/docid/1999021909463125

There are many other tools for that, so you'll probably find that suits yourself, some free propositions:
http://packages.ubuntu.com/feisty/admin/backup-manager
http://packages.ubuntu.com/feisty/admin/partimage

Revision history for this message
Molly (mollious) said :
#16

The two last options sound Ok, What about my mtab? Are there any changes I have to make?

Revision history for this message
Wrwrwr (wrwrwr) said :
#17

Looks ok, almost same as mine again, however i see that you use wubi and it has some quirks. Automatix probably doesn't take these into account, and has some more too. I know hardly anything about both of these, so somebody else will have to help.

By the way mtab is something like a state, that you normally don't edit by hand.

Revision history for this message
Molly (mollious) said :
#18

Well so i think I'll try to live with the fact shutting down manually or I'll try to edit fstab and removing this automatix strings! Thanks for help anyway!

Revision history for this message
Alan (mrintegrity) said :
#19

How do you know the partitions are not unmounted? one of the last things the linux kernel does is unmount all remaining partitions (forcibly if needed).

Revision history for this message
Molly (mollious) said :
#20

cause the system stacked. It hang. But i solved my problem. What I did is i edited the fstab, removed the string
# Generated by Automatix

and

## End of Automatix mounted partitions, and now the system is probably using daemon manger to mount-unmount. Anyway everything works fine and I have write access to my disks as wall. NB! I installed also NTFS configuration tool.

Automatix is no good.... It caused me a lot of crazy problems....

Thanks for your help! ;-)

Revision history for this message
Wrwrwr (wrwrwr) said :
#21

Glad to hear that. Soon you're be helping others here.

Revision history for this message
Molly (mollious) said :
#22

Hope so :-)

Revision history for this message
coolin (zone-abhishek) said :
#23

hi
i am problem in booting of linux...my system does not boot after automount and it gets stuck there
so please help me out of this problem

Revision history for this message
Molly (mollious) said :
#24

I am not really sure if I can help you, I am not so advanced, but which
program did you use to auto mount? If you use automatix, then you have
really got your self into truble. Usually mounting does not cause any
start problems though...

Molly (",)

coolin wrote:
> Your question #14229 on nautilus in ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/nautilus/+question/14229
>
> coolin posted a new comment:
> hi
> i am problem in booting of linux...my system does not boot after automount and it gets stuck there
> so please help me out of this problem
>
>