Friends,
I need to check if a partition have data, but without mount it, because i don't like to produce something wrong on my server.
I installed oracle rac on 2 nodes with CentOS 5. This installation use 20 asm disks, but we have 10 disks that not use asm, and we need to verify if these dont have data.
Regards and sorry for my english.
Thanks
Check if a partition have data without mounting
Re: Check if a partition have data without mounting
How about
[code]
# file -s /dev/sda1
/dev/sda1: Linux rev 1.0 ext3 filesystem data (needs journal recovery)
[/code]
[code]
# file -s /dev/sda1
/dev/sda1: Linux rev 1.0 ext3 filesystem data (needs journal recovery)
[/code]
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
Check if a partition have data without mounting
Building on Trevor's stellar example - to check all partitions:[code]file -s $(fdisk -l | grep ^/dev/ | cut -d ' ' -f 1)[/code]