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

Notices


Reply
  Search this Thread
Old 10-08-2004, 11:05 AM   #1
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Rep: Reputation: 48
FSTAB help on a read only partition


I'm not sure what happened, but when I was building and compiling a custom kernel, my fstab is saying that hda3 is ro, which I'm assuming means read-only. I can't figure out how to get hda3 to stop being readonly. I can't copy fstab to my FAT32 partition, edit it and move it back because it's readonly, it won't let me copy over the existing file. ANy ideas? I have a Suse 9.1 live cd, but it doesn't recognize the partitions on my hard drive. I need help.
 
Old 10-08-2004, 12:06 PM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,727

Rep: Reputation: 255Reputation: 255Reputation: 255
Open a console and run:

$ kdesu kwrite /etc/fstab

Enter your root password when prompted and kwrite will come up with root privileges displaying fstab. You will then be able to edit fstab and save the changes. If your partition that your having trouble with is hda3, edit the line like so:

/dev/hda3 <insert mount point> vfat umask=0,iocharset=iso8859-1,codepage=850,quiet 0 0

That will give you read/write access to the partition and will take effect next time you boot.
 
Old 10-11-2004, 04:54 PM   #3
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445

Original Poster
Blog Entries: 9

Rep: Reputation: 48
even though I have to enter my root password ot get into linux at all. I'm sorry my original post was quite confusing. The partition I'm having trouble with is my ext3 partition. I can't change my fstab because it's readonly. Will the previous prcedure still work?
 
Old 10-11-2004, 07:49 PM   #4
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,727

Rep: Reputation: 255Reputation: 255Reputation: 255
No that's only for fat32. If the live cd doesn't see the partition, the filesystem might be trashed or the partition table corrupted. Try knoppix or another livecd and see if they can see the partition.
 
Old 10-12-2004, 09:36 AM   #5
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445

Original Poster
Blog Entries: 9

Rep: Reputation: 48
if not should I download the base install system again? then I could reinstall and start over. Is there any way to take the packages that I already have and put them on the new install?
Any other ideas?
 
Old 10-12-2004, 11:45 AM   #6
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,727

Rep: Reputation: 255Reputation: 255Reputation: 255
That's probably the easiest way. You might want to consider using reiserfs instead of ext3. It's much more resistant to file system corruption in the event of hard shut downs, etc. I haven't used debian in a while, but depending on how you have the system configured I believe that debian stores packages that have been downloaded and installed in a certain directory. If you can still access that directory you could conceivably save the contents so you wouldn't have to redownload.
 
Old 10-12-2004, 11:58 AM   #7
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
do you get an error 'bout failing fsck at bootup?

to remount a filesystem rw:
mount -n -o remount,rw /
make changes and reboot soon.

have you compiled the new kernel with everything (fs related: no modules) you need?
if you get logging 'bout missing fsck libs - then install fsck static.

sl mritch.
 
Old 10-13-2004, 12:47 AM   #8
short101
Member
 
Registered: May 2004
Location: Aust.
Distribution: Debian
Posts: 424

Rep: Reputation: 30
I had major issues after doing a kernel compile and after a couple of days I gave up and re-installed. What I did was resize a partition to make room and then installed debian again. Dont delete your old ext3 partition though. Then once you have your new system up and going then you can go into your old partition and copy over and install all your packages from /var/cache/apt. If you have cable then just wipe it all and start again. The only reason that I did it was cause I couldnt get on cable and my dial up is even slower than most.
 
Old 10-14-2004, 12:59 PM   #9
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445

Original Poster
Blog Entries: 9

Rep: Reputation: 48
Thanks,

I downloaded the netinstall cd, and will be getting the packages today. Thanks for all the help from everyone.

One more questions, not related to this thread

How do I get my .bashrc file to allow me to see color and use the command ll under normal user?
 
  


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
Mounted read-write Fat32 partition suddenly becomes read-only?? hohead Linux - General 8 04-05-2007 01:17 PM
re-read fstab the-chains Linux - Newbie 2 11-13-2004 03:49 PM
fstab: giving a user acct read-only access to specific partition doorbits Linux - General 4 05-18-2004 03:11 PM
Formating a FAT32 partition, putting the partition correctly into FSTAB, and more. squall14716 Linux - General 14 10-27-2003 11:16 PM
Compiled RH7.3 to read WinXP NTFS partition, mounts in Console, but can't mount fstab BlackDogg Linux - Newbie 20 08-06-2002 12:15 AM

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

All times are GMT -5. The time now is 09:49 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration