Results 1 to 8 of 8

Thread: how to automount ext3 partition

  1. #1

    Default how to automount ext3 partition

    hi,
    i have a data partition which i'd like to automount on boot, last time i remember it was easier, fstab content is somewhat different than most of tutorials i think, with disk by-id and when i simply put dev/sda 5 and repeated values from the second line of fstab it didnt work.

    fdisk -l output:
    Code:
    Disk /dev/sda: 120.0 GB, 120034123776 bytes
    255 heads, 63 sectors/track, 14593 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x29292928
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1               1         131     1052226   82  Linux swap / Solaris
    /dev/sda2   *         132        3367    25993170   83  Linux
    /dev/sda4            3368       14593    90172845    5  Extended
    /dev/sda5            3368       14593    90172813+  83  Linux
    fstab looks like this:
    Code:
    /dev/disk/by-id/ata-ST3120026AS_5LJ0EDFM-part1 swap                 swap       defaults              0 0
    /dev/disk/by-id/ata-ST3120026AS_5LJ0EDFM-part2 /                    ext3       acl,user_xattr        1 1
    proc                 /proc                proc       defaults              0 0
    sysfs                /sys                 sysfs      noauto                0 0
    debugfs              /sys/kernel/debug    debugfs    noauto                0 0
    usbfs                /proc/bus/usb        usbfs      noauto                0 0
    devpts               /dev/pts             devpts     mode=0620,gid=5       0 0

  2. #2
    Niclas Ekstedt NNTP User

    Default Re: how to automount ext3 partition

    crystalnewbie,

    >
    > hi,
    > i have a data partition which i'd like to automount on boot, last time
    > i remember it was easier, fstab content is somewhat different than most
    > of tutorials i think, with disk by-id and when i simply put dev/sda 5
    > and repeated values from the second line of fstab it didnt work.


    > /dev/disk/by-id/ata-ST3120026AS_5LJ0EDFM-part1 swap swap
    > defaults 0 0
    > /dev/disk/by-id/ata-ST3120026AS_5LJ0EDFM-part2 / ext3
    > acl,user_xattr 1 1


    Just replace the above lines with these in /etc/fstab

    /dev/sda1 swap defaults 0 0
    /dev/sda2 / ext3 acl,user_xattr 1 1

    Using the device name or device id are just two different ways to access a
    device. It doesn't matter which one you use.

    As for the data partition you need to tell it where to mount. For example;
    /dev/sda5 /mnt ext3 acl,user_xattr 0 0


    I take it you're able to mount the data partition manually.


    --
    _________________________________________
    Niclas Ekstedt, CNA/CNE/CNS/CLS
    Systems Engineer
    Atea Sverige AB


  3. #3
    Join Date
    Jun 2008
    Location
    Kansas City Area, Missouri, USA
    Posts
    7,236

    Default Re: how to automount ext3 partition

    Niclas Ekstedt wrote:
    > crystalnewbie,
    >
    >> hi,
    >> i have a data partition which i'd like to automount on boot, last time
    >> i remember it was easier, fstab content is somewhat different than most
    >> of tutorials i think, with disk by-id and when i simply put dev/sda 5
    >> and repeated values from the second line of fstab it didnt work.

    >
    >> /dev/disk/by-id/ata-ST3120026AS_5LJ0EDFM-part1 swap swap
    >> defaults 0 0
    >> /dev/disk/by-id/ata-ST3120026AS_5LJ0EDFM-part2 / ext3
    >> acl,user_xattr 1 1

    >
    > Just replace the above lines with these in /etc/fstab
    >
    > /dev/sda1 swap defaults 0 0
    > /dev/sda2 / ext3 acl,user_xattr 1 1
    >
    > Using the device name or device id are just two different ways to access a
    > device. It doesn't matter which one you use.


    It can matter. For example, I'm testing an LS-120 device, which looks
    both like a floppy and a 100 MB hard drive. When I installed it, it
    became /dev/sda, and my system disk was moved to /dev/sdb. If my
    drives had not been specified by device id, my system would not have
    booted!

  4. #4
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,857
    Blog Entries
    20

    Default Re: how to automount ext3 partition

    Add a line to fstab

    Code:
    /dev/sda5 /mnt/my_data  ext3       defaults              1 2
    Or you can use the Yast Partitioner to mount it. Just enter a mount point and follow it thru..
    Be careful in there.

    FSTAB - Editing Manually - openSUSE Forums
    Tumbleweed_KDE
    My Articles Was I any help? If yes: Click the star below

  5. #5
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    29,795

    Default Re: how to automount ext3 partition

    And you might be helped in understanding his all abit better with SDB:Basics of partitions, filesystems, mount points - openSUSE.

    And mounting on boot is not called 'automount'.
    Henk van Velden

  6. #6

    Default Re: how to automount ext3 partition

    thanks guys

  7. #7
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,857
    Blog Entries
    20

    Default Re: how to automount ext3 partition

    Quote Originally Posted by crystalnewbie View Post
    thanks guys
    Mounting is our speciality
    Hope it worked for you.
    Tumbleweed_KDE
    My Articles Was I any help? If yes: Click the star below

  8. #8
    Niclas Ekstedt NNTP User

    Default Re: how to automount ext3 partition

    Larry Finger,


    >> Using the device name or device id are just two different ways to access a
    >> device. It doesn't matter which one you use.

    >
    > It can matter. For example, I'm testing an LS-120 device, which looks
    > both like a floppy and a 100 MB hard drive. When I installed it, it
    > became /dev/sda, and my system disk was moved to /dev/sdb. If my
    > drives had not been specified by device id, my system would not have
    > booted!


    That's true.


    --
    _________________________________________
    Niclas Ekstedt, CNA/CNE/CNS/CLS
    Systems Engineer
    Atea Sverige AB


Posting Permissions

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