Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Linking your documents folder (and others) in Ubuntu to a Data Partition?

2»

Comments

  • Closed Accounts Posts: 3,654 ✭✭✭shadowninty


    shizz wrote: »
    /dev/sda7 /media/.data ext4 dev,suid,exec 0 2

    I was wondering if you could explain this command a bit more. My data partition is NTFS not ext4. and what does the end part mean?

    Also is it as simple as just putting this command straight in nothing else?
    Sorry, should've mentioned that you'd need to change the ext4 to NTFS :o
    I'm not too sure myself, the pass I think is to do with the order of partition checking, not sure about dump, but those are the settings I robbed from somewhere else :p


  • Registered Users, Registered Users 2 Posts: 1,506 ✭✭✭shizz


    Sorry, should've mentioned that you'd need to change the ext4 to NTFS :o
    I'm not too sure myself, the pass I think is to do with the order of partition checking, not sure about dump, but those are the settings I robbed from somewhere else :p

    Ah no worries.

    So should this do for me? /dev/sda5 /media/DATA NTFS dev,suid,exec 0 2

    And you just simply paste it into that file? Do I not have to put in the UUID?


  • Closed Accounts Posts: 3,654 ✭✭✭shadowninty


    shizz wrote: »
    Ah no worries.

    So should this do for me? /dev/sda5 /media/DATA NTFS dev,suid,exec 0 2

    And you just simply paste it into that file? Do I not have to put in the UUID?

    You can use /dev/sdXY, OR UUID. Its up to you!
    Just paste it in after opening it with the command I have :)


  • Registered Users, Registered Users 2 Posts: 1,506 ✭✭✭shizz


    You can use /dev/sdXY, OR UUID. Its up to you!
    Just paste it in after opening it with the command I have :)

    Ill use ur command now and see how it goes but just wondering if I was to use the UUID is that all I would have to put in?


  • Registered Users, Registered Users 2 Posts: 1,506 ✭✭✭shizz


    Ok so I just simply pasted that command in to fstab and restarted the computer. Upon restart I got an error message saying that a serious error occured in mounting it. I chose to ignore but the error came again so I chose to skip mounting. I couldn't open DATA so I deleted my entry in fstab and when I clicked on DATA it mounted and I can access the Drive.

    Any ideas?


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 14,081 ✭✭✭✭Johnboy1951


    Supply some factual information which might help us know what is done .....

    quote the error message exactly

    copy/paste the actual fstab line you used

    confirm that /media/DATA directory exists

    post the output of the fdisk -l command and also the output of blkid command


  • Registered Users, Registered Users 2 Posts: 1,506 ✭✭✭shizz


    Supply some factual information which might help us know what is done .....

    quote the error message exactly

    copy/paste the actual fstab line you used

    confirm that /media/DATA directory exists

    post the output of the fdisk -l command and also the output of blkid command

    I Will try it later and quote the exact message but yes the /media/DATA directory does exist. At least that is where Ubuntu mounts DATA when I access it.

    The line I entered into fstab is exactly like this, straight copy and paste, /dev/sda5 /media/DATA NTFS dev,suid,exec 0 2

    Youll have to help me with what you are askin at the end, Im not that familiar with it.


  • Registered Users, Registered Users 2 Posts: 14,081 ✭✭✭✭Johnboy1951


    shizz wrote: »
    I Will try it later and quote the exact message but yes the /media/DATA directory does exist. At least that is where Ubuntu mounts DATA when I access it.

    When mounting as you describe the DATA directory may be created 'on the fly' and deleted again when the partition is unmounted.

    That situation is no good for fstab entries ...... the directory must be there for the mount to occur.
    The line I entered into fstab is exactly like this, straight copy and paste, /dev/sda5 /media/DATA NTFS dev,suid,exec 0 2

    /dev/sda5 /media/DATA ntfs defaults 0 0

    I don't have any NTFS partitions here, so am not at all sure of the syntax, but I suspect the lower case lettering might be needed.

    Try the above in fstab in place of any other entry for /dev/sda5

    You can then try mounting the partition from the command line, as ROOT.
    If it mounts successfully, then the entry can be edited to give the correct permissions for its use.

    So open a terminal and gain root privileges ..... not sure how in Ubuntu as it uses some weird implementation of sudo ........ maybe sudo su or something like that?

    Entering the command
    mount
    should give you a list of everything that is presently mounted. Then enter
    mount /dev/sda5 /media/DATA

    If this goes OK issuing the mount command again should show the partition mounted. If it does not then please post back an exact copy/paste of the command and response.

    After that it is a matter of editing the fstab entry to get the correct permissions for you to read and write to the partition and its contents.
    Youll have to help me with what you are askin at the end, Im not that familiar with it.

    OK ...... as mentioned above .... it is a matter of launching a terminal, gaining root privileges, and entering the commands listed, and then reporting back the output from those commands.

    The commands in the previous post were

    blkid

    and

    fdisk -l (NOTE: that is a lower case L for List)

    I hope that helps a bit.


  • Registered Users, Registered Users 2 Posts: 1,506 ✭✭✭shizz


    When mounting as you describe the DATA directory may be created 'on the fly' and deleted again when the partition is unmounted.

    That situation is no good for fstab entries ...... the directory must be there for the mount to occur.



    /dev/sda5 /media/DATA ntfs defaults 0 0

    I don't have any NTFS partitions here, so am not at all sure of the syntax, but I suspect the lower case lettering might be needed.

    Try the above in fstab in place of any other entry for /dev/sda5

    You can then try mounting the partition from the command line, as ROOT.
    If it mounts successfully, then the entry can be edited to give the correct permissions for its use.

    So open a terminal and gain root privileges ..... not sure how in Ubuntu as it uses some weird implementation of sudo ........ maybe sudo su or something like that?

    Entering the command
    mount
    should give you a list of everything that is presently mounted. Then enter
    mount /dev/sda5 /media/DATA

    If this goes OK issuing the mount command again should show the partition mounted. If it does not then please post back an exact copy/paste of the command and response.

    After that it is a matter of editing the fstab entry to get the correct permissions for you to read and write to the partition and its contents.



    OK ...... as mentioned above .... it is a matter of launching a terminal, gaining root privileges, and entering the commands listed, and then reporting back the output from those commands.

    The commands in the previous post were

    blkid

    and

    fdisk -l (NOTE: that is a lower case L for List)

    I hope that helps a bit.

    I havent done the bottom commands yet but I edited the fstab with your code but havent restarted to see if it works as I tried the mount command in root and i get this back
    root@colin-N53SV:/home/colin# mount /dev/sda5 /media/DATA
    fuse: failed to access mountpoint /media/DATA: No such file or directory

    What does this mean? The media folder is there but obviously DATA isn't mounted there but I thought that that was what this command was for?


  • Registered Users, Registered Users 2 Posts: 1,506 ✭✭✭shizz


    I also just noticed that I know can't access the DATA partition.

    It seems to only prevent me from mounting it when i put that code into the fstab


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 14,081 ✭✭✭✭Johnboy1951


    I havent done the bottom commands yet but I edited the fstab with your code but havent restarted to see if it works as I tried the mount command in root and i get this back
    Quote:
    root@colin-N53SV:/home/colin# mount /dev/sda5 /media/DATA
    fuse: failed to access mountpoint /media/DATA: No such file or directory
    What does this mean? The media folder is there but obviously DATA isn't mounted there but I thought that that was what this command was for?

    It means the DATA directory does not exist ....... which is what I had asked previously.

    The directory MUST exist if the fstab entry is to work.
    I also just noticed that I know can't access the DATA partition.

    It seems to only prevent me from mounting it when i put that code into the fstab

    If you have an entry in fstab then that takes precedence which is why you cannot mount it by clicking on it.

    Create the DATA directory in /media first then try the mount commands again.


  • Registered Users, Registered Users 2 Posts: 1,506 ✭✭✭shizz


    It means the DATA directory does not exist ....... which is what I had asked previously.

    The directory MUST exist if the fstab entry is to work.



    If you have an entry in fstab then that takes precedence which is why you cannot mount it by clicking on it.

    Create the DATA directory in /media first then try the mount commands again.

    Ah ok sorry Im starting to understand it now.

    Ill try now.


  • Registered Users, Registered Users 2 Posts: 1,506 ✭✭✭shizz


    I Think it is working now. I created the directory, edited fstab and mounted the drive using root. Im going to restart the computer now and see if the drive is mounted.


  • Registered Users, Registered Users 2 Posts: 1,506 ✭✭✭shizz


    EUREKA it works haha. Thanks so much to everyone that helped me. I've learnt a lot about using the terminal and Linux in general.

    Although, maybe it's just because Im new to Linux and its a different way of doing things but this task was an awful lot easier to do in windows. Im not saying I prefer windows but it's tasks like this that might prevent people from the switch over.

    What do you think?


  • Closed Accounts Posts: 3,654 ✭✭✭shadowninty


    I'm just a casual user myself (hence my incredibly basic advice), tbh though I find this easier to do on Linux, because there were simple instructions when I Googled it. Windows just seems to mount *everything* at boot, which is silly.
    Mind you, I can see how you feel that way!
    I generally avoid the Terminal like the plague, GUIs are what I use for everything if possible. The terminal is much more functional in Linux OS's then Windows, primarily because most apps have a separate GUI which operates the program, thus it can be accessed from the Terminal too. Its also brilliant being able to copy commands off the internet.


  • Registered Users, Registered Users 2 Posts: 1,506 ✭✭✭shizz


    I'm just a casual user myself (hence my incredibly basic advice), tbh though I find this easier to do on Linux, because there were simple instructions when I Googled it. Windows just seems to mount *everything* at boot, which is silly.
    Mind you, I can see how you feel that way!
    I generally avoid the Terminal like the plague, GUIs are what I use for everything if possible. The terminal is much more functional in Linux OS's then Windows, primarily because most apps have a separate GUI which operates the program, thus it can be accessed from the Terminal too. Its also brilliant being able to copy commands off the internet.

    Why would it be considered silly to mount everything at boot?

    I enjoy using the terminal for the likes of copying stuff, making directories and generally any of the stuff we did in here. Although sometimes I don't like using it because I can't visualise whats going on so I feel like I dunno whats happening to the system.

    But I think its a very good tool to learn.


  • Closed Accounts Posts: 3,654 ✭✭✭shadowninty


    shizz wrote: »
    Why would it be considered silly to mount everything at boot?

    I enjoy using the terminal for the likes of copying stuff, making directories and generally any of the stuff we did in here. Although sometimes I don't like using it because I can't visualise whats going on so I feel like I dunno whats happening to the system.

    But I think its a very good tool to learn.

    It takes time to mount things, and exposes partitions to problems, and you cant unmount them then usually. Great that you like it!


  • Registered Users, Registered Users 2 Posts: 1,506 ✭✭✭shizz


    It takes time to mount things, and exposes partitions to problems, and you cant unmount them then usually. Great that you like it!

    Ah yeah I spose, I never thought of it like that. I guess when all you use is windows feels like thats the way it should be done haha.

    The positive thing about this way though was that I was in full control (and full blame haha).


  • Registered Users, Registered Users 2 Posts: 14,081 ✭✭✭✭Johnboy1951


    shizz wrote: »
    EUREKA it works haha. Thanks so much to everyone that helped me. I've learnt a lot about using the terminal and Linux in general.

    Although, maybe it's just because Im new to Linux and its a different way of doing things but this task was an awful lot easier to do in windows. Im not saying I prefer windows but it's tasks like this that might prevent people from the switch over.

    What do you think?


    I would never use a terminal to do what you did.
    I would use the GUI provided by my distro to do it.

    I don't know what GUI apps you have on your distro, so the only way to be sure is to provide terminal commands which should be universal.

    Neither do I mount my data, storage, music etc partitions through fstab.
    In fact the only entries in fstab here are those pertaining to the OS -- /, /home & swap -- as well as one LAN share. All 14 other partitions get mounted outside of fstab. Some I have automounted on boot up ..... for things like directory links from /home, while others I mount only as needed.

    Linux provides options ...... sometimes a bewildering number of them for new users. That is its power .... and its drawback for new users.

    When you wish to change the way you use things, the options will be there.

    Glad things are now working for you ;)


  • Registered Users, Registered Users 2 Posts: 1,506 ✭✭✭shizz


    I would never use a terminal to do what you did.
    I would use the GUI provided by my distro to do it.

    I don't know what GUI apps you have on your distro, so the only way to be sure is to provide terminal commands which should be universal.

    Neither do I mount my data, storage, music etc partitions through fstab.
    In fact the only entries in fstab here are those pertaining to the OS -- /, /home & swap -- as well as one LAN share. All 14 other partitions get mounted outside of fstab. Some I have automounted on boot up ..... for things like directory links from /home, while others I mount only as needed.

    Linux provides options ...... sometimes a bewildering number of them for new users. That is its power .... and its drawback for new users.

    When you wish to change the way you use things, the options will be there.

    Glad things are now working for you ;)

    Im sure there was another way to do what I did but it honestly wasn't obvious to me how to do it. If there was a GUI version I'd love some one to show me where abouts I can do it.

    Also you say you don't have any entries in fstab yet you mentioned that you have some partitions that automount on start up? I thought fstab was something that does this, as in there shouldn't be another way?


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 1,506 ✭✭✭shizz


    A quick google leads me to the fact that a GUI manager with the option for automounting partitions in Ubuntu has to be installed separately .

    http://maketecheasier.com/auto-mount-your-ntfs-partition-in-ubuntu/2009/04/14

    Probably would of saved some time all right. :P Thanks again to everyone though.


  • Registered Users, Registered Users 2 Posts: 14,081 ✭✭✭✭Johnboy1951


    shizz wrote: »
    Im sure there was another way to do what I did but it honestly wasn't obvious to me how to do it. If there was a GUI version I'd love some one to show me where abouts I can do it.

    Also you say you don't have any entries in fstab yet you mentioned that you have some partitions that automount on start up? I thought fstab was something that does this, as in there shouldn't be another way?

    I use KDE and its Device Notifier settings, which gives me control over the mounting and unmounting of the partitions. Some I choose to mount on boot and others not.

    I am sure there are other ways to achieve it too .... this being Linux :D


  • Registered Users, Registered Users 2 Posts: 1,506 ✭✭✭shizz


    Haha yes. Anyways I think that's it :) Thanks again.


  • Moderators, Arts Moderators Posts: 36,031 Mod ✭✭✭✭pickarooney


    What dock program are you using shizz?


  • Registered Users, Registered Users 2 Posts: 1,506 ✭✭✭shizz


    What dock program are you using shizz?

    Im not using any dock. At the start of this thread I was running Xubuntu which has a dock on the bottom but due to my windows install getting messed up I had to reinstall everything. So I decided to put on Ubuntu with Unity.

    So I guess if you want that dock go with Xubuntu :)


Advertisement