LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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-22-2024, 06:03 AM   #1
SBFree
Member
 
Registered: Nov 2004
Distribution: Ubuntu
Posts: 70

Rep: Reputation: 15
Moving /media to RAID1


I am trying to build a web server. It has one SSD for the OS and a pair of drives that are a RAID1 array created with mdadm (/mnt/md0). The single drive has to remain the boot drive, apparently the RAID1 array is not recommended to be a boot drive and it also contains another OS. In particular, /media needs to be on the RAID1 array. If I use
Code:
mv /media /mnt/md0/media
how can I get references made to /media to point to the directory on the the RAID1 array?
Thanks in advance for any replies.
scott
 
Old 01-22-2024, 08:36 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,708

Rep: Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898
Your post is a bit confusing and it isn't entirely clear what you want to accomplish?

I do not understand what you mean by /media needs to be on the RAID?

Is there any data on /media currently? Typically /media is for external drives like CD/DVDs and USB drives. Is the RAID automatically being mounted on /media versus /mnt?
 
Old 01-23-2024, 08:14 AM   #3
SBFree
Member
 
Registered: Nov 2004
Distribution: Ubuntu
Posts: 70

Original Poster
Rep: Reputation: 15
Thanks for the reply. I'm going to do a reinstall with different mount points for the RAID array to solve my concern. Apologies for being confused/confusing.
scott
 
Old 01-23-2024, 08:39 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,708

Rep: Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898
If the RAID is separate from the main operating system drive then it is unclear why you want to reinstall. Just unmount and mount where ever. Change the /etc/fstab file as desired.
 
Old 01-23-2024, 10:00 AM   #5
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
Probably too late now, but the easiest way to make all references to /media to point to /mnt/md0/media would be a symlink:

Code:
cd /
ln -s /mnt/md0/media/
ls -lh
This will create a symlink that points from /media to /mnt/md0/media
 
  


Reply

Tags
mdadm



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
lvm volume group on raid1: physically move raid1 array from server 1 to server 2 Sum1 Linux - Software 4 07-20-2018 11:20 AM
[SOLVED] Why does /media/cdrecorder pop up with "cd /media/ + tab" when I have /media/usb too? SharpyWarpy Fedora 6 11-22-2012 01:05 AM
Have software raid1, but like to change to raid1+0 or 0+1, how? spaceuser Debian 8 03-17-2008 02:07 PM
Moving transfering Installed OS Disk to RAID1 set Andrew_OC Red Hat 2 04-09-2007 10:31 AM
Media, media, and oh yeah......media. Morbid SUSE / openSUSE 2 03-11-2007 08:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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