LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 10-05-2007, 04:58 PM   #1
pilotgi
Member
 
Registered: Apr 2002
Location: ks
Distribution: openSUSE Tumbleweed
Posts: 495

Rep: Reputation: 33
How to see partition in openSUSE 10.3


I just upgraded to 10.3 but the sys info no longer lists another linux partition, /dev/sda4. I could see this partition with 10.2. Here's my /etc/fstab:

/dev/disk/by-id/scsi-SATA_ST3200826AS_3ND164HY-part2 / ext3 acl,user_xattr 1 1
/dev/disk/by-id/scsi-SATA_ST3200826AS_3ND164HY-part1 swap swap defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0

Do I need to add a line to this file so I can see /dev/sda4 or will YaST do this job?

TIA
 
Old 10-05-2007, 06:12 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Does the partition not show up at all, or is the filesystem unknown. You may have repartitioned the drive if you hadn't used the expert partitioning option during the reinstall. Check the begin and end points.

If the partition shows up (check with "sudo /sbin/fdisk -l) but the filesystem doesn't, check if you need to load a kernel module. For example, if it is xfs, you may need to modprobe the xfs kernel module ( "sudo /sbin/modprobe xfs" ). If this is the case, there is a file in /etc/sysconfig/ where you can add kernel modules that will be added to initrd when you run the "mkinitrd" command. This will ensure that you will always have the filesystem kernel module loaded when you boot up.
 
Old 10-05-2007, 08:08 PM   #3
pilotgi
Member
 
Registered: Apr 2002
Location: ks
Distribution: openSUSE Tumbleweed
Posts: 495

Original Poster
Rep: Reputation: 33
This is the result of fdisk -l. /dev/sda2 is openSUSE 10.3 GM and /dev/sda4 is 10.3 beta 1:

Disk /dev/sda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0008126d

Device Boot Start End Blocks Id System
/dev/sda1 1 131 1052226 82 Linux swap / Solaris
/dev/sda2 * 132 6659 52436160 83 Linux
/dev/sda4 6791 10707 31463302+ 83 Linux
 
Old 10-06-2007, 04:50 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You seem to have a gap in your partitioning. Even so the YaST partitioner program should see this partition. From there you can select a mount point and it will edit your /etc/fstab file for you. However, consider backing up the contents of this partition and repartitioning the drive so that A) /dev/sda4 is an extended partition starting at 6660
B) You utilize the rest of the drive. For ATA drives You are limited to 4 primary partitions, one of which can be an extended partition. If you are running two distros, consider using the same partition for /home. This will allow you to have a larger /home partition and to retain your personal files between reinstalls. It will work out best if you use a different home directory in the distros. You can have the same username, but use a different home directory. A field in /etc/passwd determines your home directory. So even if your username is the same, you can have two distinct home directories. You can either edit the passwd file manually or use YaST.

You could also try moving and resizing /dev/sda4 using the partitioner program, but back up the contents just in case.
 
Old 10-06-2007, 07:59 PM   #5
pilotgi
Member
 
Registered: Apr 2002
Location: ks
Distribution: openSUSE Tumbleweed
Posts: 495

Original Poster
Rep: Reputation: 33
What I want to know is how to mount /dev/sda4 when I'm booted into /dev/sda2. I thought I could add a line to /etc/fstab but I'm not sure how to write it.

Particularly, I'm not sure about the options like acl,user_xattr 1 1 that come after the name of the drive/partition (see opening post). If I use these options in fstab for /dev/sda4 will it conflict with /dev/sda2?
 
Old 10-06-2007, 08:06 PM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
No, if the partition filesystem is the same, you could use the same options. Use "0 0" at the end of the line since this isn't native to your system and used when you use the other distro.

The YaST2 partitioner can do all of this for you. Just select the partition & select edit.
Then enter a mount point for it and make sure that "Format" is not selected. YaST will probably add the best options. If the filesystem is from a different distro, it may be owned by a different user. For example, Fedora starts the first regular user with UID=500 while SuSE starts regular users at 1000.

If this is from a previous installation and you are only accessing it from SuSE 10.3, then you can change the ownership and permissions to give you full access.
 
  


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
colinux access to ext3 partition (opensuse root partition) billtracy1957 Linux - General 0 05-03-2007 10:29 PM
can't boot opensuse 10.2 anymore - partition error? polrus Linux - Hardware 1 03-20-2007 06:18 PM
Copy files from partition to partition too slow, SATA hard disk.What should I do£¿ Ryanlee SUSE / openSUSE 20 10-31-2005 07:30 AM
Total partition size - User partition size is not equals to Free partition size navaneethanj Linux - General 5 06-14-2004 12:55 PM
Newbie Installing Debian3 on m68k w/250M Partition Needs help creating swap partition AppleMac Linux - Newbie 2 11-01-2002 08:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

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