LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-12-2004, 03:32 PM   #16
rjcrews
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 193

Original Poster
Rep: Reputation: 30

hda on fdisk -l gives

/dev/hda1 * 1-12191 61437288 id=83 linux
/dev/hda2 12191-26327 7160248 id=5 ext
/dev/hda5 12191-13205 511528 id=82 linux swap
/dev/hda6 13206-26378 6638656 id=83 linux


fstab file
/dev/hda1 / ext3 defaults 1 1
none /dev/pts devpts mode=0620 0 0
/dev/hda6 /home ext3 defualts 1 2
/dev/hdc /mnt cdrom (stuff) /mnt/floppy (stuff) /mnt/zipdisk (stuff)
none /proc proc defualts 0 0
/dev/hda5 swap swap defaults 0 0


there are 2 hd's
 
Old 06-12-2004, 03:58 PM   #17
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
Quote:
Originally posted by rjcrews
I moved the /var to its own partition and now it wont boot. that was obviously dumb. any ideas?
how did you move it and to which partition? exact details plz

don't worry, we nearly have enough info to correct your problem (hopefully!)
 
Old 06-12-2004, 04:03 PM   #18
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
Quote:
Originally posted by rjcrews
fstab file
/dev/hdc /mnt cdrom (stuff) /mnt/floppy (stuff) /mnt/zipdisk (stuff)

there are 2 hd's
Did you do this?! Or is it some new kind of funky syntax!!
 
Old 06-12-2004, 04:14 PM   #19
rjcrews
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 193

Original Poster
Rep: Reputation: 30
I was too lazy to type it all, was thinking all you needed was the hard drive ones. (sutff) wasnt needed i hope, if you need it ill copy it all....

ill give you play by play of what i did exactly:
added it in bios. booted.

diskdrake or somethign came up, skipped it. at mandrake desktop, did the gui harddrake. created the swap partition on hdb, bout 600 mb worth.

created the partition for /var and made it 7gig, it asked if i wanted to copy it all, i said yes.

then i did the same for /home and made it 30 gig or so. did it journalised ext3 or something i think. prob should have done fat32.

rebooted and saw i had screwed it up.

currently it only loads to command prompt, hopefully in a second ill try to figure out a text editor like vi or something to change the fstab file. think i know what i need to add, not exactly sure still, butim thinking adding the /dev/hdb1 may help.

I think it is in one of these:

/dev/hdb2 77 and 4792 size=37gB id=5 extended
/dev/hdb5 77 and 968 size=7 gB id=83 linux

i made one about 30mb the other 7.
 
Old 06-12-2004, 05:38 PM   #20
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
First off, thanks for the detail.

No need for a swap partition on the second drive.
No need for a fat32 filesystem (its old and not as good as ext2 or 3)

Try this:

su
[password]
mount -t ext3 /dev/hdb5 /mnt/var

then browse /mnt/var as root. !!be careful when working as root!! My favourite app for browsing and editing files in a console is the midnight comander (type "mc" and see if you have it), if you don't have this then use the commands cd, ls & vi to work with files, or try emacs although I prefer xemacs!

The appropriate line to add to your fstab would be:

/dev/hdb5 /var ext3 defaults 1 0
/dev/hdb6 /home ext3 defaults 1 0

But before you add these lines make sure that hdb5 (when mounted on /mnt/var) is the contents of you old /var folder - ie. /mnt/var/[lots of files] and not /mnt/var/var/[lots of files]
Also move your entire /home directory to hdb6 - to do this:

su
[password]
umount /dev/hdb5 #just to be sure
mount -t ext3 /dev/hdb6 /mnt/var #we are not worried about where it is actually mounted at the moment
cp -Rp /home/* /mnt/var
rm -Rf /home/* #when you mount hdb6 on /home, it should be empty

make SURE your syntax is right or you'll loose data.

Note 1: all of this assumes hdb5 and hdb6 are fstype ext3!! if it is not adjust the lines of the fstab accordingly
Note 2: I would think, after all this that it would be of little use having 7gb for /var as it only contains logs and stuff. Possibly /tmp would be the larger and more variable directory. Suck it and see as they say!
 
Old 06-12-2004, 05:47 PM   #21
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
Then reboot!!

ps. in response to:

Quote:
I think it is in one of these:

/dev/hdb2 77 and 4792 size=37gB id=5 extended
/dev/hdb5 77 and 968 size=7 gB id=83 linux
hdb2 is the extended partition, it envelops the last partitions on the drive ie. hdb5 & hdb6, which is why it is 37gb (30+7!)
 
Old 06-12-2004, 05:58 PM   #22
rjcrews
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 193

Original Poster
Rep: Reputation: 30
thank you much for the help.

after the correct mount command, i think, i was able to go to mnt/var and see the files that were misplaced.

before i modify the fstab file, im about 99.9% sure that there is no /mnt/var/var

but only /mnt/var

i dont understand the defaults 1 0, but here goes anyway eheh guess il be sucking and seeing.

thanks again.
 
Old 06-12-2004, 06:01 PM   #23
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
Good luck!

the number are for fs checking (fsck) see "man fstab"
 
Old 06-12-2004, 06:02 PM   #24
rjcrews
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 193

Original Poster
Rep: Reputation: 30
yea its rebooting now ill post what happens
 
Old 06-12-2004, 06:06 PM   #25
rjcrews
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 193

Original Poster
Rep: Reputation: 30
oh wow it booted to kde, im assuming it worked. yay! thanks again, gotta fix /home now. wont ever make this mistake again


thanks again
 
Old 06-12-2004, 06:11 PM   #26
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
 
Old 06-12-2004, 09:54 PM   #27
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
Quote:
Originally posted by Tuttle

Also move your entire /home directory to hdb6 - to do this:

su
[password]
umount /dev/hdb5 #just to be sure
mount -t ext3 /dev/hdb6 /mnt/var #we are not worried about where it is actually mounted at the moment
cp -Rp /home/* /mnt/var
rm -Rf /home/* #when you mount hdb6 on /home, it should be empty
Almost forgot, don't "su" to do this - log out then ctrl+alt+f6 and log in as root.
I say this because you are moving the home folder of a user in the /home directory which is in use if you get my meaning.
 
Old 06-13-2004, 09:02 AM   #28
rjcrews
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 193

Original Poster
Rep: Reputation: 30
yea i figured that, i was just logging in as root :/

It turned out well, thanks much
 
Old 06-13-2004, 11:38 AM   #29
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
job done!
 
  


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
How to give not-root user ability to mount devices to any mount point??? jdupre Linux - General 8 02-04-2012 10:03 AM
Mount problem - device already mounted or mount point busy zahoo Linux - General 7 08-28-2009 05:02 PM
samba mount when not owner of mount point cotton213 Linux - General 1 08-04-2005 06:21 AM
can I mount two devices to the same mount point? gsgleason Linux - Hardware 7 03-04-2005 05:29 AM
Multiple mount --bind's to 1 mount point ? Etraman Slackware 6 12-23-2004 07:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:54 AM.

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