LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   cant mount partition sda3 (https://www.linuxquestions.org/questions/linux-newbie-8/cant-mount-partition-sda3-907009/)

Karottenbaum 10-07-2011 06:07 PM

cant mount partition sda3
 
Im not able to mount sda3.
just so you know, i installed xubunto and this long i know linux....

i created all three partitions as primary, when it came to sda3 (supposed to be for movies and music) i didnt know what mountpoint to select (dont know anything about mountpoints)..
but i choosed opt/ as mountpoint, bcause i didnt know what to do... as far as i remember i formated it as FA32 (i know not good)

i found a file named opt/ which has the size of ma partition but i cant write on it,

something else: is it a bad idea to create all three partitions as primary?

how can i make xubuntu make use of the SWAP?


sudo fdisk -l

Code:

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: 0xb8f0ffa4

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1  *          1        1824    14647296  83  Linux
/dev/sda2            1824        2189    2929664  82  Linux swap / Solaris
/dev/sda3            2189        9730    60572672  83  Linux


corp769 10-07-2011 06:32 PM

Why would you mount something to /opt? That is for programs, configurations, etc... Whenever you mount something, you need to create a new directory as a mount path. /media and /mnt are there for a reason, to keep your mount points within them. Create a new directory in /mnt and mount /dev/sda3 to it, and you will be good.

frankbell 10-07-2011 07:12 PM

You will probably want to put /dev/sda3 in your fstab.

Here's one of the clearest explanations of /etc/fstab that I've found:

http://www.tuxfiles.org/linuxhelp/fstab.html

Karottenbaum 10-07-2011 09:32 PM

ok thanks, ill try that tommorow - im allready tyred!
thanks alot

adventuremalcolm 10-07-2011 10:01 PM

RE: Can't mount sda1
 
Hi

an excellent document for understand what goes where in Linux is the Filesystem Hierachy Standard. You can get it a t http://www.pathname.com/fhs/pub/fhs-2.3.html

I hope you find it helpful.

Malcolm
-------------------------------

Quote:

Originally Posted by Karottenbaum (Post 4492732)
Im not able to mount sda3.
just so you know, i installed xubunto and this long i know linux....

i created all three partitions as primary, when it came to sda3 (supposed to be for movies and music) i didnt know what mountpoint to select (dont know anything about mountpoints)..
but i choosed opt/ as mountpoint, bcause i didnt know what to do... as far as i remember i formated it as FA32 (i know not good)

i found a file named opt/ which has the size of ma partition but i cant write on it,

something else: is it a bad idea to create all three partitions as primary?

how can i make xubuntu make use of the SWAP?


sudo fdisk -l

Code:

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: 0xb8f0ffa4

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1  *          1        1824    14647296  83  Linux
/dev/sda2            1824        2189    2929664  82  Linux swap / Solaris
/dev/sda3            2189        9730    60572672  83  Linux



Karottenbaum 10-08-2011 03:42 PM

thanks for the hints and links, was very helpful.

my fstab looks like this now.

Code:

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' 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>
proc            /proc          proc    nodev,noexec,nosuid 0      0
# / was on /dev/sda1 during installation
/dev/sda1        /                ext4    errors=remount-ro 0      1
/dev/sda3      /mnt/Data        ext4    defaults        0      2
/dev/sda2        swap        swap        pri=42        0 0

/dev/sda3 gets mountet and i made a shortcut to my desktop, but i cant write on it. there is just one lost+found file...
should i edit the read/write permissions or is something else wrong?

thanks alot people!

yancek 10-08-2011 06:55 PM

Quote:

/dev/sda3 gets mountet and i made a shortcut to my desktop, but i cant write on it.
You mean you can't write to it as a normal user? or as any user? or even when using sudo? If you want users to be able to write to it you do need to give permission to users to do so. You can change the fstab entry from defaults to auto mount also as well as give users access and make it read/write, if you want?

Quote:

there is just one lost+found file..
That's all there should be there because you haven't written/copied any directories/files there because you haven't given permission to users to do so.

Karottenbaum 10-09-2011 12:59 PM

sorry im a little overused with all that configuring...

can you give me a hint how to grant users permission?
i have only one user who uses sudo if necessary.

yancek 10-09-2011 01:44 PM

Since sda3 is mounted at /mnt/Data, you can find out what the actual permissions are by typing this command in a terminal:

sudo ls -l /mnt/Data/

This will show permissions for user/group as well as who owns the file and the group which has access. If you don't understand it, post the output.

The command to change permissions is: chmod
You can post back the output of the ls command or read: man chmod or google chmod or changing permissions in linux to get more information.


All times are GMT -5. The time now is 10:07 AM.