Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Oh my, we are green, aren't we! OK, colours in file lists:
Most distros alias ls to ls --color so that you get a coloured display by default. The convention is that directories are deep blue, executable files (scripts and programs) are bright green and symbolic links (think Windows shortcut) are cyan. There are a few others but those are the main ones. And ordinary files are shown in black or white depending on the terminal background. The correct way to find out what kind of file you've got is to use the file command.
System files can only be edited by going to root with su or sudo. Don't do it unless you know exactly what you are doing. Messing with fstab in particular can make your system unbootable.
The philosophy of Linux is different from that of Windows. Windows keeps you out of all contact with the system because it assumes you're an idiot; the fact that you're using Windows at all makes that a reasonable assumption. Linux gives you full read access to the system files and allows you to acquire write access where necessary because it assumes that you're a trustworthy person who won't monkey with things he doesn't understand. It's up to you to prove yourself worthy of that trust.
Pitty for me that file is not a command. i type file -help or file --help but it says file: not found. I get question marks again what the difference would be between -help and --help. hmmm it probably is the tiny core distro i am using they stripped it down so some commands are not available is my guess...
hey i just found out i can do if and then statements on the command line, i need i better editor then vim anyone has a good idea. i would like one where i can use my arrow keys to navigate thru the lines when i want to change a line instead of this :a :d stuff. I know i'll search yahoo or duckduck or google
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
Rep:
Hey Jinux75 - congrats on your script !
You could (carefully ! ... read up on proper syntax ... again - improper syntax could leave you unable to boot your system ...) add a line to your /etc/fstab to automatically mount a readable optical disk at boot. There are other tools / methods - I'm sure other members will provide suggestions as well.
The uncontrollable mouse thing is what happens when you are in need of SWAP, but have NONE. The system is going around ending things to stay afloat. With that little ram you need SWAP. And you might give up on running a GUI like X. Unless you go with a really OLD distro that was new when the laptop was young. Things have grown and the minimum specs for linux isn't what it once was, except on fewer and fewer botique distros. Gentoo is a common mention for embedded systems with similar specs. Not for the meek or new to linux types though.
yes i could do that, but i made an install to the hdd and now when i reboot i get some error about no space on the device, so i have to install again. I think it would be better to take a more up to date laptop and then try again, because this 690mhz 191 mb 10gb laptop is killing me... later
Ok i dropped the old 690 mhz fujitsu and am now using: inxi
CPU~Dual core Pentium CPU T4400 (-MCP-) clocked at 1200.000 Mhz Kernel~3.16.0-38-generic x86_64 Up~1:08 Mem~793.3/1873.2MB HDD~250.1GB(2.2% used) Procs~153 Client~Shell inxi~1.9.17
well i am trying to use the mount command, but for me it is pretty difficult to understand as it seems not to listen to me, probably i am not knowing what i am doing, but if i type mount -? i get a list, on top of the list it says -a mount all filesystems in fstab. So my assumption is that the cdrom player would mount, automatically? but nothing happends. When i look in the UI i see the cdrom is called sr0. Also when typing man mount, man is not found i guess no man pages on the system then... How would i correctly mount the cdrom sr0 to my system, after that i would like to try unmount, but this is a unknown command so i am guessing to unmount i need a different mount switch. For now i just want to mount, man really i am a green idiot :-p
Someone care to explain how i can do this mounting? I will ofcourse keep trying myself when anything happend in a positive way i will post .. :-o
Most systems do have the man available but if you do not then use; http://man.he.net/ for one of many online man access. Online man mount information. BTW, the command umount is the proper command not unmount.
If you have a '/etc/fstab' that provides the mount then by placing a valid CD/DVD in the device will cause a mount to the designated mount point.
Quote:
Just a few links to aid you to gaining some understanding;
well i am trying to use the mount command, but for me it is pretty difficult to understand as it seems not to listen to me, probably i am not knowing what i am doing, but if i type mount -? i get a list, on top of the list it says -a mount all filesystems in fstab. So my assumption is that the cdrom player would mount, automatically? but nothing happens.
If you look more closely, you will see noauto under options. That stops the system trying to mount things like CDs automatically at boot when they might not be present.
Quote:
When i look in the UI i see the cdrom is called sr0. Also when typing man mount, man is not found i guess no man pages on the system then... How would i correctly mount the cdrom sr0 to my system?
mount /dev/sr0. You shouldn't need to specify a mountpoint, filesystem type or options because they are already there in fstab. That's what fstab is for!
Quote:
after that i would like to try unmount, but this is a unknown command so i am guessing to unmount i need a different mount switch.
It's umount, not unmount. Don't ask me why! If you mounted with mount /dev/sr0, you can unmount with umount /dev/sr0.
Good AM Jinux75 Hope to see you back today, discovering all the fun_puzzles of Linux/Unix
I had a couple more thoughts, on readings, for the process of discovering&learning *nix: Here, from web-searching my favorite keywords, I found something I recommend, for *nix 'bottom-up' Here's a wise person's guidelines on using Internet Forums, which I loved, for s
Fyi, you can see here, how I similarly 1st marveled at all the possibilities of my Linux discovery
(tho I knew the OldUnix basic foundation concepts, from decades-ago, which you're discovering!)
Best wishes always! "Keep on, keeping on" I think the old saying goes
p.s. IF you have 'internet', you have infinite 'man pages':
in a web-search box, simply put: man <command>
Quote:
Originally Posted by Jinux75
and i have man pages now :-)
Keep the old "191 mb"'er, for justbusybox (to avoid being seduced by easyGUI)!
The uncontrollable mouse thing is what happens when you are in need of SWAP, but have NONE. The system is going around ending things to stay afloat. With that little ram you need SWAP. And you might give up on running a GUI like X. Unless you go with a really OLD distro that was new when the laptop was young. Things have grown and the minimum specs for linux isn't what it once was, except on fewer and fewer botique distros. Gentoo is a common mention for embedded systems with similar specs. Not for the meek or new to linux types though.
I made a linux swap partition, but i still have no clue how to tell it to use it.
Most systems do have the man available but if you do not then use; http://man.he.net/ for one of many online man access. Online man mount information. BTW, the command umount is the proper command not unmount.
If you have a '/etc/fstab' that provides the mount then by placing a valid CD/DVD in the device will cause a mount to the designated mount point.
Have fun!
Hope this helps.
Thanks for all the info links, i am reading them right now :-)
If you look more closely, you will see noauto under options. That stops the system trying to mount things like CDs automatically at boot when they might not be present.
mount /dev/sr0. You shouldn't need to specify a mountpoint, filesystem type or options because they are already there in fstab. That's what fstab is for!
That is what fstab is for, yes but where does it come from, who is making it? the system ? does it look at the bios ? I see when linux is uncompressing /etc/fstab is configured, but how does it do that. Well ok I just take your word for it, it magically appears and is very handy.
But now i got rid of tiny core dsl etc. and am on mint. Now this GUI of mint is incredible, ms could learn something here. But the /mnt is empty while the hdd is mounted, because this is where the filesystem is at. So when looking at fstab, yes, with nano, i see: was on /dev/sda6 during_installation.
and then UUID= with a very long number ext4 errors=remount-ro 0 1
then it says
and swap was on /dev/sda1 during installation
and UUID= very long number none swap sw 0 0
so, how do i get in the directory that is my hard drive from the command line. Or where does it say it is linked to. Not /mnt and is it possible to access the swap ?
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
Rep:
Quote:
Originally Posted by Jinux75
That is what fstab is for, yes but where does it come from, who is making it? the system ? does it look at the bios ? I see when linux is uncompressing /etc/fstab is configured, but how does it do that. Well ok I just take your word for it, it magically appears and is very handy. ... so, how do i get in the directory that is my hard drive from the command line. Or where does it say it is linked to. Not /mnt and is it possible to access the swap ?
Hey Jinux75. Nothing magical about fstab - the file is generated when you first install linux, based on the partitions detected by the system during installation (and/or the ones you asked to be created during installation). Thereafter, it can be edited as required (albeit, carefully ...).
Your main partition (hard drive, if you like), is mounted by fstab as "/" ... your root directory ( root as in the directory sense, not the super user sense ...). The /mnt directory ( ... or any empty directory for which you have the appropriate permissions, either already existing or one you create ...) can be used for mounting other partitions, media, either manually or with fstab.
As for swap, it is not user-accessible and is not meant to be. The system uses the space as virtual memory as needed.
I encourage you to read up on the way linux "mounts" partitions and media ... The "everything is a file" concept of linux is a bit hard for a habitual Windows user to get their head around at first.
That is what fstab is for, yes but where does it come from, who is making it? the system ? does it look at the bios ? I see when linux is uncompressing /etc/fstab is configured, but how does it do that. Well ok I just take your word for it, it magically appears and is very handy.
For most distros, the installer makes it. It checks what disks you have and constructs a permanent fstab suitable for your system. Distros that work live in ram presumably use similar methods to create their own one-off version.
Quote:
But now i got rid of tiny core dsl etc. and am on mint. Now this GUI of mint is incredible, ms could learn something here. But the /mnt is empty while the hdd is mounted, because this is where the filesystem is at. So when looking at fstab, yes, with nano, i see: was on /dev/sda6 during_installation.
and then UUID= with a very long number ext4 errors=remount-ro 0 1
then it says
and swap was on /dev/sda1 during installation
and UUID= very long number none swap sw 0 0
so, how do i get in the directory that is my hard drive from the command line. Or where does it say it is linked to. Not /mnt and is it possible to access the swap ?
Are we talking about live Mint or an installed version? For any installed Linux, the root partition is mounted on /.
UUIDs (Universal Unique IDs) are used by many distros nowadays to identify disks, as they are permanent and unique. Whenever a filesystem is created on a partition, a random UUID is generated and stored in the filesystem's superblock.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.