LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-13-2004, 01:44 AM   #1
cragwolf
Member
 
Registered: Jan 2004
Location: arse-end of the world
Distribution: Zenwalk 2.8
Posts: 73

Rep: Reputation: 15
Accessing newly created partitions


Currently, these are the partitions I have on my first hard drive:

/dev/hda1 / reiserfs defaults 1 1 (about 119GB)
/dev/hda2 swap swap defaults 0 0 (about 500MB)

I just ran parted, where I shrunk my / partition by 10GB, and then created (and formatted) a new partition in the 10GB space (/dev/hda3). I would now like to be able to access this new partition as /backup. How do I do this? Is it simply a case of adding the following line to my /etc/fstab file and then rebooting:

/dev/hda3 /backup reiserfs defaults 1 1

Or something different? Or something extra? Do I need to create the directory /backup, or will linux do it automatically if I specify it as above in my /etc/fstab file?
 
Old 09-13-2004, 01:50 AM   #2
AAnarchYY
Member
 
Registered: Sep 2004
Location: Carlisle, MA
Distribution: Debian 8
Posts: 419

Rep: Reputation: 30
no it wont create it for you, you need to mkdir /backup
and all you should need to do to mount it is "mount /dev/hda3 /backup -t reiserfs "
 
Old 09-13-2004, 12:18 PM   #3
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
and..., if you want to use it as a user do :
chgrp users /backup
chmod 770 /backup

egag
 
Old 09-13-2004, 01:38 PM   #4
cragwolf
Member
 
Registered: Jan 2004
Location: arse-end of the world
Distribution: Zenwalk 2.8
Posts: 73

Original Poster
Rep: Reputation: 15
Thanks for your help. So the fstab solution won't work? I have to issue "mount /dev/hda3 /backup -t reiserfs" every time I boot up Linux?
 
Old 09-13-2004, 01:45 PM   #5
AAnarchYY
Member
 
Registered: Sep 2004
Location: Carlisle, MA
Distribution: Debian 8
Posts: 419

Rep: Reputation: 30
no, the fstab solution would work, i was just merely giving you a solution that didnt involve rebooting

Last edited by AAnarchYY; 09-13-2004 at 01:46 PM.
 
Old 09-13-2004, 08:19 PM   #6
cragwolf
Member
 
Registered: Jan 2004
Location: arse-end of the world
Distribution: Zenwalk 2.8
Posts: 73

Original Poster
Rep: Reputation: 15
OK. I would have tried it myself without asking here, but I was bit wary of messing around with my fstab file. Thanks again.
 
  


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
permissions for newly created files dialbat Linux - General 2 10-04-2004 02:58 PM
I can't login with newly created user r_ibsen Linux - Newbie 2 06-19-2004 08:32 AM
cannot login as newly created user in terminal linoops Linux - Newbie 1 06-04-2004 08:07 PM
Linux can't see newly created partition Dswissmiss Linux - Software 5 05-17-2004 08:05 AM
Newly created user can't run kde neeyo Linux - General 4 04-11-2002 03:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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