You are not logged in.

#1 2009-12-01 22:22:17

Xenokite
Member
From: Linden, NJ USA
Registered: 2009-03-14
Posts: 96
Website

[solved]Adjust Time & mount cd/dvd roms

i have a few errors but i will like to handle the easy ones frist.

1) i would like to adjust the time set  here is my rc.conf

#
LOCALE="en_US.utf8"
HARDWARECLOCK="localtime"
USEDIRECTISA="no"
TIMEZONE="America/New_York"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

for some odd reason the time still comes off wrong i have changed the "localtime" to "UTC" and i still got the wrong time. if there is a way just to add a few hours that would be great.

2) i can't seem to get my cd/dvd roms to work all USB hds and pen stick works fine

# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0

/dev/cdrom             /media/cd   auto    ro,user,noauto,unhide     0      0
/dev/dvd               /media/dvd  auto    ro,user,noauto,unhide     0      0
#/dev/fd0              /media/fl   auto    user,noauto               0      0

i removed the '#' from both /dev but the auto file type is not picking up on what type of cd or dvd in drive.

Last edited by Xenokite (2010-01-16 04:06:37)


Registered Linux user :#500622
"être fort pour être utile" (be strong to be useful) —Georges Hébert
"There is only Good people and Bad people, we should not be judged by Race, religion or sex but we should be judged by our deeds or actions." - Lindsey Irving
Xenokite aka Lycan

Offline

#2 2009-12-01 23:15:15

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved]Adjust Time & mount cd/dvd roms

> if there is a way just to add a few hours that would be great.
Have you tried setting your time? And in BIOS?

> I can't seem to get my cd/dvd roms to work
I need more details: what commands do you run and what errors do you get?

Offline

#3 2009-12-01 23:40:45

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,694
Website

Re: [solved]Adjust Time & mount cd/dvd roms

You can use the CLI to adjust the time too.
1. set HARDWARECLOCK="UTC"   <-- this is the unix/linux way
2. The following commands are to be issued as root.
hwclock --set --date "01/12/2009 18:33:00"
hwclock -- hctosys

You are done.

As per your CD I do not see anything wrong with your configuration. Can you provide some extra info? Is it an attached CD or a USB one? Do you see any error with reference to the CDR in dmesg?

R.

Offline

#4 2009-12-01 23:54:14

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved]Adjust Time & mount cd/dvd roms

@ralvez
Is it 'hwclock -- hctosys' or 'hwclock --hctosys'?

Offline

#5 2009-12-02 00:11:13

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,694
Website

Re: [solved]Adjust Time & mount cd/dvd roms

It is **exactly** as I posted. Just copy and pate the code. Only change the time of course smile

R.

Note: hwclock stands for hardware clock and hwtosys means "hardware clock to system"

Last edited by ralvez (2009-12-02 00:12:44)

Offline

#6 2009-12-02 00:16:42

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved]Adjust Time & mount cd/dvd roms

My prompt told me it doesn't like the space after '--': "hwclock takes no non-option arguments.  You supplied 1."

hwclock -- hctosys

Offline

#7 2009-12-02 00:25:29

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,694
Website

Re: [solved]Adjust Time & mount cd/dvd roms

I see ... that's my bad.
When you use arguments there is no space between the command and the argument.
It should be typed like this:

hwclock --set --date "01/12/2009 18:33:00"
hwclock --hctosys

R.

Offline

#8 2009-12-02 15:27:32

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved]Adjust Time & mount cd/dvd roms

One more thing: my OS treated 01/12/2009 as Jan 12th which caused usual problems - 'last mount in the future'.

Offline

#9 2009-12-02 22:56:25

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,694
Website

Re: [solved]Adjust Time & mount cd/dvd roms

The order is month-day-year so 01 would be understood as January.

R.

Offline

#10 2009-12-03 05:19:52

Xenokite
Member
From: Linden, NJ USA
Registered: 2009-03-14
Posts: 96
Website

Re: [solved]Adjust Time & mount cd/dvd roms

ralvez wrote:

You can use the CLI to adjust the time too.
1. set HARDWARECLOCK="UTC"   <-- this is the unix/linux way
2. The following commands are to be issued as root.
hwclock --set --date "01/12/2009 18:33:00"
hwclock -- hctosys

You are done.

As per your CD I do not see anything wrong with your configuration. Can you provide some extra info? Is it an attached CD or a USB one? Do you see any error with reference to the CDR in dmesg?

R.

ok the time worked thanks a lot.

With the CD/DVD rom if it comes up in my file manager and i click on it to mount it, it will say that the file type is not listed but it is set too auto. (the cdrom is not a usb, it is a normal IDE)

Last edited by Xenokite (2009-12-03 05:20:36)


Registered Linux user :#500622
"être fort pour être utile" (be strong to be useful) —Georges Hébert
"There is only Good people and Bad people, we should not be judged by Race, religion or sex but we should be judged by our deeds or actions." - Lindsey Irving
Xenokite aka Lycan

Offline

#11 2009-12-03 12:48:21

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,694
Website

Re: [solved]Adjust Time & mount cd/dvd roms

The CD case is odd.
Make sure you have installed hal (pacman -S hal)  and that it is in your DAEMONS line in /etc/rc.local and comment out your cd lines in /etc/fstab like:

#/dev/cdrom             /media/cd   auto    ro,user,noauto,unhide   0      0
#/dev/dvd               /media/dvd  auto    ro,user,noauto,unhide   0      0

Then restart you system (a-la-windows wink ) and then give the CD a try ... see if it works.

Failing that post the results of "dmesg | grep CD"

R.

Offline

#12 2009-12-03 20:54:01

Xenokite
Member
From: Linden, NJ USA
Registered: 2009-03-14
Posts: 96
Website

Re: [solved]Adjust Time & mount cd/dvd roms

ralvez wrote:

The CD case is odd.
Make sure you have installed hal (pacman -S hal)  and that it is in your DAEMONS line in /etc/rc.local and comment out your cd lines in /etc/fstab like:

#/dev/cdrom             /media/cd   auto    ro,user,noauto,unhide   0      0
#/dev/dvd               /media/dvd  auto    ro,user,noauto,unhide   0      0

Then restart you system (a-la-windows wink ) and then give the CD a try ... see if it works.

Failing that post the results of "dmesg | grep CD"

R.

yeah i have already installed HAL and Dbus.  here some code.

autostart.sh

# Run the system-wide support stuff
. $GLOBALAUTOSTART

# Programs to launch at startup
xcompmgr -c -t-5 -l-5 -r4.2 -o.55 &
nitrogen --restore &
thunar --daemon &
parcellite &

if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
    eval `dbus-launch --sh-syntax --exit-with-session`
    echo "D-Bus per-session daemon address is: $DBUS_SESSION_BUS_ADDRESS"
  fi


# Programs that will run after Openbox has started
(sleep 2 && tint2) &
#(sleep 2 && trayer --expand true --transparent true  --alpha 255 --edge bottom --align right --expand true --SetDockType true --widthtype request --margin 125) &
#(sleep 4 && conky) &

fstab

# 
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0

#/dev/cdrom             /media/cd   auto    ro,user,noauto,unhide     0      0
#/dev/dvd               /media/dvd  auto    ro,user,noauto,unhide     0      0
#/dev/fd0              /media/fl   auto    user,noauto               0      0

UUID=25f34121-387c-4679-9f44-79ddfd886a61 swap swap defaults 0 0
UUID=3ddb0205-e67b-4ea5-9473-822f90bb5a90 / ext3 defaults 0 1
UUID=d6ceaa00-e855-45fb-8471-53c29f6a8680 /home ext3 defaults 0 1
UUID=ed06eb10-e668-45b7-abdd-4761e591eeb0 /boot ext2 defaults 0 1

.xinitrc

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

# exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice
#exec xterm
exec dbus-launch --exit-with-session ck-launch-session openbox-session

Well this what i have now and i can't seem to get my cd/dvd to load up.


Registered Linux user :#500622
"être fort pour être utile" (be strong to be useful) —Georges Hébert
"There is only Good people and Bad people, we should not be judged by Race, religion or sex but we should be judged by our deeds or actions." - Lindsey Irving
Xenokite aka Lycan

Offline

#13 2009-12-03 22:36:02

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,694
Website

Re: [solved]Adjust Time & mount cd/dvd roms

Well ... unless there is something wrong with the CDROM itself I do not see anything odd with your configuration files.
Sorry ... I have not other ideas and I do not see what the problem could be hmm

R.

Offline

#14 2009-12-04 03:19:43

Xenokite
Member
From: Linden, NJ USA
Registered: 2009-03-14
Posts: 96
Website

Re: [solved]Adjust Time & mount cd/dvd roms

Well i added "pmount"  which is suppose to help with the auto mount but it still does allow the cd/dvd rom. there is a gui verison also but it is not in our REPOs "mount-GTK". Even before i added "pmount" i wasn't able to load up my usb HD's i ended up rebuilding arch and got the usb's too work .

# pmount -t vfat  /dev/cdrom  /media/cd
WARING : device /dev/cdrom is already handled by /etc/fstab, supplied label is ignored

now i got that after i went back in /etc/fstab and removed the "#" from in front of /dev/cdrom. But before that i got this.

# pmount -t vfat /dev/cdrom  /media/cd
MOUNT:  block device /dev/sr0 is write-protected, mounting read-only
MOUNT:  /dev/sr0: can't read superblock
ERROR: could not delete mount point: No such file or directory

Registered Linux user :#500622
"être fort pour être utile" (be strong to be useful) —Georges Hébert
"There is only Good people and Bad people, we should not be judged by Race, religion or sex but we should be judged by our deeds or actions." - Lindsey Irving
Xenokite aka Lycan

Offline

#15 2009-12-04 03:57:05

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

Re: [solved]Adjust Time & mount cd/dvd roms

I can almost guarantee you that the cd does not use 'vfat' - use iso9960 ('auto' should work too ...)
Just try a:

sudo mkdir /media/cd; sudo chmod a+rx /media/cd   #according to the above, the directory does not exist!
sudo mount -o ro /dev/sr0 /media/cd

Last edited by perbh (2009-12-04 03:59:03)

Offline

#16 2009-12-04 04:05:08

Xenokite
Member
From: Linden, NJ USA
Registered: 2009-03-14
Posts: 96
Website

Re: [solved]Adjust Time & mount cd/dvd roms

oh they exist. Most of the files that i was using was already made by system. if i used mkdir i would just overwrite what is already there.

instead of using the "pmount" command i used the standard "mount" command with the frist syntax i was using and it listed:

superblocked and write-protected

Last edited by Xenokite (2009-12-04 04:11:00)


Registered Linux user :#500622
"être fort pour être utile" (be strong to be useful) —Georges Hébert
"There is only Good people and Bad people, we should not be judged by Race, religion or sex but we should be judged by our deeds or actions." - Lindsey Irving
Xenokite aka Lycan

Offline

#17 2009-12-08 03:37:37

Xenokite
Member
From: Linden, NJ USA
Registered: 2009-03-14
Posts: 96
Website

Re: [solved]Adjust Time & mount cd/dvd roms

Xenokite wrote:
ralvez wrote:

The CD case is odd.
Make sure you have installed hal (pacman -S hal)  and that it is in your DAEMONS line in /etc/rc.local and comment out your cd lines in /etc/fstab like:

#/dev/cdrom             /media/cd   auto    ro,user,noauto,unhide   0      0
#/dev/dvd               /media/dvd  auto    ro,user,noauto,unhide   0      0

Then restart you system (a-la-windows wink ) and then give the CD a try ... see if it works.

Failing that post the results of "dmesg | grep CD"

R.

yeah i have already installed HAL and Dbus.  here some code.

autostart.sh

# Run the system-wide support stuff
. $GLOBALAUTOSTART

# Programs to launch at startup
xcompmgr -c -t-5 -l-5 -r4.2 -o.55 &
nitrogen --restore &
thunar --daemon &
parcellite &

if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
    eval `dbus-launch --sh-syntax --exit-with-session`
    echo "D-Bus per-session daemon address is: $DBUS_SESSION_BUS_ADDRESS"
  fi


# Programs that will run after Openbox has started
(sleep 2 && tint2) &
#(sleep 2 && trayer --expand true --transparent true  --alpha 255 --edge bottom --align right --expand true --SetDockType true --widthtype request --margin 125) &
#(sleep 4 && conky) &

fstab

# 
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0

#/dev/cdrom             /media/cd   auto    ro,user,noauto,unhide     0      0
#/dev/dvd               /media/dvd  auto    ro,user,noauto,unhide     0      0
#/dev/fd0              /media/fl   auto    user,noauto               0      0

UUID=25f34121-387c-4679-9f44-79ddfd886a61 swap swap defaults 0 0
UUID=3ddb0205-e67b-4ea5-9473-822f90bb5a90 / ext3 defaults 0 1
UUID=d6ceaa00-e855-45fb-8471-53c29f6a8680 /home ext3 defaults 0 1
UUID=ed06eb10-e668-45b7-abdd-4761e591eeb0 /boot ext2 defaults 0 1

.xinitrc

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

# exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice
#exec xterm
exec dbus-launch --exit-with-session ck-launch-session openbox-session

Well this what i have now and i can't seem to get my cd/dvd to load up.

Here is what i came up with. i changed my Fstab file a bit

# 
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0

/dev/cdrom            /media/cd      auto      defaults            0      0
/dev/dvd              /media/dvd     auto      defaults            0      0
#/dev/fd0             /media/fl      auto      user,noauto         0      0

UUID=25f34121-387c-4679-9f44-79ddfd886a61 swap swap defaults 0 0
UUID=3ddb0205-e67b-4ea5-9473-822f90bb5a90 / ext3 defaults 0 1
UUID=d6ceaa00-e855-45fb-8471-53c29f6a8680 /home ext3 defaults 0 1
UUID=ed06eb10-e668-45b7-abdd-4761e591eeb0 /boot ext2 defaults 0 1

also i added  IDE to my "Hook= ide" on my mkinitcpio.conf

#
#    This setup loads an lvm2 volume group on a usb device.
#    HOOKS="base udev usb lvm2 filesystems"
HOOKS="base udev autodetect ide scsi sata filesystems usbinput"

now the only problem i still see is that when i put a Music CD it doesn't mount so i am guessing it is a filetype problem. Maybe there is a package that i need to pickup to aid on reading and executing music Cds.


Registered Linux user :#500622
"être fort pour être utile" (be strong to be useful) —Georges Hébert
"There is only Good people and Bad people, we should not be judged by Race, religion or sex but we should be judged by our deeds or actions." - Lindsey Irving
Xenokite aka Lycan

Offline

#18 2009-12-13 04:03:35

methuselah
Member
Registered: 2007-10-02
Posts: 570

Re: [solved]Adjust Time & mount cd/dvd roms

This won't be a proper fix, but the app called Grip works good for playing music CD's: http://www.archlinux.org/packages/?q=grip

Last edited by methuselah (2009-12-13 04:09:00)

Offline

#19 2009-12-13 05:37:07

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: [solved]Adjust Time & mount cd/dvd roms

I don't think you "mount" audio cds, you either play them or rip them.

Offline

Board footer

Powered by FluxBB