SOLVED ! Re: Mounting partitions HELP

2003-01-26 Thread Joris Huizer

--- Alvin Oga [EMAIL PROTECTED]
wrote:
 
 
 On Sat, 25 Jan 2003, Joris Huizer wrote:
 
  I've got the following situation:
  
  /dev/hda :
   - windows stuff
  
  /dev/hdb :
   - /dev/hdb1 : / (root)
   - /dev/hdb2 : swap
   - /dev/hdb3 : /boot NOT IN USE
   - /dev/hdb4 : extended partition
 - /dev/hdb5 : /home
 - /dev/hdb6 : /usr
  
  I've got two questions:
  
  1. How can I mount the /dev/hda ( the bootloader
 says
  /dev/hda1 ) (as root and/or as normal user) ?
 
 mount -t vfat /dev/hda1 /mnt/windoze
   and/or add to /etc/fstab 
   and/or add to automounter if you dont want windoze
   to be always mounted
 
 normally... you do not want a normal user to mount
 
 stuff to the machine ... 
- if the normal user is you,
   you can use sudo mount blah  /mnt/blah
   or simply open up a root window
 
 you cannot mount /dev/hda... you should mount
 /dev/hdaXX
 ( the partitions )
 
 
  2. Is it possible to clean (format, initialize)
 the
  /dev/hdb3 and set a new partition ( /tmp) there ?
 
 if its not used ...
 
 mke2fs /dev/hdb3   ( assuming nothing to save on
 /dev/hdb3 )
 - addd /tmp into your /etc/fstab
 
 - reboot or make sure /tmp and /boot is correct
   mount /dev/hdb3 /tmp
   chmod 1777 /tmp for good measure
 

Cool, that did the job allright !

By the way, what does 'chmod 1777 /tmp' mean ? I
thought chmod takes an octal number of max. 3 digits
...



 /boot should be within the first 1024 cylinders
   - more /boot space means you can have more
 experimental kernels
 
  Oh, and what type should be used ? I think /tmp or
  /var but I don't know for sure.
 
 nothing special for /var  permissions
 
 c ya
 alvin
 
 
 -- 
 To UNSUBSCRIBE, email to
 [EMAIL PROTECTED] 
 with a subject of unsubscribe. Trouble? Contact
 [EMAIL PROTECTED]
 


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Mounting partitions HELP

2003-01-25 Thread Joris Huizer
I've got the following situation:

/dev/hda :
 - windows stuff

/dev/hdb :
 - /dev/hdb1 : / (root)
 - /dev/hdb2 : swap
 - /dev/hdb3 : /boot NOT IN USE
 - /dev/hdb4 : extended partition
   - /dev/hdb5 : /home
   - /dev/hdb6 : /usr

I've got two questions:

1. How can I mount the /dev/hda ( the bootloader says
/dev/hda1 ) (as root and/or as normal user) ?

2. Is it possible to clean (format, initialize) the
/dev/hdb3 and set a new partition ( /tmp) there ?
I created during the first partition for redhat; It's
rather big as I didn't know a /boot should be small
and it was used to start the install of debian from
that partition.

Oh, and what type should be used ? I think /tmp or
/var but I don't know for sure.


Thanks in advance,

Joris Huizer

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Mounting partitions HELP

2003-01-25 Thread Seneca
On Sat, Jan 25, 2003 at 12:49:12AM -0800, Joris Huizer wrote:
 /dev/hda :
  - windows stuff
 
 /dev/hdb :
  - /dev/hdb1 : / (root)
  - /dev/hdb2 : swap
  - /dev/hdb3 : /boot NOT IN USE
  - /dev/hdb4 : extended partition
- /dev/hdb5 : /home
- /dev/hdb6 : /usr
 
 I've got two questions:
 
 1. How can I mount the /dev/hda ( the bootloader says
 /dev/hda1 ) (as root and/or as normal user) ?

If only as root,

  # mount -t vfat /dev/hda1 /mnt

If you also want ordinary users to be able to mount it, add it to your
/etc/fstab (see mount(8) and fstab(5)).

  /dev/hda1/mntvfatdefaults,user,noauto  0  0

 2. Is it possible to clean (format, initialize) the
 /dev/hdb3 and set a new partition ( /tmp) there ?
 I created during the first partition for redhat; It's
 rather big as I didn't know a /boot should be small
 and it was used to start the install of debian from
 that partition.

If /dev/hdb3 is not empty, move its contents to /boot on /dev/hdb1.

  # umount /dev/hdb3
  # mount -t ext2 /dev/hdb3 /mnt (change ext2 to the file system)
  # cp -a /mnt /boot
  # diff -r /mnt /boot (if contents match, continue)
  # rm -f /mnt/*
  # umount /mnt

Now, /dev/hdb3 is empty.  You can then set it up as your new /tmp.

  Add the following line to your /etc/fstab (changing ext2 if needed):
/dev/hdb3  /tmp  ext2  defaults,errors=remount-ro  0  0
  reboot

 Oh, and what type should be used ? I think /tmp or
 /var but I don't know for sure.

/tmp and /var are not partition types.

-- 
Seneca
[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Mounting partitions HELP

2003-01-25 Thread David Z Maze
Joris Huizer [EMAIL PROTECTED] writes:
 1. How can I mount the /dev/hda ( the bootloader says
 /dev/hda1 ) (as root and/or as normal user) ?

See mount(8) and fstab(5).

 2. Is it possible to clean (format, initialize) the
 /dev/hdb3 and set a new partition ( /tmp) there ?

Create a new filesystem using e.g. mke2fs(8), and mount it there as
before.  Be aware that mounting the new filesystem will mask the
preexisting contents of it; this isn't a problem if you're putting the
new filesystem on /tmp and remounting it by rebooting, but you need to
go through a little more caution if you're trying to create a new
partition for something that already exists and has persistent state
(e.g. /var).  Also, you get into big trouble if your /tmp partition is
too small (well, and /var too, but APT stops working is less bad
than the trouble you get if /tmp fills).

-- 
David Maze [EMAIL PROTECTED]  http://people.debian.org/~dmaze/
Theoretical politics is interesting.  Politicking should be illegal.
-- Abra Mitchell


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Mounting partitions HELP

2003-01-25 Thread Joris Huizer
Hello,

You're reply helped getting access to the windows
partition - but not yet on the /dev/hdb3

--- Seneca [EMAIL PROTECTED] wrote:
 On Sat, Jan 25, 2003 at 12:49:12AM -0800, Joris
 Huizer wrote:
  /dev/hda :
   - windows stuff
  
  /dev/hdb :
   - /dev/hdb1 : / (root)
   - /dev/hdb2 : swap
   - /dev/hdb3 : /boot NOT IN USE
   - /dev/hdb4 : extended partition
 - /dev/hdb5 : /home
 - /dev/hdb6 : /usr
  
  I've got two questions:
  
  1. How can I mount the /dev/hda ( the bootloader
 says
  /dev/hda1 ) (as root and/or as normal user) ?
 
 If only as root,
 
   # mount -t vfat /dev/hda1 /mnt
 
 If you also want ordinary users to be able to mount
 it, add it to your
 /etc/fstab (see mount(8) and fstab(5)).
 
   /dev/hda1/mntvfatdefaults,user,noauto 
 0  0
 

Cool this works very well

  2. Is it possible to clean (format, initialize)
 the
  /dev/hdb3 and set a new partition ( /tmp) there ?
  I created during the first partition for redhat;
 It's
  rather big as I didn't know a /boot should be
 small
  and it was used to start the install of debian
 from
  that partition.
 
 If /dev/hdb3 is not empty, move its contents to
 /boot on /dev/hdb1.
 
   # umount /dev/hdb3
   # mount -t ext2 /dev/hdb3 /mnt (change ext2 to the
 file system)
   # cp -a /mnt /boot
   # diff -r /mnt /boot (if contents match, continue)
   # rm -f /mnt/*
   # umount /mnt
 
 Now, /dev/hdb3 is empty.  You can then set it up as
 your new /tmp.
 
   Add the following line to your /etc/fstab
 (changing ext2 if needed):
 /dev/hdb3  /tmp  ext2 
 defaults,errors=remount-ro  0  0
   reboot
 
  Oh, and what type should be used ? I think /tmp or
  /var but I don't know for sure.
 
 /tmp and /var are not partition types.
 
 -- 
 Seneca
 [EMAIL PROTECTED]
 

I don't know why, but if I do that I can't log in on a
X except the failsafe one... (the screen turns black
and then it goes back to the login screen again)

As I said I didn't use the /boot after the
installation - maybe I have to change other settings
also - or maybe it's a prob its bootable ?? I have no
idea what's causing this...  





__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Mounting partitions HELP

2003-01-25 Thread Joris Huizer
Sorry if I'm double posting now - but it looks like my
previous message was not send

--- Seneca [EMAIL PROTECTED] wrote:
 On Sat, Jan 25, 2003 at 12:49:12AM -0800, Joris
 Huizer wrote:
  /dev/hda :
   - windows stuff
  
  /dev/hdb :
   - /dev/hdb1 : / (root)
   - /dev/hdb2 : swap
   - /dev/hdb3 : /boot NOT IN USE
   - /dev/hdb4 : extended partition
 - /dev/hdb5 : /home
 - /dev/hdb6 : /usr
  
  I've got two questions:
  
  1. How can I mount the /dev/hda ( the bootloader
 says
  /dev/hda1 ) (as root and/or as normal user) ?
 
 If only as root,
 
   # mount -t vfat /dev/hda1 /mnt
 
 If you also want ordinary users to be able to mount
 it, add it to your
 /etc/fstab (see mount(8) and fstab(5)).
 
   /dev/hda1/mntvfatdefaults,user,noauto 
 0  0
 
  2. Is it possible to clean (format, initialize)
 the
  /dev/hdb3 and set a new partition ( /tmp) there ?
  I created during the first partition for redhat;
 It's
  rather big as I didn't know a /boot should be
 small
  and it was used to start the install of debian
 from
  that partition.
 
 If /dev/hdb3 is not empty, move its contents to
 /boot on /dev/hdb1.
 
   # umount /dev/hdb3
   # mount -t ext2 /dev/hdb3 /mnt (change ext2 to the
 file system)
   # cp -a /mnt /boot
   # diff -r /mnt /boot (if contents match, continue)
   # rm -f /mnt/*
   # umount /mnt
 
 Now, /dev/hdb3 is empty.  You can then set it up as
 your new /tmp.
 
   Add the following line to your /etc/fstab
 (changing ext2 if needed):
 /dev/hdb3  /tmp  ext2 
 defaults,errors=remount-ro  0  0
   reboot
 

When I add that line I can't log in on the X except
for the failsafe ones

Maybe I need to initialise the partition ? during
the installation that happened with the other
partitions on the /dev/hdb disk too - but I don't know
what command to use for that



  Oh, and what type should be used ? I think /tmp or
  /var but I don't know for sure.
 
 /tmp and /var are not partition types.
 
 -- 
 Seneca
 [EMAIL PROTECTED]
 
 



__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Mounting partitions HELP

2003-01-25 Thread Alvin Oga


On Sat, 25 Jan 2003, Joris Huizer wrote:

 I've got the following situation:
 
 /dev/hda :
  - windows stuff
 
 /dev/hdb :
  - /dev/hdb1 : / (root)
  - /dev/hdb2 : swap
  - /dev/hdb3 : /boot NOT IN USE
  - /dev/hdb4 : extended partition
- /dev/hdb5 : /home
- /dev/hdb6 : /usr
 
 I've got two questions:
 
 1. How can I mount the /dev/hda ( the bootloader says
 /dev/hda1 ) (as root and/or as normal user) ?

mount -t vfat /dev/hda1 /mnt/windoze
and/or add to /etc/fstab 
and/or add to automounter if you dont want windoze
to be always mounted

normally... you do not want a normal user to mount 
stuff to the machine ... 
   - if the normal user is you,
you can use sudo mount blah  /mnt/blah
or simply open up a root window

you cannot mount /dev/hda... you should mount /dev/hdaXX
( the partitions )


 2. Is it possible to clean (format, initialize) the
 /dev/hdb3 and set a new partition ( /tmp) there ?

if its not used ...

mke2fs /dev/hdb3   ( assuming nothing to save on /dev/hdb3 )
- addd /tmp into your /etc/fstab

- reboot or make sure /tmp and /boot is correct
mount /dev/hdb3 /tmp
chmod 1777 /tmp for good measure

/boot should be within the first 1024 cylinders
- more /boot space means you can have more experimental kernels

 Oh, and what type should be used ? I think /tmp or
 /var but I don't know for sure.

nothing special for /var  permissions

c ya
alvin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]