General :: Hows The Resize2fs Command Works

Jun 24, 2011

i m doing certification in RHCE. i have learn much more in Linux. now i m going towards LInux hardware programming.i had solved enough questions about internal working of commands that r used in Linux. bt i m not understand hows resize2fs command actually work.i kknow this command is used to shrink or extend the partion or file system.but hows that possible.wat is the internal woring of that command.

View 1 Replies


ADVERTISEMENT

General :: What Is The Function Of Resize2fs Command

Jun 23, 2011

what is the function of resize2fs command and how this command works internally , how it is related to inodenumber or does it format the partition

View 6 Replies View Related

General :: What Is The Difference Between Ext2online And Resize2fs Command

Mar 9, 2011

What is the difference between ext2online and resize2fs command?

View 3 Replies View Related

General :: Resize2fs: Can't Read Next Inode While Trying To Resize

Jan 19, 2010

I'm currently in the process of remove a drive from an lvm. I am following this guide

[URL]

and to be honest I have also posted this question at [URL] but I have a fair amount of data at stake here and really need to make sure I'm acting safely. This is certainly not a place to button mash or guess.this is the 2nd drive that I am removing, the first one went off without a problem.However, I just received this error

Code:

resize2fs: Can't read next inode while trying to resize /dev/vg0/lvol0

and I'm not sure what it means or where to go from here. The entire output is

Code:

root@dude:/mnt# resize2fs -p /dev/vg0/lvol0 4466524456k
resize2fs 1.41.4 (27-Jan-2009)
Resizing the filesystem on /dev/vg0/lvol0 to 1116631114 (4k) blocks.

[code]....

View 14 Replies View Related

General :: Resize2fs Seems Stuck At Pass 3 (scanning Inode Table)?

Jun 16, 2011

I have a machine running Arch Linux (2010, I believe) with a 6TB RAID-5 array hooked up to a Highpoint RocketRaid 2320. I've been having issues with the RAID controller's drivers and the latest Linux kernels thanks to the driver not being open-source, and as a result I am migrating the system to Windows Server.Problem is that the 6TB disk originally was comprised only of an ext4 partition.I shrunk the partition down as much as I could, and added a NTFS partition in the empty space so I could start moving files. That went fine. Problem is that now I need to shrink the ext4 partition again, move files, shrink again, etc. The second run through resize2fs is taking way longer than the first pass.It seems to be getting stuck at pass 3:

[root@nar-shaddaa rc.d]# resize2fs -p /dev/sdb3 863000000
resize2fs 1.41.14 (22-Dec-2010)
Resizing the filesystem on /dev/sdb3 to 863000000 (4k) blocks.

[code]....

View 2 Replies View Related

General :: Mkdir Won't Work In A Script But Works On Command Line

Feb 4, 2010

Code:

This won't work in a script but it WILL work on the commandline...

Here is my output when I try the script:

Code:

Also, what is the at the end of the path in the error?

View 3 Replies View Related

General :: CIFS Mounting Works Via Command Line - Fails With Fstab

Dec 2, 2009

I've successfully mounted a network share with mount.cifs for the past 2 years using fstab with credfile.

[Code]....

Yesterday I moved this system to a new datacenter, but did not alter fstab or the credfile. The //server/share directory has IP rules in place, but this was updated with the new system IP while we moved the system. Now, I am mysteriously unable to automount //server/share. The local error is 13 (permission denied). The Windows server we are mounting returned a code that is defined as "username is valid but password is incorrect" Again - no changes (content or permissions) were made to my credfile or fstab entry. I've restarted netfs a few times, including rebooting the system twice. What is baffling is I can successfully mount //server/share via command line: Code: mount -t cifs //server/share /mnt/mycooldir -o username=foobar,password=1234

The username and passwords are identical in credfile and the mount options - I copied & pasted username / password from the credfile itself.

View 2 Replies View Related

Software :: Resize2fs Beeing Stuck Cpu At 0%?

Aug 7, 2011

I needed to shrink a filesystem so I could take a drive out of a RAID5 array. I unmounted the fs, then ran e2fsck on it and it found 5.9% non contiguous files but no errors. Then I ran resize2fs -f /dev/whatever 1300G (initial size was 2500G, used space was at this time only 1136G). It started operating and after some hours I received a lot of messages on the output as mdadm started resync in the background. Now the resync is done but nothing moves. Here is the output I received in the terminal window where resize2fs was ran :

Code:

computer:/# e2fsck /dev/stold/storold
e2fsck 1.41.3 (12-Oct-2008)
/dev/st/stor a �t� mont� 68 fois sans avoir �t� v�rifi�, v�rification forc�e.
Passe*1*: v�rification des i-noeuds, des blocs et des tailles

[code]....

I understand that it doesn't do nothing anymore, as it doesn't consume any CPU cycles anymore. What can I do now ? It's running near 24 hours now ! How can I try to escape from this situation without loosing all data ?

View 3 Replies View Related

Server :: Resize2fs After Adding LVM PV Hangs / Crashes

Feb 4, 2011

I'm somewhat a newbie at LVM and have encountered a real problem for me. During resize2fs after extending my LV i ended up with a crash. Now I'm worried I have lost all my old data. How can I proceed to get the volume in working order?

NoFear ~ # lvextend -L+400G /dev/vgftp/lvftp
Extending logical volume lvftp to 4.16 TiB
Logical volume lvftp successfully resized
NoFear ~ # umount /dev/vgftp/lvftp
NoFear ~ # resize2fs /dev/vgftp/lvftp
resize2fs 1.41.10 (10-Feb-2009)
Please run 'e2fsck -f /dev/vgftp/lvftp' first .....

NoFear ~ # e2fsck -f /dev/vgftp/lvftp
e2fsck 1.41.10 (10-Feb-2009)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/vgftp/lvftp: 308343/505479168 files (18.3% non-contiguous),
1006593162/1010942976 blocks
NoFear ~ # resize2fs /dev/vgftp/lvftp
resize2fs 1.41.10 (10-Feb-2009)
Resizing the filesystem on /dev/vgftp/lvftp to 1115800576 (4k) blocks.
** CRASH / HANG **

25hours waiting and nothing happens. No disk I/O going on or anything. I have no backups or anything of this volume. What can I do do revert the process to get the disks back? I have not done anything at all after the crash/hang in fear of destroying something.

View 2 Replies View Related

Software :: Online Resize2fs: Operation Not Permitted While Trying To Add Group #14080?

Aug 22, 2010

I am running Oracle Enterprise Linux x64 5.5 on an HP Proliant DL380 G6 attached to various SAN's via fibre channel. I have setup multipath, edited multipath.conf, lvm.conf, and after some trial and error, everything behaves and looks as it should in regard to multipath. However, when I try to resize a multipath ext3 lvm filesystem, The operation runs for a while, but then dies and I get the above error. I then see this error in /var/log/messages:

EXT3-fs warning (device dm-9): ext3_group_add: No reserved GDT blocks, can't resize

-I am only using the /dev/mapper/ paths to the filesystem (ie, resize2fs /dev/mapper/testvol-lvol1 128G)
-if I unmount the filesystem, resize2fs works fine
-Have tried removing and re-adding journal file via tune2fs with no luck
-The VG has plenty of room in it and is composed of a 100GB and 200GB partition.
-Inode resize is on in the filesystem

I am wondering if online resize2fs is only for small filesystems or not recommended as a best practice or just not generally done??? As I mentioned, the operation works fine offline if I unmount the filesystem, but this won't be an option once system is in production.

View 3 Replies View Related

Ubuntu Installation :: How Apt-get Command Works

Aug 10, 2010

I am trying to understanding package tools in ubuntu. After I read some documents on internet. I did some exercise myself. And I got some questions. I installed fex package.

Code:
# aptitude install fex
Reading package lists... Done

[code]....

View 6 Replies View Related

Ubuntu Networking :: Ad-Hoc Works With GUI But Not Command Line

Jul 17, 2010

I have two Roboards that need to communicate with one another. I have sucessfully installed Ubuntu 9.04 using the 386 kernel based on instructions found online.I can use the GUI to set up an Ad-Hoc network using one Roboard ("Create New Wireless Network"), call it Manet, and connect to "Manet" using the GUI on the other Roboard and ping/ssh between the boards. However, when I try to create the same wireless network using the command line using:

ifconfig wlan2 down
iwconfig wlan2 key off essid 'Manet' channel 5 ap any
ifconfig wlan2 up

I don't see any entry in iwconfig under "Cell". It keeps giving me "Not Associated"When I try to enter the same information on the other Roboard to try to connect to the network, it doesn't connect and under iwconfig, I don't even see any entry for ESSID. Could somebody please tell me why it works when I use the GUI and not the command line.

View 1 Replies View Related

Ubuntu :: Command Mv Works When Moving To /usr/share But Not Cp?

Oct 2, 2010

I just ran this command:

john@cmp:~/Downloads$ sudo cp * /usr/share/amsn/skins

and it came up with something like "cp omitting directory xxxx" for all directories (so each line xxxx was just a folder name. I was trying to move all directories in my Downloads folder to the skins folder u see above. But when I replaced the "cp" with "mv", it all worked fine. How come? I dont see why i can move but not copy?

View 1 Replies View Related

Ubuntu :: FTP Works Through Command Line - Not From Nautilus

Jan 28, 2011

Does anyone know why Nautilus would allow me to login to a server but not display any files, but when I log in via the 'ftp' command-line binary, it works and allows me to display all the files, make directories, etc.? I was able to login via FileZilla too.

Here's part of the log:
Code:
Response:220 Microsoft FTP Service
Command:USER ----
Response:331 Password required for ----.
Command:PASS ***********
Response:230-Welcome to the Alentus FTP server.
Response:230 User ---- logged in.
Command:SYST
Response:215 Windows_NT
Command:FEAT
Response:211-FEAT
Response:SIZE
Response:MDTM
Response:211 END
Status:Connected
Status:Retrieving directory listing...

View 1 Replies View Related

Ubuntu :: Command Works From Terminal But Not From Keyboard Shortcut

Feb 2, 2011

I would like to make a keyboard shortcut to execute the following command:

Code: /usr/bin/xdotool key XF86MonBrightnessDown The command, when run from a terminal, works perfectly. However, when run via a keyboard shortcut, the command fails to execute. how I can execute my command with a keyboard shortcut. I am running Ubuntu 10.10 Netbook Edition with Unity-2d.

View 3 Replies View Related

Ubuntu Installation :: TAR Command Works But Generates Warning

May 20, 2011

May I know what is wrong in the following TAR command? It works, but generate a warning...
> tar -cpzvf /etc/a000/backup.tar.gz /etc/r000
tar: Removing leading `/' from member names

View 2 Replies View Related

Ubuntu :: Mail() Works In Command Line But Does Not In Browser?

Jun 18, 2011

I'm trying to configure sending mail from my site under Ubuntu 10.04 LTS.I have installed LAMP and postfix. To test mail I created the file test.php with code:

PHP Code:
$to = 'mymail@gmail.com';
$subject = 'The subject';

[code]....

View 1 Replies View Related

Server :: Crontab Fails But Command Line Works ?

Feb 19, 2011

Having an odd problem running a mysqldump via crontab. I have the script running on other servers and they work fine, so not sure how to actually troubleshoot, but the script looks like the following;

If I run it as a cronjob as root, it finishes in a second and a 20k file is there. If I run it from the command line as root it does the backup (takes a few minutes) but does complete the backup and can be unzipped and read successfully.

View 3 Replies View Related

Server :: Gawk Works From Command Line But Not From Cron

Jun 5, 2010

I have a very simple gawk script to add commas to numbers to make them more readable:

It works perfectly from the command line, but when run from cron it doesn't add the commas.

View 2 Replies View Related

Server :: Exim4 SMTP Doesn't Works - 500 Unrecognized Command

Jun 3, 2011

I installed exim4 package on my debian server as MTA. Now I want to send mail with this by SMTP. But when I connect to this via telnet, it returns this banner:

Code:

220 *******************************************************

And when I try to execute a command like EHLO, it says:

Code:

500 unrecognized command

View 7 Replies View Related

Software :: Command Line Browsing That Works With JavaScript Sites?

May 9, 2011

How can I verify JavaScript on a site (not on the same server) is working from command line access of the URL?

On checking some of what was written in 2005 I find most of it isn't still relevant (if it was then - I noted the w3m-js stuff mentioned in 2005 hadn't been updated since 2003).

Since then a couple of times I've looked into it but didn't make much headway but also didn't spend a lot of time on it. So far as I could tell from other posts I'd seen others hadn't either.

Recently I found out about Mozilla's SpiderMoneky js library and that it could be linked into elinks text browser and did same on my RHEL5 system.

I found Spidermonkey rpms in the EPEL (Fedora sponsored) repository:
js-1.70-8.el5.i386.rpm
js-1.70-8.el5.x86_64.rpm
js-devel-1.70-8.el5.i386.rpm
js-devel-1.70-8.el5.x86_64.rpm

I was able to download and install using rpm then compile elinks from source to include the above. Running elinks version after that shows the ECMAScript support is compiled into the new elinks binary. Also setting various ecmas* flags in the elinks.conf does have effect so clearly it is using them. (As opposed to another system where I use the original RHEL5 provided elinks RPM it complains about the ecmas* stuff being invalid options.)

It appears that by default it has this enabled but just for good measure I added:

set ecmascript.enable = 1.

Despite that when I pull up the page I see:

This product requires use of a browser that supports JavaScript

As a test I set the above to 0 on the off chance it was backwards and saw the same thing.

I then set the following:

set ecmascript.error_reporting = 1

On pulling up the page I now see a popup box:

Quote:

JavaScript Error:

A script embedded in the current document raised the

following exception:

TypeError: Window.Focus is not a function

OK

That seems to suggest that despite the earlier message about needing a browser that supports JavaScript that it is in fact executing at least one JS but that it is getting an error. Can anyone confirm that?

Does anyone have any idea what I�d need to do to deal with the Window.Focus message?

Essentially the site is a login page and even though I am able to input username and password after opening in browser when I tell it to POST it simply returns to the same login/password page.

And of course it doesn't have to be elinks/spidermonkey. I'd be interested in finding out if anyone knows a way I can verify a site that is running JavaScript is actually responding properly from command line rather than via a browser?

The SpiderMonkey stuff from Mozilla when compiled into elinks is supposed to do that but given my results Im not sure if it is or not.

Most of the documentation I can find on JavaScript stuff appears to be aimed at developers testing their own JS code from command line rather than accessing a web page with JavaScript.

View 8 Replies View Related

Programming :: BASH - Works On The Command Line, Hangs As A Script?

Jul 16, 2010

I'm writing a Bash script to take IPTC keywords from a text file and write them, via Exiv2, to several (first batch is 100) JPEG files in a single directory. The script has one while loop inside another while loop, both terminated, but I'm pretty sure that's not my problem. I think it's how I'm incrementing the "counter" variable, although it could also be the method of parsing the text lines from the file (using cut with delimiters that have worked fine in simpler scripts).

Here's the code as I've worked it up to this point.

Code:

And yes, "keywords" checks out in Crimson Editor, Emacs GUI and nano as an ASCII file with UNIX line endings. No issues on that score.

Feeding each line consecutively into a terminal (excepting the exiv2 command) works fine: each variable echoes with the part of the text line used as a variable value as it should, even when the b variable is incremented the quick&dirty way (up arrow three commands and hit enter).

Running the above script in eval mode (sh -x) stalls after setting the b variable to one and reading in the first line of text. I'd like to know why. I'd also like some advice on another reliable method of parsing the read-in lines.

View 14 Replies View Related

Slackware :: Can't Find Pdf Reader That Works In Command Line Mode

May 13, 2010

So, in finishing my nFlux slack current edition.I have set it up for users to do certain things in console
and one of the things I want is a way to view slackbook-2.0 in runlevel 3 console.I cant find a pdf reader that works in command line mode and I cant figure out how to either convert slackbook 2.0 pdf into html/text Or find a slackbook download that is html or text?I tried converting it using pdftotext, which didnt work very well So, I need a command line pdf viewer or a converter that works good?

View 5 Replies View Related

Networking :: Wireless Connection Works But Doesn't Show In Iwconfig Command

Mar 21, 2010

Ubuntu 9.04 with working wlan. I had to restart router & wap. It doesn't seem to ever retry to connect. I know my router & wap are good, I have wireless working on other laptop (running Puppy) I had to go into 'edit connections' in drop down and use 'wireless' tab then edit 'wireless connection 1' and hit 'apply' is there a better way to do this? also, no connections show up with command 'iwconfig' edit: with ifconfig, eth1 si showing data my ip address and packets sent & rcvd. I think I'll try do duplicate this event and use 'ifconfig eth1 down' and then up again to see if it reconnects.

View 1 Replies View Related

Programming :: Command Line Works - Won't Work From Inside Bash Script

Feb 16, 2011

Writing script to create backup of file by adding datetime to file name. Basically test for file presence if there, cp with datetime then rm original cp works fine from command line but get cannot stat `full path to file': No such file or directory

Code:

Here are the errors: cp: cannot stat `~/html/CVP_dadamail/.dada_files/.logs/errors.txt': No such file or directory rm: cannot remove `...': No such file or directory

The for statement is a placeholder as I have same file to backup out of several directories. using "bash -x scriptname" -OR- inserting echos, I can see I've constructed the strings properly. Believing it might be related to the hidden directories, I tried setting the shopt "glob" options to no avail.

Ultimately I'll add the other directories to the for loop and then run this from a cron job, so if you see potential pitfalls knowing I'm headed in that direction...believe construct would be

Code:

View 4 Replies View Related

Slackware :: KVM Command Not Found Though QEMU Works Fine Slackware64 13.1 Multilib

Aug 17, 2010

I've been trying to get some kind of virtualisation solution for my Slackware64, and I'd been having an absolute nightmare trying to get virtualbox to work on my Slackware64 install, so I decided to ditch it and move to KVM instead, as a type 1 hypervisor, having had success with QEMU in the past. I installed qemu-kvm along with all the dependencies using sbopkg, and I didn't have any problems building it, nor creating a user for kvm, or anything of that sort. However, now if I try to open a .iso on a disk image I created using qemu:

Code:

qemu-img create -f qcow2 ubuntu.qcow 4G

Which I am then easily able to access with qemu using the following command:

Code:

qemu ubuntu.qcow -cdrom /ISO/ubuntu-8.10-dvd-i386.iso -m 256 &

(I have an old ubuntu 8.10.iso on my PC that I used just to see if the thing would work) This works just as expected. However, if I try to launch the same .iso using kvm

Code:

kvm -hda ubuntu.qcow -cdrom /ISO/ubuntu-8.10-dvd-i386.iso -m 256 -boot -d &

all I get is "bash: command not found: kvm" I have already loaded the following modules: kvm, kvm-intel, tun. Could I be missing something?

[edit] Also just noticed that though I have created a group for kvm and added myself to libvirt, but when I issue the command "groups" neither of them are there, though I did use:

Code:

groupadd -g 221 kvm

And I was under the impression that I just needed to add my user to libvirt, without needing to manually create the group itself.I may have misunderstood the procedure for installing this properly, but I'm not sure what I've done wrong.

View 3 Replies View Related

Ubuntu :: Gparted Frozen - Stuck On The "shrink File System...resize2fs"

Feb 8, 2011

I'm trying to use GParted from a liveusb to resize my ext4 Ubuntu partition, but it's been stuck on the "shrink file system...resize2fs" for two days straight. The progress bar is still going back and forth, and top shows a lot of CPU activity, but it won't move past this point. I know it's a bad idea to stop GParted while it's resizing, what I can do, maybe a way to check to see if it's actually busy resizing the partition?

View 1 Replies View Related

Networking :: Does The Command "telnet" Works When Remote And Local Are Different Operating System?

Feb 12, 2009

Is it possible to log into a remote windows computer from my local linux computer and vice-versa using the "telnet" command?

View 2 Replies View Related

Ubuntu Security :: Anti Malware Filtering Works In Open Dns Works?

Jan 13, 2010

using ubuntu and the corporate edition of open dns? >Im curious to find out how the anti malware filtering works in open dns works.

View 4 Replies View Related

Ubuntu :: Copy CD That Only Works In Windows To Blank CD That Works?

Aug 29, 2010

I just want to be able to copy the files from a cd that is only compatible with windows to and new cd that is compatible with ubuntu

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved