On 7/18/10, <b class="gmail_sendername">Parshwa Murdia</b> &lt;<a href="mailto:b330bkn@gmail.com" target="_blank">b330bkn@gmail.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div class="gmail_quote"><span></span>one things is that when you say sdXN, X is the drive letter means what drive letter is give to the linux partition? in windows if i see, its H so it should be like sdH9?? in the line:<br>

<div>
<br>
mount /dev/sdXN /mydisk<br><br>but the error i get is:<br><b><br>mount: you must specify the filesystem type</b> (which comes in the terminal)</div></div></blockquote><div><br><br>The X there isn&#39;t really a drive letter.  Under Windows, a &quot;drive letter&quot; really refers to a partition, not a disk, and so the N (the number) is more analogous to a drive letter (but not really, keep reading!).  The X refers to the disk itself.  Under Linux, the 4 portions of that device name are:<br>

<br>* Controller type (IDE, SCSI, SATA, etc) (SCSI and SATA both use &#39;s&#39;, IDE uses &#39;h&#39;)<br>* Device type (disk, tape, etc) (d for disk, t for tape, etc)<br>* Disk/Controller position (where is the disk on the controller?  Or which controller? Enumerated starting with a, sda, sdb, sdc, etc)<br>

* Partition number (enumerated starting with 1, then 2, 3, 4, etc)<br><br>Under this scheme, the first partition of your first disk will be sda1.  Let&#39;s look at this:<br><br>s - controller is SATA<br>d - we&#39;re talking about a disk device<br>

a - we&#39;re talking about the first disk on the controller, really with SATA we&#39;re talking about the first controller)<br>1 - we&#39;re talking referencing the first partition on that disk<br><br>On Intel PC systems (what most people run Fedora on), the &quot;partition number&quot; field can also tell you what kind of partition it is.  Partitions 1 through 4 are *always* Primary partitions.  Partition 5 is *always* an Extended partition.  Extended partitions will never have a filesystem written directly to them.  Instead, they will contain Logical partitions.  These will be all partitions numbered 6 and beyond.<br>

<br>Let&#39;s take a look at the disks in my own system here.  This machine contains 3 disks, each 1.5 TB in size.  I&#39;ve deleted all the confusing RAID stuff and partition statistics since we don&#39;t care about that here:<br>

<br><br>   Device Boot      Start         End      Blocks   Id  System<br>/dev/sda1   *           1          64      512000   83  Linux<br>Partition 1 does not end on cylinder boundary.<br>/dev/sda2              64      182402  1464625152   8e  Linux LVM<br>

<br><br>
   Device Boot      Start         End      Blocks   Id  System<br>
/dev/sdb1               1      182401  1465136032   fd  Linux raid 
autodetect<br>
<br>   Device Boot      Start         End      Blocks   Id  System<br>/dev/sdc1               1      182401  1465136001   fd  Linux raid autodetect<br><br>We can see from this output that the system has 3 SATA controllers that are in use.  This is evident by each disk being enumerated as sda, sdb, and sdc.  Remember, s = SCSI or SATA (SATA here), the physical disk devices are a, b, and c.  There are 2 partitions (1 and 2) on the first disk, then 1 partition each on the other 2 disks.<br>

<br>Now, all of this ignores what&#39;s likely the case if you installed Fedora 13 with the installation defaults.  In that case, you&#39;re likely using LVM (and none of the information folks have given so far is going to work).  Notice that in the example above, disk sda2 is of type &quot;Linux LVM&quot; -- this means it&#39;s being  used as a PV (physical volume) under LVM management.  We can use the command &#39;pvscan&#39; to get a listing of all PVs (again, physical volumes, ie; real disk partitions) that are being used and what VG (volume group) they contain:<br>

<br>lvm&gt; pvscan<br>  PV /dev/sda2   VG vg_circe   lvm2 [1.36 TiB / 0    free]<br>  PV /dev/md0    VG homevg_1   lvm2 [1.36 TiB / 0    free]<br>  Total: 2 [2.73 TiB] / in use: 2 [2.73 TiB] / in no VG: 0 [0   ]<br>lvm&gt; <br>

<br>And here it is!  We see that PV /dev/sda2 (the second partition of the disk on the first SATA controller) contains VG (again, volume group, sort of like an extended partition) vg_circe.  Now, what is inside that volume group?  We can use the command lvscan to find out:<br>

<br>lvm&gt; lvscan<br>  ACTIVE            &#39;/dev/homevg_1/homelv_1&#39; [1.36 TiB] inherit<br>  ACTIVE            &#39;/dev/vg_circe/lv_root&#39; [1.36 TiB] inherit<br>  ACTIVE            &#39;/dev/vg_circe/lv_swap&#39; [5.44 GiB] inherit<br>

lvm&gt;<br><br>And there is our root partition.  It&#39;s /dev/vg_circe/lv_root.<br><br>Now, looking at what you&#39;ve provided, here&#39;s the output of fdisk -l for your machine:<br><br>  Device Boot      Start         End      Blocks   Id  System<br>

/dev/sda1              
 1        5737    46082421    7  HPFS/NTFS<br>
/dev/sda2            5738       30400   198105547+   f  W95 Ext&#39;d (LBA)<br>/dev/sda5           
 5738        9561    30716248+   7  HPFS/NTFS<br>/dev/sda6            
9562       13385    30716248+   7  HPFS/NTFS<br>/dev/sda7           
13386       15935    20482843+   7  HPFS/NTFS<br>
/dev/sda8   *       15936       15961      204799+  83  Linux<br>/dev/sda9          
 15961       28596   101487615+  8e  Linux LVM<br><br>You mentioned you were confused that you didn&#39;t see sda3 or sda4.  If you recall what I said earlier, this is normal.  That&#39;s because you only have 2 primary partitions on your disk.  You have an extended partition (always 5) that contains 4 logical partitions (6, 7, 8, and 9).  Since you only have 2 primary partitions, you won&#39;t have an entry for 3 or 4, just 1 and 2.<br>

<br>In looking at your list here, it&#39;s likely that sda8 is your /boot filesystem and that sd9 contains your root filesystem and swap partition (assuming a default selection of settings during the installation of Fedora).  Because LVM is in use here, we can&#39;t mount the disk partitions directly.  Remember, the disk partition is an LVM physical volume, it&#39;s not a filesystem that can be mounted.  However, the logical volumes *are* normal filesystems that can be mounted.<br>

<br>I can&#39;t see the hostname of your machine, but I&#39;ll wager you didn&#39;t change the default installation name of vg_$(hostname) so I&#39;ll go with that here:<br><br># mount -t ext4 /dev/mapper/vg_$(hostname)/lv_root /mnt<br>
<br>This will mount the logical volume &quot;lv_root&quot; contained in volume group &quot;vg_yourhostname&quot; under /mnt with a filesystem type of ext4 (what your system is most likely using).  If you receive an error about the wrong filesystem type, then you may be using the ext3 filesystem.  In that case, simply replace ext4 with ext3.  You can then follow the rest of the information provided to restore your backup copy of the fstab (you&#39;ll restore your backup to /mnt/etc/fstab, remember, you&#39;ve mounted your system&#39;s root partition under /mnt, the actual /etc directory when booted off the Live CD is the /etc/ on the Live CD).<br>
<br>Here&#39;s a real example, done on my own machine using the Live CD:<br><br>[liveuser@localhost ~]$ su -<br>[root@localhost ~]# lvscan<br>  ACTIVE            &#39;/dev/homevg_1/homelv_1&#39; [1.36 TiB] inherit<br>  ACTIVE            &#39;/dev/vg_circe/lv_root&#39; [1.36 TiB] inherit<br>
  ACTIVE            &#39;/dev/vg_circe/lv_swap&#39; [5.44 GiB] inherit<br>[root@localhost ~]# mount -t ext4 /dev/mapper/vg_circe-lv_root /mnt<br>[root@localhost ~]# ls -l /mnt/etc/fstab*<br>-rw-r--r--. 1 root root 957 Jun 27 05:00 /mnt/etc/fstab<br>
-rw-r--r--. 1 root root 861 Jun 26 17:46 /mnt/etc/fstab.20100626<br>[root@localhost ~]# <br><br>There&#39;s only one part where this gets confusing.  The lvscan told us that the logical volume is /dev/vg_circe/lv_root.  But when we mount it, we use /dev/mapper/vg_circe-lv_root.  Note how we&#39;ve included &quot;mapper&quot; and we&#39;ve changed a forward slash (/) to a dash (-).  All you need to do to fix this is copy your backup fstab to /mnt/etc/fstab and reboot.<br>
<br>Good luck!<br>
</div></div><br>-- <br>Chris<br><br><br>