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.
You can list the partitions on a device like this (example device is /dev/hda - the primary master IDE drive). Execute this command as root, or with sudo:
Code:
fdisk -l /dev/hda
On my machine, the output looks like this:
Code:
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 1 1816 14586988+ 83 Linux
/dev/hda2 1817 7867 48604657+ 83 Linux
/dev/hda3 7868 7992 1004062+ 82 Linux swap / Solaris
/dev/hda4 * 7993 9729 13952452+ 83 Linux
I can see that there are mountable partitions /dev/hda1, /dev/hda2 and /dev/hda4. (hda3 is a swap partition).
That will mount all your partitions as specified in /etc/fstab. For those that are already mounted, nothing will happen. For the one that you accidently unmounted, it will be remounted.
p.s. - It seems you might have some confusion about what "unmounting" means. It does not free up any disk space. Think of it like removing a floppy disk from your floppy drive (if you still have one of those things!) Sure, you can't use the floppy when it's not in the drive ("unmounted"), but there's no damage or major change to your system. When you need the floppy, just stick it back in the drive ("mount" it) and continue on. Mounting/unmounting is no big deal. It's done all the time.
p.s. - It seems you might have some confusion about what "unmounting" means. It does not free up any disk space. Think of it like removing a floppy disk from your floppy drive (if you still have one of those things!) Sure, you can't use the floppy when it's not in the drive ("unmounted"), but there's no damage or major change to your system. When you need the floppy, just stick it back in the drive ("mount" it) and continue on. Mounting/unmounting is no big deal. It's done all the time.
That will mount all your partitions as specified in /etc/fstab. For those that are already mounted, nothing will happen. For the one that you accidently unmounted, it will be remounted.
Ok But then it says
mount: special Device LABEL=/ext3Drive1 does not exist
mount: special Device LABEL=/opt1 does not exist
mount: special Device /dev/hda18 does not exist
I should have mentioned this earlier. after unmounting I tried "mkfs -t ext3 /dev/hda19" where /dev/hda19 Label was /ext3Drive1
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.