Results 1 to 9 of 9

Thread: Unable to access new partition

  1. #1
    Join Date
    Jan 2011
    Location
    Poland
    Beans
    304
    Distro
    Ubuntu 12.04 Precise Pangolin

    Unable to access new partition

    I've created few new ext4 partitions and weird things started to happen.

    First I couldn't open neither the new partitions nor my USB pen drive even though they were listed under "Places". Nautilus simply wouldn't open. After some time it resolved itself and I could open all of them.

    But then I couldn't create a new folder nor copy any files to that partitions (error: permission denied).

    /etc/fstab contents:
    Code:
    proc            /proc           proc    nodev,noexec,nosuid 0       0
    /dev/sda1       /               ext4    errors=remount-ro 0       1
    /dev/sda5       none            swap    sw              0       0
    Code:
    :~$ sudo fdisk -l
    [sudo] password for hg1: 
    
    Disk /dev/sda: 80.0 GB, 80026361856 bytes
    255 heads, 63 sectors/track, 9729 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x00092ecc
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *         262        2410    17257472   83  Linux
    /dev/sda2            2410        9730    58795008    5  Extended
    /dev/sda3               1         262     2097152   82  Linux swap / Solaris
    Partition 3 does not end on cylinder boundary.
    /dev/sda5            9208        9730     4194304   83  Linux
    /dev/sda6            2410        2802     3145728   83  Linux
    /dev/sda7            2802        9208    51452928   83  Linux
    
    Partition table entries are not in disk order
    
    Disk /dev/sdb: 4026 MB, 4026531840 bytes
    255 heads, 63 sectors/track, 489 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0xf027b97a
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1   *           1         488     3919828+   6  FAT16
    Code:
    :~$ sudo blkid
    [sudo] password for hg1: 
    /dev/sda1: UUID="234f851a-ddd6-4e56-8adb-05fe335fdc1d" TYPE="ext4" 
    /dev/sda3: UUID="188b85cc-7989-4386-a7e6-32c5f5c02cbb" TYPE="swap" 
    /dev/sda5: UUID="ed0e75fa-3ebe-4597-98a8-1209c2cb7593" TYPE="ext4" 
    /dev/sda6: UUID="5b9cb703-2b3a-4287-b789-9f90964b031f" TYPE="ext4" 
    /dev/sda7: UUID="b215351b-0a65-45bf-99a3-d9cfd32b09eb" TYPE="ext4" 
    /dev/sdb1: SEC_TYPE="msdos" LABEL="MULTIBOOT" UUID="8CD4-97F3" TYPE="vfat"

  2. #2
    Join Date
    Apr 2009
    Location
    Rawalpindi, Pakistan
    Beans
    5,669
    Distro
    Ubuntu Gnome Development Release

    Re: Unable to access new partition

    There seem to be a problem with sda1 and sda3. But, please post the output of this command first.

    Code:
    sudo fdisk -lu

  3. #3
    Join Date
    Jan 2011
    Location
    Poland
    Beans
    304
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Unable to access new partition

    Thanks for such a fast response!

    Code:
    :~$ sudo fdisk -lu
    [sudo] password for hg1: 
    
    Disk /dev/sda: 80.0 GB, 80026361856 bytes
    255 heads, 63 sectors/track, 9729 cylinders, total 156301488 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: 0x00092ecc
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *     4196352    38711295    17257472   83  Linux
    /dev/sda2        38711296   156301311    58795008    5  Extended
    /dev/sda3            2048     4196351     2097152   82  Linux swap / Solaris
    Partition 3 does not end on cylinder boundary.
    /dev/sda5       147912704   156301311     4194304   83  Linux
    /dev/sda6        38713344    45004799     3145728   83  Linux
    /dev/sda7        45006848   147912703    51452928   83  Linux
    
    Partition table entries are not in disk order
    
    Disk /dev/sdb: 4026 MB, 4026531840 bytes
    255 heads, 63 sectors/track, 489 cylinders, total 7864320 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: 0xf027b97a
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1   *          63     7839719     3919828+   6  FAT16

  4. #4
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Unable to access new partition

    How are you mounting them. You need to be the owner & have permissions. Best to permanently mount with fstab.

    Understanding fstab
    http://ubuntuforums.org/showthread.php?t=283131
    https://help.ubuntu.com/community/Mount/
    https://help.ubuntu.com/community/FilePermissions

    $ sudo mkdir /Data
    $ sudo mount /dev/sda5 /Data
    where sda5 needs to be your drive, partition
    if not known to list partitions
    sudo fdisk -l

    If you cannot read and write then change the permissions. Not for NTFS

    $ sudo chmod -R 777 /Data
    sudo chown -R fred:fred /Data
    where fred should be your login name

    I prefer to manually edit as I have sometimes had issues with this:
    But it is a lot easier to use a graphical front end that both creates the mount point and edits fstab.
    Try installing pysdm from the repos.
    PySDM is a PyGTK Storage Device Manager
    GUI Fstab Editing with PySDM
    http://ubuntuforums.org/showthread.p...ighlight=pysdm
    Storage Device Manager - Worry-Free Fstab Configuration
    http://ubuntuforums.org/showthread.php?t=872197
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  5. #5
    Join Date
    Apr 2009
    Location
    Rawalpindi, Pakistan
    Beans
    5,669
    Distro
    Ubuntu Gnome Development Release

    Re: Unable to access new partition

    sda3 doesn't end on cylinder boundary but that is not a serious issue.

    In addition to oldfred's suggestion above, here is an even simpler one.

    http://ubuntu4beginners.blogspot.com...ives-with.html

  6. #6
    Join Date
    Jan 2011
    Location
    Poland
    Beans
    304
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Unable to access new partition

    I can't find that bloody PySDM. It's listed as installed in the software center.

    Isn't Ubuntu supposed to auto mount new partitions anyway?
    Last edited by Bucic; February 15th, 2011 at 07:17 PM.

  7. #7
    Join Date
    Jan 2011
    Location
    Poland
    Beans
    304
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Unable to access new partition

    I've added a line on the end of my fstab and currently it looks like this
    Code:
    /dev/sda1 / ext4 defaults 0 1
    /dev/sda3 swap swap sw 0 0
    /dev/sda7 /media/data ext4 defaults 0 2
    I still can't access that sda7 partition.

    I did only that (one line added). Nothing else. I used the sudo gedit /etc/fstab command. Rebooting doesn't help either.
    Last edited by Bucic; February 15th, 2011 at 10:54 PM.

  8. #8
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Unable to access new partition

    And did you chown & chmod it?

    if you look at the /media/data partition.

    Mine are all folders:

    Code:
    fred@fred-LT-A105:/mnt/data$ ls -l
    total 84
    drwxrw-rw- 10 fred fred  4096 2011-02-07 17:40 Documents
    drwxrw-rw-  2 fred fred  4096 2011-02-13 13:19 Downloads
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  9. #9
    Join Date
    Jan 2011
    Location
    Poland
    Beans
    304
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Unable to access new partition

    As I said I've only added the line in fstab.

    I did chown as per the guide at blogspot linked above. One command.


    It works now, however I would be grateful for additional info:
    - isn't ubuntu supposed to automount partitions created post system installation?
    - I recall I mounted more than one linux partition in the past and I have never even heard of chown and chmod. How is that possible? EDIT: Even this guide doesn't mention chmod/chown http://landofthefreeish.com/linux/ho...linux-install/
    Last edited by Bucic; February 16th, 2011 at 08:07 PM.

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
  •