LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 09-16-2006, 10:39 AM   #1
Damoek
Member
 
Registered: Mar 2004
Location: Us
Distribution: Ubuntu Dapper
Posts: 74

Rep: Reputation: 16
Ubuntu Wont see /dev/sd2 partitions except one


Just installed Dapper Drake and much to my dismay, I am missing my music partition. Thought this was fishy. in /etc/fstab it only has one device mounted to the default /media/sdb1 however I know that there are more partitions on this disk, and so to investigate, I threw in an old knoppix distro just to make sure. Sure enough all my partitions are readable in knoppix and usable... So why is Ubuntu not giving me love?
 
Old 09-16-2006, 12:24 PM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by Damoek
Just installed Dapper Drake and much to my dismay, I am missing my music partition. Thought this was fishy. in /etc/fstab it only has one device mounted to the default /media/sdb1 however I know that there are more partitions on this disk, and so to investigate, I threw in an old knoppix distro just to make sure. Sure enough all my partitions are readable in knoppix and usable... So why is Ubuntu not giving me love?
Because you need to add a line(s) to the /etc/fstab to have the partition(s) mounted on boot or if not wanting automatic mounting you need to mount them yourself after boot. Look at the line(s) Knoppix uses in its fstab then edit your install fstab to be similar to them except you change the /mnt/sdb? part of the line(s) to a mount point that you have created on your system, once done use mount -a to mount all the partition(s) in the fstab for use.
 
Old 09-16-2006, 06:21 PM   #3
Damoek
Member
 
Registered: Mar 2004
Location: Us
Distribution: Ubuntu Dapper
Posts: 74

Original Poster
Rep: Reputation: 16
/proc /proc proc defaults 0 0
/sys /sys sysfs noauto 0 0
/dev/pts /dev/pts devpts mode=0622 0 0
/dev/fd0 /mnt/auto/floppy auto user,noauto,exec,umask=000 0 0
/dev/cdrom /mnt/auto/cdrom auto user,noauto,exec,ro 0 0
# Added by KNOPPIX
/dev/hdg1 /mnt/hdg1 ntfs noauto,users,exec,ro,umask=000,uid=knoppix,gid=knoppix 0 0
# Added by KNOPPIX
/dev/hdg2 /mnt/hdg2 ntfs noauto,users,exec,ro,umask=000,uid=knoppix,gid=knoppix 0 0
# Added by KNOPPIX
/dev/hdg3 /mnt/hdg3 ntfs noauto,users,exec,ro,umask=000,uid=knoppix,gid=knoppix 0 0
# Added by KNOPPIX
/dev/hde2 /mnt/hde2 ntfs noauto,users,exec,ro,umask=000,uid=knoppix,gid=knoppix 0 0
# Added by KNOPPIX
/dev/hde5 /mnt/hde5 ntfs noauto,users,exec,ro,umask=000,uid=knoppix,gid=knoppix 0 0
# Added by KNOPPIX
/dev/hde6 none swap defaults 0 0
# Added by KNOPPIX
/dev/hde7 /mnt/hde7 ext3 noauto,users,exec 0 0
 
Old 09-16-2006, 06:35 PM   #4
Damoek
Member
 
Registered: Mar 2004
Location: Us
Distribution: Ubuntu Dapper
Posts: 74

Original Poster
Rep: Reputation: 16
and now here is the Ubuntu version.
Looks completely different.
Any suggestions?



# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/sda7 / ext3 defaults,errors=remount-ro 0 1
/dev/sda2 /media/sda2 ntfs defaults,nls=utf8,umask=007,gid=46 0 1
/dev/sda5 /media/sda5 ntfs defaults,nls=utf8,umask=007,gid=46 0 1
/dev/sdb1 /media/sdb1 ntfs defaults,nls=utf8,umask=007,gid=46 0 1
/dev/sda6 none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
 
Old 09-16-2006, 06:49 PM   #5
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Generally you should just duplicate the /dev/sdb1 entry for the other partitions on the drive, all that you should need to change is the /media/sdb1 & /dev/sdb1 in the lines to match the partitions as they are numbered looks like to 2 and 3 for them.
 
Old 09-16-2006, 07:01 PM   #6
Damoek
Member
 
Registered: Mar 2004
Location: Us
Distribution: Ubuntu Dapper
Posts: 74

Original Poster
Rep: Reputation: 16
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/sda7 / ext3 defaults,errors=remount-ro 0 1
/dev/sda2 /media/sda2 ntfs defaults,nls=utf8,umask=007,gid=46 0 1
/dev/sda5 /media/sda5 ntfs defaults,nls=utf8,umask=007,gid=46 0 1
/dev/sdb1 /media/sdb1 ntfs defaults,nls=utf8,umask=007,gid=46 0 1
/dev/sdb2 /media/sdb2 ntfs defaults,nls=utf8,umask=007,gid=46 0 1
/dev/sdb3 /media/sdb3 ntfs defaults,nls=utf8,umask=007,gid=46 0 1
/dev/sda6 none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0

followed by

daniel@daniel-desktop:~$ sudo mount -a
mount: mount point /media/sdb2 does not exist
mount: mount point /media/sdb3 does not exist

where am i going wrong?
 
Old 09-16-2006, 09:23 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,420

Rep: Reputation: 4199Reputation: 4199Reputation: 4199Reputation: 4199Reputation: 4199Reputation: 4199Reputation: 4199Reputation: 4199Reputation: 4199Reputation: 4199Reputation: 4199
Not reading the message.
Create the new mounts under /media
 
Old 09-16-2006, 09:31 PM   #8
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by syg00
Not reading the message.
Create the new mounts under /media
More specifically mkdir /media/sdb2 and sdb3 as root then try again.
 
Old 09-17-2006, 01:05 PM   #9
Damoek
Member
 
Registered: Mar 2004
Location: Us
Distribution: Ubuntu Dapper
Posts: 74

Original Poster
Rep: Reputation: 16
you guys rock. Problem solved.
Now do i need to make similar entries in /etc/mtab for it to auto mount?
 
Old 09-17-2006, 01:24 PM   #10
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by Damoek
you guys rock. Problem solved.
Now do i need to make similar entries in /etc/mtab for it to auto mount?
I doubt it the mtab is created from the contents of the fstab file so if your sdb1 automounts then the others should as well.
 
  


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
partitions wont mount dasy2k1 Slackware - Installation 10 12-12-2005 04:59 PM
Help: Resizing partitions, wont reboot quwiltw Linux - Newbie 4 06-13-2005 12:36 PM
can't find my /dev/hda* partitions... himm Linux From Scratch 4 01-12-2005 06:33 PM
cfdisk wont detect my partitions r350 Slackware - Installation 1 01-30-2004 05:35 PM

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

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