My Linux Based Questions


Recommended Posts

+longgonebn

Your a genius. I didn't think that could have been a problem.

I am using PCManFM at the moment, and I tried launching the .deb file in default nautilus and it works like normal.

So I guess the question is, why is PCManFM having an issue and is there any solution? Not the biggest hassle to get these things installed obviously, but I would rather be able to do it from my choice of file manager.

Link to post
Share on other sites
ViperAFK

Your a genius. I didn't think that could have been a problem.

I am using PCManFM at the moment, and I tried launching the .deb file in default nautilus and it works like normal.

So I guess the question is, why is PCManFM having an issue and is there any solution? Not the biggest hassle to get these things installed obviously, but I would rather be able to do it from my choice of file manager.

pcmanfm does weird things with URI's apparently, its a nice file manager but its given me similar problems in the past (when I try to open a video from a mounted samba share in pcmanfm vlc would spit out a similar error, it would work fine in nautilus).

so it does sound you are indeed running into this bug: https://bugs.launchp...ter/+bug/752376 (pcmanfm is mentioned in the comments). What is strange is that according to the bug report software-center should now support this type of URI :/

EDIT: What version of ubuntu are you using? The fixed released note only mentioned quantal, it may not be fixed in 12.04 which would make sense as to why you still experience the issue.

I'd recommend giving gdebi a shot and see if it lets you open debs from pcmanfm, IMO gdebi is better than software-center for installing local .debs anyway, its much quicker. If it works you could set gdebi as the default for .debs and be good to go!

Link to post
Share on other sites
+longgonebn

pcmanfm does weird things with URI's apparently, its a nice file manager but its given me similar problems in the past (when I try to open a video from a mounted samba share in pcmanfm vlc would spit out a similar error, it would work fine in nautilus).

so it does sound you are indeed running into this bug: https://bugs.launchp...ter/+bug/752376 (pcmanfm is mentioned in the comments). What is strange is that according to the bug report software-center should now support this type of URI :/

EDIT: What version of ubuntu are you using? The fixed released note only mentioned quantal, it may not be fixed in 12.04 which would make sense as to why you still experience the issue.

I'd recommend giving gdebi a shot and see if it lets you open debs from pcmanfm, IMO gdebi is better than software-center for installing local .debs anyway, its much quicker. If it works you could set gdebi as the default for .debs and be good to go!

Yea I am on 12.04. If it's an issue that's not going to get fixed, I am ok with that. It's not that hard to open up Nautilus and run the .deb file. It's not like I need to do it all the time lol

I'm also not one for installing software that does the same thing as something else already installed, picky I know, but ya know.

Thanks.

Link to post
Share on other sites
  • 2 weeks later...
+longgonebn

How do I auto-mount drives on boot up? I have 4 internal media drives that need to be mounted automatically.

I have tried in the past and have caused issues with things. Easiest way possible?

Thanks.

Link to post
Share on other sites
+Majesticmerc

I think they should be automatically mounted these days. Either way, if you have to manually mount an internal drive on boot, you can add it to your /etc/fstab file (Ubuntu info: 1, 2).

It goes without saying that you should be careful when editing your fstab file, as you can screw up your system with a bad fstab, although it's nothing that can't be recovered as long as you back up your original fstab.

Link to post
Share on other sites
+longgonebn

I believe fstab is the way I tried last time. So I'd rather avoid it this time if I could?..

*is this all I have to do?

up a terminal -


  • sudo blkid - note the UUID of the partition you want to mount.

  • sudo nano /etc/fstab - copy the following line to the end of the file - UUID=xxxxyyyy /path/to/partition (add ntfs-3g if it is an NTFS partition) uid=1000,gid=1000,umask=0022,sync,auto,nosuid,rw,nouser 0 0

  • Save the file and restart computer to check.

If so, /path/to/partition would be /media/Shows if that is my drive named Shows? Or is it looking for a full path? And that code doesn't change anything else about the drive right? Just that it now auto mounts on start up...

So for my Shows drive it would be..

UUID=0eaf61f0-f491-465b-af62-a59b350118c3 /media/Shows uid=1000,gid=1000,umask=0022,sync,auto,nosuid,rw,nouser 0

Right..?

Link to post
Share on other sites
+Majesticmerc

I think so, although I wouldn't call myself the king of fstab. You'd obviously need to create the directory /media/Shows in advance (as well as for the other drives). You should (IIRC) be able to simply check your changes by adding the line to /etc/fstab and then calling "sudo mount -a" and seeing if it mounts. If it doesn't adjust as necessary until it does.

Link to post
Share on other sites
+longgonebn

You just confused me.

My drives are mounted, because I clicked on it and mounted it.

What do you mean create the directory before hand....that is the directory of the drive??

Link to post
Share on other sites
ajcdotme

You just confused me.

My drives are mounted, because I clicked on it and mounted it.

What do you mean create the directory before hand....that is the directory of the drive??

Linux file systems are fairly object based in that a folder on one drive (or appearing there as viewed by the filesystem) can actually be a symlink to an entirely different folder. I generally like to mount a drive as an object, then create a base folder structure on it to link to... if this fits what you want to do, you've got a couple part process.

#1 for the sake of flexibility, I'd mount the drive under /mnt/drivename (pick one) instead of mounting directly to your filesystem.

#2, as Majesticmerc said, use your mounting in fstab so that if you break a mount point, you don't get locked out on reboot. unmount your drive, create the uuid entry in fstab (your line above looks correct to me, change out /media/Shows portion for /mnt/drivename from above.) then call sudo mount -a which should run through your fstab file and attempt mounts. if the feedback it gives you is confusing, just enter "show mount" in terminal and you should see your drive listed.

#3 sudo mkdir /mnt/drivename/Shows (actual data storage location)

#4 cd /media (puts you where you want to link)

#5 ln -s /mnt/drivename/Shows Shows (creates a symlink from this directory to the mounted drive, explicitly named)

I know this is more steps than are actually needed, but gives you the flexibility of moving other directories to the drive for additional storage if needed. for example, /mnt/drivename/Movies, and allowing you to keep the files separate. Personal preference, but I tend to try to error on the side of future flexibility.

Link to post
Share on other sites
+longgonebn

I honestly didn't understand any of that.

All I know is my drives are under /media and that's it. I don't really want to fiddle around. I guess I am stuck with manual mounting.

The problem is I have programs that have permissions to those locations, the drives as is, if I change something everything is messed up.

Link to post
Share on other sites
Haggis

is it an external drive?

so say you want to mount it to /home/shows

i would try adding

UUID=xxxxyyyy /home/shows ext4 defaults 0 0

change the ext4 if its a different type

for example this is my fstab


UUID=55863616-9993-484a-8112-644e48540019 / ext4 discard,noatime,nodiratime,defaults 1 1
UUID=a413c0d4-5583-42f4-88b1-413e950ee0bd /boot ext4 discard,noatime,nodiratime,defaults 1 2
UUID=bfbcfd6d-2d47-46f0-ba15-cba0bc5ccfbe /home ext4 discard,noatime,nodiratime,defaults 1 2
UUID=1ec148df-8757-4980-a242-f95c40068194 /swap ext4 discard,noatime,nodiratime,defaults 1 2
none /tmp tmpfs defaults 0 0
/dev/sda1 /home/haggis/Storage ext4 defaults 0 0
[/CODE]

Link to post
Share on other sites
+Majesticmerc

You just confused me.

My drives are mounted, because I clicked on it and mounted it.

What do you mean create the directory before hand....that is the directory of the drive??

Drives must be mounted in a specific directory, and that directory must exist beforehand. Now if you're mounting the drive through your file browser (e.g. Nautilus, Dolphin, Thunar, PCManFM, etc), this directory will be created automatically, and deleted when you unmount the drive. If you want to mount the drive manually at boot-time, you'll have to create these directories inside /media using mkdir as a super user (i.e. root) while the drives are already unmounted.

Next, create the fstab lines as discussed, and use the "mount -a" command (or mount /media/Shows) as super user to test your fstab. Once everything is working your disks should be mounted on boot.

I'd recommend taking a look at this article on the Arch Linux wiki for a bit more insight on working with fstab: https://wiki.archlinux.org/index.php/Fstab. It's not Arch specific, and very informative IMO.

Link to post
Share on other sites
Farchord

I honestly didn't understand any of that.

All I know is my drives are under /media and that's it. I don't really want to fiddle around. I guess I am stuck with manual mounting.

The problem is I have programs that have permissions to those locations, the drives as is, if I change something everything is messed up.

Heh I'll add a little note to try to relieve your confusion.

In linux, EVERYTHING in your computer is a device. Everything is in /dev. But it's not as simple as opening something up in /dev, it has to be 'mounted', or 'interpreted' with the proper driver.

Now, in Ubuntu, most drives are automatically mounted once you click them in the file manager (And maybe enter your administrator password).

So like the guys are trying to explain before me, if you want to force mount a drive on boot, you need to first make a folder anywhere (Although it's probably better for organisation-sake if you just create one in /media, but that's up to you) and then add the fstab line they mentionned earlier.

To create a folder in anywhere but /home, do sudo mkdir /path/directory (For example, sudo mkdir /media/musicdrive).

Link to post
Share on other sites
+longgonebn

So right now I manually mount my drive from within PCManFM. Which creates

/media/Media

/media/Shows

/media/Movies

/media/Films

If I want that to happen automatically on start up I would want to unmount the drives and do this.

sudo mkdir /media/Media

sudo mkdir /media/Shows

sudo mkdir /media/Movies

sudo mkdir /media/Films

Then add this line for each at the end of fstab.

UUID=0eaf61f0-f491-465b-af62-a59b350118c3 /media/Shows uid=1000,gid=1000,umask=0022,sync,auto,nosuid,rw,nouser

Then do mount -a to test the new mount points before rebooting? (And no these are all internal drives)

Correct?

Link to post
Share on other sites
+Majesticmerc

That is correct, although obviously the uuids will be different. :)

Link to post
Share on other sites
+longgonebn

If something on my system, a program, uses those drives, accesses /media/Shows etc all the time.

Once this is done, will that program still be able to do that, or will I need to re-add the directory to the application?

I assume it's going to be the same, but want to make sure.

Link to post
Share on other sites
srbeen

I found a ubuntu bug where if you try to install ubuntu over an already installed ubuntu, theres absolutely no problem seeing the wifi password in the clear provided an account has wifi setup on the machine, without entering any user account infos or anything. It pops up during the install for downloading updates... Discovered by accident due to bad installed graphic drivers.

Link to post
Share on other sites
+longgonebn

I just followed the instructions, when I do sudo mount -a I get the following

mount: unknown filesystem type 'nouser'

mount: unknown filesystem type 'nouser'

mount: unknown filesystem type 'nouser'

mount: unknown filesystem type 'nouser'

Do I need to put ext4 somewhere in those lines?

Like I have

UUID=12498dda-899a-4e48-9d6e-a5372340f3dd /media/Movies uid=1000,gid=1000,umask=0022,sync,auto,nosuid,rw,nouser 0

Should I put

UUID=12498dda-899a-4e48-9d6e-a5372340f3dd /media/Movies ext4 uid=1000,gid=1000,umask=0022,sync,auto,nosuid,rw,nouser 0

Link to post
Share on other sites
+Majesticmerc

I just followed the instructions, when I do sudo mount -a I get the following

mount: unknown filesystem type 'nouser'

mount: unknown filesystem type 'nouser'

mount: unknown filesystem type 'nouser'

mount: unknown filesystem type 'nouser'

Do I need to put ext4 somewhere in those lines?

Like I have

UUID=12498dda-899a-4e48-9d6e-a5372340f3dd /media/Movies uid=1000,gid=1000,umask=0022,sync,auto,nosuid,rw,nouser 0

Should I put

UUID=12498dda-899a-4e48-9d6e-a5372340f3dd /media/Movies ext4 uid=1000,gid=1000,umask=0022,sync,auto,nosuid,rw,nouser 0

Sorry, I missed that in your fstab line. Yes, you'll need to add your file system with the line (Linux doesn't/can't autodetect in most cases). Using your example above, you'll need a line like this:

UUID=0eaf61f0-f491-465b-af62-a59b350118c3   /media/Shows	ext4	uid=1000,gid=1000,umask=0022,sync,auto,nosuid,rw,nouser	 0   0
                                                                 ^                                                                   ^
                                                                 |                                                                   |
                                                          File system here                                                    Pass value here

This assumes that your file system is ext4. You'll need to change this depending on the file system (e.g. ntfs-3g, ext3, etc)

Once your drive is automounting, you shouldn't need to do anything to your application, but get back to us if you get stuck of course :)

(Edited: Alignment)

Link to post
Share on other sites
+longgonebn

So not where I put ext4, move that to after nouser? Why do you have two 0s at the end now?

Also don't know what any of the code means, I found an example somewhere, so not sure if any of it is correct for me.

Link to post
Share on other sites
+Majesticmerc

I've fixed the alignment in the example. The file system type goes after the mount directory (e.g. /media/Shows ext4). The second zero is the "pass" value, it just tells fstab that it doesn't need to check the file system at boot time, and just to mount it. This is the default I think, but you should include it anyway to be sure.

I used the format described on the arch wiki:

<file system>        <dir>         <type>    <options>             <dump> <pass>

(link: https://wiki.archlinux.org/index.php/Fstab#File_example

Link to post
Share on other sites
+longgonebn

I now have this

UUID=12498dda-899a-4e48-9d6e-a5372340f3dd /media/Movies ext4 uid=1000,gid=1000,umask=0022,sync,auto,nosuid,rw,nouser 0 0

Correct?

Link to post
Share on other sites
firey

looks right to me. Ensure you have a /meda/Movies folder and it should work.

Link to post
Share on other sites
+Majesticmerc

Looks good :)

Link to post
Share on other sites
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By zikalify
      Linux Mint 20.1 ISOs have been approved for release [Update]
      by Paul Hill



      Following the beta release of Linux Mint 20.1 in mid-December, the stable release has been finalised and approved for release according to the Linux Mint website. While approved, the Linux Mint project has not yet published a blog post about the release or the ISOs but they are expected imminently.

      For those already running Linux Mint 20, the upgrade will be made available via the Update Manager but upgrading won’t be necessary if you’re happy with your existing setup. Like Linux Mint 20, Linux Mint 20.1 will receive security updates until 2025 as they’re both based on Ubuntu 20.04 LTS, however, it will come with desktop improvements and new apps developed by the Linux Mint project.

      Some of the new apps that will be available include Web Apps which lets your turn your favourite sites into web apps accessible from the app menu and an IPTV program called Hypnotix that’ll come pre-loaded with several freely available channels. For Chromium fans, the Mint team has decided to begin compiling the browser itself without a dependence on Ubuntu’s Snap packaging software.

      In a blog post from the end of December, Linux Mint’s head Clem Lefebvre said that there were still some issues that they wanted to work out before the release and couldn’t give an exact release date. Linux Mint is not known for giving exact release dates so there’s nothing out of the ordinary this time around. In the post, Lefebvre also stated that the team was considering an extra ISO image with the Linux 5.8 kernel to address some AMD Ryzen 5 and Ryzen 7 issues but this extra ISO has not yet shown up on the Mint website.

      Update: Linux Mint 20.1 has now been released and can be downloaded from linuxmint.com.

    • By News Staff
      Save 95% off this Complete Computer Networking eBook & Video Course Bundle
      by Steven Parker

      Today's highlighted deal comes via our Online Courses section of the Neowin Deals store where you can save 95% off this Complete Computer Networking eBook & Video Course Bundle. Attain systems efficiency & security with 14+ hours of video content and 5 comprehensive e books on DevOps, Programming, AWS, CCNA, and more.



      This bundle consists of the following courses:

      The Ultimate Kubernetes Bootcamp by School of Devops [Video]
      Prepare for the CKA Exam — Master Container Orchestration with Kubernetes One Step at a Time AWS Certified Advanced Networking: Specialty Exam Guide [eBook]
      Build Your Knowledge & Technical Expertise as an AWS-Certified Networking Specialist Hands-On Network Programming with C [eBook]
      Learn Socket Programming in C & Write Secure and Optimized Network Codes Analyzing Network Traffic with Wireshark 2.6 [Video]
      Delve Into Network Traffic & Analyze Individual Protocol Data Units Active Directory Administration Cookbook [eBook]
      Actionable, Proven Solutions to Identity Management & Authentication on Servers and in the Cloud Hands-On PowerShell for Active Directory [Video]
      Use PowerShell for Active Directory to Eliminate Manual Labor with Quick Automation Tasks & Functions Effective Jenkins: Getting Started with Continuous Integration [Video]
      Learn Continuous Integration, Automate Your Jenkins Projects & Get Continuous Feedback for Your Upstream/Downstream Projects Hands-On Kubernetes Networking [Video]
      Unravel the Mystery of Networking in Your Kubernetes Cluster in a Pragmatic Manner CCNA Cyber Ops SECOPS: Certification Guide 210-255 [eBook]
      Develop Your Cybersecurity Knowledge to Obtain CyberOps Certification Hands-On Linux for Architects [eBook]
      Design & Implement Linux-Based IT Solutions Good to know
      Updates included Length of time users can access after purchase: lifetime Redemption deadline: redeem your code within 30 days of purchase For a full description, specs, and author info please click here.

      Here's the deal:
      This Complete Computer Networking eBook & Video Course Bundle normally costs* $746 but it can be yours for just $29.99 for a limited time, that's a saving of $716.01 (95%) off the price.

      >> Get this deal, or learn more about it here <<
      See all Online Courses on offer. This is a time limited deal.
      Get $1 credit for every $25 spent · Give $10, Get $10 · 10% off for first-time buyers.

      Not for you?
      If this offer doesn't interest you, why not check out the following offers:



      The Win Your Dream 2020 Tesla Model 3 Giveaway Ivacy VPN - 5 year subscription for just $0.99 per month NordVPN - 2 year subscription at up to 68% off +3 months for free! Private Internet Access VPN - subscriptions at up to 71% off Unlocator VPN or SmartDNS - unblock Geoblock with 7-day free trial Subscribe to Neowin - for $14 a year, or $28 a year for Ad-Free experience Disable Sponsored posts · Neowin Deals · Free eBooks · Neowin Store

      Disclosure: This is a StackCommerce deal or giveaway in partnership with Neowin; an account at StackCommerce is required to participate in any deals or giveaways. For a full description of StackCommerce's privacy guidelines, go here. Neowin benefits from shared revenue of each sale made through our branded deals site, and it all goes toward the running costs.

    • By News Staff
      Pay What You Want for this Complete Linux eBook Bundle
      by Steven Parker

      Today's highlighted offer comes via our Online Courses section of the Neowin Deals store, where for a limited time you can Pay What You Want for the Complete Linux eBook Bundle. The 4-book guide to programming more powerfully and efficiently with Linux.



      How does it work?
      With the Pay What You Want bundles, you can get something incredible for as little as you want to pay. And if you beat the average price, you’ll receive the fully upgraded bundle! Included in this Pay What You Want deal, are the following courses:

      Pay What You Want (as little as $1) for the unlocked eBook:

      Mastering Embedded Linux Programming, Second Edition
      Master the Techniques Needed to Build Great, Efficient Embedded Devices On Linux

      ... and unlock the following eBooks with a bid over the average price:

      Mastering Linux Security & Hardening
      A Comprehensive Guide to Preventing Your Linux System From Getting Compromised

      Linux Shell Scripting Cookbook, Third Edition
      Do Amazing Things with the Linux Shell

      Mastering Linux Shell Scripting, Second Edition
      Master the Complexities of Bash Shell Scripting

      Here's the deal:
      The bundle represents an overall retail value of $160. Pay What You Want for the unlocked courses (as little as $1). Bid the average price or over and you'll take home the entire bundle. Qualify for the giveaway!
      Beat the Leader's price and get entered into the epic giveaway, plus get featured on the leaderboard!

      >> Pay What You Want for this Complete Linux eBook Bundle <<
      See other Pay What You Want deals. This is a time-limited deal.
      Get $1 credit for every $25 spent · Give $10, Get $10 · 10% off for first-time buyers.

      Not for you?
      If this offer doesn't interest you, why not check out the following offers:



      The Win Your Dream 2020 Tesla Model 3 Giveaway Ivacy VPN - 5 year subscription for just $0.99 per month NordVPN - 2 year subscription at up to 68% off +3 months for free! Private Internet Access VPN - subscriptions at up to 71% off Unlocator VPN or SmartDNS - unblock Geoblock with 7-day free trial Subscribe to Neowin - for $14 a year, or $28 a year for Ad-Free experience Disable Sponsored posts · Neowin Deals · Free eBooks · Neowin Store

      Disclosure: This is a StackCommerce deal or giveaway in partnership with Neowin; an account at StackCommerce is required to participate in any deals or giveaways. For a full description of StackCommerce's privacy guidelines, go here. Neowin benefits from shared revenue of each sale made through our branded deals site, and it all goes toward the running costs.

    • By Vindicta
      my laptop has an AMD ryzen 7 4800H with integrated AMD radeon graphics, a GTX 1660 TI, my OS is in windows 10. My laptop has a 144hz display and an external monitor (60hz) that is connected to my laptop which works PERFECTLY FINE before everything.
       

      So on my laptop screen, DOTA 2 was open while in my external monitor/display, I have my Discord and website open. I was just watching youtube vids when suddenly my monitor froze then laptop display turned blue with text saying " ;( windows ran into a problem" or something like that. At first I thought it was the fabled blue screen that breaks your computer but to my suprise it just automatically restarted my laptop, upon typing my password on my lockscreen, I noticed that my external monitor isn't working and that my laptop display looks weird. So, I asked a friend and told me to check my device manager and I saw that my AMD Radeon Graphics has this "code 43" thing, so he said to just update my drivers and update my windows software, so I did all that and its still there. I did a little exploring myself on my laptop and found that my laptop display was using MS basic display and that it was on 1hz, now I was panicking because I was thinking that my driver is broken or gone, so he told me to try using the one on the AMD website that updates drivers, and so I did that but still nothing. As for the monitor, I tried trouble shooting it, connecting-disconnecting it, force detecting with settings, using the "add device" button under "Bluetooth and other devices"  still nothing, I really dont know what to do. I dont even know what happened before the blue screen

      I seen people uninstall their drivers then install it or using the roll back options but idk, what if something happened to my laptop, I dont wanna risk it ;(
       
       
    • By zikalify
      Linux Mint 20.1 'Ulyssa' beta launches with new programs
      by Paul Hill



      The Linux Mint project has just released the beta for Linux Mint 20.1. The new beta is available in the Cinnamon, MATE, and Xfce flavours of Linux Mint and aside from desktop improvements, share the same set of new features.

      Neowin has covered some of Linux Mint’s development updates in recent months and the work that went in then has landed in a more mature form in this beta. Highlights include a new Web Apps tool that lets you turn your favourite sites into web apps accessible from the app menu and IPTV program called Hypnotix has been created and items can be marked as favourites in the file manager on Cinnamon.

      Another change in Linux Mint 20.1, which has been known for quite a while now, is the inclusion of Chromium in the repositories. Chromium had previously been removed from the Linux Mint repositories because the maintainers didn’t like that it had Snap dependencies. The Chromium that is now included is compiled directly by the Mint team and updates will be released in a timely manner.

      As with the other releases in this series, Linux Mint 20.1 will continue to get updates until 2025. Those running Linux Mint 20 will be able to upgrade in a pain-free manner when Linux Mint 20.1 is stable because the base packages will remain the same. Those who choose to download the beta today won’t have to reinstall when the stable version comes out in a few weeks, instead, you just need to make sure you install available updates.

      You can find the three Linux Mint 20.1 beta flavours over on the Evowise mirror which should provide decent download speeds no matter where you are in the world.