Unix Technical Forum

WTF ?? umount and format but files still there

This is a discussion on WTF ?? umount and format but files still there within the comp.unix.solaris forums, part of the Solaris Operating System category; --> I have 2 disks in my Sol 9 system. Needed to reformat the 2nd (non-root) disk which had 1 ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > comp.unix.solaris

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-12-2008, 05:59 AM
markg9@yahoo.com
 
Posts: n/a
Default WTF ?? umount and format but files still there

I have 2 disks in my Sol 9 system.

Needed to reformat the 2nd (non-root) disk which had 1 partition that
was mounted as /export/home0

I did :

1. umount /export/home0
2. checked mnttab to make sure umount worked
3. run format

Just for shits, I tried to cd to /export/home0 and guess what ??!!!
All the old files are still there.
Does Solaris cache mounted systems somewhere ?? I will reboot later in
the day and would imagine that there should be no data on that disk.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-12-2008, 05:59 AM
Andrew Gabriel
 
Posts: n/a
Default Re: WTF ?? umount and format but files still there

In article <1191530138.531110.43930@d55g2000hsg.googlegroups. com>,
markg9@yahoo.com writes:
> I have 2 disks in my Sol 9 system.
>
> Needed to reformat the 2nd (non-root) disk which had 1 partition that
> was mounted as /export/home0
>
> I did :
>
> 1. umount /export/home0
> 2. checked mnttab to make sure umount worked
> 3. run format
>
> Just for shits, I tried to cd to /export/home0 and guess what ??!!!
> All the old files are still there.


Maybe they were there beforehand, underneath the mount point.
Not really enough info to go on.

--
Andrew Gabriel
[email address is not usable -- followup in the newsgroup]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-12-2008, 05:59 AM
Wolfgang
 
Posts: n/a
Default Re: WTF ?? umount and format but files still there

markg9@yahoo.com schrieb:
> I have 2 disks in my Sol 9 system.
>
> Needed to reformat the 2nd (non-root) disk which had 1 partition that
> was mounted as /export/home0
>
> I did :
>
> 1. umount /export/home0
> 2. checked mnttab to make sure umount worked
> 3. run format
>
> Just for shits, I tried to cd to /export/home0 and guess what ??!!!
> All the old files are still there.
> Does Solaris cache mounted systems somewhere ?? I will reboot later in
> the day and would imagine that there should be no data on that disk.
>


what means "are there", can you open the files?
what means run format, running format do nothing to disks ;-)?
Have the files the same inode number than bevor?
Did you mkfs and mount after formating and newfsing?
which FS do you use?

Wolfgang
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-12-2008, 05:59 AM
Darren Dunham
 
Posts: n/a
Default Re: WTF ?? umount and format but files still there

markg9@yahoo.com wrote:
> Just for shits, I tried to cd to /export/home0 and guess what ??!!!
> All the old files are still there.
> Does Solaris cache mounted systems somewhere ?? I will reboot later in
> the day and would imagine that there should be no data on that disk.


cd /export/home0
df -k .

What is reported? If it's '/' (or '/export'), then I presume the files
are there on that disk and they're separate from the files that were on
the unmounted disk.

Maybe remount your disk (read-only, on another mount point) and see if
the timestamps are the same.

--
Darren Dunham ddunham@taos.com
Senior Technical Consultant TAOS http://www.taos.com/
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-12-2008, 05:59 AM
Dave Uhring
 
Posts: n/a
Default Re: WTF ?? umount and format but files still there

On Thu, 04 Oct 2007 13:35:38 -0700, markg9 wrote:

> I have 2 disks in my Sol 9 system.
>
> Needed to reformat the 2nd (non-root) disk which had 1 partition that
> was mounted as /export/home0
>
> I did :
>
> 1. umount /export/home0
> 2. checked mnttab to make sure umount worked
> 3. run format


FYI, Solaris format does not create any new filesystems. It is somewhat
similar - although hardly identical - to MSDOS fdisk.

Create filesystems using mkfs(1M) or newfs(1M).

> Just for shits, I tried to cd to /export/home0 and guess what ??!!! All
> the old files are still there.


Did you first mount /export/home0 before changing directory?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-12-2008, 05:59 AM
Colin B.
 
Posts: n/a
Default Re: WTF ?? umount and format but files still there

markg9@yahoo.com wrote:
> I have 2 disks in my Sol 9 system.
>
> Needed to reformat the 2nd (non-root) disk which had 1 partition that
> was mounted as /export/home0
>
> I did :
>
> 1. umount /export/home0
> 2. checked mnttab to make sure umount worked
> 3. run format
>
> Just for shits, I tried to cd to /export/home0 and guess what ??!!!
> All the old files are still there.
> Does Solaris cache mounted systems somewhere ?? I will reboot later in
> the day and would imagine that there should be no data on that disk.


The other possibility that no one has mentioned here. Are you _absolutely_
sure that the disk was (originally) mounted at /export/home0?

Colin
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-12-2008, 05:59 AM
Rage Cosmos
 
Posts: n/a
Default Re: WTF ?? umount and format but files still there


<markg9@yahoo.com> wrote in message
news:1191530138.531110.43930@d55g2000hsg.googlegro ups.com...
>I have 2 disks in my Sol 9 system.
>
> Needed to reformat the 2nd (non-root) disk which had 1 partition that
> was mounted as /export/home0
>
> I did :
>
> 1. umount /export/home0
> 2. checked mnttab to make sure umount worked
> 3. run format
>
> Just for shits, I tried to cd to /export/home0 and guess what ??!!!
> All the old files are still there.
> Does Solaris cache mounted systems somewhere ?? I will reboot later in
> the day and would imagine that there should be no data on that disk.
>

I guess you did not need to change the disk layout? You didn't say much but
that you ran format. If you simply deleted the partition by zeroing out the
slice and then putting the same start and end block, you did nothing. If
you need to "reformat" the partition as fresh, did you run "newfs"? This is
of course assuming that you are using a "ufs" filesystem.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:02 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com