LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 07-15-2009, 09:33 PM   #1
jollibee
Member
 
Registered: Jul 2009
Distribution: Red Hat EL 5
Posts: 34

Rep: Reputation: 15
Question How to Mount a file system (/dev/sdb) as ext3 (rw,acl,user_xattr)?


Hi,

I'm trying to mount a second hard drive as a ext3 (rw_acl,user_xattr).
I type the ff.:

# mkfs.ext3 -c /dev/sdb1(it seems to create a file system from this 2nd HD)

then type:
# mount -v /dev/sdb1 / type ext3 (it seems to mount it)

But when I check the ext3 systems with typing:

# mount -t ext3 (to check the list of ext3 devices, it gives me this)
/dev/sda1 on / type ext3 (rw,acl,user_xattr)
/dev/sda2 on /home type ext3 (rw,acl,user_xattr)
/dev/sdb1 on / type ext3 (rw)

How can I make /dev/sdb1 on type ext3 as (rw,acl,user_xattr) as the others?

Thanks,
Jo
 
Old 07-15-2009, 09:38 PM   #2
rayfordj
Member
 
Registered: Feb 2008
Location: Texas
Distribution: Fedora, RHEL, CentOS
Posts: 488

Rep: Reputation: 78
Code:
mount -o rw,acl,user_xattr /dev/sdb1 /
but i should suspect that you would prefer to mount it to a location other than /, maybe /data, or /mnt/backup, or some other less intrusive and possibly system operation interrupting...
 
Old 07-16-2009, 04:11 AM   #3
shahz
Member
 
Registered: Sep 2006
Location: Quetta, Pakistan
Distribution: RHEL, Ubuntu, Fedora
Posts: 368

Rep: Reputation: 29
but for permenent change you need to add rw,acl,user_xattr in /etc/fstab also
 
Old 07-16-2009, 09:27 AM   #4
jollibee
Member
 
Registered: Jul 2009
Distribution: Red Hat EL 5
Posts: 34

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by rayfordj View Post
Code:
mount -o rw,acl,user_xattr /dev/sdb1 /
but i should suspect that you would prefer to mount it to a location other than /, maybe /data, or /mnt/backup, or some other less intrusive and possibly system operation interrupting...
Oh, ok. So if I mount it as /data or /mnt/backup then I can access it in the /home/mydir and save data on it?

Thanks!
 
Old 07-16-2009, 09:32 AM   #5
jollibee
Member
 
Registered: Jul 2009
Distribution: Red Hat EL 5
Posts: 34

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by shahz View Post
but for permenent change you need to add rw,acl,user_xattr in /etc/fstab also
How can I add rw,acl,user_xattr in /etc/fstab for this file system (/dev/sdb1)?

What is the topic so I can search it in the book?

Thanks!
 
Old 07-16-2009, 09:48 AM   #6
jollibee
Member
 
Registered: Jul 2009
Distribution: Red Hat EL 5
Posts: 34

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by rayfordj View Post
Code:
mount -o rw,acl,user_xattr /dev/sdb1 /
but i should suspect that you would prefer to mount it to a location other than /, maybe /data, or /mnt/backup, or some other less intrusive and possibly system operation interrupting...
Hi!

I tried using the the following codes:

# mount -o rw,acl,user_xattr /dev/sdb1 /data

and

# mount -o rw,acl,user_xattr /dev/sdb1 /mnt/backup

in both cases it said that mount point /data (/mnt/backup) does not exist.

Do I need to do something before this?

Thanks!
 
Old 07-16-2009, 10:35 AM   #7
jollibee
Member
 
Registered: Jul 2009
Distribution: Red Hat EL 5
Posts: 34

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jollibee View Post
Hi!

I tried using the the following codes:

# mount -o rw,acl,user_xattr /dev/sdb1 /data

and

# mount -o rw,acl,user_xattr /dev/sdb1 /mnt/backup

in both cases it said that mount point /data (/mnt/backup) does not exist.

Do I need to do something before this?

Thanks!
Hi, ok I got it (/dev/sdb1) mounted as type ext3 (rw,acl,user_xattr) in /data.
I did the following:

# mkdir /data
# mount -o rw,acl,user_xattr /dev/sdb1 /data

Thank you very much.

Do you have idea how to make it permanent in /etc/fstab?
 
Old 07-16-2009, 11:18 AM   #8
romad
LQ Newbie
 
Registered: Jun 2009
Location: GA USA
Distribution: Ubuntu 9.04, openSuSe 11.1
Posts: 21

Rep: Reputation: 17
Jollibee:

Check out this link. I think it has what you are looking for:

https://help.ubuntu.com/community/InstallgANewHardDrive

Hope this helps.
 
Old 07-16-2009, 11:19 AM   #9
romad
LQ Newbie
 
Registered: Jun 2009
Location: GA USA
Distribution: Ubuntu 9.04, openSuSe 11.1
Posts: 21

Rep: Reputation: 17
Sorry.. typo on last post:

https://help.ubuntu.com/community/In...gANewHardDrive
 
Old 07-16-2009, 11:45 PM   #10
jollibee
Member
 
Registered: Jul 2009
Distribution: Red Hat EL 5
Posts: 34

Original Poster
Rep: Reputation: 15
Lightbulb

Quote:
Originally Posted by romad View Post
Thanks!

I got it!

How to mount a second disk drive?

1. Check the name of the disk drive:
# fdisk -l

from here we know that the second drive is /dev/sdb1

2. Make the disk drive into ext3 system:
# mkfs -t ext3 /dev/sdb1 (or # mkfs.ext3 -c /dev/sdb1)

[this will make the drive ext3]

3. Make a directory for mounting the disk, say as /second_disk:
# mkdir /second_disk

4. Mount the disk drive with read-write permission (and others I don't know but I need - acl, user_xattr):
# mount -o rw,acl,user_xattr /dev/sdb1 /second_disk

5. To make this permanent mounting, revise the /etc/fstab file:
# gedit /etc/fstab

When gedit open add this line:
/dev/sdb1 /second_disk ext3 acl,user_xattr 0 0

(I just put 0 0 as dump and fsck option.)


Do you think I should use [1 2 ] instead of [0 0]?

Thanks!
 
Old 07-17-2009, 07:18 AM   #11
rayfordj
Member
 
Registered: Feb 2008
Location: Texas
Distribution: Fedora, RHEL, CentOS
Posts: 488

Rep: Reputation: 78
Quote:
Originally Posted by jollibee View Post

Do you think I should use [1 2 ] instead of [0 0]?
I, personally, would out of practice. While I do not know anyone that actually uses the dump field anymore (not saying there aren't people... just that I do not know of any that do ), I stick with what I know. For you for this field 0 or 1 may make little difference.

I would surely use the fsck field value, that way the filesystem is checked on boot for problems. This can be especially useful after an unexpected outage. I had a filesystem in fstab using [0 0] once. To this day I still do not recall why it is that I set it [0 0] instead of [1 2].



 
Old 07-17-2009, 09:50 AM   #12
jollibee
Member
 
Registered: Jul 2009
Distribution: Red Hat EL 5
Posts: 34

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by rayfordj View Post
I, personally, would out of practice. While I do not know anyone that actually uses the dump field anymore (not saying there aren't people... just that I do not know of any that do ), I stick with what I know. For you for this field 0 or 1 may make little difference.

I would surely use the fsck field value, that way the filesystem is checked on boot for problems. This can be especially useful after an unexpected outage. I had a filesystem in fstab using [0 0] once. To this day I still do not recall why it is that I set it [0 0] instead of [1 2].



Thank you, Ray!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 :could not find file system '/dev/root' AjayCelst Linux - Embedded & Single-board computer 2 07-13-2009 12:34 AM
mount disk - corrupted file EXT3 file system RAFAL Linux - General 3 04-08-2009 03:27 PM
How to enable ACL in /dev (udev) file system aldo_mozzi Linux - Newbie 1 03-11-2008 10:22 PM
Mount error, file system (ext3) on raid device g_johnsonsamuel Linux - Hardware 1 08-14-2007 07:11 AM
hfs: unable to find HFS+ superblock VFS: Can't find ext3 filesystem on dev sdb. macroron Linux - Hardware 3 11-20-2006 09:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:50 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration