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

Thread: Unable to read or write on hard drive partitions

  1. #1
    Join Date
    Apr 2014
    Beans
    4

    Question Unable to read or write on hard drive partitions

    So, I've just installed Lubuntu 13.10 on an old machine, and I'm totally new to Linux generally, I've been using Windows ever since, so when I try to open the drives *except for the on I have installed Lubuntu on* it requests the password to mount it, then I try to access files on it, I get this error: "Error opening directory '/media/username/UUID' Permission denied.
    And on startup screen it says: "The disk drive *code* is not ready yet or present, Continue to wait, press S to skip mounting or M for manual recovery".
    Help?
    [UPDATE] I only mounted the first partition which I installed the OS on manually when partitioning my hard drive with gparted live.
    Last edited by omar13; April 9th, 2014 at 05:32 PM. Reason: Updating

  2. #2
    Join Date
    Jul 2005
    Location
    England
    Beans
    Hidden!

    Re: Unable to read or write on hard drive partitions

    To help you further we need to know exactly what partitions you have on disk in your machine, so please open a terminal and run the command
    Code:
    sudo fdisk -l
    and report back here with the output you get. Then run command
    Code:
    sudo blkid -c /dev/null
    and finally
    Code:
    cat /etc/fstab
    and again show us the output from those two.

    That should mean we can show you a way to mount the partitions automatically at boot, and be able to read and write to them by making an edit to the fstab file you show us.
    DISTRO: Xubuntu 14.04-64bit --- Code-tags --- Boot-Repair --- Grub2 wiki & Grub2 Basics --- RootSudo

  3. #3
    Join Date
    Apr 2014
    Beans
    4

    Re: Unable to read or write on hard drive partitions

    First, thank you for the quick response.
    So, that's what I got:
    Code:
    sudo fdisk -l
    Code:
    Disk /dev/sda: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x00008ddf
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *        2048   146485247    73241600   83  Linux
    /dev/sda2       146485248   151093247     2304000   82  Linux swap / Solaris
    /dev/sda3       151093248   563931135   206418944   83  Linux
    /dev/sda4       563931136   976769023   206418944   83  Linux
    Code:
    sudo blkid -c /dev/null
    Code:
    /dev/sda1: UUID="6f3b5e1f-688f-4caf-81aa-d307b74ee682" TYPE="ext4"
    /dev/sda2: UUID="28ce9947-f7b1-4854-9839-880b7a0ebf8b" TYPE="swap"
    /dev/sda3: UUID="4ce42dbe-e7c6-40eb-bb6e-9769506966d1" TYPE="ext4"
    /dev/sda4: UUID="c380a7db-207d-4f80-ace4-d1a1e431ab96" TYPE="ext4"
    /dev/zram0: UUID="7487af7a-71cb-480e-96e9-c6112555c42c" TYPE="swap"
    /dev/zram1: UUID="8b8813eb-4b69-44ec-9989-7a5c9f9b092d" TYPE="swap"
    Code:
    cat /etc/fstab
    Code:
    # /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/sda1 during installation
    UUID=6f3b5e1f-688f-4caf-81aa-d307b74ee682 /               ext4    errors=remount-ro 0       1
    # swap was on /dev/sda5 during installation
    UUID=a4bb24b7-b468-4725-a195-fac5c1a80431 none            swap    sw              0       0
    /dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0

  4. #4
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    7,453
    Distro
    Lubuntu 14.04 Trusty Tahr

    Re: Unable to read or write on hard drive partitions

    omar13; Hi !

    While I am passing by, allow me to assist.
    Your swap UUIDs do not match:
    What is:
    /dev/sda2: UUID="28ce9947-f7b1-4854-9839-880b7a0ebf8b" TYPE="swap"
    as to what is in error; -> your /etc/fstab file:
    #swap was on /dev/sda5 during installation
    UUID=a4bb24b7-b468-4725-a195-fac5c1a80431 none swap sw 0 0
    My suggestion: -> edit the File System TAble to reflect what is true:
    Make a back up of the current file, just because Murphy's law always applies:
    Code:
    sudo cp /etc/fstab /etc/fstab-10apr2014
    Fire up your favorite text editor - here gedit -:
    Code:
    gksudo gedit /etc/fstab
    and make the following edits:
    "swap was on /dev/sda5 during installation" -> swap has been moved to sda2 10apr2014
    " UUID=a4bb24b7-b468-4725-a195-fac5c1a80431 " -> UUID=28ce9947-f7b1-4854-9839-880b7a0ebf8b

    copy and paste for best results.

    save the file and exit back to terminal.
    Check for error prior to rebooting;
    What returns from the terminal command:
    Code:
    mount -a
    a no return is a good thing - system did as told, no back talk. Else if a problem will talk to you about it.

    Now IF there are no errors reported, reboot and lets see the effect.

    my little bit to try and help
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubutu'n !

  5. #5
    Join Date
    Jul 2005
    Location
    England
    Beans
    Hidden!

    Re: Unable to read or write on hard drive partitions

    For some reason you also appear to have one partitioned swap, sda2, and two zram compressed swapfiles, zram0 and zram1, on your system; why is that?
    DISTRO: Xubuntu 14.04-64bit --- Code-tags --- Boot-Repair --- Grub2 wiki & Grub2 Basics --- RootSudo

  6. #6
    Join Date
    Sep 2013
    Location
    California
    Beans
    69
    Distro
    Lubuntu

    Re: Unable to read or write on hard drive partitions

    zram0 and zram are enabled by default in lubuntu 13.10 so that is why they are there not sure everyone knows that.

  7. #7
    Join Date
    Jul 2005
    Location
    England
    Beans
    Hidden!

    Re: Unable to read or write on hard drive partitions

    Well thanks.

    I was certainly not aware of that, but having just run blkid in my Lubuntu trusty, there it is!
    DISTRO: Xubuntu 14.04-64bit --- Code-tags --- Boot-Repair --- Grub2 wiki & Grub2 Basics --- RootSudo

  8. #8
    Join Date
    Sep 2006
    Location
    France.
    Beans
    Hidden!
    Distro
    Lubuntu 14.10 Utopic Unicorn

    Re: Unable to read or write on hard drive partitions

    Quote Originally Posted by ajgreeny View Post
    Well thanks.

    I was certainly not aware of that, but having just run blkid in my Lubuntu trusty, there it is!
    +1!
    | My old and mostly abandoned blog |
    Linux user #413984 ; Ubuntu user #178
    J'aime les fraises.
    Nighty night me lovelies!

    | Reinstalling Ubuntu ? Please check this bug first ! |
    | Using a ppa ? Please install ppa-purge from universe, you may need it should you want to revert packages back |
    | No support requests / username changes by PM, thanks. |

  9. #9
    Join Date
    Apr 2014
    Beans
    4

    Re: Unable to read or write on hard drive partitions

    Hey there,
    I tried to launch gedit but it says that it's not installed. And I couldn't edit fstab using LeafPad.
    Should I download and install gedit manually?

  10. #10
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    7,453
    Distro
    Lubuntu 14.04 Trusty Tahr

    Re: Unable to read or write on hard drive partitions

    omar13; Hello.

    I have not used 'leafpad' in ages, but to the best of my remembrance one has to right click on the file and choose "open as root".
    Installing 'gedit', would bring in a lot of probably unwanted libraries, themes and related files. Most likely on a lightweight system not what you want to do,

    Else: there is always the default CLI editor 'nano'; with but a bit of research to learn how to use it, will get the job done.

    I do hope this helps
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubutu'n !

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
  •