Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Can't figure out how to get ext4 data partition to read/write permanently

  1. #1
    Join Date
    Jun 2009
    Location
    Saint Louis, Missouri USA
    Beans
    28
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Can't figure out how to get ext4 data partition to read/write permanently

    Hi Everyone,

    I have been working on this problem for a full day now checking all the previous posts regarding this subject but no luck, so thought I would seek help. Yesterday I installed Xubuntu(latest) alongside windows 7 in a dual boot scenario. Everything worked fine until I installed Steam and tried to stipulate where the games library would be. I had created a 40 GB logical drive partition for this purpose but it keeps telling its read only. Now thinking back to when I installed, I did specify something about using encryption, could this be causing a problem? Here are the steps I am taking and the results.

    I type in first in the emulator:

    andrew@andrew-MS-7350:~$ sudo blkid
    [sudo] password for andrew:
    /dev/sda1: LABEL="UUI" TYPE="vfat"
    /dev/sdb1: UUID="20483E3C483E1150" TYPE="ntfs"
    /dev/sdb5: LABEL="/" UUID="90f7daf4-5f4e-40aa-b97e-494780906d5c" TYPE="ext4"
    /dev/sdb7: UUID="3dfe77cf-6f80-410e-8009-43a72bb71856" TYPE="ext4"
    /dev/sdc1: UUID="6C2CB25B2CB21FCE" TYPE="ntfs"
    /dev/sdd1: UUID="2A92BE8D53E0D596" TYPE="ntfs"
    andrew@andrew-MS-7350:~$

    I have highlighted in bold the location of the drive.

    Then I type this

    andrew@andrew-MS-7350:~$ gksudo gedit /etc/fstab

    Then I enter this:

    andrew@andrew-MS-7350:~$ UUID=<3dfe77cf-6f80-410e-8009-43a72bb71856> /dev/sdb7 /media/3dfe77cf-6f80-410e-8009-43a72bb71856 ext4 defaults 0 2
    bash: 3dfe77cf-6f80-410e-8009-43a72bb71856: No such file or directory
    andrew@andrew-MS-7350:~$

    Then I test:
    sudo mount -a

    there is no output after that command

    So I finally try this as others have:

    andrew@andrew-MS-7350:~$ sudo chown <andrew>:<andrew> /dev/sdb7 /media/3dfe77cf-6f80-410e-8009-43a72bb71856
    bash: andrew: No such file or directory
    andrew@andrew-MS-7350:~$


    Now bear with me I am new to Linux and don't know what I am doing. But if I can't get my data partition to read/write then using Linux seems pointless. I never used to have this problem with the previous Ubuntu. I need it to be mounted once I boot to the desktop. Any help would be greatly appreciated!

    aapeppin

  2. #2
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: Still Cant figure out how to get ext4 data partition to read/write permanently!!!

    A line in /etc/fstab should be built like this

    Code:
    # <file system>                           <mount point>      <type>  <options>       <dump>  <pass>
    where the <> symbols should not be there when you type in the real strings (see your entry for the root partition in your own file).
    I have a separate data file, which has the following line in my fstab file

    Code:
    UUID=a4f3f4ba-3d5c-4e4f-8e1a-c2f0de792f81 /mnt/multimed-2     ext4    defaults         0       2
    This will assume that the drive is always there. The system wants to mount the drive at boot.

    If you have an external drive, that you do not always connect, the following line might be better

    Code:
    UUID=a4f3f4ba-3d5c-4e4f-8e1a-c2f0de792f81 /mnt/multimed-2     ext4    defaults,noauto  0       0
    In order for it to work you must create the mount point (only once so not in fstab)
    Code:
    sudo mkdir -p /mnt/multimed-2
    Of course, use your own UUID string instead of mine, and select a mount point that you prefer (or use /mnt/multimed-2)

    Code:
    UUID=3dfe77cf-6f80-410e-8009-43a72bb71856
    And then connect the drive manually.

  3. #3
    Join Date
    Oct 2009
    Location
    Elgin, IL USA
    Beans
    3,363
    Distro
    Ubuntu 16.10 Yakkety Yak

    Re: Still Cant figure out how to get ext4 data partition to read/write permanently!!!

    I do not understand what you are attempting to enter at the shell prompt after gksu gedit /etc/fstab, especially when not saying what you did in the gedit window.

    To edit /etc/fstab you either need to edit it in the gedit window that pops up after you enter gksu gedit /etc/fstab (and you authenticate yourself) or another way to edit it within terminal or console would be sudo nano /etc/fstab (nothing is echoed while you enter your password blindly when sudo prompts for that). Make sure that whatever window you edit in is wide enough to not appear to (or actually) wordwrap long lines.
    i5 650 3.2 GHz upgraded to i7 870, 16 GB 1333 RAM, nvidia GTX 1060, 32" 1080p & assorted older computers

  4. #4
    Join Date
    Jun 2009
    Location
    Saint Louis, Missouri USA
    Beans
    28
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Still Cant figure out how to get ext4 data partition to read/write permanently!!!

    That's because i did not see a gedit window pop up, is this supposed to happen?
    ...beware of the karate kid...

  5. #5
    Join Date
    Jun 2009
    Location
    Saint Louis, Missouri USA
    Beans
    28
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Still Cant figure out how to get ext4 data partition to read/write permanently!!!

    Ok did what you said and the gedit window came up. Now not sure what to do? I have never edited this before, sorry!
    ...beware of the karate kid...

  6. #6
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: Still Cant figure out how to get ext4 data partition to read/write permanently!!!

    Add a line into /etc/fstab according to my previous post (Post #2)

    Edit: You may need to reboot to make it use the new content of /etc/fstab.
    Last edited by sudodus; January 11th, 2015 at 08:00 PM.

  7. #7
    Join Date
    Jun 2009
    Location
    Saint Louis, Missouri USA
    Beans
    28
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Can't figure out how to get ext4 data partition to read/write permanently

    This is what I see now

    # /etc/fstab: static file system information.
    #
    # Use 'blkid' to print the universally unique identifier for a
    # device; this may be used with UUID= as a more robust way to name devices
    # that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point> <type> <options> <dump> <pass>
    # / was on /dev/sdb5 during installation
    UUID=90f7daf4-5f4e-40aa-b97e-494780906d5c / ext4 errors=remount-ro 0 1
    # swap was on /dev/sdb6 during installation
    #UUID=cf768823-80ca-4cd6-ba0c-2e10b4c0ddef none swap sw 0 0
    /dev/mapper/cryptswap1 none swap sw 0 0







    [ Read 12 lines ]
    ^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos
    ^X Exit ^J Justify ^W Where Is ^V Next Page ^U UnCut Text ^T To Spell
    ...beware of the karate kid...

  8. #8
    Join Date
    Jun 2009
    Location
    Saint Louis, Missouri USA
    Beans
    28
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Can't figure out how to get ext4 data partition to read/write permanently

    ok done, how do I save the gedit and close out?
    ...beware of the karate kid...

  9. #9
    Join Date
    Jun 2009
    Location
    Saint Louis, Missouri USA
    Beans
    28
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Can't figure out how to get ext4 data partition to read/write permanently

    Well I ran the sudo nano /etc/fstab command and amended the file with the line of code you told me to (UUID=3dfe77cf-6f80-410e-8009-43a72bb71856 /mnt/multimed-2 ext4 defaults 0 2). ****, i hit ctrl X to save, then I rebooted. Now the drive icon has disappeared all totgether from the desktop, and doesnt show up in nautilus.

    # /etc/fstab: static file system information.
    #
    # Use 'blkid' to print the universally unique identifier for a
    # device; this may be used with UUID= as a more robust way to name devices
    # that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point> <type> <options> <dump> <pass>
    # / was on /dev/sdb5 during installation
    UUID=90f7daf4-5f4e-40aa-b97e-494780906d5c / ext4 errors=remoun$
    # swap was on /dev/sdb6 during installation
    #UUID=cf768823-80ca-4cd6-ba0c-2e10b4c0ddef none swap sw $
    /dev/mapper/cryptswap1 none swap sw 0 0
    UUID=3dfe77cf-6f80-410e-8009-43a72bb71856 /mnt/multimed-2 ext4 defaults $






    [ Read 16 lines ]
    ^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos
    ^X Exit ^J Justify ^W Where Is ^V Next Page ^U UnCut Text^T To Spell


    I'm terribly confused.
    ...beware of the karate kid...

  10. #10
    Join Date
    Jun 2009
    Location
    Saint Louis, Missouri USA
    Beans
    28
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Can't figure out how to get ext4 data partition to read/write permanently

    Here is what I see when I search for all partitions:

    andrew@andrew-MS-7350:~$ sudo blkid
    [sudo] password for andrew:
    /dev/sda1: LABEL="UUI" TYPE="vfat"
    /dev/sdb1: UUID="20483E3C483E1150" TYPE="ntfs"
    /dev/sdb5: LABEL="/" UUID="90f7daf4-5f4e-40aa-b97e-494780906d5c" TYPE="ext4"
    /dev/sdb7: UUID="3dfe77cf-6f80-410e-8009-43a72bb71856" TYPE="ext4"
    /dev/sdc1: UUID="6C2CB25B2CB21FCE" TYPE="ntfs"
    /dev/sdd1: UUID="2A92BE8D53E0D596" TYPE="ntfs"
    andrew@andrew-MS-7350:~$


    The sdb7 partition shows up here?
    ...beware of the karate kid...

Page 1 of 2 12 LastLast

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
  •