LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-12-2011, 01:00 AM   #1
aq_mishu
Member
 
Registered: Sep 2005
Location: Bangladesh
Distribution: RH 7.2, 8, 9, Fedora
Posts: 217

Rep: Reputation: 30
Question how to add new HDD (with previous data) in CentOS


Guys,
2 questions... one is this is my fstab::
Code:
LABEL=/                 /                       ext3    defaults        1 1
LABEL=/backup           /backup                 ext3    defaults        1 2
LABEL=/boot             /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /proc                   proc    defaults        0 0
none                    /dev/shm                tmpfs   defaults        0 0
/dev/hdb2               swap                    swap    defaults        0 0
/dev/fd0                /mnt/floppy             auto    noauto,owner,kudzu 0 0
/dev/cdrom              /mnt/cdrom              udf,iso9660 noauto,owner,kudzu,ro 0 0
Now while installing, I had 2 Hdds. at the time of partitioning, i used both as separate Hdd and made a /backup. I used that for my backups. That was RH9. Now I want to install Centos 5. and i wish to keep the /backup as it was. (as my cron scripts and others are written in this way)I wish that it will be mounted at the time of boot. And moreover, I can add a new hdd (using the manuals) but I need to keep the data. ay ideas??

Also the second question:: I have implemented a WiFi hotspot in a hotel with a Cisco WLC and several Cisco APs. Now I wish to restrict and log on access for both wifi and wired LAN using user names. Raduis is okey... with a mysql password database... I found a thing named hotex hotspot billing. But that's expensive. Also FCS's module is expensive too. I do not need billing, just access control. Any ideas on this?? It must be a linux based kind of baremetal package... best if based on centos.

Thanks in advance.
Mishu~
 
Old 05-12-2011, 08:38 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Hi there,

First, in your /etc/fstab you have put the label, now we are not sure on which device /backup is mounting so can't comment on which device you shouldn't be touching. Give us the output of df -h and mount and then we can see on which device /backup is getting mounted.

Second, you said that you are using Cisco WLC and Cisco APs and I think there should be an option to configure WEP or WEP2 on them?

Another way is to setup a proxy server which the users will get when they get connected to your system and make that proxy password protected so that they will not be able to browse anything until they authenticate to that proxy.
 
Old 05-13-2011, 12:43 PM   #3
aq_mishu
Member
 
Registered: Sep 2005
Location: Bangladesh
Distribution: RH 7.2, 8, 9, Fedora
Posts: 217

Original Poster
Rep: Reputation: 30
df -h gave

Filesystem Size Used Avail Use% Mounted on
/dev/hda2 113G 5.7G 102G 6% /
/dev/hdb1 111G 4.2G 101G 4% /backup
/dev/hda1 99M 15M 80M 16% /boot
none 247M 0 247M 0% /dev/shm

==============================================================
For the WiFi Part...
I know that there are some packages those use radius for authenticating... they call this kind of captive portal... It's not the proxy password. And also wep keys are not the issue here.
 
Old 05-13-2011, 01:45 PM   #4
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

/dev/hda2 113G 5.7G 102G 6% /
/dev/hdb1 111G 4.2G 101G 4% /backup
/dev/hda1 99M 15M 80M 16% /boot
none 247M 0 247M 0% /dev/shm

For the above output I will say make a note of it and then during the install make sure that you select custom partition layout. Do not touch /dev/hdb1. It might be possible that install can show some other device mounting to /backup at the time of install that is the reason I am asking you make a note so that you can identify them with the help of their size.

You can delete / which is the root partition used by this OS. Delete /boot and none, none is nothing but a tmpfs which is use to enhance the passing of date between programs so you don't need to worry about that as it will again get created automatically during install.

New partition layout:

Make root partition on /dev/hda2 with the size 112.8
Make a boot partition on /dev/hda1 with the size 97 MB
Leave /backup partition untouched
none or tmpfs will automatically get created no need to worry about that.


I am suggesting you to create new partition with a little less size so that you do not overwrite any existing partitions boundries.

Last but not the least before doing the install make sure that you take a backup of full file system and validate the backed up data to make sure you are on the safer side.
 
  


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
MRTG didn't show previous data spice_prash Linux - Software 0 01-29-2008 03:59 AM
Slave HDD with previous version installed noblelinux Linux - Newbie 6 07-15-2006 04:52 PM
Advice needed on transferring data from HDD to HDD denimglen Linux - Newbie 3 03-04-2006 07:33 PM
Trying to add a third hard drive (hdd) and get Unable to open /dev/hdd MikeyCarter Linux - Hardware 4 12-26-2005 10:27 PM
Add a preformatted hdd to FreeBSD + keep data Gsee *BSD 2 09-11-2004 05:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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