LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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-01-2013, 04:21 PM   #1
Valosar
Member
 
Registered: Aug 2012
Location: Kentucky, USA
Distribution: Mint 14 Mate, Knoppix , #!
Posts: 44

Rep: Reputation: 1
Question Trouble with paritions


I seem to be having trouble with partitions. Here is my goal

I want to dual boot Linux Mint 14 (Which I already have installed) And Crunch Bang 10 stable on one 80 GB hard drive, then use my other 100 GB hard drive as storage to keep movies, music, documents, pictures, that sort of thing on. I have formatted the 100 GB hard drive with 1 large part in ext4 but I have no access to it when I'm log in as root user under Linux Mint 14.

Firstly I would like to know what I'm doing wrong? I've read about parts but never really messed around with them a lot so this is a learning experience for me. I'm using Gparted to handle the parts.

My 100 GB hard drive is under SDB with my 80 GB under SBA. I've tired making it both primary and extended/logical I'm really not sure what is going on. (can't move pictures to it ,can't add additonal folders etc) I have no access to it at all.

Also do I need to have a unique swap partition for each OS or does 1 swap part do it for both? I'm assuming each OS will need it's own primary partition but I'm not sure. Any guidance would be useful.
 
Old 01-01-2013, 04:28 PM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debain
Posts: 1,742
Blog Entries: 1

Rep: Reputation: 244Reputation: 244Reputation: 244
Hi

1st the output of
Code:
mount
might be usefull
Yes you can use 1 swap partition for both OS
 
1 members found this post helpful.
Old 01-01-2013, 04:31 PM   #3
Valosar
Member
 
Registered: Aug 2012
Location: Kentucky, USA
Distribution: Mint 14 Mate, Knoppix , #!
Posts: 44

Original Poster
Rep: Reputation: 1
/dev/sda1 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
/home/valosar/.Private on /home/valosar type ecryptfs (ecryptfs_check_dev_ruid,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_unlink_sigs,ecryptfs_sig =5142eaa4fd22f2af,ecryptfs_fnek_sig=d44ecef7bdbb5071)
gvfsd-fuse on /run/user/valosar/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=valosar)
/dev/sdb5 on /media/valosar/Tome type ext4 (rw,nosuid,nodev,uhelper=udisks2)
 
Old 01-01-2013, 04:39 PM   #4
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debain
Posts: 1,742
Blog Entries: 1

Rep: Reputation: 244Reputation: 244Reputation: 244
Well it looks like the 100gig is mounted at /media/valosar/Tome

If not I dont see the 2 drives you mention anywhere

Code:
df

Last edited by spiky0011; 01-01-2013 at 04:40 PM.
 
1 members found this post helpful.
Old 01-01-2013, 04:55 PM   #5
Valosar
Member
 
Registered: Aug 2012
Location: Kentucky, USA
Distribution: Mint 14 Mate, Knoppix , #!
Posts: 44

Original Poster
Rep: Reputation: 1
These screen shots might help. The 100 GB drive is mounted there yes but I have no access to it even as root I can't add files to it or create files directly on it mounted or not.

https://docs.google.com/open?id=0B-w...nVIYWd3a0JCRlk

https://docs.google.com/open?id=0B-w...Td1Z0dBVV90aGM
 
Old 01-01-2013, 05:02 PM   #6
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debain
Posts: 1,742
Blog Entries: 1

Rep: Reputation: 244Reputation: 244Reputation: 244
so you cant cd /media/valosar/Tome
What errors do you get?
 
Old 01-01-2013, 05:05 PM   #7
Valosar
Member
 
Registered: Aug 2012
Location: Kentucky, USA
Distribution: Mint 14 Mate, Knoppix , #!
Posts: 44

Original Poster
Rep: Reputation: 1
I can and I can see the Lost and Found inside of it, but I can't drag and drop a picture from my home folde to the tome folder, and I can't create a folder there etc. I can see it but can't do anything in it.
 
Old 01-01-2013, 05:08 PM   #8
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debain
Posts: 1,742
Blog Entries: 1

Rep: Reputation: 244Reputation: 244Reputation: 244
can you do it from terminal
 
Old 01-01-2013, 06:20 PM   #9
Valosar
Member
 
Registered: Aug 2012
Location: Kentucky, USA
Distribution: Mint 14 Mate, Knoppix , #!
Posts: 44

Original Poster
Rep: Reputation: 1
Nope, it says permission denied. Do partitions have permissions ? I feel so stupid, this shouldn't be a problem for me that this point lol.

Last edited by Valosar; 01-01-2013 at 06:22 PM.
 
Old 01-01-2013, 06:55 PM   #10
Valosar
Member
 
Registered: Aug 2012
Location: Kentucky, USA
Distribution: Mint 14 Mate, Knoppix , #!
Posts: 44

Original Poster
Rep: Reputation: 1
My fstab file seems to be totally messed up, it doesn't contain any mention of my partitions , just stuff from when I first installed Mint 14 (Doesn't mention my CD RW etc or any changes I've made since I first installed it) On boot it is stll looking for the old partitions that I've since changed. So I need to update FSTAB manually?
 
Old 01-01-2013, 07:10 PM   #11
Valosar
Member
 
Registered: Aug 2012
Location: Kentucky, USA
Distribution: Mint 14 Mate, Knoppix , #!
Posts: 44

Original Poster
Rep: Reputation: 1
Update ; seems like the entire partition is listed as owned by root and only root can access it. Researching now on how to change permissions to an entire partition . . .
 
Old 01-01-2013, 07:27 PM   #12
Valosar
Member
 
Registered: Aug 2012
Location: Kentucky, USA
Distribution: Mint 14 Mate, Knoppix , #!
Posts: 44

Original Poster
Rep: Reputation: 1
I'm still very confused here. I want to make the 100GB drive open to all users and accessible if I'm running CrunchBang or Mint 14 regardless of user. is this possible?
 
Old 01-01-2013, 07:48 PM   #13
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,311

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
You're going to need to add it to the fstab in each OS, AFTER you have created a partition on it and a file system.

for /etc/fstab, something like
Code:
/dev/sdb1    /data    ext4    defaults  0 0
Assuming you create it as one large partition, then you'll need to make a filesystem on it
Code:
mkfs.ext4 /dev/sdb1
then create a /data dir at the root of each system as the target mount point, then try mounting by hand to check
Code:
mount /dev/sdb1 /data

#OR
mount -t ext4 /dev/sdb1 /data
You should be able to cd into it and create a test file.
If you want any user to be able to access, set the /data dir to 777 (rwxrwxrwx) perms.

If that all goes ok, add to /etc/fstab as above.

(Note ; keep it all lowercase; Linux is case sensitive.)

you can use
Code:
fdisk -l
(lowercase L)
to check the disk partitioning
 
1 members found this post helpful.
Old 01-01-2013, 08:32 PM   #14
Valosar
Member
 
Registered: Aug 2012
Location: Kentucky, USA
Distribution: Mint 14 Mate, Knoppix , #!
Posts: 44

Original Poster
Rep: Reputation: 1
Well I managed to make it worse (A bit) I went ahead and installed #! linux to the other partion on the first hard drive, it works fine but now Grub can't see the other part that linux Mint 14 is on : ) I'm working on that seperate from this however. I have the same problem with the second hard drive on #! so I'll try your suggestion there while I wait, thanks. Ok I fixed the Grub issue and can boot either OS Now without issue. Will work on FSTAB, thanks

Last edited by Valosar; 01-01-2013 at 08:46 PM.
 
Old 01-01-2013, 10:19 PM   #15
Valosar
Member
 
Registered: Aug 2012
Location: Kentucky, USA
Distribution: Mint 14 Mate, Knoppix , #!
Posts: 44

Original Poster
Rep: Reputation: 1
Well thank you very much for the help, I have it work now. the second hard drive mounts under /data and I can access it. However I managed to screw up #! now, I can't log in under the user I set up when I First installed it, it says the home directory for that user was some how deleted. I can get the OS itself to boot and get to the log in screen but can't get past there. This may have something to do with my changing Fstab on that OS. AT first I had the sdb5 to load under the /home directory then changed it to /data as I liked your suggestion. Not sure what to do now This has certainly been a learning experience lol.
 
  


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
Piecing HDD together from dd of paritions wjtaylor Linux - Server 1 08-11-2011 10:32 PM
20+ paritions on one drive krizzz Linux - Hardware 4 11-01-2007 12:36 PM
Multiple paritions zaicheke Linux - General 1 09-05-2004 02:52 PM
I messed up my paritions. please help zidane2010 Linux - General 3 04-10-2004 12:44 PM
RH 8.0 Server Paritions praefex Linux - General 5 12-24-2002 02:43 PM


All times are GMT -5. The time now is 11:08 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration