LinuxQuestions.org
Review your favorite Linux distribution.
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 03-22-2005, 06:58 AM   #1
Linux_Nooby
LQ Newbie
 
Registered: Mar 2005
Location: UK
Distribution: Simply Mepis
Posts: 2

Rep: Reputation: 0
How do i mount a partition on a 2nd HD?


Hi,

I have had Simply Mepis installed for
several days now.

Can someone tell me how i can mount a ext3
partition that i have created on a second HD,
with read *and* write permissions?

Here is the original fstab. The partition
in question is hdb7.

# Static entries below, do not use 'users' option in this area
/dev/hda8 / ext3 defaults,noatime 1 1
/dev/hda6 swap swap sw,pri=1 0 0
none /proc proc defaults 0 0
none /proc/bus/usb usbfs devmode=0666 0 0
none /dev/pts devpts mode=0622 0 0
none /sys sysfs defaults 0 0
/dev/hda7 /home ext3 defaults,noatime 1 2
# Dynamic entries below, identified by 'users' option
/dev/hda1 /mnt/hda1 ntfs noauto,users,exec,ro,umask=0222 0 0
/dev/hda5 /mnt/hda5 ntfs noauto,users,exec,ro,umask=0222 0 0
/dev/hdb5 /mnt/hdb5 ntfs noauto,users,exec,ro,umask=0222 0 0
/dev/hdb6 /mnt/hdb6 ntfs noauto,users,exec,ro,umask=0222 0 0
/dev/hdb7 /mnt/hdb7 ext3 noauto,users,exec 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,users,dev,ro 0 0
/dev/cdrom1 /mnt/cdrom1 udf,iso9660 noauto,users,dev,ro 0 0
/dev/floppy /mnt/floppy vfat,ext2,hfsplus noauto,users,dev 0 0

Here is my *guess* at how to mount it with read/write permission.

# Static entries below, do not use 'users' option in this area
/dev/hda8 / ext3 defaults,noatime 1 1
/dev/hda6 swap swap sw,pri=1 0 0
none /proc proc defaults 0 0
none /proc/bus/usb usbfs devmode=0666 0 0
none /dev/pts devpts mode=0622 0 0
none /sys sysfs defaults 0 0
/dev/hda7 /home ext3 defaults,noatime 1 2
/dev/hdb7 /mnt/hdb7 ext3 defaults,noatime 1 3
# Dynamic entries below, identified by 'users' option
/dev/hda1 /mnt/hda1 ntfs noauto,users,exec,ro,umask=0222 0 0
/dev/hda5 /mnt/hda5 ntfs noauto,users,exec,ro,umask=0222 0 0
/dev/hdb5 /mnt/hdb5 ntfs noauto,users,exec,ro,umask=0222 0 0
/dev/hdb6 /mnt/hdb6 ntfs noauto,users,exec,ro,umask=0222 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,users,dev,ro 0 0
/dev/cdrom1 /mnt/cdrom1 udf,iso9660 noauto,users,dev,ro 0 0
/dev/floppy /mnt/floppy vfat,ext2,hfsplus noauto,users,dev 0 0

With the fstab amended this way, when i try to save a
text file from within the text editor, called
Query_01 to hdb7, i get the error:

"The document could not be saved, as it was not possible to write to file:/mnt/hdb7/Query_01.
Check that you have write access to this file or that enough disk space is available."

what is it i have to do so that i am able to
read/write to hdb7?

All help welcome.
 
Old 03-22-2005, 07:08 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
the mount looked fine from the start. this is an ext3 filesystem, i.e. a native linux one, so will always be bound by standard permissions issues from day 1. you should just need to use chmod / chown to allow users to write there.
 
Old 03-22-2005, 07:09 AM   #3
ahwkong
Member
 
Registered: Aug 2004
Location: Australia
Distribution: Fedora
Posts: 282

Rep: Reputation: 30
After you modified fstab, did you run "mount -a" as root?

You can try the command line like "mount /dev/hdb7 /mnt/hdb7" first before modifying the fstab file
 
Old 03-22-2005, 01:14 PM   #4
Linux_Nooby
LQ Newbie
 
Registered: Mar 2005
Location: UK
Distribution: Simply Mepis
Posts: 2

Original Poster
Rep: Reputation: 0
Hi,

Thank you for your response.
I apologise for not making myself clear.

I would like to mount hdb7 at Boot time, Ready to be written to,
just like my 'Home' & 'Root' partitions.

Is this possible, If so, how?
Or is this to difficult for a newbie?

I have tried 'mount -a' (as root) and still i can't write
to the partition.

Using the second fstab (amended by me) puts a
HD icon for hdb7 on the Desktop, and is shown
as mounted,

Further help is appreciated.
 
Old 03-22-2005, 05:19 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
a drive will mount if it's not got the "noauto" option. but this is not related to what seems to be the real problem of permissions, which i've clearly already covered.
 
Old 03-22-2005, 06:41 PM   #6
calcon
Member
 
Registered: Mar 2005
Location: somewhere over the rainbow theres a place....
Distribution: Ubuntu Dapper and Arch
Posts: 121

Rep: Reputation: 15
Can't you just put the commands in /etc/rc.d/rc.local (at least that's the Slackware place you put setup commands)

I'm not sure if I'm really right...
 
  


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
how to install RH 9 on 2nd partition olivierkbb Fedora 1 10-18-2005 12:45 PM
How do I mount a 2nd CD drive??? phreakshew Linux - Newbie 22 09-05-2005 08:51 PM
Where to mount 2nd and 3rd disks vrillusions Linux - Hardware 3 11-29-2003 06:13 PM
/boot duplicate (2nd hdd wont mount) dsiguy Linux - General 4 09-25-2003 02:46 PM
how to: mount existing partition on 2nd drive atljam Linux - General 2 07-28-2002 01:32 PM


All times are GMT -5. The time now is 10:35 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