View previous topic :: View next topic |
Author |
Message |
arrummzen n00b
Joined: 18 Apr 2006 Posts: 52
|
Posted: Thu Nov 08, 2007 11:39 am Post subject: Accidental second mounting of /dev/hda1? |
|
|
I just screwed up as root. I had /dev/hda1 mounted as /. I wanted to mount /dev/hdb1 on /mnt/minix but I accidentally typed 'mount /dev/hda1 /mnt/minix" when I did 'ls /mnt/minix" I realized my mistake, but it was to late =/
My question is: Did Linux realize that I was doing a second mount of /dev/hda1 and do it in same kind of safe way, or do I now have to worry about data corruption? I'm suspecting the first (because dmesg doesn't show any record of the second mounting, eg. "EXT3 FS on hda1, internal journal" didn't show up again in dmesg after the second mounting), but I'm hoping that I Linux expert can tell me exactly what happened so that I can act accordingly.
Thank you for your time,
Arrummzen |
|
Back to top |
|
|
gerard27 Advocate
Joined: 04 Jan 2004 Posts: 2377 Location: Netherlands
|
Posted: Thu Nov 08, 2007 12:44 pm Post subject: |
|
|
Hi arrummzen,
To err is human.
I am in the comfortable position to have 2 HD's.
I put a clone of my working Gentoo on one.
I tried what you did on this clone:
/dev/sda6 is mounted on /.
First I mounted it on an empty dir and checked if I could see it there.
It was there alright.
I then unmounted and then I mounted it on /home which is mounted on /dev/sda7.
No problem,it showed up and after unmounting I rebooted and everything
stil running as before.
I didn't get any messages of any kind either.
I don't know what it would do on minix though but I don't have that on my system.
Gerard. _________________ To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download |
|
Back to top |
|
|
Jenk Tux's lil' helper
Joined: 18 Sep 2006 Posts: 112
|
Posted: Thu Nov 08, 2007 3:11 pm Post subject: |
|
|
AFAIK you'll be fine, just runbut do NOT umount /dev/hda1 unless you want to crash your system. |
|
Back to top |
|
|
|