> -----Original Message-----
> From: Uri Itscowits [mailto:[EMAIL PROTECTED]]
> 
> Hi there,
> 
> I need to guess which is the root filesystem ( on GNU/Linux OC), 
>   while all partitions are still unmounted.
> 
> I could of course mount each in turn, and look for /etc/fstab or so, 
>   but I am looking for a way which won't involve mounting, if 
> possible.
> 

How about:

dd if=/dev/hda1 bs=1024 count=10 | file -

I don't have another type of filesystem to try it on, but for my ext3 ones it works 
fine even if I decrease count to as low as 2 blocks (for 1 block 'file' doesn't 
recognize it).

Disclaimer: No guarentees. Use a modern version of file(1).

-- Arik
**********************************************************************
This email and attachments have been scanned for
potential proprietary or sensitive information leakage. 
Vidius, Inc. Protecting Your Information from the Inside Out. 
www.vidius.com
**********************************************************************

================================================================To unsubscribe, send 
mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to