LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 12-23-2004, 03:23 PM   #16
ldp
Member
 
Registered: Apr 2004
Location: Belgium Antwerpen
Distribution: slackware - knoppix
Posts: 141

Rep: Reputation: 17

Quote:
Originally posted by misc
Sure you do have parted installed. It's just not in ordinary users' search path, but in root's default search path. Seems you didn't log in as root (use su -l for that) or use full path /sbin/parted.
I was logged in as root but parted is not on my system. It's the last slackware.
root@cthulhu:/sbin# whereis parted
parted:

root@cthulhu:/sbin# cat $PATH
cat: /usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/opt/www/htdig/bin:/usr/lib/java/bin:/usr/lib/java/jre/bin:/opt/kde/bin:/usr/lib/qt/bin:/usr/share/texmf/bin: No such file or directory

Is this not normal?

Last edited by ldp; 12-23-2004 at 03:24 PM.
 
Old 12-23-2004, 04:38 PM   #17
misc
Senior Member
 
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,074

Rep: Reputation: 52
Quote:
It's the last slackware.
Well, you're in a Red Hat specific forum here.
 
Old 12-24-2004, 02:08 AM   #18
ldp
Member
 
Registered: Apr 2004
Location: Belgium Antwerpen
Distribution: slackware - knoppix
Posts: 141

Rep: Reputation: 17
Redhat? I didn't notice that. (just did a search for my problem on all the forums)
Anyway, It works ok now. I first partitioned the hdb drive yesterday morning with cfdisk and it appears that there was still a partition (swap space from previous installation) on the disk. So when doing a mkfs, he made a filesystem on the whole 400MB that the partion was.
I removed thus again all partitions with fdisk and after a new mkfs, it was ok.
bye.
 
Old 12-28-2004, 11:19 AM   #19
everal
Member
 
Registered: Nov 2004
Location: Zona Leste, Sao Paulo, Brazil, South America, Milk Way
Distribution: Slackware 10.1
Posts: 129

Rep: Reputation: 16
some more questions about cp / mv

Hey,

I am going to do more or less the same.

I have no more space at / , so I will reformat a ntfs partition, making it reiserfs, and then transfering all my /opt to this new
partition (it is now under /, and it is using almost all off the space).

But I have still some doubts, because of course I am affraid of the possibility of destroing my data...

First:

Should I use

cp -a /opt /new_partition

or

mv /opt /new_partition

?

Will they, or wich one,m preserve my permitions and etc?

Then I just

1- go to single user, format and mount the new one,

2-change my fstab to point /opt to the new partition,

3- rename the old one,

4- reboot,

5- if everything is ok, delete the old one, if not, use the fstab .bak , rename again the old /opt and came here
at forum again asking for help?


BTW, this is what I have now on my Slack 10:


Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda3 1309252 1234412 74840 95% /
/dev/hda9 6289220 2610188 3679032 42% /usr
/dev/hda10 13116632 6097080 7019552 47% /home
/dev/hda11 1011448 82216 877024 9% /var
/dev/hda12 1011448 4304 954936 1% /tmp
/dev/hda13 128480 32840 95640 26% /mnt/windows
/dev/hda1 8193116 6418268 1774848 79% /mnt/windows/c
/dev/hda5 12289692 8699848 3589844 71% /mnt/windows/d
/dev/hda6 8193116 5936364 2256752 73% /mnt/windows/e
/dev/hda7 4305388 1827592 2477796 43% /mnt/windows/h




/dev/hda3 on / type reiserfs (rw)
proc on /proc type proc (rw)
/dev/hda9 on /usr type reiserfs (rw)
/dev/hda10 on /home type reiserfs (rw)
/dev/hda11 on /var type ext2 (rw)
/dev/hda12 on /tmp type ext2 (rw)
/dev/hda13 on /mnt/windows type reiserfs (rw)
/dev/hda1 on /mnt/windows/c type ntfs (ro,noexec,nosuid,nodev)
/dev/hda5 on /mnt/windows/d type ntfs (ro,noexec,nosuid,nodev)
/dev/hda6 on /mnt/windows/e type ntfs (ro,umask=000)
/dev/hda7 on /mnt/windows/h type ntfs (ro,umask=022)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw)


I hope to transfer /opt from / in hda3 (primary) to the /new in hda6

thanks and bye
 
Old 12-28-2004, 12:01 PM   #20
misc
Senior Member
 
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,074

Rep: Reputation: 52
Re: some more questions about cp / mv

Quote:
But I have still some doubts, because of course I am affraid of the possibility of destroing my data...

First:

Should I use

cp -a /opt /new_partition

or

mv /opt /new_partition

?
cp -a, but not the way you've planned to. You would get the directory /new_partition/opt, which is not what you want when you plan to mount the new partition on /opt. You want "cp -a /opt/* /new_partition", so only the contents of /opt are copied.
 
Old 01-10-2005, 04:07 PM   #21
gromo
LQ Newbie
 
Registered: Aug 2004
Location: Colorado
Distribution: RedHat
Posts: 9

Rep: Reputation: 0
I have a question along these same lines....(maybe).
Let's say I have created 3 x 5 GB partitions on a 20 GB disk. I know I have 5 GB left, but what is the best way to see how much unallocated disk space is left? Thanks.
 
Old 01-10-2005, 04:19 PM   #22
jhibbets
Red Hat
 
Registered: Sep 2003
Location: Raleigh, NC
Distribution: Red Hat Enterprise Linux v 2.1, v 3, v 4
Posts: 174

Rep: Reputation: 30
i think you could try"

$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/md0 8.0G 6.5G 1.1G 86% /
/dev/hda1 244M 84M 148M 37% /boot
none 124M 0 124M 0% /dev/shm
jaws:/home/jhibbets/ogg
9.7G 8.7G 452M 96% /mnt/jaws
 
Old 01-10-2005, 04:33 PM   #23
gromo
LQ Newbie
 
Registered: Aug 2004
Location: Colorado
Distribution: RedHat
Posts: 9

Rep: Reputation: 0
Not exactly what I meant. Let's say you forgot the size of the hard drive.
How would you determine unallocated disk space?
 
Old 01-10-2005, 05:05 PM   #24
misc
Senior Member
 
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,074

Rep: Reputation: 52
Various ways to do that. Look at the physical size of the drive as reported in the /var/log/dmesg file or by running parted /dev/hda print or fdisk -l /dev/hda or entering the partition tools to examine the disk.
 
Old 01-13-2005, 01:56 PM   #25
gromo
LQ Newbie
 
Registered: Aug 2004
Location: Colorado
Distribution: RedHat
Posts: 9

Rep: Reputation: 0
Thanks Misc! So in the example below, I have roughly a 17 - 18 GB disk, correct?

# parted /dev/cciss/c0d0 print
Disk geometry for /dev/cciss/c0d0: 0.000-17359.921 megabytes
Disk label type: msdos
Minor Start End Type Filesystem Flags
1 0.016 51.796 primary ext3 boot
2 51.797 5868.984 primary ext3
3 5868.984 9869.296 primary ext3
4 9869.297 17359.921 extended lba
5 9869.312 11865.468 logical linux-swap
6 11865.484 16718.437 logical ext3
7 16718.453 17100.937 logical ext3
8 17100.953 17355.937 logical ext3

One other question. What is a good solid way to determine what disks are on the server.
For example; What if I forgot I have two other hard drives on this server, that are not being used.
What could I do to determine how many disks are physically plugged in? Thank you everyone for the help!

-gromo
 
Old 01-13-2005, 02:12 PM   #26
misc
Senior Member
 
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,074

Rep: Reputation: 52
As above, /var/log/dmesg
 
Old 01-13-2005, 02:39 PM   #27
gromo
LQ Newbie
 
Registered: Aug 2004
Location: Colorado
Distribution: RedHat
Posts: 9

Rep: Reputation: 0
Thanks!
Do you have some example output from /var/log/dmesg, that you could share with us?
What do we want to look for, that tells us this is a disk?
 
Old 01-13-2005, 05:06 PM   #28
ldp
Member
 
Registered: Apr 2004
Location: Belgium Antwerpen
Distribution: slackware - knoppix
Posts: 141

Rep: Reputation: 17
I think you can see it somewhere in the dmesg like this:
...
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PIIX4: IDE controller at PCI slot 00:07.1
PIIX4: chipset revision 1
PIIX4: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hdaio, hdbio
ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdcio, hddio
hda: QUANTUM FIREBALL CR13.0A, ATA DISK drive <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
hdb: QUANTUM FIREBALL EX6.4A, ATA DISK drive <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
blk: queue c03b3360, I/O limit 4095Mb (mask 0xffffffff)
blk: queue c03b349c, I/O limit 4095Mb (mask 0xffffffff)
hdc: ASUS CD-S520/A4, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: attached ide-disk driver.
hda: host protected area => 1
hda: 25429824 sectors (13020 MB) w/418KiB Cache, CHS=1582/255/63, UDMA(33)
hdb: attached ide-disk driver.
hdb: host protected area => 1
hdb: 12594960 sectors (6449 MB) w/418KiB Cache, CHS=784/255/63, UDMA(33)
hdc: attached ide-cdrom driver.
hdc: ATAPI 52X CD-ROM drive, 128kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.12
Partition check:
hda: hda1 hda2 hda3 hda4
hdb: hdb1
SCSI subsystem driver Revision: 1.00
...

Normally it detects all the harddrives that are on your system, even those that aren't mounted or don't have a linux partition.

rgds,
Lieven
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cp: No space left on device, but df does not agree! Correador Linux - General 5 04-18-2011 09:26 AM
Trying to dd a FC image into floppies: No space left on device guarriman Linux - General 1 05-23-2005 10:25 AM
no space left on device, but it has enough!!! help!!! sarah21 Red Hat 3 02-03-2005 09:37 PM
No space left on the device ashwinipahuja Programming 1 06-24-2004 01:05 AM
Apache not starting - No space left on device alexisb Red Hat 1 01-14-2004 11:10 AM


All times are GMT -5. The time now is 07:38 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration