Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14
hi frens, I'm new to this forum.I'm using hardy heron.I want all the partitions of my hard drive to be mounted on the startup.Is there any command available to do ...
  1. #1
    Just Joined!
    Join Date
    Feb 2009
    Posts
    44

    [SOLVED] mounting partitions on startup

    hi frens,
    I'm new to this forum.I'm using hardy heron.I want all the partitions of my hard drive to be mounted on the startup.Is there any command available to do this job.I'm waiting for your ans.Please help me..
    Attached Files Attached Files
    Last edited by dharanitharan; 02-13-2009 at 03:43 AM. Reason: i want to add two attachments

  2. #2
    Linux Guru jmadero's Avatar
    Join Date
    Jul 2007
    Location
    California
    Posts
    1,958
    Post two things:

    sudo gedit /etc/fstab

    and

    sudo fdisk -l

    I'll help you get it up as soon as you post those
    Bodhi 1.3 & Bodhi 1.4 using E17
    Dell Studio 17, Intel Graphics card, 4 gigs of RAM, E17

    "The beauty in life can only be found by moving past the materialism which defines human nature and into the higher realm of thought and knowledge"

  3. #3
    Just Joined!
    Join Date
    Feb 2009
    Posts
    44
    # /etc/fstab: static file system information.
    #
    # <file system> <mount point> <type> <options> <dump> <pass>
    proc /proc proc defaults 0 0
    # /dev/sda3
    UUID=cc1a6ce2-022b-446f-a5e8-4a8ed30c9251 / ext3 relatime,errors=remount-ro 0 1
    # /dev/sda10
    UUID=2faed11b-5e61-400e-8e1f-23f1df97abec none swap sw 0 0
    /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0


    /********************************


    root@dharani:~# sudo fdisk -l

    Disk /dev/sda: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x000cb836

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 2550 20482843+ 7 HPFS/NTFS
    /dev/sda2 2551 18030 124343100 f W95 Ext'd (LBA)
    /dev/sda3 18031 19457 11462377+ 83 Linux
    /dev/sda5 2551 6374 30716248+ 7 HPFS/NTFS
    /dev/sda6 6375 6640 2136613+ 82 Linux swap / Solaris
    /dev/sda7 6641 9197 20539071 83 Linux
    /dev/sda8 9198 10198 8040501 7 HPFS/NTFS
    /dev/sda9 10199 12748 20482843+ 7 HPFS/NTFS
    /dev/sda10 12749 15298 20482843+ 7 HPFS/NTFS
    /dev/sda11 15299 17848 20482843+ 7 HPFS/NTFS
    /dev/sda12 17849 18030 1461883+ 82 Linux swap / Solaris

  4. #4
    Linux Guru jmadero's Avatar
    Join Date
    Jul 2007
    Location
    California
    Posts
    1,958
    that is the most screwed up partition table I've ever seen. Why do you have 12 partitions? Is there any way for you to condense that? I'm not even sure if you can have 12 partitions mounted at the same time
    Bodhi 1.3 & Bodhi 1.4 using E17
    Dell Studio 17, Intel Graphics card, 4 gigs of RAM, E17

    "The beauty in life can only be found by moving past the materialism which defines human nature and into the higher realm of thought and knowledge"

  5. #5
    Just Joined!
    Join Date
    Feb 2009
    Posts
    44
    i have 6 partitions in windows xp.i use 2 more linux distros.. what can i do now

  6. #6
    Linux Guru
    Join Date
    Jan 2009
    Location
    Dover, NH
    Posts
    1,633
    Okay, I'm a visual person, so I have to see this...
    Code:
    sda:
    +-1---+-2-Extended------------------------------------------+-3-----+
    |     +-5----+-6---+-7----+-8----+-9----+-10---+-11---+-12--+       |
    |NTFS | NTFS | swp | ext3 | NTFS | NTFS | NTFS | NTFS | swp | ext3  |
    |     +------+-----+------+------+------+------+------+-----+       |
    +-----+-----------------------------------------------------+-------+
    I see two Linux parts, I assume sda3 is the root partition and sda7 is /home. sda1 is Windows, and the rest doesn't make sense to me but I'm sure you have your reasons for wanting to keep things separated (I usually just have one common data partition and use directories to keep things organized, but, to each their own) Having two swap partitions is probably a waste.

    Your request will require a totally revamped fstab. I can do this, but it'll take a few.

  7. #7
    Linux Guru
    Join Date
    Jan 2009
    Location
    Dover, NH
    Posts
    1,633
    Okay, I didn't see that before my post went up... so then the two ext3 partitions are to be kept separate? You have aparently edited partitions since the original install, so I'll need to also see the output of ls -l /dev/disk/by-uuid/ to get this right.

  8. #8
    Just Joined!
    Join Date
    Feb 2009
    Posts
    44
    sorry friend i cant get you.what you trying to say

  9. #9
    Just Joined!
    Join Date
    Feb 2009
    Posts
    44
    root@dharani:~# ls -l /dev/disk/by-uuid/
    total 0
    lrwxrwxrwx 1 root root 10 2009-02-15 12:47 02C43B22C43B177F -> ../../sda8
    lrwxrwxrwx 1 root root 10 2009-02-15 12:47 0848E25748E24354 -> ../../sda9
    lrwxrwxrwx 1 root root 11 2009-02-15 12:47 2faed11b-5e61-400e-8e1f-23f1df97abec -> ../../sda12
    lrwxrwxrwx 1 root root 11 2009-02-15 12:47 3E90F3B590F3722F -> ../../sda11
    lrwxrwxrwx 1 root root 10 2009-02-15 12:47 491d2e22-f1cd-11dd-bd54-abf1c6a8eafd -> ../../sda7
    lrwxrwxrwx 1 root root 10 2009-02-15 12:47 50B0CF97B0CF81C8 -> ../../sda5
    lrwxrwxrwx 1 root root 10 2009-02-15 12:47 b5af9790-f1c4-11dd-8711-b1a778c35dcc -> ../../sda6
    lrwxrwxrwx 1 root root 10 2009-02-15 12:47 cc1a6ce2-022b-446f-a5e8-4a8ed30c9251 -> ../../sda3
    lrwxrwxrwx 1 root root 11 2009-02-15 12:47 D8A8EABBA8EA96F2 -> ../../sda10
    lrwxrwxrwx 1 root root 10 2009-02-15 12:47 DA6CD9526CD929D1 -> ../../sda1
    root@dharani:~#

  10. #10
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Open Terminal and execute this
    Code:
    cd /media
    sudo mkdir sda1 sda5 sda8 sda9 sda10 sda11
    Press Alt+F1 and type this
    Code:
    gksu gedit /etc/fstab
    It will open /etc/fstab file in Gedit.
    Add this code at the end of file :
    Code:
    /dev/sda1    /media/sda1    ntfs-3g   defaults,umask=0  0  0
    /dev/sda5    /media/sda5    ntfs-3g   defaults,umask=0  0  0
    /dev/sda8    /media/sda8    ntfs-3g   defaults,umask=0  0  0
    /dev/sda9    /media/sda9    ntfs-3g   defaults,umask=0  0  0
    /dev/sda10    /media/sda10    ntfs-3g   defaults,umask=0  0  0
    /dev/sda11    /media/sda11    ntfs-3g   defaults,umask=0  0  0
    Save file and reboot machine.
    Check /media/sda1 - 11 folders. All partitions will be mounted there and you will have full access.

    * It looks like you installed two Linux distro in your Hard disk. I haven't added code to mount / partition of other Linux distro. I need the output of df -h command for that.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Page 1 of 2 1 2 LastLast

Posting Permissions

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