LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 01-05-2008, 10:03 PM   #1
faby1321
LQ Newbie
 
Registered: May 2007
Posts: 17

Rep: Reputation: 0
Smile My fstab output doesn't show my slave!!!!!


hi guys! after spending 2 days (48hours) figuring out how to format, partition, mount and to change permission to a slave drive, I found out that I don't see my slave drive in the fstab output, was going on!!
I just want to find a logic on this system.
this is some information:

desktop:~$ sudo fdisk -l
Password:

Disk /dev/hda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 19080 153260068+ 83 Linux
/dev/hda2 19081 19457 3028252+ 5 Extended
/dev/hda5 19081 19457 3028221 82 Linux swap / Solaris

Disk /dev/hdb: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 1 9964 80035798+ 83 Linux


FSTAB OUTPUT:

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/hda1
UUID=7599b640-2ea2-4ef9-b063-491339638ef3 / ext3 defaults,errors=remount-ro 0 1
# /dev/hda5
UUID=2760dcf4-1e25-4497-9a72-c1ed02182d9d none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/hdd /media/cdrom1 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0


Every time I reboot my slave, it mounts and i can read and write to it, and now i sooo happy that i want to know what happened so i can help another newbie.

As you see the fstab output, there is not any slave (hdb1) mounted
I hope you will help me with this one too.

Last edited by faby1321; 01-05-2008 at 10:06 PM.
 
Old 01-05-2008, 10:35 PM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
you can manually mount (make accessible) your slave with shell commands
Code:
su (and passwd)
mkdir /mnt/slave
mount -t ext3 /dev/hdb1 /mnt/slave
change /mnt/slave to anything you like and I am assuming you formatted slave same as master as ext3.

if your file manager navigates ok then add a line to fstab so it automatically mounts on bootup

fstab entry (style dev)

/dev/hdb1 /mnt/slave ext3 defaults 0 2

2) but if you prefer uuid style you will need to look at /var/log/syslog after manually mounting to see what uuid is reported.
 
Old 01-06-2008, 11:59 AM   #3
faby1321
LQ Newbie
 
Registered: May 2007
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks AUS9: that helped me a lot but now when I try to see my etc/fstab, I got this:

desktop:~$ /etc/fstab
bash: /etc/fstab: Permission denied
-desktop:~$

I'm the only owner, user and superuser of this system so, what did I do wrong?
 
Old 01-06-2008, 12:16 PM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
You need to edit the file with a text editor (and will need root permissions to do so - use sudo as you did with fdisk). Simply typing "/etc/fstab" at the prompt tells the shell to execute /etc/fstab (as if it were a binary, or a script for example). You get that error because executable permissons aren't set on the file, which makes sense given what I've said in the last sentence. If you want to read plain text files on the command line, you can use "cat" (which concatenates files and prints them, but will print a single file to standard output) or a pager like "more" or "less".

Last edited by Nylex; 01-06-2008 at 12:18 PM.
 
  


Reply



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
Is there a way to show the output of background process? nadavvin Linux - General 1 05-27-2007 11:21 PM
Can I show different output on the laptop screen and the external one? riwaJR Linux - Laptop and Netbook 9 11-14-2006 02:01 PM
i can not boot linux it show can not open fstab anurak Linux - General 8 06-21-2006 09:05 PM
fstab entries show non-linear partition numbers Caysho Linux - Newbie 2 01-01-2005 08:25 AM
why won't my fat32 partitions show up in fstab lailoken Linux - Newbie 8 04-21-2004 01:44 PM

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

All times are GMT -5. The time now is 09:16 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
Open Source Consulting | Domain Registration