fdisk -l shows that I have sda1, sda2, sda3.
sda1 is labeled as a Swap partition, sda2 is Root, but how do I find
out what is on sda3?
--
tb
On 19/5/2011 01:12 tb wrote:
> fdisk -l shows that I have sda1, sda2, sda3.
> sda1 is labeled as a Swap partition, sda2 is Root, but how do I find
> out what is on sda3?
Well, you probobaly want to know how the access the filesystem (if it
exists) on sda3, right?
If there is a filesystem on sda3, you have to mount it. With something
like $mount /dev/sda3 /mnt/sda3 (or any other directory).
Cheers,
Simon
The OP is asking about - which filesystem is in use on that partition?
fdisk -l
say you get:
/dev/sda1 ntfs
/dev/sda2 ext4
/dev/sda3 swap
Then if that table is true, sda3 is swap. But in the OP's case, the
table is different i.e. sda1 swap, sda2 root, sda3 WHAT?.
Just look in the column where it says Swap EXT(yournohere) ETC.
Cheers,
JJ
WRONG! fdisk lists the partitions and file system types assigned
to that partition. It does *not* provide information as to which
file system type actually exists on the partition.
fdisk -l /dev/sda
Disk /dev/sda: 74.4 GB, 74355769344 bytes
255 heads, 63 sectors/track, 9039 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x07c607c5
Device Boot Start End Blocks Id System
/dev/sda1 * 1 999 8024436 7 HPFS/NTFS
/dev/sda2 1000 9039 64581300 5 Extended
/dev/sda5 1000 1100 811251 83 Linux
/dev/sda6 1101 1109 72261 83 Linux
/dev/sda7 1110 1300 1534176 83 Linux
/dev/sda8 1301 1449 1196811 83 Linux
/dev/sda9 1450 8900 59850126 83 Linux
/dev/sda10 8901 9039 1116486 82 Linux swap / Solaris
So which file system type is on partitions /dev/sda5 through 9?
It could be ext2, ext3, ext4, xfs, reiserfs etc etc.
The only way to find out which file system is really on the partition,
if indeed one has been created at all, is to try and mount it.
Actually "fdisk" will say "Linux" for sda2, not the fs (all Linux
filesystems will use the same partition type).:
Device Boot Start End Blocks Id System
/dev/sda1 1 6527 52426752 83 Linux
/dev/sda2 6529 7572 8385930 82 Linux swap / Solaris
/dev/sda3 7573 60801 427561942+ 83 Linux
(in which sda1 is the root fs, in MY case ext3) and sda3 the local/data
one, ext4). I do not know offhand how you can determine the fs easily,
I always mount it and then look at "mount"s output:
/dev/sda1 on / type ext3 (rw,acl,user_xattr)
/dev/sda3 on /data type ext4 (rw,acl,user_xattr)
--
******************************************************************
** Eef Hartman, Delft University of Technology, dept. SSC/ICT **
** e-mail: E.J.M....@tudelft.nl - phone: +31-15-27 82525 **
******************************************************************
> one, ext4). I do not know offhand how you can determine the fs easily,
blkid
Regards, Dave Hodgins
--
Change nomail.afraid.org to ody.ca to reply by email.
(nomail.afraid.org has been set up specifically for
use in usenet. Feel free to use it yourself.)
> On Tue, 07 Jun 2011 04:05:49 -0400, Eef Hartman
> <E.J.M....@tudelft.nl> wrote:
>
>> one, ext4). I do not know offhand how you can determine the fs easily,
>
> blkid
That really is useful -- gives the label and the UUID as well as the
file type, thank you.
blkid /dev/sda8
/dev/sda8: LABEL="/usr" UUID="0a1bf50a-cb25-4eb0-b6f0-cc8d89ec0aa0" TYPE="ext4"
> On Tue, 07 Jun 2011 04:05:49 -0400, Eef Hartman
> <E.J.M....@tudelft.nl> wrote:
>
>> one, ext4). I do not know offhand how you can determine the fs
>> easily,
>
> blkid
>
> Regards, Dave Hodgins
>
Yea, that IS fairly nice.