LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-12-2007, 11:50 AM   #16
Pumalite
Member
 
Registered: Apr 2007
Location: All over
Distribution: Suse 10.2
Posts: 131

Original Poster
Rep: Reputation: 15

Quote:
Originally Posted by tredegar
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:~ #

Last edited by Pumalite; 04-12-2007 at 11:54 AM.
 
Old 04-12-2007, 12:02 PM   #17
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
What should I do? What is wrong and how can I corrected?
You should read what you are asked to enter, and type it exactly.
Quote:
linux-wwtz:~ # mount -t ext /dev/hdd1 /mnt/hdd1
Compare the command you entered with the one you were asked to enter, and try again.
 
Old 04-12-2007, 12:30 PM   #18
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
One is almost forced to wonder if this is deliberate.
 
Old 04-12-2007, 01:01 PM   #19
Pumalite
Member
 
Registered: Apr 2007
Location: All over
Distribution: Suse 10.2
Posts: 131

Original Poster
Rep: Reputation: 15
Unhappy

Quote:
Originally Posted by tredegar
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?
This is my last try:

linux-wwtz:~ # mkdir /mnt/hdd1
mkdir: cannot create directory `/mnt/hdd1': File exists
linux-wwtz:~ # mount -t ext3 /dev/hdd1 /mnt/hdd1
linux-wwtz:~ # ls /mnt/hdd1
lost+found
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.
 
Old 04-12-2007, 01:22 PM   #20
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
Your drive is now mounted. What else do you want?
 
Old 04-12-2007, 02:00 PM   #21
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
FYI. Yast2 has a partitioner program. If the device is detected, you can format it and create a mount point for it using the GUI partitioner.

Second. After mounting the drive, you can change the permissions on the mount point:

chown -R username /mnt/hdd1
chmod -R 0700 /mnt/hdd1

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 )

Last edited by jschiwal; 04-12-2007 at 02:02 PM.
 
Old 04-12-2007, 02:56 PM   #22
Pumalite
Member
 
Registered: Apr 2007
Location: All over
Distribution: Suse 10.2
Posts: 131

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jschiwal
FYI. Yast2 has a partitioner program. If the device is detected, you can format it and create a mount point for it using the GUI partitioner.

Second. After mounting the drive, you can change the permissions on the mount point:

chown -R username /mnt/hdd1
chmod -R 0700 /mnt/hdd1

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?
 
Old 04-12-2007, 04:31 PM   #23
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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!

Last edited by jschiwal; 04-12-2007 at 04:34 PM.
 
Old 04-12-2007, 05:53 PM   #24
Pumalite
Member
 
Registered: Apr 2007
Location: All over
Distribution: Suse 10.2
Posts: 131

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jschiwal
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
 
Old 04-12-2007, 06:10 PM   #25
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.

Last edited by jschiwal; 04-12-2007 at 10:47 PM.
 
Old 04-13-2007, 10:12 AM   #26
Pumalite
Member
 
Registered: Apr 2007
Location: All over
Distribution: Suse 10.2
Posts: 131

Original Poster
Rep: Reputation: 15
Smile

Quote:
Originally Posted by jschiwal
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.
 
  


Reply

Tags
suse



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mount partially formatted drive true_atlantis Linux - Hardware 4 04-03-2006 10:23 PM
cannot mount already formatted secondary hard drive on newly installed debian angmar Debian 8 08-05-2005 01:12 PM
mount external firewire drive udf formatted tgreen Linux - Hardware 3 02-03-2005 10:02 AM
ext3 formatted drive capacity smaller than ntfs gsupp Linux - General 12 07-25-2004 02:47 PM
Is it possible to mount an external mac formatted firewire drive? BrianK Linux - General 1 06-03-2004 07:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration