LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-06-2007, 11:36 AM   #1
osc~
Member
 
Registered: Apr 2007
Location: brazil
Distribution: Arch Linux
Posts: 70

Rep: Reputation: 15
disk suddenly full and write protected


hello after i installed gnome from slacky.eu i had a whole lot of problems:

run level wont work
fstab empty

i managed to more or less fix them. now for some reason my 60GB partition is full (just after installing gnome) and write protected.
i tried to remove the /tmp file but couldnt.
how can i write on the disk to remove the gnome files. what could i do?
 
Old 07-06-2007, 11:47 AM   #2
bsdunix
Senior Member
 
Registered: May 2006
Distribution: BeOS, BSD, Caldera, CTOS, Debian, LFS, Mac, Mandrake, Red Hat, Slackware, Solaris, SuSE
Posts: 1,761

Rep: Reputation: 80
Probably other ways, but I can think of this:

Boot off the Slackware installer disc, press ENTER until you get the # root prompt, mount the hard disc partition(s) read/write, then edit/delete what you want.
 
Old 07-06-2007, 11:50 AM   #3
wjevans_7d1@yahoo.co
Member
 
Registered: Jun 2006
Location: Mariposa
Distribution: Slackware 9.1
Posts: 938

Rep: Reputation: 31
It depends to some extent on just what you did "to more or less fix them".

What is your output when you do this?

Code:
ls -ld /
 
Old 07-06-2007, 01:50 PM   #4
osc~
Member
 
Registered: Apr 2007
Location: brazil
Distribution: Arch Linux
Posts: 70

Original Poster
Rep: Reputation: 15
starting slackware will only go into single user mode:

Quote:
root@(none):/# ls -ld /
drwxr-xr-x 49 root root 8192 2007-06-01 06:30
PS
also the clock keeps on changing, even in the window$ partition.

Last edited by osc~; 07-06-2007 at 01:52 PM.
 
Old 07-06-2007, 05:33 PM   #5
osc~
Member
 
Registered: Apr 2007
Location: brazil
Distribution: Arch Linux
Posts: 70

Original Poster
Rep: Reputation: 15
when i type df -h

Quote:
root@(none):/# df -h
filesystem size used avail use% mounted on
/dev/sda4 59G 59G 0 100% /
/dev/sda2 59G 59G 0 100% /mnt/winxp
none 59G 59G 0 100% /temp
df: /proc/bus/usb: no such file or directory
now the win partition is 15G and not 59G as it is stated.

i need to remove the write protection on the disc to copy the fstab file which is empty.
check out these threads also (the links are at the beginning of this thread):
Quote:
run level wont work
fstab empty
thanks for the help.
 
Old 07-06-2007, 06:11 PM   #6
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
What does the command ' /sbin/fdisk -l ' show?

Brian
 
Old 07-06-2007, 06:34 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,103

Rep: Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117
Why are you even trying to fix this ???.
If you have no confidence that the partition definitions are correct, why would you want to write anything to them ???.
The fact that your inittab and fstab were empty should be setting off alarm bells that you are not seeing what you think you are looking at.
How can you know what you are over-writing by updating the disk ???.

Sounds like a recipe for more problems developing further down the road. My suggestion would be to restore your system, and redo the update that caused the problem and see if there is an inherent problem there.
 
Old 07-06-2007, 06:47 PM   #8
osc~
Member
 
Registered: Apr 2007
Location: brazil
Distribution: Arch Linux
Posts: 70

Original Poster
Rep: Reputation: 15
/sbin/fdisk -l

[HTML]<pre>
Disk /dev/sda: 100GB, 100030242816 bytes
255 heads, 63 sectors/track, 12161 cylinders
Units= cylinders of 16065 * 512 = 8225280
Device Boot Start End Blocks Id System
/dev/sda1 1 784 6297448+ 12 Compaq Diagnostics
/dev/sda2 * 785 3992 25768260 7 HPFS/NTFS
/dev/sda3 3993 4236 1959930 82 Linux Swap
/dev/sda4 4237 12161 63657562+ 83 Linux
</pre>[/HTML]

Last edited by osc~; 07-06-2007 at 06:50 PM.
 
Old 07-06-2007, 06:53 PM   #9
osc~
Member
 
Registered: Apr 2007
Location: brazil
Distribution: Arch Linux
Posts: 70

Original Poster
Rep: Reputation: 15
Quote:
Why are you even trying to fix this ???.
i guess that would be to learn and help others learn.
also it never crossed my mind that this problem is so difficult to solve.

Quote:
My suggestion would be to restore your system, and redo the update that caused the problem and see if there is an inherent problem there.
how do i restore the system?
how do i restore my system without losing my archives?
 
Old 07-06-2007, 07:15 PM   #10
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
This is confusing as to what is going on.
Do you know for sure the sda4 partition is ext3?
It could be something else like LVM or rieserfs. Also I'm not a Slackware user so I guess it handles ntfs read support?
But if sda4 is full then it may not even mount others because it mounts as directories under the sda4 root partition. Not 100 percent sure on that.

Have you tried booting with a live cd like knoppix and see what it sees. Like info from fdisk -l and df command. It should automount the partitions if it can. It should show filesystem type it used to mount.

Restore would be a pain if you need to keep the data. It would be easier to buy a new drive and install your windows on it first. Then install slackware and see if all works. Next install the old drive as a second drive and boot to windows and copy data you need for that back. You will need to install software that is not default from windows install. Same applies to slackware. Then boot up in slackware and mount the sda4 partition which will more than likely be sdb4 now and copy data over from that as needed. A long process but one step at a time should get you going. Easier if I was there to do it than explain the steps here.

Brian
 
Old 07-06-2007, 07:38 PM   #11
osc~
Member
 
Registered: Apr 2007
Location: brazil
Distribution: Arch Linux
Posts: 70

Original Poster
Rep: Reputation: 15
so you all think i should maybe back-up my archives on a dvd (although that might be difficult to do since i would be running a live cd). another problem is that i cant write on the partition.
maybe i could pass the archives using a ubuntu live cd and try to connect to another computer via a cross over cable. then format the partitions and maybe install slackware12 instead?
what do you guys recommend?
i am totally confused and depressed because o this.
 
Old 07-06-2007, 08:28 PM   #12
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
If you can't make changes to even files like fstab then you might not be able to even setup basic network connection to transfer.

If you bootup in windows is the drive space for that partition itself correct with space?

Knoppix can load into ram if you have enough ram. I forgot the steps and commands to do that.

If you have a floppy I think there is one that boots a basic kernel and has the commands for cd coping but I am guessing they are old and may not support dvd especially if writing to dvd+r media.

Have you ever thought about a usb harddrive? But then again may cause issues if drive is full. I just think the easiest is get a new drive and install to that one.

One can create a live USB on like a 1 gig usb flash drive. Many topics on that. If it boots from USB drives then easier. If not then requires a boot floppy or cd to get the USB booted from. Look into puppy linux for that.

So many options but not sure what will work and won't.
Brian
 
Old 07-06-2007, 08:58 PM   #13
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,103

Rep: Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117
Well, that partition table in post #8 looks pretty good - about what I would expect.
I'd be using a liveCD (the Slack disk should do) to mount those partitions and check the data looked o.k. Most liveCDs will use the swap if they can see it o.k. - handy check.
Then I'd back it all up immediately - I keep a couple of USB hard disks for this sort of thing, and Knoppix as the driver disk. If you have enough RAM, you can even run the liveCD from memory, and free the drive for the backup. DSL should do likewise if you don't have a Gig of RAM.
Then I'd try and chroot into that disk setup, and see what it sees of the system. You might be pleasantly suprised.
 
Old 07-07-2007, 11:01 AM   #14
osc~
Member
 
Registered: Apr 2007
Location: brazil
Distribution: Arch Linux
Posts: 70

Original Poster
Rep: Reputation: 15
this is what i get when i do these commands using ubuntu live cd.
[HTML]
<pre>
ubuntu@ubuntu:~$ cd /mnt/lin/
ubuntu@ubuntu:/mnt/lin$ df -h
Filesystem Size Used Avail Use% Mounted on
unionfs 1.2G 680M 448M 61% /
varrun 506M 84K 506M 1% /var/run
varlock 506M 4.0K 506M 1% /var/lock
udev 506M 156K 506M 1% /dev
devshm 506M 0 506M 0% /dev/shm
lrm 506M 8.8M 497M 2% /lib/modules/2.6.15-23-386/volatile
tmpfs 506M 12K 506M 1% /tmp
/dev/sdb1 228M 84M 145M 37% /media/usbdisk
/dev/sda4 59G 59G 0 100% /mnt/lin
ubuntu@ubuntu:/mnt/lin$ /sbin/fdisk -l

Disk /dev/sdb: 239 MB, 239075328 bytes
16 heads, 32 sectors/track, 912 cylinders
Units = cylinders of 512 * 512 = 262144 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 911 233069+ 6 FAT16
</pre>
[/HTML]
 
Old 07-07-2007, 12:44 PM   #15
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 768

Rep: Reputation: 64
Your linux partition is /dev/sda4. It is full up. This is probably causing all your other problems.

I would suggest that you use your live disk again, mount sda4 if it is not already, delete some stuff you dont care about, (some of that gnome stuff as it probably did not install properly anyway, and there is probably loads of junk in /tmp). Then reboot and see what happens. Your fstab may not really be empty, your system probably had no resources left to open the file.

You only got single user mode because thats all that was possible, cos the system couldn't write to disk.

Of course what the others said about backing up still holds true...

tobyl

edit: (just noticed, I'm saying basically what bsdunix said)

Last edited by tobyl; 07-07-2007 at 12:52 PM.
 
  


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
Write Protected Documents bussandtech General 2 05-11-2006 12:02 PM
Partition suddenly full ALInux Linux - General 2 01-14-2006 12:25 PM
unmount write protected disk pradi_net Linux - Hardware 1 05-18-2004 02:48 PM
Suddenly total disk full jer3150 Mandriva 10 05-11-2004 12:20 PM
NTFS Write-Protected? MindFlayer Mandriva 12 05-04-2004 05:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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