how to find unmounted partition
I accidently unmounted a partition that I had created when installing Linux. How can I retreive it. doest that hard disk space remain unused.
is there a command to find free hard disk space not used for any partitions? I should have mentioned this earlier. after unmounting I tried "mkfs -t ext3 /dev/hda19" :D where /dev/hda19 Label was /ext3Drive1 :rolleyes: |
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 Code:
Disk /dev/hda: 80.0 GB, 80026361856 bytes |
Well,
you can use, #sfdisk -s to list all your partitions,then you use fdisk to list all your active partitions. comparing these two o/p,you should be able to make an educated guess on the parition name that you had accidentaly umounted. hope this info helps. -Alphy |
Just login as root and run mount -a
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.
|
Quote:
|
Quote:
Great example. |
Quote:
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" :D where /dev/hda19 Label was /ext3Drive1 :rolleyes: |
Quote:
|
Quote:
|
All times are GMT -5. The time now is 05:27 PM. |