How to mount internal drive just formatted to ext3
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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.
Jiml8 asked you to write mount -t ext3 /dev/hdd1 /mnt/hdd1 You wrote mount -t ext3 /dev/mnt/hdd1
Can you spot the difference?
You are right, I messed up, so I went and wrote as corrected and this is what I got:
linux-wwtz:~ # mount -t ext /dev/hdd1 /mnt/hdd1
mount: unknown filesystem type 'ext'
linux-wwtz:~ #
What should I do? What is wrong and how can I corrected?
At this point I dont know where hdd1 is or if it's mounted.
linux-wwtz:~ # fdisk -l
Disk /dev/hda: 120.0 GB, 120060444672 bytes
255 heads, 63 sectors/track, 14596 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 14595 117234306 7 HPFS/NTFS
Disk /dev/hdb: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 1 262 2104483+ 82 Linux swap / Solaris
/dev/hdb2 263 2179 15398302+ 83 Linux
/dev/hdb3 2180 4998 22643617+ 83 Linux
Disk /dev/hdd: 40.0 GB, 40060403712 bytes
255 heads, 63 sectors/track, 4870 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdd1 1 4870 39118243+ 83 Linux
linux-wwtz:~ #
It looks like I did something wrong.(before this). When I went to lost+found, I got a warning: "permission denied" It might be a matter of permissions since I did all this as a root.
How do I get out of this hole that I caved for myself? Thanks in advance.
This will give just you exclusive full rights to the mounted partition. The permissions on directory used for the mount point are usually 0755 and owned by root. This changes when the filesystem is mounted to reflect the permissions of the filesystem.
On some systems, there is a group created with the same name as your user name. I did this manually in SuSE. This allows you to use
chown -R username:username /mnt/hdd1
to change both the user are group ownership.
( note: use your own username in place of username in the command )
This will give just you exclusive full rights to the mounted partition. The permissions on directory used for the mount point are usually 0755 and owned by root. This changes when the filesystem is mounted to reflect the permissions of the filesystem.
On some systems, there is a group created with the same name as your user name. I did this manually in SuSE. This allows you to use
chown -R username:username /mnt/hdd1
to change both the user are group ownership.
( note: use your own username in place of username in the command )
Thanks a lot! They are all right, I'm so dumb at this. I will try your advice and do everything again.I'm ashamed of my incapacity to resolve this. But I'll tell you one thing; when I formatted the first time I tried to give it a mount point, I think I tried /tmp, and afterwards I couldn't even see my files. So, could you advice me on where do I mount it in the Options?
Since you already created a mount point "/mnt/hdd1" you can use that. I would recommend creating a different directory with a purposeful name and using that as a mount point. Simply replace the "/mnt/hdd1" in the /etc/fstab file with the new mount point name. For example, if it is used for videos, you could do:
sudo mkdir /mnt/videos
and edit the /etc/fstab entry:
Code:
/dev/hdd1 /mnt/videos ext3 acl,user_xattr 1 1
This is an example from my /etc/fstab file. I just changed the mount point and device to match your situation.
( I am using SuSE 10.2 ).
Then you can change the permissions and ownership after mounting it.
sudo mount /mnt/videos
sudo chown -R username /mnt/videos
sudo chmod 0700 /mnt/videos
This will give you exclusive rights to the partition if that is what you want.
Alternately, if you use the YaST2 partitioner program, you can enter select the drive, click on edit and then enter the mount point. The partitioner will create the directory and edit the fstab entry for you. Before you do this however, unmount the partition if it isn't already.
Since you already created a mount point "/mnt/hdd1" you can use that. I would recommend creating a different directory with a purposeful name and using that as a mount point. Simply replace the "/mnt/hdd1" in the /etc/fstab file with the new mount point name. For example, if it is used for videos, you could do:
sudo mkdir /mnt/videos
and edit the /etc/fstab entry:
Code:
/dev/hdd1 /mnt/videos ext3 acl,user_xattr 1 1
This is an example from my /etc/fstab file. I just changed the mount point and device to match your situation.
( I am using SuSE 10.2 ).
Then you can change the permissions and ownership after mounting it.
sudo mount /mnt/videos
sudo chown -R username /mnt/videos
sudo chmod 0700 /mnt/videos
This will give you exclusive rights to the partition if that is what you want.
Alternately, if you use the YaST2 partitioner program, you can enter select the drive, click on edit and then enter the mount point. The partitioner will create the directory and edit the fstab entry for you. Before you do this however, unmount the partition if it isn't already.
Good Luck!
Weell, I'm sorry I've been so dense and it took so long, but I finally did it. Thanks to all you guys for your knowledge, your time and your patience. Thanks to you, I have mounted my drive, I know where it is and I have full access to it. I am eternally grateful
You are welcome. There is a steep learning curve when ever you start to use a new operating system. Even if you have a lot of experience. So don't feel bad. Things will seem a lot easier in time. I remember when all bash script files looked like Greek to me. Now, I'll install cygwin on a windows computer at work to be able to use the great utilities like sed and grep.
When you are just starting out, it may be useful to have a printout of a manpage on hand to refer to. You could use:
man -t <topic> | lpr
to print it out quickly. I find the printed and formatted form to be a lot easier to read and remember from.
You are welcome. There is a steep learning curve when ever you start to use a new operating system. Even if you have a lot of experience. So don't feel bad. Things will seem a lot easier in time. I remember when all bash script files looked like Greek to me. Now, I'll install cygwin on a windows computer at work to be able to use the great utilities like sed and grep.
When you are just starting out, it may be useful to have a printout of a manpage on hand to refer to. You could use:
man -t <topic> | lpr
to print it out quickly. I find the printed and formatted form to be a lot easier to read and remember from.
Thank you jsdhiwall. I don't know basic Linus, especially the file system, so, every dir that I created I couln't find, That was my major problem. I spent the day mounting and unmounting the drive, until it dawn on me that the dir I created were "hanging" from root. That solved everithing. In the meantime I acquired and incredible amount of knowledge from you guys. I'm impressed with this community's knowledge, generosity, willingness to spend time and patience. Thank you guys.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.