Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Accidental second mounting of /dev/hda1?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
arrummzen
n00b
n00b


Joined: 18 Apr 2006
Posts: 52

PostPosted: Thu Nov 08, 2007 11:39 am    Post subject: Accidental second mounting of /dev/hda1? Reply with quote

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
View user's profile Send private message
gerard27
Advocate
Advocate


Joined: 04 Jan 2004
Posts: 2377
Location: Netherlands

PostPosted: Thu Nov 08, 2007 12:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
Jenk
Tux's lil' helper
Tux's lil' helper


Joined: 18 Sep 2006
Posts: 112

PostPosted: Thu Nov 08, 2007 3:11 pm    Post subject: Reply with quote

AFAIK you'll be fine, just run
Code:
umount /mnt/minix
but do NOT umount /dev/hda1 unless you want to crash your system. :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum