Professional Web Applications Themes

fstab entry - Linux Setup, Configuration & Administration

I've searched google for an answer to this, found many but none specific enough. I am trying to load an extended partition (hda2) which is my D drive under windows... what is the correct entry in fstab for this? Thanks in advance. Here's fdisk -l: Disk /dev/hda: 20.0 GB, 20020396032 bytes 255 heads, 63 sectors/track, 2434 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hda1 * 1 257 2064321 6 FAT16 /dev/hda2 258 2434 17486752+ f Win95 Ext'd (LBA) /dev/hda5 258 1826 12602961 b Win95 FAT32 /dev/hda6 1827 1839 104391 ...

  1. #1

    Default fstab entry

    I've searched google for an answer to this, found many but none
    specific enough. I am trying to load an extended partition (hda2)
    which is my D drive under windows... what is the correct entry in
    fstab for this? Thanks in advance.

    Here's fdisk -l:

    Disk /dev/hda: 20.0 GB, 20020396032 bytes
    255 heads, 63 sectors/track, 2434 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/hda1 * 1 257 2064321 6 FAT16
    /dev/hda2 258 2434 17486752+ f Win95 Ext'd (LBA)
    /dev/hda5 258 1826 12602961 b Win95 FAT32
    /dev/hda6 1827 1839 104391 83 Linux
    /dev/hda7 1840 2304 3735081 83 Linux
    /dev/hda8 2305 2434 1044193+ 82 Linux swap


    Here's my fstab file:

    LABEL=/ / ext3 defaults
    1 1
    LABEL=/boot /boot ext3 defaults
    1 2
    none /dev/pts devpts gid=5,mode=620
    0 0
    none /proc proc defaults
    0 0
    none /dev/shm tmpfs defaults
    0 0
    /dev/hda8 swap swap defaults
    0 0
    /dev/cdrom /mnt/cdrom udf,iso9660
    noauto,owner,kudzu,ro 0 0
    /dev/cdrom1 /mnt/cdrom1 udf,iso9660
    noauto,owner,kudzu,ro 0 0
    /dev/fd0 /mnt/floppy auto
    noauto,owner,kudzu 0 0
    /dev/hda5 /mnt/E$ vfat
    defaults,umask=000 0 0
    /dev/hda1 /mnt/C$ vfat
    defaults,umask=000 0 0
    Eric Guest

  2. #2

    Default Re: fstab entry

    Eric wrote: 

    You can't use /dev/hda2 since it starts at 258 and ends at 2434
    and holds the /dev/hda5,6,7,8 partitions.

    --
    Confucius: He who play in root, eventually kill tree.
    Registered with The Linux Counter. http://counter.li.org/
    Slackware 9.1.0 Kernel 2.4.22 i686 (GCC) 3.3.1
    Uptime: 21:19, 1 user, load average: 0.27, 0.20, 0.34

    David Guest

  3. #3

    Default Re: fstab entry

    On Tue, 07 Oct 2003 08:35:57 -0700, Eric typed:
     

    <snip>
     


    You only have these two Windows partitions that are mountable, hda1 is a
    primary partition (Windows C: drive) and hda5 is the logical partition
    within the extended partition hda2. If this is the only IDE hard drive in
    the system then hda5 is your Windows D: drive.

    Please review;

    http://www.newlogic.co.uk/kbase/fdisk/page1.htm
    http://www.linuxselfhelp.com/HOWTO/mini/Partition/index.html


    --
    SCO + RICO Act = Justice

    Hi! I'm a .sig virus! Copy me to your .sig!

    Lenard Guest

  4. #4

    Default Re: fstab entry

    Eric wrote:
     
     

    .... /dev/hda2 is an extended partition, which contains one
    or more logical partitions. it's imperative to understand
    partitioning before attempting to gain access to them. what
    you are called the windows 'd' drive is /dev/hda5, which is
    the first logical partition within an extended.

    here's a couple sample entries, one for ntfs and one fat32:

    /dev/hda5 /win/D ntfs ro,users,gid=users,umask=0002,nls=iso8859-1 0 0
    /dev/hda1 /win/C vfat users,gid=users,umask=0002,iocht=iso8859-1,code=437 0 0
    ..
    --
    /// Michael J. Tobler: motorcyclist, surfer, skydiver, \\\
    \\\ and author: "Inside Linux", "C++ HowTo", "C++ Unleashed" ///
    \\\ http://pages.sbcglobal.net/mtobler/mjt_linux_page.html ///
    We are confronted with insurmountable opportunities. - Walt Kelly

    mjt Guest

Similar Threads

  1. error in line_1 of /etc/fstab
    By noshellswill in forum Ubuntu
    Replies: 4
    Last Post: March 4th, 02:41 AM
  2. Sequence of entries in /etc/fstab
    By Doug Laidlaw in forum Linux Setup, Configuration & Administration
    Replies: 3
    Last Post: September 17th, 07:03 AM
  3. usb devices /etc/fstab
    By matt zagrabelny in forum Debian
    Replies: 2
    Last Post: July 21st, 04:20 AM
  4. Any ideas on how to confirm data entry of an item post entry?
    By Dale C Gray in forum Microsoft Access
    Replies: 3
    Last Post: July 21st, 03:40 AM
  5. OSX - nidumped fstab/exports
    By Paul Nevai in forum Mac Applications & Software
    Replies: 0
    Last Post: July 5th, 01:19 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139