Red Hat / Fedora :: Adding Existing Memory In Sdb1 To Sda1?
Nov 30, 2010
Here is the output of disk free space
# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00 940287756 3320512 888432924 1% /
/dev/sda1 101086 21142 74725 23% /boot
tmpfs 7730504 0 7730504 0% /dev/shm
/dev/sdb1 2884158292 74736 273757667 1% /data
Now,I wanna add a large amount of memory in sdb1 to sda1 to increase the available memory.Is there a way I can do this?
View 4 Replies
ADVERTISEMENT
Jun 16, 2010
I have 2 hard disks, one is full and I would like to move my /usr directory from sda1 to sdb1.
I tried the following..
sudo mkdir /driveb
sudo mount /sdb1 /driveb
cd /driveb
sudo mkdir /usr
sudo cp -b --copy-contents -r /usr /driveb/usr
code....
I don't fully understand the difference between a directory and a mount point and I may be treating them wrong.
I would like /usr to point to sdb.
is it possible, or should I try to change my path instead and ignore this problem?
View 8 Replies
View Related
Jun 6, 2011
I had a working Ubuntu 9.10 with Windows 7 installed, and i was writing an image of IPCOP [URL] to the USB drive incorrectly, i did mkfs on my primary partation i.e. /dev/sda1 now i am trapped in situation, i was trying to write and usb-hdd image of ipcop on USB Drive, while doing so, i have given following commands
1. mkfs.vfat /dev/sda1
2. e2label usb-pen
3. zcat filename > /dev/sda1
* now the stupid thing i have done, is given /sda1( My HDD ) instead of /sdb1 (USB Drive), it has successfully loaded IPCOP bootable on my primary drive, and my laptop is not working now.
Laptop Partation Info:
/dev/sda1 - NTFS (Windows 7 Prof)
/dev/sda2 - NTFS
[code].....
now i want to get my partitions & data back, if anybody have idea about how to get rid of this situation. The good thing i have done, is that, i didn't tried to install anything on the drive after this happened, with hopes that i can get my data back i guess that it can be recovered but confusion is that, which data recovery software to use, and for linux or windows, as i had my data on NTFS filesystem and currently there is Free Space and EXT4 partition.
View 2 Replies
View Related
Mar 1, 2010
I have just installed a new version of fedora 12 64bit and have setup the following drive configuration -
Code:
But for some reason I am getting dm-1 and dm-3.
How can I change the array so it contains the normal /dev/sda and /dev/sdb disks and partitions?
Why is the system telling me my drives are dm devices? I have no bios raid features on the motherboard.
How do I use md-1 and md-3 partitions?
How do I go back to the traditional /dev/sda and /dev/sdb devices?
By the way the system tells me that /dev/sda1 and /dev/sdb1 do not exist.
View 3 Replies
View Related
Jul 31, 2011
I have an existing Fedora 15 system installed from scratch.I've ordered a harddrive identical to my SDA and want to add it to my existing system as a RAID1 setup.I've googled around and cannot find recent clear instructions how to accomplish this. I don't want to reinstall everything from scratch. It should be possible to create the RAID1 using the existing data disk and then mirror everything up?
View 1 Replies
View Related
Nov 9, 2009
I have a question about LVM. My /dev/sda disk is partitioned into Windows NTFS on sda1, Linux /boot partition on sda2, and the Fedora 10 root (/) LVM partition is on sda3. I have moved my Windows XP to VMware on the Linux system and would like to add the sda1 partition to root LVM group.
View 7 Replies
View Related
Sep 17, 2009
I'm trying to understand the performance of my machine and memory usage just isn't adding up. When I run top it will typically show 301M of 308M used but the total of everything in the RES column is no where near 300M and the total of %MEM column isn't more than 20-30%. So how do I figure out what is using all the memory? Then is there some way to control it to optimize performance?
View 3 Replies
View Related
Aug 26, 2010
I've been asked by my professor to add the list of users to a linux server (not sure of the OS type I think he said debian) but anyway. He gave me this script to add users.
Code: #!/bin/bash
# Script to add a user to Linux system
if [ $(id -u) -eq 0 ]; then
read -p "Enter username : " username
read -s -p "Enter password : " password
egrep "^$username" /etc/passwd >/dev/null
if [ $? -eq 0 ]; then
echo "$username exists!"
exit 1
else
pass=$(perl -e 'print crypt($ARGV[0], "password")' $password)
useradd -m -p $pass $username
[ $? -eq 0 ] && echo "User has been added to system!" || echo "Failed to add a user!"
fi
else
echo "Only root may add a user to the system"
exit 2
fi
I need to see if I can get this script to read a file that list the usernames and their passwords using the pipe command (or some similar command) so I can just do it in one batch. I've done some searching but there are so many vairiations of the code that I've confused myself. Also, I'm not too familiar with linux, it's been a few years since I've used it but in the prior script, I need to add the users to an existing group named "forensics". Which line would I change/add in order to do this?
View 3 Replies
View Related
Oct 4, 2010
I want to move my windows XP image from my old PC's C: and put it onto my new PC, with Ubuntu 9.10 already on it. Will this procedure work?First I'll burn an iso image of the windows C: to a CD or DVD, using the Win XP computer. Then, I'll load a (live Ubuntu), from my thumb drive and boot into my new PC, and move the Ubuntu partition to another location, in order to create the partition needed to install a Windows OS. I know that Windows, God bless them, needs to be first on the HDD. This procedure will destroy the grub loader.Then rebooting should load correctly to the grub bootloader, right?
View 9 Replies
View Related
Mar 19, 2010
i have two scripts called:
"type" & "selecttype".
In "type" i have only the name of the products ex.: product1 & product2. Now, i have to ADD product3 which includes sub categories: productA, productB, productC, productD, productE, productF. so my New type script (menu) looks as below:
1) product1
2) product2
3) product3
and my current selectype looks how can I add the new product3 argument with all other multiple selections (productA, productB, productC, productD, productE, productF) into my current selectype (as below which is set only for product1 & product2), so when a user select: 3) product3 from "type" would get a new menu of all the sub categories, and the script would process the new additional arguments.
Here is the copy of my selectype script:
#!/bin/sh
echo SELECTTYPE
export -n selecttypechoice
if [ "${upgrade}" == "yes" ] ; then
[code]....
View 5 Replies
View Related
Mar 11, 2011
After spending almost 100 hours trying to get my MP3 player working I have decided to add an XP partition and use it there.I am an Ubuntu newbie and am finding the whole "new-dos" experience too frustrating for words.Can someone please explain in ENGLISH for an IDIOT how I can do this.
View 9 Replies
View Related
Dec 22, 2010
I have an existing network that connects to the 'net via a Linux-based firewall. That system has two ethernet interfaces: one to the DSL modem and the other to the internal switch. Future plans were for adding a second "internal" interface with the idea of moving servers into that (think DMZ). But while I was planning for that, the missus has decided she wants to pick up a Windows laptop and would like to be able to use it wirelessly at home. I have access to a (free!) Netgear WGR614L and was hoping it would work. Unfortunately, I'm unsure how to add the wireless capability to our network.
Questions:
Is it best -- or even possible -- to use one the wireless router for this?
Is it possible to merely hang the Netgear router off the internal switch and set it up for the wireless users? Or...
Would I need to add another ethernet interface to the firewall and hang the router off that? The address of this new interface would act as the default route for the wireless users. Then I'd need to (I assume) add more rules to the iptables configuration to deal with the new network. (I sort of like this option -- it it's actually feasible -- as I can easily shut down any wireless access by logging into the firewall and stopping the interface connecting the wireless router.)
I've taken a look at the setup guide on the CD that came with the router and it assumes that you have a modem connecting your PC to the internet. The instructions have you placing the wireless router between the modem and that PC. For our network, that would have the wireless access coming into the "dirty" side of the firewall. (Not what I would like.)
View 4 Replies
View Related
Jun 15, 2009
I have 2 image files, image 1 which is 16MB, has multiple partitions, where the boot partition has a 2.4 kernel in it, and image 2, which is 32MB, has a single partition with a 2.6 kernel.
I wish to add those extra partitions from image 1, into image 2, either by adding them within the 32MB(which means cutting back on the size of the existing partition), or adding them to the end of the image(which means extending the image beyond 32MB).
The boot partition for both images is ext2, while the rest of the partitions in image 1 is just raw data.
I'm working with these images in Mandriva Linux 2009.
How can I achieve what I want to do? I think it should be with fdisk and/or mkfs but I'm not sure how? I've tried using gparted to regenerate the partitions from a new image file with the following steps:
dd if=/dev/zero of=image.img bs=32M count=1
gparted image.img
Then I created a 30M boot partition. However, I'm not able to create the rest of the partitions as they are smaller than 1MB, which seems to be the min supported. I need precise control of the start/ending sectors of each partition.
View 1 Replies
View Related
Mar 31, 2010
I installed Ubuntu in a dual-boot with Windows 7, and installed the bootloader (GRUB? However, I have some weird Windows XP Embedded entry! I also have a lot of different boot options for Ubuntu. All I want is my Windows 7 entry (picked up as Windows Vista) and my main Ubuntu entry. How can I edit the bootloader entries (remove some existing ones, not adding any) so I have only two on there?
View 4 Replies
View Related
Mar 19, 2011
Have 3 linux distros on 3 hard drives. lost one distro from boot loader. how do I restore missing distro to boot loader? drive was not written to when one distro (drive) was updated.Example drives a, b, and c each had listing on boot loader, now after upgrade to distro on drive b order on boot loader is drive b then a and none for c.
View 5 Replies
View Related
Nov 9, 2010
I have a running RHEL5 system, which has two physical disk drives, but is currently running on a single drive of the pair. The single drive the system is running on contains a root/boot partition and a swap partition. I would like to be able to add a mirror drive to this existing setup without having to disturb the running system (much). That is, I don't want to have to completely dump, reinstall (creating the mirror on the way up), and reload from backup media if I can avoid it. I have seen procedures that go as follows:
- the "extra drive" (the one not being used as the current root/boot device) is first brought under LVM control as a root object with one physical mirror attached.
- the data from the running root/boot drive is rsync-ed over to the LVM-controlled half-mirror, and boot records added.
- System rebooted on newly created half-mirror.
- Original root prepped to be second side of LVM mirrored root, and is added in.
Can one boot from an LVM disk directly? There seems to be some question on this that came up in other lists I had read online.
View 5 Replies
View Related
Apr 21, 2011
Is there an easy way to add SATA drives to an existing system and have them m automatically at boot?So far I've been able to create a partition and format but they never mount at boot.What do I have to put in fstab so it will work?Also, since RAID doesn't work in Debian, is it possible to make two drives mount at the same folder
View 3 Replies
View Related
Jul 9, 2011
I have a BIG extended partition. It's at about 750Gb. Aside from that, I have 2 unallocated spaces, one at 240Gb and one at 5Gb. I want to make one of my storage drives bigger, and so that I can take advantage of all the space I have. (Those 250Gb have been unused for ages. I want to use them for my growing libraries.) So I wonder: would it be safe to put these smaller "chunks" into the extended partition, and still have a working systen? I don't want to mess it all up.
Also, can I safely resize a partition, like adding the extra space, without touching the existing data? I'm not exactly sure how the resize/move function in GParted works. Will it wipe and extend or only extend it by adding it? It would be nice to have these questions answered. Also, if it's to any help, this is my partition table as of now:
[Code]....
As for the first entries, they're unallocated. They're the primary drives, but they don't exist. I'm actually considering to move my partitions out of the extended one, because I only have 3 partitions that I use and will ever use. But if the extended partition is not a problem, I will just keep it this way.
I'd imagine that I first extend the extended partition to consume the unallocated space, and then I move it all to the end of the partition, and then resize sda7 to consume it, and get a 750Gb partition. Can this be done without loss of data?
View 9 Replies
View Related
Jan 22, 2011
I have a USB which I would like to make the device boot able. I have looked into fdisk and it appears that using fdisk I can only set a partition to a boot able. Please have a look at the output of fdisk command. In the following the sdb1 and sdc1 are both USB Memory Stick. As you can see the sdc1 is set as boot but the sdb1 is not.
Code: Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
[code]....
View 1 Replies
View Related
Jan 16, 2010
I decided to remove my Kubuntu partition until I can fully dedicate my time to figuring out linux (right now I need Windows for certain things, i.e. flash and my zune).
I fixed the MBR, but the problem now is I have a 142.77 GB partition of free space. What do I do? Do I just delete it?
When I click delete this is the message I get:
"This is an Extended partition. This partition will become inaccessable if you delete it. Are you sure you want to delete this partition?"
I am essentially asking if this just means the partition will be gone and not the memory, and where the memory goes if I delete the partition.
View 6 Replies
View Related
Jan 8, 2010
I had an interesting problem with my workstation this morning. When I booted the system I got a message that the sda1 filesystem was corrupt. I ran fsck on all the unmounted filesystems and found them to be clean. I then booted from the F12 live CD and checked the file systems again using 'Disk Utility' - everything appeared to be clean. However I still couldn't boot the system. I eventually reinstalled F12 from the Live CD.
Seems to be a bit strange as all the checks I ran showed the file system to be OK.
View 2 Replies
View Related
Oct 27, 2010
I am just wondering if I have a HDD with several partitions, sda1, sda2, sda3, sda4. SDA is how Linux understund entire HDD, and sda1 is the first partition. But the question is if first 512 bytes of sda1 are the same as first 512 bytes in sda.
View 3 Replies
View Related
Feb 7, 2011
Fedora 14 xfce
HP Mini 210
I am looking to buy some memory for my netbook. Currently I have 1 GB of DDR3 memory. However, the specification says that 2 GB of memory is the max. However, when I do the following it says that 4GB is the max:
[Code].....
View 3 Replies
View Related
Jun 27, 2010
I have installed oracle enterprise linux on VM ware with 20 gb allocated to guest OS. Now I want to install oracle apps in the guest Os, so I need to extend the volume. I have extended in Vm , but I have to partition in the guest OS, for that purpose I am using Gparted. But I am unable to extend to sda1. I need to have all the unallocation space allocated to sda1. Here is the screen shot, how can I do that. Right now when in press the command df -h in terminal I am gettig 18 gb as space available for sda1, I want to make it 200 gb, in which I would like to install oracle apps. Check out my screen shot.
View 5 Replies
View Related
Apr 30, 2010
I get errors trying to virtual IPv6 Addresses i a lab environment. It works fine up to 2033 (?) adrressses, but when I try to add more i get "Cannot allocate memory" error:
# ifconfig eth0 add 2001:1b70:8282:2021:18:0:20:1
SIOCSIFADDR: Cannot allocate memory
This is on Ubuntu Server 9.10 (64-bit).
View 6 Replies
View Related
Mar 16, 2011
I notice sometimes if the page has graphics it either is very slow to print or wont print.Will adding memory help? I was thinking of a 64mb module.
View 5 Replies
View Related
May 28, 2010
I recently replaced a failed graphics card w/ a GT 240. Next thing I know, Fedora 11 won't boot up properly. I guess it was a driver issue. I can tell you I went about fixing it all wrong because I wiped the FC11 partition (intending to install FC13) and now I can't boot anything up. My system consists of: sda1 vista, sdb1 XP, sdb5 extended, sdb6 Fedora. I thought grub was on the fedora partition, but reinstalling fedora with grub on that partition didn't fix the boot up problem. Do I need to replace the windows boot loader on sda1 with grub when installing fedora?
View 1 Replies
View Related
Jun 23, 2010
I have an existing unix user that some how didnt make it into the copy over to our LDAP server. How do I add an existing unix user to an existing LDAP directory? Will ldapadd work? I was under the impression ldapadd required an ldif file to work properly.
View 7 Replies
View Related
May 15, 2010
rather by accident, I copied a file to a USB drive by saying
cp <file> /dev/sdb1
rather than
cp <file> /media/USBDISK
I was surprised that this was at all possible (without root privileges and all), but now the drive cannot be mounted.
I did a
dd if=/dev/sdb of=corrupted.disk
but I don't know how to recover the data.
View 2 Replies
View Related
Feb 3, 2010
I have an external usb disk connected to a Debian desktop. A couple of days ago these messages started appearing in dmesg
Code:
[154343.010908] EXT3-fs error (device sdb1): ext3_get_inode_loc: unable to read inode block - inode=14352940, block=57409572
[154343.014425] EXT3-fs error (device sdb1): ext3_find_entry: reading directory #13272620 offset 0
[154343.014913] EXT3-fs error (device sdb1): ext3_find_entry: reading directory #3440641 offset 0
[154343.022172] Buffer I/O error on device sdb1, logical block 53138974
[154343.022209] lost page write due to I/O error on sdb1
[154343.022218] Buffer I/O error on device sdb1, logical block 53138976
[154343.022252] lost page write due to I/O error on sdb1
[154343.022256] Buffer I/O error on device sdb1, logical block 53138977
When this appears the disk becomes unavailable and I have to remove and plug it in and mount again. After that it works couple of hour and then the problem appears again. Is this a hardware problem?
View 2 Replies
View Related