Find the answer to your Linux question:
Page 2 of 6 FirstFirst 1 2 3 4 5 6 LastLast
Results 11 to 20 of 57
From your last post you have two drives (output of fdisk -l) ... sda with a linux partition sda1, and an extended partition which just has a swap partition. sdb ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    3,043

    From your last post you have two drives (output of fdisk -l) ...
    sda with a linux partition sda1, and an extended partition which just has a swap partition.
    sdb with an extended partition with a linux partition sdb5.

    The above take up the entire disk capacities ... there is no ntfs partition to mount. Is there another drive you want to access? or is your issue mounting sdb5?
    If its mounting sdb5 then you need to post the output of
    Code:
    sudo cat /etc/fstab
    If you want us to suggest modifications for automount of devices.

  2. #12
    Linux Newbie leo5111's Avatar
    Join Date
    Oct 2006
    Location
    escaped from XP hell
    Posts
    186
    # /etc/fstab: static file system information.
    #
    # <file system> <mount point> <type> <options> <dump> <pass>
    proc /proc proc defaults 0 0
    # /dev/sda1
    UUID=94b396b8-1cee-4743-8582-702ae56507a0 / ext3 defaults,errors=remount-ro 0 1
    # /dev/sda5
    UUID=17e34ca3-ccbf-40d8-971a-ca43d35a6a3f none swap sw 0 0
    /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec 0 0
    /dev/scd1 /media/cdrom1 udf,iso9660 user,noauto,exec 0 # /etc/fstab: static file system information.
    #
    # <file system> <mount point> <type> <options> <dump> <pass>
    proc /proc proc defaults 0 0
    # /dev/sda1
    UUID=94b396b8-1cee-4743-8582-702ae56507a0 / ext3 defaults,errors=remount-ro 0 1
    # /dev/sda5
    UUID=17e34ca3-ccbf-40d8-971a-ca43d35a6a3f none swap sw 0 0
    /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec 0 0
    /dev/scd1 /media/cdrom1 udf,iso9660 user,noauto,exec 0 and thanx for tryin to help me

  3. #13
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    3,043
    I assume you managed to double post the fstab contents. First I suggest you add a directory to mount sdb5 to ...
    Code:
    sudo mkdir /media/sdb5
    Then check with a manual mount you get the desired effect
    Code:
    sudo mount /dev/sdb5 /media/sdb5
    Assuming this works you need to add a suitable entry in fstab for example ...
    Code:
    # /dev/sdb5
    /dev/sdb5 /media/sdb5     ext3    defaults        0       2

  4. $spacer_open
    $spacer_close
  5. #14
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Set fsck option to 0 or 1 in /etc/fstab file. 1 will force fsck on ext3 partition.
    Code:
    /dev/sdb5 /media/sdb5     ext3    defaults        0       0
    You wont be able to write in /media/sdb5 as Regular User. Give ownership of mount_point ( /media/sdb5 ) to Regular User for that.
    Let say, Regular User ID is leo. Execute this
    Code:
    sudo chown leo:leo /media/sdb5
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  6. #15
    Linux Newbie leo5111's Avatar
    Join Date
    Oct 2006
    Location
    escaped from XP hell
    Posts
    186
    im confused am i supposed to add whole thing?? /dev/sdb5
    /dev/sdb5 /media/sdb5 ext3 defaults 0 2 because if you look at youre post its on 2 lines thanks ??

  7. #16
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    3,043
    Quote Originally Posted by leo5111 View Post
    im confused am i supposed to add whole thing?? /dev/sdb5
    /dev/sdb5 /media/sdb5 ext3 defaults 0 2 because if you look at youre post its on 2 lines thanks ??
    The first line has # at the beginning so is ignored ... its just for you to read. Not stricktly necessary in this case but if you start using things like UUID the comments come in handy. Look at the rest of your fstab file and see what I mean.

  8. #17
    Linux Newbie leo5111's Avatar
    Join Date
    Oct 2006
    Location
    escaped from XP hell
    Posts
    186
    output of of f-disk i fubared my file coudnt get back in so reinstalled mint... Disk /dev/sda: 74.3 GB, 74355769344 bytes
    255 heads, 63 sectors/track, 9039 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x1fc71fc6

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 8666 69609613+ 83 Linux
    /dev/sda2 8667 9039 2996122+ 5 Extended
    /dev/sda5 8667 9039 2996091 82 Linux swap / Solaris

    Disk /dev/sdb: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x870411e9

    Device Boot Start End Blocks Id System
    /dev/sdb1 2 60801 488376000 f W95 Ext'd (LBA)
    /dev/sdb5 2 60801 488375968+ 83 Linux

  9. #18
    Linux Newbie leo5111's Avatar
    Join Date
    Oct 2006
    Location
    escaped from XP hell
    Posts
    186
    also for future refernce how do i back it up before hand and if i screw it up and it refuses to boot how do i get back in and fix it?? thanx

  10. #19
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Could you post the contents of /etc/fstab and ouput of df -h command here?
    Code:
    cat /etc/fstab
    df -h
    how do i back it up before hand and if i screw it up and it refuses to boot how do i get back in and fix i??
    Just copy file(s) and save at safe place. In case anything goes wrong, booy in Rescue Mode or from any LiveCD and replace files.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  11. #20
    Linux Newbie leo5111's Avatar
    Join Date
    Oct 2006
    Location
    escaped from XP hell
    Posts
    186
    # /etc/fstab: static file system information.
    #
    # <file system> <mount point> <type> <options> <dump> <pass>
    proc /proc proc defaults 0 0
    # /dev/sda1
    UUID=d9b36543-19b3-4546-8617-f7e37950b61b / ext3 defaults,errors=remount-ro 0 1
    # /dev/sda5
    UUID=c9c4abf2-58e0-43da-bb81-1ebdda29cbaf none swap sw 0 0
    /dev/scd1 /media/cdrom0 udf,iso9660 user,noauto,exec 0 0
    /dev/scd0 /media/cdrom1 udf,iso9660 user,noauto,exec 0 0 EDIT also i tried logging in with live cd when it happened but didnt know the login name&password when usin the live cd so i couldnt get permission to change fstab or to erase and replace it

Page 2 of 6 FirstFirst 1 2 3 4 5 6 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
  •