From: Sergey Degtyaryov <maga@beltel.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Re: узнать тип FS из скрипта
Date: Sat, 18 Oct 2003 01:57:11 +0400
Message-ID: <3F9065B7.6030406@beltel.ru> (raw)
In-Reply-To: <20031017204908.GB4240@localhost.localdomain>
Денис Смирнов wrote:
> On Sat, Oct 18, 2003 at 12:07:27AM +0700, Pyatnitskich Evgeniy wrote:
>
> > > Как узнать тип файловой системы на выбраном разделе из скрипта? Нужно
> > > различать как минимум ext2, ext3, reiserfs, xfs.
> > [eugene@eldorado eugene]$ cat /etc/fstab | grep /dev/hda6 | cut -d\ -f3
> > ext3
> > [eugene@eldorado eugene]$
> > Не прокатит?
>
> Нужно уметь обрабатывать вариант, когда раздел не смонтирован.
>
[maga@home /]$ sudo fdisk -l | grep '^/dev'
/dev/hda1 * 1 3187 25599546 c Win95 FAT32 (LBA)
/dev/hda2 3188 3671 3887730 83 Linux
/dev/hda3 3698 4865 9381960 5 Extended
/dev/hda5 3698 3736 313236 82 Linux swap
/dev/hda6 3737 4501 6144831 83 Linux
/dev/hda7 4502 4865 2923798+ 83 Linux
[maga@home /]$
--
Сергей Дегтярев
next prev parent reply other threads:[~2003-10-17 21:57 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-17 15:45 [Comm] " Денис Смирнов
2003-10-17 17:07 ` Pyatnitskich Evgeniy
2003-10-17 18:15 ` Vitaly Lipatov
2003-10-17 20:49 ` [Comm] " Денис Смирнов
2003-10-17 21:42 ` taras
2003-10-17 23:36 ` Денис Смирнов
2003-10-17 21:57 ` Sergey Degtyaryov [this message]
2003-10-17 23:38 ` Денис Смирнов
2003-10-19 18:36 ` Igor Homyakov
2003-10-20 5:55 ` Igor Homyakov
2003-10-20 14:42 ` Денис Смирнов
2003-10-20 15:08 ` Денис Смирнов
2003-10-20 5:50 ` [Comm] " shawkat
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3F9065B7.6030406@beltel.ru \
--to=maga@beltel.ru \
--cc=community@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git