LinuxQuestions.org
Visit Jeremy's Blog.
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 02-23-2009, 02:00 PM   #61
QueenZ
Member
 
Registered: Sep 2008
Distribution: openSUSE, Ubuntu
Posts: 372
Blog Entries: 2

Original Poster
Rep: Reputation: 32

ls -a -l /mnt/sda4
ls -a -l /media/other

Quote:
queenz@queenz-ubuntu:~$ ls -a -l /mnt/sda4
total 8
drwxr-xr-x 2 root root 4096 2009-02-19 12:59 .
drwxr-xr-x 3 root root 4096 2009-02-19 12:59 ..
queenz@queenz-ubuntu:~$ ls -a -l /media/other
total 18
drwxr-xr-x 3 root root 1024 2009-02-23 13:59 .
drwxr-xr-x 5 root root 4096 2009-02-23 13:56 ..
-rw-r--r-- 1 root root 16 2009-02-23 13:59 IAmTheBest.txt
drwx------ 2 root root 12288 2009-02-13 07:26 lost+found
queenz@queenz-ubuntu:~$
 
Old 02-23-2009, 02:04 PM   #62
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,051

Rep: Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852
^ so you are ok then...
?

_____________

what are you expecting to see in /mnt/other ( i asked this a few pages back)?
(fyi: that is where /dev/sda4 is mounted).



~schneidz

Last edited by schneidz; 02-23-2009 at 02:07 PM.
 
Old 02-23-2009, 02:10 PM   #63
QueenZ
Member
 
Registered: Sep 2008
Distribution: openSUSE, Ubuntu
Posts: 372
Blog Entries: 2

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by schneidz View Post
^ so you are ok then...
?

_____________

what are you expecting to see in /mnt/other ( i asked this a few pages back)?
(fyi: that is where /dev/sda4 is mounted).



~schneidz
How am i ok? I want /dev/sda4 to auto-mount on system boot...
 
Old 02-23-2009, 02:13 PM   #64
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,051

Rep: Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852
^ yeah, im confused.

what i think is happening is that /dev/sda4 is auto-mounting on /media/other.

but your fstab is saying it should be mounted on /mnt/sda4.

weird ?

Last edited by schneidz; 02-23-2009 at 02:24 PM.
 
Old 02-23-2009, 02:24 PM   #65
QueenZ
Member
 
Registered: Sep 2008
Distribution: openSUSE, Ubuntu
Posts: 372
Blog Entries: 2

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by schneidz View Post
^ yeah, im confused.

what i think is happening is that /dev/sda4 is auto-mounting on /media/other.

where your fstab is saying it should be mounted on /mnt/sda4.

weird ?
No, my fstab doesn't say anything about sda4 because when i tried adding lines it didn't mount sda4 at all..

this is the line is used but didn't work..

Quote:
UUID=f8cbec94-b273-45e1-9b00-34aad25ccf0b /mnt/sda4 ext2 relatime,errors=remount-ro 0 1
 
Old 02-23-2009, 02:52 PM   #66
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,051

Rep: Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852
here's my fstab:
Code:
[schneidz@hyper schneidz]$ cat /etc/fstab
/dev/hda2                 /                       ext3    defaults        1 1
#LABEL=/                 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        0 0
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /proc                   proc    defaults        0 0
none                    /dev/shm                tmpfs   defaults        0 0
/dev/hda3               swap                    swap    defaults        0 0
#/dev/hda1              /mnt/dos                vfat    defaults        0 0
/dev/hdb1               /mnt/dos                vfat users,owner,rw,umask=000 0 0
/dev/sda1               /mnt/usb                auto users,owner,rw,umask=000 0 0
#/dev/sda1              /mnt/usb                auto    noauto          0 0
#/dev/cdrom              /mnt/cdrom              udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdrom              /mnt/cdrom              udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdrom1             /mnt/cdrom1             udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdrom2             /mnt/cdrom2             udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdrom3             /mnt/cdrom3             udf,iso9660 noauto,owner,kudzu,ro 0 0
if i wanted to add /dev/sda4 to mount at boot my fstab would look like this:
Code:
/dev/hda2                 /                       ext3    defaults        1 1
#LABEL=/                 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        0 0
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /proc                   proc    defaults        0 0
none                    /dev/shm                tmpfs   defaults        0 0
/dev/hda3               swap                    swap    defaults        0 0
#/dev/hda1              /mnt/dos                vfat    defaults        0 0
/dev/hdb1               /mnt/dos                vfat users,owner,rw,umask=000 0 0
/dev/sda1               /mnt/usb                auto users,owner,rw,umask=000 0 0
#/dev/sda1              /mnt/usb                auto    noauto          0 0
#/dev/cdrom              /mnt/cdrom              udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdrom              /mnt/cdrom              udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdrom1             /mnt/cdrom1             udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdrom2             /mnt/cdrom2             udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdrom3             /mnt/cdrom3             udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/sda4             /mnt/sda4             ext2     relatime,errors=remount-ro 0 1
 
Old 02-23-2009, 03:06 PM   #67
QueenZ
Member
 
Registered: Sep 2008
Distribution: openSUSE, Ubuntu
Posts: 372
Blog Entries: 2

Original Poster
Rep: Reputation: 32
Amazing schneidz, it worked!!

Can you tell me a little bit about each thing?
/dev/sda4 - What's that?
/mnt/sda4 - Mount point
ext2 - sda4 file system
relatime,errors=remount-ro 0 1 - What's that?
 
Old 02-23-2009, 03:12 PM   #68
QueenZ
Member
 
Registered: Sep 2008
Distribution: openSUSE, Ubuntu
Posts: 372
Blog Entries: 2

Original Poster
Rep: Reputation: 32
How can i fix this..

"Only root can unmount it" and "Only root can mount it" thing?
 
Old 02-23-2009, 03:14 PM   #69
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Add "users" to the option list of the relevant line in your fstab.
 
Old 02-23-2009, 04:01 PM   #70
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,051

Rep: Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852
Quote:
Originally Posted by QueenZ View Post
Amazing schneidz, it worked!!

Can you tell me a little bit about each thing?
1- /dev/sda4 - What's that?
2- /mnt/sda4 - Mount point
3- ext2 - sda4 file system
4- relatime,errors=remount-ro
5- 0
6- 1 - What's that?
man fstab
1- the hardware device.
before you were using uuid which is a unique identifier that doesnt need to be changed when you add remove devices. (notice in my example my /dev/hda1 had to change to /dev/hda2 when i bought a new hard drive).

2- the mount point that is used to reference a specific device (this is where you access the partition of the hard drive).

3- the filesystem that is formatted on the partiion.

4- options passed to the mount command.
relatime - something about relative access timestamps on files.
errors=remount-ro - probably if there is an error, try to mount read-only.

5- dump/backup changed files to some location.

6- the order to perform a fsck.
 
  


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
Can't Mount New Partition JonBL Linux - Software 2 07-12-2007 03:53 AM
installed FC 3 on another partition but can not mount that partition. MurX Fedora 15 02-01-2006 06:28 AM
Cant mount partition bvav22 Linux - Hardware 1 06-05-2005 10:04 PM
How to resize a partition and create/mount a new partition? Maarten_Holland Linux - Newbie 1 04-20-2005 09:56 AM
Why does my XP partition never mount? Kramer Linux - Laptop and Netbook 9 09-26-2003 01:31 AM


All times are GMT -5. The time now is 01:45 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration