LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 02-21-2007, 12:05 AM   #1
varun_saa
Member
 
Registered: Dec 2004
Posts: 188

Rep: Reputation: 30
sda1 to sda2 mount


Hello,

I am on mandriva2006 PPack.

I have a SATA sda1 disk mounted as

/fileserver.

I want to mount it as :

/fileserver

But as sda2 without loosing any data.

I have tried chaging fstab and changing
the disk to sda2. It did not work.

Is it possible ?

Thanks

Varun
 
Old 02-21-2007, 03:42 AM   #2
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
Why do you want to change the device name? Or is it a different disk you want to mount at the same mountpoint?
 
Old 02-21-2007, 07:15 AM   #3
varun_saa
Member
 
Registered: Dec 2004
Posts: 188

Original Poster
Rep: Reputation: 30
Sorry,

It should be sdb1 and not sda2.

Thanks

Varun
 
Old 02-21-2007, 07:18 AM   #4
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
Still - why?
 
Old 02-21-2007, 08:27 AM   #5
pnellesen
Member
 
Registered: Oct 2004
Location: Missouri, USA
Distribution: Slackware 12.2, Xubuntu 9.10
Posts: 371

Rep: Reputation: 31
I'm not an expert on this (particularly about SATA systems), but I believe the device designations are determined by the actual physical layout of the partitions on your hard drive, as well as which IDE/SATA channel/cable the drive is attached to (if you have more than one hard drive in your system.) So "SDA" would be the first hard drive, "SDB" the 2nd, etc. So if you have multiple drives in your machine, you would most likely have to switch them around to do what you're asking.
 
Old 02-21-2007, 09:47 AM   #6
hansalfredche
Member
 
Registered: Jun 2005
Posts: 445

Rep: Reputation: 31
pnellesen is right at least for IDE drives. Try changing connecting your HD on another port if you persist on sdb. But be warned: messing around with bootloader, fstab and mtab are programmed!
 
Old 02-21-2007, 06:30 PM   #7
ernie
Senior Member
 
Registered: Nov 2001
Location: Toledo, Ohio - USA
Distribution: Mageia 1
Posts: 1,079
Blog Entries: 4

Rep: Reputation: 70
Let me see if I understand ...

Right now, you are mounting /dev/sda1 at /fileserver in the linux filesystem, but you want to mount /dev/sdb1 at that point (/fileserver). Is this correct?

Do you want to make this change permanent, or do you want to switch which partition is mounted (/dev/sda1 or /dev/dsb1) at /fileserver?

To permanently change the partition mounted at /fileserver, unmount the partition:

umount /fileserver

Edit /etc/fstab. Change sda1 to sdb1 in the line referring to the /fileserver mount point.

Mount the partition:

mount /fileserver

Now /dev/sdb1 should be mounted at /fileserver

If what you are trying to achieve is to make the files on both drives available under /fileserver, perhaps you should set up two mount points:

/fileserver/first

and

/fileserver/second

then mount /dev/sda1 to /fileserver/first and /dev/sdb1 to /fileserver/second.

Of course, the sub-directory names first and second can be replaced with any name of your choice (e.g.: a and b, public and private, one and two, etc.).

You can make this change in the Mandriva Control Center (System / Configuration / Configure your computer in the menu system).

Open MCC

Click Mount Points in the category list (left).

Click Create, delete and resize hard disk partitions (opens Partition Manager).

Click the tab for the Hard Disk to be worked with (top).

Select the partition to be worked with.

If the selected partition is currently mounted, click the unmount button in the Choose Action list (left).

Click the Mount Point button in the Choose Action list (left).

Enter or edit the mount point (e.g.: /fileserver/first or /fileserver/second etc.) by entering the new mount point information in the Mount point text entry field.

Click the [B[OK[/B[ button (bottom right).

Click the Mount button in the Choose Action list (right).

Make any other mount point changes or additions as needed.

Remember to mount any partition you want automatically mounted at boot time.

If you need to set permissions for any mount point, click the Toggle to expert mode button (bottom right-center). This adds the Type, Options, and Label buttons to the Choose Action list (left).

When you have completed your changes in the Partition Manager click the Done button (bottom right), then close MCC.

Your changes should be effective now, and persist after a reboot.

I am not sure that I answered your question since it is unclear what you are trying to do. I hope this has been helpful.
 
Old 02-22-2007, 04:46 AM   #8
hansalfredche
Member
 
Registered: Jun 2005
Posts: 445

Rep: Reputation: 31
@ernie

As I understand, there is only one HD which, for some obscure reason, should be named sdb instead of sda. This means you have to physically switch the connections on the controller. Now, if there are two HD's you are correct of course. But then the original poster was somewhat unclear.
 
Old 02-22-2007, 01:25 PM   #9
ernie
Senior Member
 
Registered: Nov 2001
Location: Toledo, Ohio - USA
Distribution: Mageia 1
Posts: 1,079
Blog Entries: 4

Rep: Reputation: 70
I am unable to imagine any reason for wanting to make a drive sdb1 instead of sda1 other than to connect another drive as sda1. That is why I responded as I did .
 
  


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
installing slackware to usb harddrive...no /dev/sda2 on disk to mount for cfdisk surfbass Slackware 7 05-09-2006 07:37 AM
2006-Only root can mount sda2 Lakota Mandriva 9 01-07-2006 09:39 PM
sda1 mount issues in Fedora-3 issinho Linux - Hardware 3 06-30-2005 02:54 PM
cant mount sda2 in rescue GuitsBoy Linux - Hardware 0 05-22-2004 11:05 AM
how to mount /dev/sda1 not only for root? mizuki26 Linux - Newbie 4 11-04-2003 08:15 PM

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

All times are GMT -5. The time now is 06:16 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
Open Source Consulting | Domain Registration